/* =========================================
   RESET E CONFIGURAÇÕES GERAIS
   ========================================= */
:root {
    --green-dark: #1b5e20;
    --green-light: #4caf50;
    --green-neon: #00e676; /* Verde vibrante para hover */
    --font-main: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    height: 100vh; width: 100vw;
    overflow: hidden; /* Trava rolagem */
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--green-dark);
}

/* Fundo da Natureza */
.bg-nature {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('assets/fundo.png') no-repeat center center/cover;
    z-index: -1;
}

/* =========================================
   NAVBAR (MUITO INTERATIVA)
   ========================================= */
.glass-nav {
    position: fixed; 
    top: 30px; 
    left: 50%; 
    transform: translateX(-50%);
    
    display: flex; align-items: center; gap: 40px;
    padding: 12px 40px;
    
    /* Vidro Premium e Legível */
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    
    /* CRUCIAL: Garante que fique acima de tudo para ser clicável */
    z-index: 1000; 
    transition: all 0.3s ease;
}

/* Hover na barra inteira */
.glass-nav:hover {
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 40px rgba(0, 100, 0, 0.1);
}

/* Logo */
.logo-icon { 
    width: 30px; height: 30px; 
    color: var(--green-dark); 
    cursor: pointer; 
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.glass-nav:hover .logo-icon { transform: rotate(360deg); }

.nav-links { display: flex; gap: 30px; }

/* Links Individuais */
.nav-item {
    text-decoration: none;
    color: var(--green-dark);
    font-weight: 600; font-size: 0.95rem;
    position: relative; 
    padding: 5px 0;
    cursor: pointer; /* Garante a mãozinha */
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

/* INTERAÇÃO HOVER NOS LINKS */
.nav-item:hover {
    color: var(--green-neon) !important; /* Força a cor verde neon */
    transform: translateY(-3px); /* Pulinho para cima */
    text-shadow: 0 2px 10px rgba(0, 230, 118, 0.3);
}

/* Linha animada embaixo do link */
.nav-item::after {
    content: '';
    position: absolute;
    width: 0%; height: 3px;
    bottom: -2px; left: 0;
    background: linear-gradient(90deg, #4caf50, #00e676);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-item:hover::after { width: 100%; }


/* =========================================
   CONTAINER E BLOCO VISUAL (404 + MONSTRO)
   ========================================= */
.container-404 {
    position: relative;
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding-top: 50px;
}

.visual-block {
    position: relative;
    width: 1000px; height: 500px;
    margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center;
}

/* MONSTRO (FRENTE) */
.monster-container {
    position: absolute; left: 50%; transform: translateX(-50%);
    height: 100%; width: auto;
    z-index: 10; /* Fica na frente */
    display: flex; align-items: center; justify-content: center;
}

/* VÍDEO DO MONSTRO */
.monster-video {
    height: 100%; width: auto; object-fit: contain;
    mix-blend-mode: multiply; /* Remove fundo branco */
    /* Filtros suaves para integração */
    opacity: 0.95;
    filter: brightness(0.95) contrast(1.1);
}

/* NÚMEROS (ATRÁS) */
.num-img {
    position: absolute; height: 100%; width: auto;
    z-index: 1; /* Fica atrás */
    filter: contrast(1.1) brightness(1.1);
    mix-blend-mode: multiply;
}

/* POSICIONAMENTO E OVERLAP DOS NÚMEROS */
.num-left {
    right: 50%;
    /* Valor negativo para puxar para trás do monstro */
    margin-right: -290px; 
}

.num-right {
    left: 50%;
    /* Valor negativo para puxar para trás do monstro */
    margin-left: -260px;
}

/* =========================================
   TEXTOS
   ========================================= */
.text-content {
    text-align: center; position: relative; z-index: 20;
    margin-top: -40px; /* Sobe um pouco para perto do monstro */
}
.text-content h1 { font-size: 3rem; font-weight: 800; color: var(--green-dark); }
.text-content p { font-size: 1.1rem; font-weight: 500; color: #388e3c; }


/* =========================================
   BOTÃO "VIVO" (FLUIDO E PULSANTE)
   ========================================= */
.btn-container { 
    margin-top: 25px; 
    opacity: 0; /* Começa invisível para o JS animar, ou remova se não usar JS */
    position: relative; z-index: 100; 
}

.btn-nature {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 15px 45px; border-radius: 50px;
    
    /* Gradiente Rico */
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    color: white; 
    text-decoration: none; font-weight: 700; font-size: 1.1rem;
    
    /* Sombras e Bordas */
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.4);
    border: 2px solid rgba(255,255,255,0.3);
    
    position: relative;
    overflow: hidden; /* Para o brilho não vazar */
    transition: all 0.3s ease;
    
    /* ANIMAÇÃO DE PULSO CONSTANTE */
    animation: pulse-life 3s infinite ease-in-out;
}

/* Efeito de Brilho Líquido (Shine) */
.btn-nature::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    
    /* Faixa de luz inclinada */
    background: linear-gradient(
        120deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%
    );
    
    /* O brilho corre pelo botão */
    animation: shine-fluid 4s infinite linear;
}

/* Hover no Botão */
.btn-nature:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.6);
    border-color: #fff;
}

.btn-nature svg { transition: 0.3s; transform: rotate(180deg); }
.btn-nature:hover svg { transform: rotate(180deg) translateX(5px); }


/* =========================================
   KEYFRAMES (ANIMAÇÕES CSS)
   ========================================= */

/* Pulso de respiração do botão */
@keyframes pulse-life {
    0% { transform: scale(1); box-shadow: 0 10px 25px rgba(46, 125, 50, 0.4); }
    50% { transform: scale(1.03); box-shadow: 0 15px 35px rgba(76, 175, 80, 0.6); }
    100% { transform: scale(1); box-shadow: 0 10px 25px rgba(46, 125, 50, 0.4); }
}

/* Brilho correndo pelo botão */
@keyframes shine-fluid {
    0% { left: -150%; }
    20% { left: 150%; } /* Passa rápido */
    100% { left: 150%; } /* Espera antes de repetir */
}

/* =========================================
   RESPONSIVO
   ========================================= */
@media (max-width: 1024px) {
    .visual-block { width: 800px; height: 400px; }
    .num-left, .num-right { margin: 0 -180px; } /* Ajuste overlap menor */
}

@media (max-width: 768px) {
    .glass-nav { 
        width: 90%; 
        padding: 10px 20px; 
        justify-content: center;
    }
    .nav-links { display: none; } /* Esconde menu no mobile */
    
    .visual-block { 
        width: 100%; height: auto; 
        flex-direction: column; 
    }
    
    /* No mobile, volta ao fluxo normal (não absolute) */
    .num-img, .monster-container { 
        position: relative; 
        transform: none; left: auto; right: auto; 
        margin: -40px 0; /* Overlap vertical */
        height: 180px;
    }
    .num-left, .num-right { margin: 0; }
    
    .text-content { margin-top: 20px; }
}