#main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
    padding: 0.5rem !important;
    transition: all 0.3s ease !important;
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Dark text when scrolled (white background) */
#main-header.scrolled #nav-links,
#main-header.scrolled #nav-links a,
#main-header.scrolled #nav-links button,
#main-header.scrolled #nav-links li a,
#main-header.scrolled #nav-links .menu-item a {
    color: #1e293b !important;
    font-weight: 400 !important;
}

#main-header #nav-links,
#main-header #nav-links a,
#main-header #nav-links button,
#main-header #nav-links li a,
#main-header #nav-links .menu-item a,
#main-header #mobile-menu-button {
    color: #ffffff !important;
    font-weight: 400 !important;
}

/* Mobile menu button when scrolled */
#main-header.scrolled #mobile-menu-button {
    color: #1e293b !important;
}

/* Override any Tailwind or other text color classes */
#main-header #nav-links a.uppercase {
    color: #ffffff !important;
}

#main-header.scrolled #nav-links a.uppercase {
    color: #1e293b !important;
}

/* Hover states - different for scrolled vs non-scrolled */
#main-header:not(.scrolled) #nav-links a:hover,
#main-header:not(.scrolled) #nav-links button:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

#main-header.scrolled #nav-links a:hover,
#main-header.scrolled #nav-links button:hover {
    color: #3b82f6 !important;
}

/* Dropdown submenu - White background */
#main-header .sub-menu,
#main-header .dropdown-menu,
#main-header ul ul,
#main-header .absolute {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

#main-header .sub-menu a,
#main-header .dropdown-menu a,
#main-header ul ul a,
#main-header .absolute a {
    color: #1e293b !important;
    font-weight: 400 !important;
    transition: all 0.2s ease !important;
}

#main-header .sub-menu a:hover,
#main-header .dropdown-menu a:hover,
#main-header ul ul a:hover,
#main-header .absolute a:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%) !important;
    color: #3b82f6 !important;
    transform: translateX(4px) !important;
}
