/* Import das fontes */
@import url('https://fonts.googleapis.com/css2?family=Chiron+GoRound+TC:wght@200..900&family=Gowun+Dodum&family=Michroma&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Pixelify+Sans:wght@400..700&family=Press+Start+2P&family=VT323&family=Zen+Dots&display=swap');

:root {
    --texto: #bebebe;
    --logo: #c4c4c4;
    --fundo: #161616;
    --fontsize-navbar: 20px;
    --fonte-navbar: 'Michroma', sans-serif;
    --fonte-texto: 'Zen Dots', sans-serif;
}

/* Reset universal */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--fundo);
    color: var(--texto);
    font-family: var(--fonte-texto);
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* --- NAVBAR DESKTOP --- */
.navbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    font-family: var(--fonte-navbar);
    font-weight: bold;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    font-size: var(--fontsize-navbar);
    width: 100%;
    height: 60px;
    z-index: 1000;    
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);                
}

.nav-logo a {
    display: flex;
    font-family: var(--fonte-navbar);
    font-size: var(--fontsize-navbar);
    justify-content: center;
    align-items: center;
    width: 130px;
    height: 30px;
    margin: 10px;
    padding: 5px;
    color: var(--logo); 
}

.nav-logo a:hover {
    color: rgba(255, 255, 255, 0.8);
    animation: neonPulse 2s infinite;
}

.link-navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0 20px 0 0;
    padding: 0;
    gap: 30px;
    font-size: 15px;
}

.link-navbar li a {
    color: var(--logo);
    padding: 5px;
}

.link-navbar li a:hover {
    color: rgb(255, 255, 255);
    animation: neonPulse 2s infinite;
}

/* --- BOTÃO HAMBÚRGUER --- */
.menu-hamburguer {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    margin-right: 20px;
}

.menu-hamburguer .linha {
    height: 3px;
    width: 100%;
    background-color: var(--logo);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: left; /* Melhora a rotação para formar o X */
}

/* --- SEÇÕES (PARALLAX E CONTEÚDO) --- */
.container-parallax {
    height: 100vh;
    background-image: url('./imagens/abstract-techno-background-with-connecting-lines.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
}

.card-vidro {
    width: 100%;
    max-width: 600px;
    margin: 0 20px;
    background: rgba(0, 0, 0, 0.616);
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-radius: 15px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 
        0 0 10px rgba(0, 240, 255, 0.3),
        0 0 30px rgba(0, 240, 255, 0.2);
}

.conteudo-extra {
    min-height: 100vh;
    background: #000000dc;
    padding: 80px 20px;
    margin-top: 0;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5);
}

/* --- ANIMAÇÕES --- */
@keyframes neonPulse {
    0%, 100% { text-shadow: 0 0 5px #949494; }
    50% {
        text-shadow: 
            0 0 5px #949494,
            0 0 10px #949494,
            0 0 20px #949494;
    }
}

/* --- MEDIA QUERY (MOBILE) --- */
@media (max-width: 768px) {
    .menu-hamburguer {
        display: flex;
    }

    .link-navbar {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        max-height: 0; /* Troca de height para max-height */
        overflow: hidden;
        background-color: rgba(22, 22, 22, 0.95);
        flex-direction: column;
        margin: 0;
        gap: 0;
        transition: max-height 0.4s ease; /* Animação adaptada para max-height */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .link-navbar li {
        width: 100%;
        text-align: center;
    }

    .link-navbar li a {
        display: block;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Remove a borda do último item para ficar mais bonito */
    .link-navbar li:last-child a {
        border-bottom: none;
    }

    .link-navbar.ativo {
        max-height: 400px; /* Um valor alto o suficiente para caber seus links */
    }

    /* Animação do X ajustada com base no transform-origin novo */
    .menu-hamburguer.ativo .linha:nth-child(1) {
        transform: rotate(45deg);
    }
    .menu-hamburguer.ativo .linha:nth-child(2) {
        opacity: 0;
    }
    .menu-hamburguer.ativo .linha:nth-child(3) {
        transform: rotate(-45deg);
    }
}

/* Estado inicial: invisível e um pouco mais para baixo */
.escondido {
    opacity: 0;
    transform: translateY(40px); /* Empurra 40px para baixo */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Duração e suavidade */
}

/* Estado final: visível e na posição original (esta classe será adicionada pelo JS) */
.escondido.aparecer {
    opacity: 1;
    transform: translateY(0);
}