/* =================================================================
   HEADER SECTION - APE TECHNOLOGY (DARK NEUTRAL THEME)
   Versão 3.2 - Layout de Tablet Ajustado
================================================================= */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-color: var(--bg-black);
    background-image: url('../assets/Ilustracoes/Fundo_teste.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0.6;
    animation: zoomInEffect 30s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px;
    z-index: -1;
    background: linear-gradient(to top, var(--bg-dark-gray), transparent);
}


.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    width: 100%;
}

.hero-illustration {
    flex: 1;
    max-width: 480px;
}

.hero-illustration img {
    max-width: 100%;
    height: auto;
}

.hero-text {
    flex: 1.2;
    max-width: 550px;
    text-align: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #FFFFFF;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7), 0 0 10px rgba(100, 255, 218, 0.5);
}

.hero-text p {
    font-size: 1.1rem;
    margin: 0 auto 40px auto;
    color: var(--text-lightest);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* --- RESPONSIVIDADE --- */

/* MUDANÇA: A partir de 992px para baixo, o layout já fica empilhado */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column; /* Transforma o layout em coluna */
        gap: 40px;
    }

    .hero-illustration {
        order: 2; /* Ilustração vai para baixo */
        margin-top: 40px;
        max-width: 420px; /* Um bom tamanho para tablets */
    }

    .hero-text {
        order: 1; /* Texto vai para cima */
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2.8rem; /* Fonte ajustada para tablets */
    }
}

/* Ajustes finos para telas de celular */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 150px 0 80px 0; /* Aumenta o padding superior para a navbar não cobrir o texto */
    }

    .hero-section::before {
        background-size: auto 100%;
        animation: panRightEffect 30s ease-in-out infinite alternate;
    }
    
    .hero-illustration {
        max-width: 350px; /* Reduz um pouco mais a ilustração para celulares */
    }

    .hero-text h1 {
        font-size: 2.2rem; /* Reduz um pouco mais a fonte para celulares */
    }
}

/* =================================================================
   KEYFRAMES PARA ANIMAÇÃO DE FUNDO
================================================================= */

@keyframes zoomInEffect {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.5);
    }
}

@keyframes panRightEffect {
    from {
        background-position: 0% center;
    }
    to {
        background-position: 100% center;
    }
}