/* Navigation Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    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: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo img,
.nav-logo .logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
    display: block;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #fbad15;
    background: rgba(251, 173, 21, 0.1);
}

.nav-link.active {
    color: #fbad15;
    background: rgba(251, 173, 21, 0.15);
    font-weight: 600;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background: rgba(251, 173, 21, 0.1);
    color: #fbad15;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(251, 173, 21, 0.1);
}

.hamburger {
    display: flex;
    flex-direction: column;
    width: 25px;
    height: 20px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* CTA Button */
.nav-cta {
    background: linear-gradient(135deg, #fbad15 0%, #f7c948 100%);
    color: #2c3e50;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 173, 21, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-cta:hover {
    opacity: 0.9;
    box-shadow: 0 6px 20px rgba(251, 173, 21, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding: 30px 0;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        margin: 0 20px;
        border-radius: 10px;
        font-size: 1.1rem;
    }
    
    .nav-cta {
        margin: 20px;
        display: inline-block;
    }
    
    .dropdown-content {
        position: static;
        display: block;
        opacity: 1;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 10px;
        border-radius: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-content {
        max-height: 300px;
    }
    
    .dropdown-content a {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-container {
        padding: 0 30px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.95rem;
    }
}

/* Simple animation for mobile menu */
.nav-menu.active .nav-item {
    opacity: 1;
}

/* Accessibility */
.nav-link:focus,
.nav-cta:focus,
.mobile-menu-btn:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Smooth scrolling offset for fixed navbar */
html {
    scroll-padding-top: 70px;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #0066cc;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1002;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar {
        background: white;
        border-bottom: 2px solid #000;
    }
    
    .nav-link,
    .nav-logo,
    .mobile-menu-btn {
        color: #000;
    }
    
    .nav-cta {
        background: #000;
        color: white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .nav-cta,
    .hamburger span,
    .nav-menu,
    .dropdown-content {
        transition: none;
    }
}