/* Premium Navigation Bar Styles */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    /* Removed backdrop-filter for solid color */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#nav.scrolled {
    height: 4rem;
    background: #ffffff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

#nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4rem;
}

#nav ul li {
    margin: 0;
}

#nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    position: relative;
    display: inline-block;
}

#nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#nav ul li a:hover {
    color: #000;
}

#nav ul li a:hover::after {
    width: 30%;
}

/* Preload state handling */
.is-preload #nav {
    opacity: 0;
    transform: translateY(-100%);
}

#nav.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile adjustments */
@media screen and (max-width: 736px) {
    #nav {
        height: 4rem;
    }
    
    #nav ul {
        gap: 1.5rem;
    }
    
    #nav ul li a {
        font-size: 0.75rem;
        padding: 0.5rem 0.8rem;
        letter-spacing: 0.1rem;
    }
}
