/* Estilos aprimorados para a página inicial do H2Bios */

/* Hero Section com animação de gradiente */
.hero {
    position: relative;
    background: linear-gradient(-45deg, #2ECC71, #4ECDC4, #3498DB, #2980B9);
    background-size: 400% 400%;
    animation: gradient-bg 15s ease infinite;
    overflow: hidden;
}

@keyframes gradient-bg {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-overlay.png');
    background-size: cover;
    opacity: 0.15;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fade-in-up 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    animation: fade-in-up 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fade-in-up 1s ease-out 0.6s;
    animation-fill-mode: both;
}

/* Animações para elementos */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Partículas flutuantes */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-30px) translateX(30px);
    }
    50% {
        transform: translateY(-60px) translateX(0);
    }
    75% {
        transform: translateY(-30px) translateX(-30px);
    }
}

/* Seção Sobre com cards aprimorados */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    padding-right: 2rem;
}

.about-text h3 {
    color: var(--azul-primario);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-left: 1rem;
}

.about-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gradiente-principal);
    border-radius: 2px;
}

.about-text ul {
    margin-bottom: 2rem;
}

.about-text li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--verde-primario);
    font-weight: bold;
}

.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradiente-principal);
    z-index: 2;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    color: var(--azul-primario);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Fluxo do projeto com animações */
.fluxo-diagram {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.fluxo-step {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.fluxo-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradiente-principal);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.fluxo-arrow {
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.fluxo-arrow i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Rotas tecnológicas com efeitos visuais */
.rotas-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.rota-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.rota-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 1;
}

.rota-biologica::before {
    background-image: url('../images/bg-biologica.jpg');
}

.rota-termoquimica::before {
    background-image: url('../images/bg-termoquimica.jpg');
}

.rota-eletroquimica::before {
    background-image: url('../images/bg-eletroquimica.jpg');
}

.rota-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.rota-header {
    background: var(--gradiente-principal);
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.rota-etapa {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.rota-title {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.rota-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.rota-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.rota-features {
    margin-bottom: 1.5rem;
}

.rota-features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.rota-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--verde-primario);
    font-weight: bold;
}

/* Equipe com cards interativos */
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-member {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-img img {
    transform: scale(1.05);
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-name {
    color: var(--azul-primario);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.member-role {
    color: var(--verde-primario);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.member-bio {
    color: var(--cinza-metalico);
    font-size: 0.9rem;
}

/* Parceiros com logos animadas */
.partners-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

/* Partner styles moved to updated-styles.css to avoid conflicts */

/* Responsividade */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .fluxo-diagram {
        flex-direction: column;
        gap: 2rem;
    }
    
    .fluxo-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .team-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .partner-logo {
        width: 150px;
        height: 120px;
    }
}
