nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    background-color: transparent; /* Keep transparency */
    z-index: 1000;
    border-bottom: none;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Add background on scroll or menu open if needed via JS, strictly requested transparent though */
/* Optional: Glassmorphism always active */
nav {
    backdrop-filter: blur(5px);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001; /* Above mobile menu */
}

/* Desktop Menu */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-main); /* Adaptive color */
}

.nav-links li a:hover {
    color: var(--color-text-muted);
}

/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1002; /* Above everything */
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -5px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    nav .container {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg-body);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 50px;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.5rem; /* Larger for touch */
    }
}
