/* =================================================================== */
/* CSS RESET - Remove o espaçamento padrão do navegador                */
/* ESTA É A PARTE MAIS IMPORTANTE PARA REMOVER AS BORDAS               */
/* =================================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    /* Previne barras de rolagem horizontais acidentais */
    overflow-x: hidden; 
}

/* =================================================================== */
/* ESTILOS GERAIS DA ANIMAÇÃO (DESKTOP)                                */
/* =================================================================== */

/* Seção principal de topo */
.hero-section {
    position: relative;
    background-image: url('img/homebg.jpg');
    background-size: cover;
    background-position: center;
    background-color: #3C3C3B;
    
    width: 100%; 
    height: 50vh; /* Altura ajustada para desktop */
    min-height: 400px;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%; 
    
    /* Garante que o padding não aumente a largura total */
    box-sizing: border-box; 
}

/* Container da animação de texto */
.animation-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: slide-in 1.5s ease-out 0.5s forwards;
    opacity: 0;
    flex-basis: 50%;
}

/* Container para a animação Lottie */
.lottie-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-basis: 40%;
    z-index: 2;
}

/* Ajusta o tamanho do player da animação */
.lottie-container lottie-player {
    max-width: 400px;
    width: 100%;
}

.animation-logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

/* Estilos base para as linhas de texto */
.typing-text h1,
.typing-text p {
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

/* Estilos da primeira linha */
.typing-line1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px #3C3C3B;
    height: clamp(2.5rem, 6vw, 4.5rem);
    display: flex;
    align-items: center;
}

/* CURSOR DA LINHA 1 */
#line1-cursor {
    display: inline-block;
    width: 3px;
    height: clamp(2rem, 5vw, 4rem);
    background-color: #3C3C3B;
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.1s;
}

/* Estilos da segunda linha */
.typing-line2 {
    font-size: clamp(1rem, 2.5vw, 2rem);
    font-weight: 400;
    margin-top: 10px;
    display: inline-block;
    color: #A9A9A9;
}

/* CURSOR DA LINHA 2 */
.typing-line2 .cursor {
    display: inline-block;
    border-left: 3px solid #3C3C3B;
    margin-left: 3px;
    height: clamp(1rem, 2.5vw, 2rem);
    animation: blinking-cursor 0.75s step-end infinite;
    opacity: 0;
}

/* Animações Keyframes */
@keyframes slide-in {
    from { transform: translateX(-100vw); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes blinking-cursor {
    from, to { border-color: transparent; }
    50% { border-color: #3C3C3B; }
}

/* =================================================================== */
/* ESTILOS PARA DISPOSITIVOS MÓVEIS (RESPONSIVIDADE)                   */
/* =================================================================== */
@media (max-width: 768px) {
    .hero-section { 
        /* --- TÉCNICA "FULL BLEED" PARA FORÇAR LARGURA TOTAL --- */
        width: 100vw;
        position: relative;
        left: 50%;
        margin-left: -50vw;
        
        /* --- ESTILOS DE LAYOUT E IMAGEM --- */
        justify-content: center;
        align-items: center;
        padding: 0 20px; 
        height: 35vh;
        min-height: 280px;
        
        background-image: url('img/homebg-mobile.jpg');
        background-size: cover; 
        background-position: center center; 
    }

    /* Esconde a animação Lottie para focar no conteúdo principal */
    .lottie-container {
        display: none;
    }

    /* Alinhamento do container de texto */
    .animation-container { 
        align-items: center; 
        text-align: center;
        flex-basis: 100%;
    }
    
    .typing-line1 { 
        justify-content: center; 
    }
}