/* ===== NAVBAR STYLES ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo Styles */
.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color, #004aad);
    transition: all 0.3s ease;
}

.nav-logo a:hover {
    transform: scale(1.05);
}

.logo {
    height: 50px;
    width: auto;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #004aad);
    letter-spacing: -0.5px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 0;
    color: var(--text-color, #333);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

/* Hide icons on desktop */
.nav-link i {
    display: none;
}

/* Mobile Menu Header - Hidden on desktop */
.mobile-menu-header,
.mobile-close {
    display: none;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color, #004aad);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color, #004aad);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color, #004aad);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Menu Toggle Animation */
.nav-toggle.is-active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 30px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 70px;
        position: relative;
    }
    
    .logo {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }
    
    /* Enhanced Mobile Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 100px 0 50px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 0;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Mobile Menu Overlay */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        transition: all 0.4s ease;
        z-index: -1;
    }
    
    .nav-menu.active::before {
        left: -300px;
    }
    
    /* Mobile Menu Items */
    .nav-item {
        width: 100%;
        margin: 0;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.5s; }
    
    .nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 20px 40px;
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--text-color, #333);
        text-decoration: none;
        width: 100%;
        position: relative;
        transition: all 0.3s ease;
        border-radius: 0;
        gap: 15px;
    }
    
    /* Show icons on mobile */
    .nav-link i {
        display: block;
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover i,
    .nav-link.active i {
        transform: scale(1.2);
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 100%;
        background: linear-gradient(135deg, var(--primary-color, #004aad), var(--primary-light, #0066cc));
        transition: width 0.3s ease;
        z-index: -1;
    }
    
    .nav-link:hover::before,
    .nav-link.active::before {
        width: 100%;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: white;
        transform: translateX(10px);
    }
    
    /* Mobile Menu Close Button */
    .mobile-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-color, #333);
        cursor: pointer;
        padding: 10px;
        border-radius: 50%;
        transition: all 0.3s ease;
        display: none;
    }
    
    .nav-menu.active .mobile-close {
        display: block;
    }
    
    .mobile-close:hover {
        background: rgba(0, 74, 173, 0.1);
        color: var(--primary-color, #004aad);
        transform: rotate(90deg);
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        position: absolute;
        top: 30px;
        left: 0;
        right: 0;
        text-align: center;
        padding: 0 20px;
    }
    
    .mobile-menu-logo {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--primary-color, #004aad);
        margin-bottom: 10px;
    }
    
    .mobile-menu-tagline {
        font-size: 0.9rem;
        color: var(--text-light, #666);
        font-style: italic;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 60px;
        padding: 0 10px;
    }
    
    .logo {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        width: 280px;
        padding: 80px 0 40px;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 18px 30px;
        gap: 12px;
    }
    
    .nav-link i {
        font-size: 1rem;
    }
    
    .mobile-menu-header {
        top: 20px;
        padding: 0 15px;
    }
    
    .mobile-menu-logo {
        font-size: 1.2rem;
    }
    
    .mobile-menu-tagline {
        font-size: 0.8rem;
    }
}

/* ===== NAVBAR SCROLL EFFECTS ===== */
@media (min-width: 769px) {
    .navbar {
        transition: all 0.3s ease;
    }
    
    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
    }
    
    .navbar.scrolled .nav-container {
        height: 70px;
    }
    
    .navbar.scrolled .logo {
        height: 45px;
    }
    
    .navbar.scrolled .logo-text {
        font-size: 1.4rem;
    }
}

/* ===== ACCESSIBILITY ===== */
.nav-link:focus,
.nav-toggle:focus,
.mobile-close:focus {
    outline: 2px solid var(--primary-color, #004aad);
    outline-offset: 2px;
}

/* Enhanced focus states for mobile */
@media (max-width: 768px) {
    .nav-link:focus {
        background: rgba(0, 74, 173, 0.1);
        outline: none;
        box-shadow: inset 3px 0 0 var(--primary-color, #004aad);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .nav-menu,
    .nav-item,
    .nav-link,
    .nav-toggle .bar,
    .mobile-close {
        transition: none !important;
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar {
        background: white;
        border-bottom: 2px solid black;
    }
    
    .nav-link {
        color: black;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: black;
        color: white;
    }
}

/* ===== SMOOTH TRANSITIONS ===== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVBAR ANIMATIONS ===== */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    animation: slideDown 0.5s ease-out;
}

/* ===== DROPDOWN MENU (for future use) ===== */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a {
    color: var(--text-color, #333);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: var(--light-gray, #f8f9fa);
    color: var(--primary-color, #004aad);
}

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