/* Navbar base */

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 28px;
    height: 3px;
    background: #ffffff;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

/* Desktop nav */
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

/* Close button (hidden on desktop) */
.close-item {
    display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 280px;
        background: #fff;
        flex-direction: column;
        padding: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-links a {
        color: black;
    }

    .nav-links li {
        margin-bottom: 1rem;
    }


    .nav-links.active {
        transform: translateX(0);
    }

    .close-item {
        display: block;
        margin-bottom: 2rem;
    }

    .close-menu {
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
    }

    .overlay.active {
        opacity: 1;
        pointer-events: all;
    }
}