/* ==========================================================================
   MENU & NAVEGAÇÃO PREMIUM
   ========================================================================== */

#header {
    width: 100%;
    height: 90px;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: rgba(10, 12, 11, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efeito ao rolar a página (Opcional: adicione via JS se desejar encolher o menu) */
#header.scrolled {
    height: 70px;
    background: rgba(10, 12, 11, 0.9);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo img { 
    height: 42px; 
    transition: all 0.4s ease;
    filter: brightness(1);
}

.logo:hover img {
    filter: brightness(1.2);
}

/* Links de Navegação Desktop */
.nav-links { 
    display: flex; 
    gap: 35px; 
    list-style: none; 
}

.nav-links a { 
    color: rgba(255, 255, 255, 0.7); 
    text-decoration: none; 
    font-weight: 400;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em; /* Estética técnica/industrial */
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
}

/* Efeito Underline Premium */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover { 
    color: var(--color-white); 
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================================================
   BOTÃO MOBILE TOGGLE (HAMBÚRGUER)
   ========================================================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end; /* Alinhamento industrial assimétrico */
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}

.mobile-menu-toggle .bar {
    height: 1px; /* Linha ultra fina */
    background-color: var(--color-white);
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Larguras desiguais para um visual mais "Tech" */
.mobile-menu-toggle .bar:nth-child(1) { width: 24px; }
.mobile-menu-toggle .bar:nth-child(2) { width: 16px; }
.mobile-menu-toggle .bar:nth-child(3) { width: 24px; }

/* Animação para o Estado Ativo (X) */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    width: 24px;
}
.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}
.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 24px;
}

/* ==========================================================================
   MENU MOBILE (OVERLAY)
   ========================================================================== */

@media (max-width: 1024px) {
    #header { height: 80px; }
    
    .mobile-menu-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%; /* Full screen para impacto */
        height: 100vh;
        background: rgba(10, 12, 11, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        z-index: 1050;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        transition-delay: 0.3s;
    }

    .nav-menu.active .nav-links {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 28px;
        font-weight: 300;
        letter-spacing: 0.2em;
    }
}