/* --- 🧭 REPAIRED NAVBAR CSS --- */
:root {
    --primary-color: #2563eb;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar {
    position: sticky;
    top: 0;
    background: #FAFAFA;
    z-index: 10000;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #49504B;
    text-decoration: none;
    z-index: 10001;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.4rem;
    border-radius: 12px;
}

.nav-dropdown { position: relative; }
.nav-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 10px; display: block; }

.nav-item {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.nav-item:hover, .nav-dropdown:hover > .nav-item {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    top: 100%;
    left: 0;
    padding: 8px 0;
    border: 1px solid #f1f5f9;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-content { visibility: visible; opacity: 1; transform: translateY(0); }
.dropdown-content a { color: #475569; padding: 10px 20px; text-decoration: none; display: block; font-size: 0.9rem; transition: 0.2s; }
.dropdown-content a:hover { background: #f8fafc; color: var(--primary-color); padding-left: 25px; }

/* 📱 MOBILE RESPONSIVE NAV */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    z-index: 10002;
    position: relative;
}

.menu-toggle .bar { width: 22px; height: 2px; background: #475569; border-radius: 10px; transition: all 0.3s; position: absolute; }
.menu-toggle .bar:nth-child(1) { transform: translateY(-7px); }
.menu-toggle .bar:nth-child(3) { transform: translateY(7px); }

@media (max-width: 850px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: flex;
        visibility: hidden;
        opacity: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #ffffff;
        padding: 1rem 0;
        transform: translateY(-10px);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }
    .nav-links.active { visibility: visible; opacity: 1; transform: translateY(0); }
    .nav-dropdown { width: 100%; }
    .nav-item { width: 100%; padding: 0.85rem 1.5rem; display: flex; justify-content: space-between; color: #1e293b; }
    .dropdown-content { position: static; display: none; width: 100%; background: #f8fafc; border-left: 4px solid var(--primary-color); }
    .nav-dropdown.open .dropdown-content { display: block; animation: slideDown 0.3s ease-out; }
}

@keyframes slideDown { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }