/* ==========================================================================
   NAVIGATION STYLES
   Modern navbar with glassmorphism effect and smooth transitions
   ========================================================================== */
.navbar-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--neutral-200);
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue) !important;
    text-decoration: none;
}

.navbar-brand img {
    max-height: 40px;
    margin-right: 8px;
  }

.navbar-modern .nav-link {
    color: var(--neutral-700) !important;
    font-family: 'Space Grotesk', system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 0.5rem 1.25rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 8px;
    margin: 0 0.125rem;
    letter-spacing: -0.025em;
}

.navbar-modern .nav-link:hover {
    color: var(--primary-blue) !important;
}

.navbar-modern .nav-link.active {
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.navbar-modern .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 1.25rem;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
    border-radius: 1px;
}

.navbar-modern .nav-link:hover::after,
.navbar-modern .nav-link.active::after {
    width: 30px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .navbar-modern {
        padding: 0.5rem 0;
    }

    .nav-link {
        padding: 1rem 1.25rem !important;
        margin: 0.25rem 0;
        text-align: center;
        border-radius: 10px;
    }

    /* Center the underline on mobile */
    .navbar-modern .nav-link::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 8px;
    }

    .navbar-modern .nav-link:hover::after,
    .navbar-modern .nav-link.active::after {
        width: 40px;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(229, 231, 235, 0.3);
    }

    .navbar-nav {
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .navbar-modern {
        padding: 0.375rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.875rem 1rem !important;
    }
}