/* Navigation CSS - Include this in your main CSS file or in a separate navigation.css */

/* Navigation - SpinX Inspired */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: 'Julius Sans One', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a8a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: #f59e0b;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: #3C4A7A;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
}

.nav-link:hover {
    background: linear-gradient(135deg, #3c4a7a 0%, #83d0cb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    color: white;
    -webkit-text-fill-color: white;
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
    text-decoration: none;
}

.nav-dropdown a:hover {
    background: #eff6ff;
    color: #1e3a8a;
    transform: translateX(0.5rem);
}

.nav-dropdown a.active {
    background: #dbeafe;
    color: #1e3a8a;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #374151;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #f3f4f6;
    color: #1e3a8a;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* CSS Variables for colors (if not already defined) */
:root {
    --gray-200: #e5e7eb;
    --gray-700: #374151;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --primary-blue: #1e3a8a;
    --primary-gold: #f59e0b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
        border-radius: 0 0 0.75rem 0.75rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        text-align: left;
        padding: 1rem;
    }
    
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f9fafb;
        margin-top: 0.5rem;
    }
}

/* Ensure main content doesn't hide behind fixed navbar */
body {
    padding-top: 80px;
}

.main-content {
    margin-top: 0;
}

