/* --- OPTIMIZED NAV (GLASS REMOVED) --- */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    /* Removed backdrop-filter logic for solid performance */
    background: var(--glass-bg); 
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
    display: flex;
    align-items: center;
    /* GPU promotion for smooth scrolling */
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img { 
    height: 40px; 
    aspect-ratio: auto;
}

.nav-menu {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    margin-left: 40px;
}

.nav-left, .nav-right { display: flex; align-items: center; gap: 25px; }

.nav-item {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    /* Clean transition without heavy filters */
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.nav-item:hover { opacity: 1; color: var(--blue); }

/* Dropdown Logic - GPU Optimized */
.dropdown { position: relative; display: inline-block; }
.dropbtn { background: none; border: none; cursor: pointer; font-family: inherit; color: inherit; }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--glass-bg);
    /* Blur removed for speed */
    min-width: 180px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    z-index: 2001;
    /* Ensures the menu doesn't cause paint lag when appearing */
    transform: translateZ(0);
}

.dropdown-content a {
    color: var(--text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    transition: background 0.2s;
}

.dropdown-content a:hover { 
    background: rgba(59, 130, 246, 0.1); 
    color: var(--blue); 
}

.dropdown:hover .dropdown-content { display: block; }

/* Mobile Responsive Logic - GPU Accelerated Transitions */
@media (max-width: 1024px) {
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 5px;
    }
    
    .mobile-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text);
        border-radius: 3px;
        transition: transform 0.3s ease;
        will-change: transform;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background: var(--glass-bg);
        flex-direction: column;
        overflow: hidden;
        /* Using translate3d for height logic helps performance */
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0;
        /* Explicitly disabled blur */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: translateZ(0);
    }

    .nav-menu.active { 
        height: auto; 
        min-height: 400px;
        overflow: visible; 
        padding: 20px 0; 
        border-bottom: 1px solid var(--glass-border); 
    }

    .nav-left, .nav-right { 
        flex-direction: column; 
        width: 100%; 
        gap: 15px; 
    }

    .nav-right { 
        margin-top: 20px; 
        border-top: 1px solid var(--glass-border); 
        padding-top: 20px; 
    }
}