/* ===== NAVBAR BASE ===== */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
    position: relative;
}
/* MENU DESKTOP */
.nav-links {
    display: flex;
    gap: 20px;
    z-index: 1500;
}

.nav-links a {
    text-decoration: none;
}
/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3000;
}

.menu-toggle {
    width: 32px;
    height: 22px;
    justify-content: center;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: #eaeaea;
    border-radius: 2px;
    transition: transform .4s ease, opacity .3s ease;
}

.menu-toggle span:nth-child(2) {
    width: 70%;
    align-self: flex-end;
}


.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}



    .nav-links {
         position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 78%;
        background: linear-gradient(180deg, #0a0e14, #0f1624);
        padding: 100px 30px;
        display: flex;
        flex-direction: column;
        gap: 28px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 1500;
    }

    .nav-links.active {
        transform: translateX(0);
    }


    .nav-links a {
        font-size: 1.05rem;
        letter-spacing: 0.3px;
        opacity: 0;
        transform: translateX(15px);
        transition: all 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links a:nth-child(1) { transition-delay: .05s; }
    .nav-links a:nth-child(2) { transition-delay: .1s; }
    .nav-links a:nth-child(3) { transition-delay: .15s; }
    .nav-links a:nth-child(4) { transition-delay: .2s; }
}
/* OVERLAY DO MENU */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    z-index: 1400;
}
.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
/*MENU LATERAL*/
@media (max-width: 768px) {

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 82%;
        background: rgba(15, 22, 36, 0.85);
        backdrop-filter: blur(12px);
        border-left: 1px solid rgba(255,255,255,.08);

        padding: 110px 32px;
        display: flex;
        flex-direction: column;
        gap: 26px;

        transform: translateX(100%);
        transition: transform .45s cubic-bezier(.4,0,.2,1);
        z-index: 2000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.15rem;
        font-weight: 500;
        letter-spacing: .4px;
        color: #eaeaea;
        position: relative;
        opacity: 0;
        transform: translateX(20px);
        transition: all .35s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 0;
        height: 2px;
        background: #4da3ff;
        transition: width .3s ease;
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    /* Delay elegante */
    .nav-links a:nth-child(1) { transition-delay: .08s; }
    .nav-links a:nth-child(2) { transition-delay: .16s; }
    .nav-links a:nth-child(3) { transition-delay: .24s; }
    .nav-links a:nth-child(4) { transition-delay: .32s; }
}