/* ========================================
   HEADER COMPONENT STYLES
   Styles extracted from animated header components
   ======================================== */

/* Animated Header */
                /* Smooth Animated Shapes - CSS-only floating shapes */
                .animated-shapes {
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    z-index: 3;
                    pointer-events: none;
                    opacity: 0;
                    transition: opacity 0.6s ease-in-out;
                }

                .mobile-menu-overlay.active .animated-shapes {
                    opacity: 1;
                }

                .shape {
                    position: absolute;
                    border-radius: 50%;
                    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
                    animation: floatShape 20s ease-in-out infinite;
                    will-change: transform;
                }

                /* Different sizes and positions for variety */
                .shape-1 {
                    width: 120px;
                    height: 120px;
                    top: 10%;
                    left: 10%;
                    background: radial-gradient(circle, rgba(100, 181, 246, 0.2) 0%, rgba(100, 181, 246, 0.05) 60%, transparent 100%);
                    animation-duration: 18s;
                    animation-delay: 0s;
                }

                .shape-2 {
                    width: 80px;
                    height: 80px;
                    top: 60%;
                    right: 15%;
                    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.03) 60%, transparent 100%);
                    animation-duration: 22s;
                    animation-delay: 2s;
                }

                .shape-3 {
                    width: 100px;
                    height: 100px;
                    bottom: 20%;
                    left: 20%;
                    background: radial-gradient(circle, rgba(2, 136, 209, 0.18) 0%, rgba(2, 136, 209, 0.04) 60%, transparent 100%);
                    animation-duration: 25s;
                    animation-delay: 4s;
                }

                .shape-4 {
                    width: 60px;
                    height: 60px;
                    top: 30%;
                    right: 25%;
                    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 60%, transparent 100%);
                    animation-duration: 20s;
                    animation-delay: 1s;
                }

                .shape-5 {
                    width: 90px;
                    height: 90px;
                    bottom: 30%;
                    right: 10%;
                    background: radial-gradient(circle, rgba(100, 181, 246, 0.16) 0%, rgba(100, 181, 246, 0.03) 60%, transparent 100%);
                    animation-duration: 24s;
                    animation-delay: 3s;
                }

                @keyframes floatShape {
                    0%, 100% {
                        transform: translate(0, 0) scale(1);
                    }
                    25% {
                        transform: translate(30px, -30px) scale(1.1);
                    }
                    50% {
                        transform: translate(-20px, 30px) scale(0.9);
                    }
                    75% {
                        transform: translate(20px, 20px) scale(1.05);
                    }
                }

                /* Reduce motion for accessibility */
                @media (prefers-reduced-motion: reduce) {
                    .shape {
                        animation: none;
                    }
                }

                /* Hide shapes on very small screens to reduce clutter */
                @media (max-width: 400px) {
                    .shape-4,
                    .shape-5 {
                        display: none;
                    }
                }

                /* Optimized Animated Hamburger Button */
                .animated-hamburger {
                    position: relative;
                    width: 60px;
                    height: 60px;
                    background: rgba(0, 0, 0, 0.05);
                    border: 1px solid var(--border-color, transparent);
                    border-radius: 50%;
                    cursor: pointer;
                    transition: all 0.25s cubic-bezier(0.84, 0.06, 0.52, 1.8);
                    z-index: 1001;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    will-change: transform;
                }

                .animated-hamburger:hover {
                    transform: scale(1.05);
                    background: rgba(0, 0, 0, 0.08);
                }

                .hamburger-line {
                    position: absolute;
                    width: 28px;
                    height: 2px;
                    background-color: var(--text-primary, #333);
                    transition: all 300ms cubic-bezier(0.84, 0.06, 0.52, 1.8);
                    border-radius: 1px;
                    will-change: transform, opacity;
                }

                .line-1 {
                    transform: translateY(-6px);
                }

                .line-2 {
                    transform: translateY(0);
                }

                .line-3 {
                    transform: translateY(6px);
                }

                .animated-hamburger.open .line-1 {
                    transform: rotate(45deg) translateY(0);
                }

                .animated-hamburger.open .line-2 {
                    opacity: 0;
                    transform: scale(0);
                }

                .animated-hamburger.open .line-3 {
                    transform: rotate(-45deg) translateY(0);
                }

                /* Optimized Mobile Menu Overlay */
                .mobile-menu-overlay {
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100vh;
                    z-index: 999;
                    pointer-events: none;
                    overflow: hidden;
                    will-change: auto;
                }

                .mobile-menu-overlay.active {
                    pointer-events: all;
                }

                /* Smooth Swipe Background Layers */
                .menu-background-layer {
                    position: absolute;
                    top: 0;
                    left: 0;
                    height: 100%;
                    width: 0%;
                    transition: width 600ms cubic-bezier(0.65, 0, 0.35, 1);
                    will-change: width;
                    transform-origin: left center;
                }

                .layer-1 {
                    background: linear-gradient(135deg, #38bdf8 0%, #007bff 100%);
                    z-index: 1;
                    transition-delay: 0ms;
                }

                .layer-2 {
                    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
                    z-index: 2;
                    transition-delay: 80ms;
                    opacity: 0.95;
                }

                .mobile-menu-overlay.active .menu-background-layer {
                    width: 100%;
                }

                /* Responsive swipe widths */
                @media (min-width: 768px) {
                    .mobile-menu-overlay.active .menu-background-layer {
                        width: 55%;
                    }
                }

                @media (min-width: 1024px) {
                    .mobile-menu-overlay.active .menu-background-layer {
                        width: 45%;
                    }
                }

                /* Optimized Mobile Navigation */
                .mobile-navigation {
                    position: absolute;
                    top: 0;
                    left: 0;
                    height: 100%;
                    width: 100%;
                    z-index: 15;
                    opacity: 0;
                    transform: translateX(-50px);
                    transition: all 500ms cubic-bezier(0.62, 0.04, 0.3, 1.56);
                    transition-delay: 150ms;
                    will-change: transform, opacity;
                }

                .mobile-navigation.active {
                    opacity: 1;
                    transform: translateX(0);
                }

                .mobile-menu-list {
                    margin: 0;
                    padding: 0;
                    list-style: none;
                    position: absolute;
                    top: 50%;
                    left: 15%;
                    transform: translateY(-50%);
                }

                /* Optimized Mobile Menu Items */
                .mobile-menu-item {
                    opacity: 0;
                    transform: translateY(30px);
                    transition: all 350ms cubic-bezier(0.62, 0.04, 0.3, 1.56);
                    transition-delay: calc(250ms + (var(--item-index) * 80ms));
                    position: relative;
                    padding: 10px 0;
                    margin: 6px 0;
                    border-radius: 12px;
                    overflow: visible;
                    cursor: pointer;
                    will-change: transform, opacity;
                }

                .mobile-navigation.active .mobile-menu-item {
                    opacity: 1;
                    transform: translateY(0);
                }

                /* Optimized row highlight with hardware acceleration */
                .mobile-menu-item::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: -100%;
                    width: 100%;
                    height: 100%;
                    background: linear-gradient(90deg, 
                        rgba(255, 255, 255, 0.08) 0%, 
                        rgba(255, 255, 255, 0.15) 50%, 
                        rgba(255, 255, 255, 0.08) 100%);
                    transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    border-radius: 12px;
                    z-index: -1;
                    transform: translateX(0);
                    will-change: transform;
                }

                .mobile-menu-item:hover::before,
                .mobile-menu-item:focus-within::before {
                    transform: translateX(100%);
                    background: linear-gradient(90deg, 
                        rgba(255, 215, 0, 0.15) 0%, 
                        rgba(255, 215, 0, 0.25) 50%, 
                        rgba(255, 215, 0, 0.15) 100%);
                }

                /* Simplified magnifier effect for better performance */
                .mobile-menu-item::after {
                    content: '';
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    width: 0;
                    height: 0;
                    background: radial-gradient(circle, 
                        rgba(255, 215, 0, 0.2) 0%, 
                        rgba(255, 215, 0, 0.05) 40%,
                        transparent 70%);
                    border-radius: 50%;
                    transform: translate(-50%, -50%);
                    transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    pointer-events: none;
                    z-index: 1;
                    will-change: width, height;
                }

                .mobile-menu-item:hover::after {
                    width: 150px;
                    height: 150px;
                }

                /* Optimized link styling */
                .mobile-nav-link {
                    display: block;
                    color: #fff;
                    text-decoration: none;
                    transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    position: relative;
                    padding: 14px 20px;
                    border-radius: 10px;
                    transform-origin: left center;
                    z-index: 2;
                    overflow: visible;
                    will-change: transform;
                }

                .link-text {
                    display: inline-block;
                    font-size: 22px;
                    line-height: 1.3;
                    text-transform: uppercase;
                    letter-spacing: 1.5px;
                    font-weight: 600;
                    transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    transform-origin: left center;
                    position: relative;
                    will-change: transform, font-size;
                }

                /* Optimized magnifier text effect */
                .mobile-nav-link:hover .link-text,
                .mobile-nav-link:focus .link-text {
                    font-size: 26px;
                    font-weight: 700;
                    letter-spacing: 2px;
                    color: #FFD700;
                    text-shadow: 
                        0 0 8px rgba(255, 215, 0, 0.5),
                        0 2px 6px rgba(255, 215, 0, 0.3);
                    transform: scale(1.1) translateX(15px);
                }

                /* Optimized animated underline */
                .mobile-nav-link::before {
                    content: '';
                    position: absolute;
                    bottom: 10px;
                    left: 0;
                    width: 0%;
                    height: 3px;
                    background: linear-gradient(90deg, 
                        #FFD700 0%, 
                        #FFA500 50%, 
                        #FFD700 100%);
                    transition: width 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    border-radius: 2px;
                    will-change: width;
                }

                .mobile-nav-link:hover::before,
                .mobile-nav-link:focus::before {
                    width: 100%;
                    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
                }

                /* Optimized pulse effect */
                .mobile-nav-link:focus,
                .mobile-nav-link:active {
                    outline: none;
                    animation: optimizedPulse 0.6s ease-in-out;
                }

                @keyframes optimizedPulse {
                    0% {
                        transform: scale(1);
                    }
                    50% {
                        transform: scale(1.03);
                    }
                    100% {
                        transform: scale(1);
                    }
                }

                /* Mobile Close Button */
                .mobile-close-button {
                    position: absolute;
                    top: 30px;
                    right: 30px;
                    width: 50px;
                    height: 50px;
                    border: none;
                    background: rgba(255, 255, 255, 0.1);
                    border-radius: 50%;
                    cursor: pointer;
                    z-index: 20;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transition: all 0.3s ease;
                    -webkit-backdrop-filter: blur(10px);
                            backdrop-filter: blur(10px);
                    opacity: 0;
                    transform: scale(0.8) rotate(0deg);
                    will-change: transform, opacity;
                }

                .mobile-navigation.active .mobile-close-button {
                    opacity: 1;
                    transform: scale(1) rotate(0deg);
                    transition-delay: 300ms;
                }

                .mobile-close-button:hover {
                    background: rgba(255, 255, 255, 0.2);
                    transform: scale(1.1) rotate(90deg);
                }

                .close-icon {
                    font-size: 28px;
                    color: white;
                    font-weight: 300;
                    line-height: 1;
                    transition: all 0.3s ease;
                }

                .mobile-close-button:hover .close-icon {
                    color: #FFD700;
                    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
                }

                /* Mobile-specific optimizations */
                @media (max-width: 480px) {
                    .mobile-close-button {
                        top: 20px;
                        right: 20px;
                        width: 45px;
                        height: 45px;
                    }

                    .close-icon {
                        font-size: 24px;
                    }

                    /* Mobile auth responsive adjustments - no longer needed since auth uses standard menu styles */
                    .animated-hamburger {
                        width: 50px;
                        height: 50px;
                    }
                    
                    .hamburger-line {
                        width: 24px;
                    }
                    
                    .link-text {
                        font-size: 20px;
                        letter-spacing: 1.2px;
                    }
                    
                    .mobile-nav-link:hover .link-text,
                    .mobile-nav-link:focus .link-text {
                        font-size: 24px;
                        letter-spacing: 1.8px;
                        transform: scale(1.05) translateX(12px);
                    }
                    
                    .mobile-menu-item::after {
                        display: none; /* Remove magnifier effect on very small screens */
                    }
                }

                /* Tablet optimizations */
                @media (min-width: 768px) and (max-width: 1024px) {
                    .link-text {
                        font-size: 24px;
                    }
                    
                    .mobile-nav-link:hover .link-text,
                    .mobile-nav-link:focus .link-text {
                        font-size: 30px;
                        letter-spacing: 2.5px;
                        transform: scale(1.15) translateX(20px);
                    }
                }

                /* Reduced motion preferences */
                @media (prefers-reduced-motion: reduce) {
                    .mobile-menu-item,
                    .mobile-nav-link,
                    .link-text,
                    .mobile-nav-link::before,
                    .mobile-menu-item::before,
                    .mobile-menu-item::after,
                    .hamburger-line,
                    .animated-hamburger,
                    .mobile-navigation,
                    .menu-background-layer {
                        transition-duration: 0.01s !important;
                        animation-duration: 0.01s !important;
                    }
                }

                /* High contrast mode support */
                @media (prefers-contrast: high) {
                    .mobile-nav-link {
                        color: #ffffff;
                    }
                    
                    .mobile-nav-link:hover .link-text,
                    .mobile-nav-link:focus .link-text {
                        color: #fbbf24;
                        text-shadow: none;
                    }
                    
                    .hamburger-line {
                        background-color: #000000;
                    }
                }

                /* Hide desktop menu items on mobile screens */
                @media (min-width: 992px) {
                    .mobile-menu-container {
                        display: none !important;
                    }
                    
                    .mobile-menu-overlay {
                        display: none !important;
                    }
                }

                /* Force hardware acceleration for better performance */
                .mobile-menu-overlay,
                .mobile-navigation,
                .mobile-menu-item,
                .mobile-nav-link,
                .menu-background-layer,
                .animated-hamburger {
                    transform: translateZ(0);
                    -webkit-backface-visibility: hidden;
                            backface-visibility: hidden;
                    perspective: 1000px;
                }

                /* User info styling for mobile */
                .user-info-mobile-item {
                    opacity: 0;
                    transform: translateY(30px);
                    transition: all 350ms cubic-bezier(0.62, 0.04, 0.3, 1.56);
                    transition-delay: calc(250ms); /* Show first before menu items */
                    margin: 0 0 20px 0;
                    padding: 16px 20px;
                    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
                    will-change: transform, opacity;
                    list-style: none;
                }

                .mobile-navigation.active .user-info-mobile-item {
                    opacity: 1;
                    transform: translateY(0);
                }

                .user-info-mobile {
                    display: block;
                    padding: 0;
                }

                .user-info-mobile-content {
                    display: flex;
                    align-items: center;
                    gap: 16px;
                }

                .user-details-mobile {
                    display: flex;
                    flex-direction: column;
                    gap: 4px;
                }

                .user-display-name-mobile {
                    color: #fff;
                    font-size: 18px;
                    font-weight: 700;
                    letter-spacing: 0.3px;
                }

                .user-email-mobile {
                    color: rgba(255, 255, 255, 0.7);
                    font-size: 14px;
                    font-weight: 400;
                }

                /* Ensure mobile menu user info is always visible regardless of theme */
                .mobile-menu-overlay .user-info-mobile-item,
                .mobile-menu-overlay .user-info-mobile-item *,
                .mobile-menu-overlay .user-info-mobile-content,
                .mobile-menu-overlay .user-details-mobile,
                .mobile-menu-overlay .user-email-mobile,
                .mobile-menu-overlay .user-display-name-mobile {
                    color: #fff !important;
                    visibility: visible !important;
                    opacity: 1 !important;
                }

                .mobile-menu-overlay .user-email-mobile {
                    color: rgba(255, 255, 255, 0.7) !important;
                }

                /* Ensure auth buttons match menu items exactly - override any conflicting styles */
                .mobile-menu-list .mobile-menu-item:nth-last-child(1),
                .mobile-menu-list .mobile-menu-item:nth-last-child(2) {
                    /* Sign In and Sign Up are the last two items - ensure they match other menu items */
                    opacity: 0;
                    transform: translateY(30px);
                    transition: all 350ms cubic-bezier(0.62, 0.04, 0.3, 1.56);
                    transition-delay: calc(250ms + (var(--item-index) * 80ms));
                    position: relative;
                    padding: 10px 0;
                    margin: 6px 0;
                    border-radius: 12px;
                    overflow: visible;
                    cursor: pointer;
                    will-change: transform, opacity;
                }

                .mobile-navigation.active .mobile-menu-list .mobile-menu-item:nth-last-child(1),
                .mobile-navigation.active .mobile-menu-list .mobile-menu-item:nth-last-child(2) {
                    opacity: 1;
                    transform: translateY(0);
                }

                /* Ensure auth button links match other nav links */
                .mobile-menu-list .mobile-menu-item:nth-last-child(1) .mobile-nav-link,
                .mobile-menu-list .mobile-menu-item:nth-last-child(2) .mobile-nav-link {
                    display: block;
                    color: #fff;
                    text-decoration: none;
                    transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    position: relative;
                    padding: 14px 20px;
                    border-radius: 10px;
                    transform-origin: left center;
                    z-index: 2;
                    overflow: visible;
                    will-change: transform;
                }

                .mobile-menu-list .mobile-menu-item:nth-last-child(1) .link-text,
                .mobile-menu-list .mobile-menu-item:nth-last-child(2) .link-text {
                    display: inline-block;
                    font-size: 22px;
                    line-height: 1.3;
                    text-transform: uppercase;
                    letter-spacing: 1.5px;
                    font-weight: 600;
                    transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    transform-origin: left center;
                    position: relative;
                    will-change: transform, font-size;
                }

                /* Auth button hover effects matching other menu items */
                .mobile-menu-list .mobile-menu-item:nth-last-child(1) .mobile-nav-link:hover .link-text,
                .mobile-menu-list .mobile-menu-item:nth-last-child(1) .mobile-nav-link:focus .link-text,
                .mobile-menu-list .mobile-menu-item:nth-last-child(2) .mobile-nav-link:hover .link-text,
                .mobile-menu-list .mobile-menu-item:nth-last-child(2) .mobile-nav-link:focus .link-text {
                    font-size: 26px;
                    font-weight: 700;
                    letter-spacing: 2px;
                    color: #FFD700;
                    text-shadow:
                        0 0 8px rgba(255, 215, 0, 0.5),
                        0 2px 6px rgba(255, 215, 0, 0.3);
                    transform: scale(1.1) translateX(15px);
                }

                /* Auth button background hover effects */
                .mobile-menu-list .mobile-menu-item:nth-last-child(1)::before,
                .mobile-menu-list .mobile-menu-item:nth-last-child(2)::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: -100%;
                    width: 100%;
                    height: 100%;
                    background: linear-gradient(90deg,
                        rgba(255, 255, 255, 0.08) 0%,
                        rgba(255, 255, 255, 0.15) 50%,
                        rgba(255, 255, 255, 0.08) 100%);
                    transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    border-radius: 12px;
                    z-index: -1;
                    transform: translateX(0);
                    will-change: transform;
                }

                .mobile-menu-list .mobile-menu-item:nth-last-child(1):hover::before,
                .mobile-menu-list .mobile-menu-item:nth-last-child(1):focus-within::before,
                .mobile-menu-list .mobile-menu-item:nth-last-child(2):hover::before,
                .mobile-menu-list .mobile-menu-item:nth-last-child(2):focus-within::before {
                    transform: translateX(100%);
                    background: linear-gradient(90deg,
                        rgba(255, 215, 0, 0.15) 0%,
                        rgba(255, 215, 0, 0.25) 50%,
                        rgba(255, 215, 0, 0.15) 100%);
                }

                /* Auth button magnifier effects */
                .mobile-menu-list .mobile-menu-item:nth-last-child(1)::after,
                .mobile-menu-list .mobile-menu-item:nth-last-child(2)::after {
                    content: '';
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    width: 0;
                    height: 0;
                    background: radial-gradient(circle,
                        rgba(255, 215, 0, 0.2) 0%,
                        rgba(255, 215, 0, 0.05) 40%,
                        transparent 70%);
                    border-radius: 50%;
                    transform: translate(-50%, -50%);
                    transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    pointer-events: none;
                    z-index: 1;
                    will-change: width, height;
                }

                .mobile-menu-list .mobile-menu-item:nth-last-child(1):hover::after,
                .mobile-menu-list .mobile-menu-item:nth-last-child(2):hover::after {
                    width: 150px;
                    height: 150px;
                }

                /* Auth button underline animations */
                .mobile-menu-list .mobile-menu-item:nth-last-child(1) .mobile-nav-link::before,
                .mobile-menu-list .mobile-menu-item:nth-last-child(2) .mobile-nav-link::before {
                    content: '';
                    position: absolute;
                    bottom: 10px;
                    left: 0;
                    width: 0%;
                    height: 3px;
                    background: linear-gradient(90deg,
                        #FFD700 0%,
                        #FFA500 50%,
                        #FFD700 100%);
                    transition: width 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    border-radius: 2px;
                    will-change: width;
                }

                .mobile-menu-list .mobile-menu-item:nth-last-child(1) .mobile-nav-link:hover::before,
                .mobile-menu-list .mobile-menu-item:nth-last-child(1) .mobile-nav-link:focus::before,
                .mobile-menu-list .mobile-menu-item:nth-last-child(2) .mobile-nav-link:hover::before,
                .mobile-menu-list .mobile-menu-item:nth-last-child(2) .mobile-nav-link:focus::before {
                    width: 100%;
                    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
                }

                .auth-user-mobile .user-info-mobile {
                    display: flex;
                    align-items: center;
                    padding: 15px 20px;
                    margin-bottom: 10px;
                    background: rgba(255, 255, 255, 0.1);
                    border-radius: 12px;
                    -webkit-backdrop-filter: blur(2px);
                            backdrop-filter: blur(2px);
                }

                .auth-user-mobile .user-avatar-mobile {
                    width: 48px;
                    height: 48px;
                    background: linear-gradient(135deg, #FFD700, #FFA500);
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-weight: bold;
                    color: #333;
                    font-size: 18px;
                    flex-shrink: 0;
                }

                .auth-user-mobile .user-avatar-mobile-image-wrapper {
                    width: 48px;
                    height: 48px;
                    border-radius: 50%;
                    overflow: hidden;
                    flex-shrink: 0;
                }

                .auth-user-mobile .user-avatar-image {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }

                .auth-user-mobile .user-actions-mobile,
                .auth-guest-mobile {
                    margin-top: 10px;
                }

                /* Sign out button styling to match other nav links */
                .sign-out-btn {
                    background: none;
                    border: none;
                    cursor: pointer;
                    width: 100%;
                    text-align: left;
                }

                .sign-out-btn:hover,
                .sign-out-btn:focus {
                    background: none;
                    border: none;
                    outline: none;
                }

                /* Loading state for auth */
                .auth-loading {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    padding: 20px;
                }

                .auth-loading .spinner-border-sm {
                    width: 1.5rem;
                    height: 1.5rem;
                    border-width: 0.2em;
                    border-color: rgba(255, 255, 255, 0.25);
                    border-right-color: #FFD700;
                }

                /* Mobile Menu Theme Toggle - Positioned at top of mobile menu */
                .mobile-menu-theme-toggle {
                    position: absolute;
                    top: 30px;
                    right: 90px;
                    z-index: 20;
                    opacity: 0;
                    transform: scale(0.8);
                    transition: all 0.3s ease;
                    transition-delay: 300ms;
                }

                .mobile-navigation.active .mobile-menu-theme-toggle {
                    opacity: 1;
                    transform: scale(1);
                }

                .mobile-menu-theme-toggle .theme-toggle-btn {
                    width: 44px;
                    height: 44px;
                    background: rgba(255, 255, 255, 0.15);
                    border: 1px solid rgba(255, 255, 255, 0.2);
                    backdrop-filter: blur(10px);
                    -webkit-backdrop-filter: blur(10px);
                }

                .mobile-menu-theme-toggle .theme-toggle-btn:hover {
                    background: rgba(255, 255, 255, 0.25);
                    border-color: rgba(255, 255, 255, 0.3);
                }

                .mobile-menu-theme-toggle .theme-toggle-icon {
                    color: #fff !important;
                    font-size: 20px;
                }

                /* Dark theme mobile menu theme toggle */
                .theme-dark .mobile-menu-theme-toggle .theme-toggle-btn {
                    background: rgba(56, 189, 248, 0.15);
                    border-color: var(--border-secondary);
                }

                .theme-dark .mobile-menu-theme-toggle .theme-toggle-btn:hover {
                    background: rgba(56, 189, 248, 0.25);
                    border-color: var(--accent-primary);
                }

                .theme-dark .mobile-menu-theme-toggle .theme-toggle-icon {
                    color: var(--accent-primary) !important;
                }

                @media (max-width: 480px) {
                    .mobile-menu-theme-toggle {
                        top: 20px;
                        right: 75px;
                    }

                    .mobile-menu-theme-toggle .theme-toggle-btn {
                        width: 44px;
                        height: 44px;
                    }
                }
            

/* Final Enhanced Animated Header */
                /* Animated Hamburger Button */
                .animated-hamburger {
                    position: relative;
                    width: 60px;
                    height: 60px;
                    background: rgba(255, 255, 255, 0.2);
                    border: none;
                    border-radius: 50%;
                    cursor: pointer;
                    transition: all 0.3s cubic-bezier(0.84, 0.06, 0.52, 1.8);
                    z-index: 1001;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                }

                .animated-hamburger:hover {
                    transform: scale(1.1);
                    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.15);
                    background: rgba(255, 255, 255, 0.3);
                }

                .hamburger-line {
                    position: absolute;
                    width: 32px;
                    height: 3px;
                    background-color: #333;
                    transition: all 400ms cubic-bezier(0.84, 0.06, 0.52, 1.8);
                    border-radius: 2px;
                }

                .line-1 {
                    transform: translateY(-8px);
                    animation-delay: 100ms;
                }

                .line-2 {
                    transform: translateY(0);
                }

                .line-3 {
                    transform: translateY(8px);
                    animation-delay: 250ms;
                }

                .animated-hamburger.open .line-1 {
                    transform: rotate(45deg) translateY(0);
                }

                .animated-hamburger.open .line-2 {
                    opacity: 0;
                    transform: scale(0);
                }

                .animated-hamburger.open .line-3 {
                    transform: rotate(-45deg) translateY(0);
                }

                /* Mobile Menu Overlay */
                .mobile-menu-overlay {
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100vh;
                    z-index: 999;
                    pointer-events: none;
                    overflow: hidden;
                }

                .mobile-menu-overlay.active {
                    pointer-events: all;
                }

                /* Background Layers */
                .menu-background-layer {
                    position: absolute;
                    top: 0;
                    left: 0;
                    height: 100%;
                    width: 0%;
                    transition: all 600ms cubic-bezier(0.62, 0.04, 0.3, 1.56);
                }

                .layer-1 {
                    background: #38bdf8;
                    z-index: 1;
                    transition-delay: 50ms;
                }

                .layer-2 {
                    background: #007bff;
                    z-index: 1;
                    transition-delay: 100ms;
                }

                .mobile-menu-overlay.active .menu-background-layer {
                    width: 100%;
                }

                @media (min-width: 768px) {
                    .mobile-menu-overlay.active .menu-background-layer {
                        width: 50%;
                    }
                }

                /* Mobile Navigation */
                .mobile-navigation {
                    position: absolute;
                    top: 0;
                    left: 0;
                    height: 100%;
                    width: 100%;
                    z-index: 15;
                    opacity: 0;
                    transform: translateX(-100%);
                    transition: all 600ms cubic-bezier(0.62, 0.04, 0.3, 1.56);
                    transition-delay: 200ms;
                }

                .mobile-navigation.active {
                    opacity: 1;
                    transform: translateX(0);
                }

                .mobile-menu-list {
                    margin: 0;
                    padding: 0;
                    list-style: none;
                    position: absolute;
                    top: 50%;
                    left: 20%;
                    transform: translateY(-50%);
                }

                @media (min-width: 768px) {
                    .mobile-menu-list {
                        left: 15%;
                    }
                }

                /* Enhanced Mobile Menu Items with Magnifier Effect */
                .mobile-menu-item {
                    opacity: 0;
                    transform: translateY(50px);
                    transition: all 400ms cubic-bezier(0.62, 0.04, 0.3, 1.56);
                    transition-delay: calc(300ms + (var(--item-index) * 100ms));
                    position: relative;
                    padding: 12px 0;
                    margin: 8px 0;
                    border-radius: 16px;
                    overflow: visible;
                    perspective: 1000px;
                    cursor: pointer;
                }

                .mobile-navigation.active .mobile-menu-item {
                    opacity: 1;
                    transform: translateY(0);
                }

                /* Row highlight background with magnifier lens effect */
                .mobile-menu-item::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: -100%;
                    width: 100%;
                    height: 100%;
                    background: linear-gradient(90deg, 
                        rgba(255, 255, 255, 0.1) 0%, 
                        rgba(255, 255, 255, 0.2) 50%, 
                        rgba(255, 255, 255, 0.1) 100%);
                    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    border-radius: 16px;
                    z-index: -1;
                    -webkit-backdrop-filter: blur(2px);
                            backdrop-filter: blur(2px);
                }

                .mobile-menu-item:hover::before {
                    left: 0;
                    background: linear-gradient(90deg, 
                        rgba(255, 215, 0, 0.2) 0%, 
                        rgba(255, 215, 0, 0.35) 50%, 
                        rgba(255, 215, 0, 0.2) 100%);
                    box-shadow: 
                        0 8px 32px rgba(255, 215, 0, 0.4),
                        inset 0 2px 8px rgba(255, 255, 255, 0.2);
                    -webkit-backdrop-filter: blur(4px);
                            backdrop-filter: blur(4px);
                }

                /* Magnifier lens effect */
                .mobile-menu-item::after {
                    content: '';
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    width: 0;
                    height: 0;
                    background: radial-gradient(circle, 
                        rgba(255, 215, 0, 0.3) 0%, 
                        rgba(255, 215, 0, 0.1) 40%,
                        transparent 70%);
                    border-radius: 50%;
                    transform: translate(-50%, -50%);
                    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    pointer-events: none;
                    z-index: 1;
                }

                .mobile-menu-item:hover::after {
                    width: 200px;
                    height: 200px;
                    background: radial-gradient(circle, 
                        rgba(255, 215, 0, 0.15) 0%, 
                        rgba(255, 215, 0, 0.08) 30%,
                        rgba(255, 255, 255, 0.05) 60%,
                        transparent 80%);
                }

                /* Enhanced link styling with magnifier text effect */
                .mobile-nav-link {
                    display: block;
                    color: #fff;
                    text-decoration: none;
                    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    position: relative;
                    padding: 16px 24px;
                    border-radius: 12px;
                    transform-origin: left center;
                    z-index: 2;
                    overflow: visible;
                }

                .link-text {
                    display: inline-block;
                    font-size: 24px;
                    line-height: 1.4;
                    text-transform: uppercase;
                    letter-spacing: 1.7px;
                    font-weight: 600;
                    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    transform-origin: left center;
                    position: relative;
                }

                /* Magnifier text enlargement effect */
                .mobile-nav-link:hover .link-text {
                    font-size: 32px;
                    font-weight: 700;
                    letter-spacing: 2.5px;
                    color: #FFD700;
                    text-shadow: 
                        0 0 10px rgba(255, 215, 0, 0.6),
                        0 2px 8px rgba(255, 215, 0, 0.4),
                        0 4px 16px rgba(255, 215, 0, 0.2);
                    transform: scale(1.15) translateX(20px);
                }

                /* Animated underline with magnifier effect */
                .mobile-nav-link::before {
                    content: '';
                    position: absolute;
                    bottom: 12px;
                    left: -100%;
                    width: 100%;
                    height: 4px;
                    background: linear-gradient(90deg, 
                        transparent 0%, 
                        #FFD700 20%, 
                        #FFA500 50%, 
                        #FFD700 80%, 
                        transparent 100%);
                    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    border-radius: 2px;
                    box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
                }

                .mobile-nav-link:hover::before {
                    left: 0;
                    height: 6px;
                    animation: shimmer 2s ease-in-out infinite;
                    box-shadow: 
                        0 0 20px rgba(255, 215, 0, 1),
                        0 2px 8px rgba(255, 215, 0, 0.6);
                }

                /* Enhanced shimmer animation */
                @keyframes shimmer {
                    0% {
                        background-position: -200% center;
                        transform: scaleX(0.8);
                    }
                    50% {
                        transform: scaleX(1.1);
                    }
                    100% {
                        background-position: 200% center;
                        transform: scaleX(0.8);
                    }
                }

                /* Pulse effect for active/focused states */
                .mobile-nav-link:focus,
                .mobile-nav-link:active {
                    outline: none;
                    animation: magnifierPulse 0.8s ease-in-out;
                }

                @keyframes magnifierPulse {
                    0% {
                        transform: scale(1);
                        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
                    }
                    50% {
                        transform: scale(1.05);
                        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0.2);
                    }
                    100% {
                        transform: scale(1);
                        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
                    }
                }

                /* Responsive adjustments */
                @media (max-width: 480px) {
                    .link-text {
                        font-size: 22px;
                        letter-spacing: 1.5px;
                    }
                    
                    .mobile-nav-link:hover .link-text {
                        font-size: 28px;
                        letter-spacing: 2px;
                        transform: scale(1.1) translateX(15px);
                    }
                }

                @media (min-width: 768px) {
                    .link-text {
                        font-size: 26px;
                    }
                    
                    .mobile-nav-link:hover .link-text {
                        font-size: 34px;
                        letter-spacing: 3px;
                        transform: scale(1.2) translateX(25px);
                    }
                }

                /* Hide default navbar toggle on larger screens */
                @media (min-width: 992px) {
                    .mobile-menu-container {
                        display: none !important;
                    }
                }
/* Shared Header Utilities */
.main-header {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: background-color, backdrop-filter, box-shadow, border-bottom;
    background-color: transparent;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
}

.main-header.no-transition {
    transition: none !important;
}

.main-header.fixed-header {
    background-color: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 174, 239, 0.1);
}

.animated-hamburger.hidden {
    display: none !important;
}

.header-logo-image {
    height: 60px;
    width: auto;
}

.header-logo-image--mobile {
    height: 32px;
    width: auto;
}

.lava-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    opacity: 0.8;
    pointer-events: none;
}
/* ========================================
   Mobile Navigation Refresh - October 2025
   ======================================== */
@media (max-width: 991px) {
    .mobile-menu-overlay {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 80px 16px 24px;
        background: rgba(4, 6, 18, 0.82);
        -webkit-backdrop-filter: blur(18px);
                backdrop-filter: blur(18px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-overlay .menu-background-layer,
    .mobile-menu-overlay .animated-shapes {
        display: none !important;
    }

    .mobile-navigation {
        position: relative;
        display: flex;
        flex-direction: column;
        width: min(92vw, 440px);
        max-height: calc(100vh - 120px);
        overflow: hidden;
        border-radius: 24px;
        background: rgba(10, 13, 28, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 25px 55px rgba(5, 10, 30, 0.45);
        padding: 28px 24px 36px;
        opacity: 0;
        transform: translateY(12vh);
        transition: transform 0.32s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.32s ease;
        pointer-events: none;
    }

    .mobile-navigation.active {
        opacity: 1;
        transform: translateY(8vh);
        pointer-events: auto;
    }

    .mobile-navigation::-webkit-scrollbar {
        width: 6px;
    }

    .mobile-navigation::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.18);
        border-radius: 3px;
    }

    .mobile-close-button {
        align-self: flex-end;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        font-weight: 500;
        line-height: 1;
        transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
        margin-bottom: 24px;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .mobile-close-button .close-icon {
        font-size: inherit;
        font-weight: inherit;
        color: currentColor;
        text-shadow: none;
    }

    .mobile-close-button:hover,
    .mobile-close-button:focus-visible {
        background: rgba(255, 255, 255, 0.16);
        color: var(--primary-color, #007bff);
        transform: scale(1.05);
    }

    /* Profile image to top of mobile menu */
    .mobile-menu-list .user-info-mobile-item:first-child {
        order: -1; /* Force to top */
    }

    .mobile-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow-y: auto;
        max-height: calc(100% - 64px);
        padding-right: 6px;
    }

    .mobile-menu-item {
        opacity: 1 !important;
        transform: none !important;
        padding: 0;
        margin: 0;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.04);
        background: rgba(255, 255, 255, 0.03);
        transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    }

    .mobile-menu-item::before,
    .mobile-menu-item::after {
        display: none !important;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 18px;
        color: #f0f4ff;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 0.2px;
        text-transform: capitalize;
        text-decoration: none;
        transition: color 0.2s ease, transform 0.2s ease;
        overflow: hidden; /* Prevent text overflow */
    }

    .mobile-nav-link::before,
    .mobile-nav-link::after {
        display: none !important;
    }

    .mobile-nav-link .link-text {
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 0.2px;
        text-transform: none;
        transition: font-size 0.2s ease, font-weight 0.2s ease;
        will-change: font-size, font-weight;
    }

    .mobile-menu-item {
        overflow: hidden; /* Prevent horizontal scrollbar */
    }

    .mobile-menu-item:hover,
    .mobile-menu-item:focus-within {
        background: rgba(0, 174, 239, 0.15);
        border-color: rgba(0, 174, 239, 0.25);
        box-shadow: 0 18px 36px rgba(1, 30, 55, 0.35);
    }

    .mobile-menu-item:hover .mobile-nav-link,
    .mobile-menu-item:focus-within .mobile-nav-link {
        color: var(--primary-color, #007bff);
        transform: translateX(4px);
    }

    .mobile-menu-item:hover .link-text,
    .mobile-menu-item:focus-within .link-text {
        font-size: 17px; /* Smaller increase to prevent overflow */
        font-weight: 600;
    }

    .user-info-mobile-item {
        padding-bottom: 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        order: -1 !important; /* Force to top */
    }

    .user-info-mobile {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 4px;
        color: #f0f4ff;
        text-decoration: none;
        border-radius: 12px;
        transition: background 0.2s ease, transform 0.2s ease;
        cursor: pointer;
    }

    .user-info-mobile:hover {
        background: rgba(0, 174, 239, 0.08);
        transform: translateX(2px);
    }

    .user-avatar-mobile {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(0, 174, 239, 0.22);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: #ffffff;
        font-size: 16px;
    }

    .user-info-mobile .user-avatar-image-wrapper {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .user-email-mobile {
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.2px;
        color: rgba(255, 255, 255, 0.85);
    }

    /* Action buttons (Clear Cache, Sign Out) - smaller and more compact */
    .mobile-action-item .mobile-nav-link {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }

    .mobile-action-item .link-text {
        font-size: 14px !important;
        font-weight: 500 !important;
        letter-spacing: 0.1px !important;
    }

    .mobile-action-item:hover .link-text,
    .mobile-action-item:focus-within .link-text {
        font-size: 14px !important; /* Keep same size to prevent overflow */
        font-weight: 600 !important;
    }

    /* Override any conflicting styles for action items */
    .mobile-menu-item.mobile-action-item {
        padding: 0 !important;
        margin: 4px 0 !important;
    }

    /* Prevent transform on action items to avoid scrollbar */
    .mobile-action-item:hover .mobile-nav-link,
    .mobile-action-item:focus-within .mobile-nav-link {
        transform: none !important;
    }

    .mobile-action-item:hover .link-text,
    .mobile-action-item:focus-within .link-text {
        transform: none !important;
    }

    /* Mobile menu separator styling */
    .mobile-menu-separator {
        list-style: none;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        background: transparent !important;
        border: none !important;
    }

    .mobile-menu-separator hr {
        margin: 12px 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        opacity: 0.5;
    }

    .mobile-nav-link.sign-out-btn {
        color: #ffd2cb;
        background: none !important;
        border: none !important;
        width: 100%;
        text-align: left;
        cursor: pointer;
        padding: 14px 18px;
    }

    .mobile-nav-link.sign-out-btn:hover,
    .mobile-nav-link.sign-out-btn:focus {
        background: none !important;
        border: none !important;
    }

    .mobile-menu-item:hover .sign-out-btn,
    .mobile-menu-item:focus-within .sign-out-btn {
        color: #ff8675;
    }

    .mobile-menu-item:hover .sign-out-btn .link-text,
    .mobile-menu-item:focus-within .sign-out-btn .link-text {
        font-size: 17px;
        font-weight: 600;
    }

    @media (max-width: 575px) {
    .mobile-navigation {
        width: 100%;
        max-height: calc(100vh - 96px);
        padding: 24px 16px 28px;
        border-radius: 20px;
    }

    .mobile-menu-list {
        padding-right: 0;
    }

    .mobile-nav-link {
        padding: 12px 16px;
        font-size: 15px;
    }

    .mobile-nav-link .link-text {
        font-size: 15px;
    }

    .mobile-close-button {
        width: 36px;
        height: 36px;
        font-size: 20px;
        margin-bottom: 20px;
    }
    }
}

/* ========================================
   DESKTOP AUTH DROPDOWN MENU STYLES
   ======================================== */
.auth-dropdown-menu {
    background: rgba(10, 13, 28, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
    padding: 8px 0 !important;
    min-width: 200px;
    margin-top: 8px !important;
    animation: dropdownFadeIn 0.2s ease-out;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}

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

.auth-dropdown-item {
    color: #f0f4ff !important;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px !important;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.auth-dropdown-item i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.15s ease;
}

.auth-dropdown-item:hover {
    background: rgba(0, 174, 239, 0.15) !important;
    color: var(--primary-color) !important;
}

.auth-dropdown-item:hover i {
    color: var(--primary-color);
}

.auth-dropdown-item.accent:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #EF4444 !important;
}

.auth-dropdown-item.accent:hover i {
    color: #EF4444;
}

.auth-dropdown-divider {
    margin: 6px 0 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Desktop dropdown button styles */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-1px);
}

.user-menu-btn .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #333;
}

.user-menu-btn .user-avatar-image-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.user-menu-btn .user-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu-btn .user-email {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* Light mode: navbar is white, so user-menu-btn needs dark text and visible borders */
.theme-light .user-menu-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.theme-light .user-menu-btn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}

.theme-light .user-menu-btn .user-email {
    color: var(--text-primary);
}

.theme-light .user-menu-btn .dropdown-toggle::after {
    color: var(--text-primary);
}

/* ========================================
   DARK MODE OVERRIDES
   ======================================== */
.theme-dark .hamburger-line {
    background-color: #e5e7eb;
}

.theme-dark .main-header.fixed-header {
    background-color: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.theme-dark .auth-dropdown-item:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
}

.theme-dark .auth-dropdown-item:hover i {
    color: #38bdf8;
}

/**
 * Light Theme - Explicit Overrides
 * Mirrors dark-theme.css structure for consistency
 * Applied when NOT in dark mode (default state)
 *
 * Uses CSS variables from global.css :root so all values
 * are centralized and easy to change.
 */

/* ============================================
 * MOBILE MENU - Light Theme
 * ============================================ */

/* Mobile menu overlay background */
.mobile-menu-overlay {
  background: rgba(240, 241, 243, 0.98);
}

.mobile-menu-overlay.active {
  background: rgba(240, 241, 243, 0.98);
}

/* Mobile menu background layers */
.menu-background-layer.layer-1 {
  background: linear-gradient(135deg, #38bdf8 0%, #007bff 100%);
}

.menu-background-layer.layer-2 {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  opacity: 0.95;
}

/* Mobile navigation text colors */
.mobile-menu-overlay .mobile-nav-link {
  color: var(--text-primary);
}

.mobile-menu-overlay .mobile-nav-link:hover,
.mobile-menu-overlay .mobile-nav-link:focus {
  background: rgba(0, 123, 255, 0.1);
  color: var(--accent-hover);
}

/* Mobile menu items */
.mobile-menu-item {
  color: var(--text-primary);
}

/* Close button */
.mobile-close-button {
  color: var(--text-primary);
  border-color: var(--border-color);
}

.mobile-close-button:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: rgba(0, 123, 255, 0.05);
}

/* ============================================
 * COMPONENT OVERRIDES - Light Theme
 * ============================================ */

/* Cards */
.card,
.portfolio-box,
.service-item {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

/* Links — only style plain content links; exclude anything with a button-like class */
a:not(.theme-btn):not(.btn):not([class*="btn"]):not([class*="nav-link"]):not(.dropdown-item):not([role="button"]) {
  color: var(--accent-primary);
}

a:not(.theme-btn):not(.btn):not([class*="btn"]):not([class*="nav-link"]):not(.dropdown-item):not([role="button"]):hover {
  color: var(--accent-hover);
}

/* Navigation */
.main-header .main-menu .navigation li a,
.nav-link-click {
  color: var(--nav-text);
}

/* Hero Section */
.hero-section {
  background: var(--primary-bg);
}

.hero-title,
.hero-content h1 {
  color: var(--heading-color);
}

.hero-subtitle,
.hero-content p {
  color: var(--text-secondary);
}

/* Code blocks */
pre,
code {
  background: var(--secondary-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}

/* Tables */
table {
  border-color: var(--border-color);
}

th {
  background: var(--secondary-bg);
  color: var(--heading-color);
}

td {
  background: var(--card-bg);
  color: var(--main-color);
  border-color: var(--border-color);
}

/* Modals */
.modal-content {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.modal-header {
  border-bottom-color: var(--border-color);
}

.modal-footer {
  border-top-color: var(--border-color);
}

/* Inputs */
input,
textarea,
select {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--input-text);
}

input::placeholder,
textarea::placeholder {
  color: var(--input-placeholder);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--input-focus-border);
}

/* Buttons */
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
}

/* ============================================
 * ABOUT SECTION - Light Theme
 * ============================================ */

.about-area-seamless {
  background: transparent;
}

.about-text h2,
.about-text h3 {
  color: var(--heading-color);
}

.about-text p {
  color: var(--main-color);
}

.about-text .subtitle {
  color: var(--subtitle-color);
}

.about-text ul li strong {
  color: var(--primary-color);
}

.about-text ul li span {
  color: var(--text-secondary);
}

.read-more-btn-seamless {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.25);
}

.read-more-btn-seamless:hover {
  background: transparent;
  color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
}

.team-section-seamless {
  border-top-color: var(--border-color);
}

.team-title {
  color: var(--heading-color);
}

.founder-card {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.founder-card:hover {
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
}

.founder-card h2 {
  color: var(--heading-color);
}

.founder-card p {
  color: var(--subtitle-color);
}

.founder-card img,
.mercury-avatar {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.founder-card:hover img,
.founder-card:hover .mercury-avatar {
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
}

/* ============================================
 * FAQ SECTION - Light Theme
 * ============================================ */

.faq-section-enhanced {
  background: var(--primary-bg);
}

.faq-item-enhanced {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.faq-item-enhanced:hover {
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.12);
}

.faq-item-enhanced.active {
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.15);
}

.faq-question-btn:hover {
  background: var(--hover-overlay);
}

.faq-item-enhanced.active .faq-question-btn {
  background: var(--hover-overlay);
}

.question-text {
  color: var(--heading-color);
}

.faq-item-enhanced.active .question-text {
  color: var(--primary-color);
}

.faq-icon {
  color: var(--primary-color);
  background: rgba(0, 123, 255, 0.08);
}

.faq-item-enhanced:hover .faq-icon {
  background: var(--primary-color);
  color: #fff;
}

.faq-item-enhanced.active .faq-icon {
  background: var(--primary-color);
  color: #fff;
}

.faq-answer-content p {
  color: var(--text-secondary);
}

.faq-contact-card-enhanced {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.faq-contact-card-enhanced:hover {
  box-shadow: 0 12px 32px rgba(0, 123, 255, 0.15);
}

.contact-title {
  color: var(--heading-color);
}

.contact-subtitle {
  color: var(--text-secondary);
}

.faq-contact-btn {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.25);
}

.faq-contact-btn:hover {
  background: transparent;
  color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
}

.email-link-wrapper {
  border-top-color: var(--border-color);
}

.email-link {
  color: var(--primary-color);
}

.email-link:hover {
  color: var(--accent-hover);
}

/* ============================================
 * CONTACT FORM - Light Theme
 * ============================================ */

.contact-section-enhanced {
  background: var(--primary-bg);
}

.contact-main-title {
  color: var(--heading-color);
}

.contact-form-wrapper {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.contact-form-wrapper:hover {
  box-shadow: 0 8px 32px rgba(0, 123, 255, 0.12);
}

.contact-alert.alert-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}

.contact-alert.alert-error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.form-label {
  color: var(--heading-color);
}

.input-wrapper {
  background: var(--input-bg);
  border-color: var(--border-color);
}

.input-wrapper.focused {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-wrapper.error {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.input-icon {
  color: var(--text-secondary);
}

.input-wrapper.focused .input-icon {
  color: var(--primary-color);
}

.form-input,
.form-select,
.form-textarea {
  color: var(--text-primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--input-placeholder);
}

.char-count {
  color: var(--text-secondary);
}

.error-message {
  color: var(--danger-color);
}

.submit-btn {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.25);
}

.submit-btn:not(:disabled):hover {
  background: transparent;
  color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
}

/* ============================================
 * PROJECTS SECTION - Light Theme
 * ============================================ */

.projects-section-enhanced {
  background: var(--primary-bg);
}

.project-card-enhanced {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.project-card-enhanced:hover {
  box-shadow: 0 12px 40px rgba(0, 123, 255, 0.15);
}

.project-image-wrapper {
  background: var(--image-bg);
}

.project-view-btn {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.3);
}

.project-view-btn:hover {
  background: transparent;
  color: var(--primary-color);
}

.project-category {
  color: var(--primary-color);
}

.project-title {
  color: var(--heading-color);
}

.project-summary {
  color: var(--text-secondary);
}

.project-link {
  color: var(--primary-color);
}

.project-link:hover {
  color: var(--accent-hover);
}

/* ============================================
 * SUPPORT SECTION - Light Theme
 * ============================================ */

.support-section-enhanced {
  background: var(--primary-bg);
}

.github-sponsor-card {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.github-sponsor-card:hover {
  box-shadow: 0 8px 32px rgba(0, 123, 255, 0.12);
}

.sponsor-card-header h3 {
  color: var(--heading-color);
}

.sponsor-card-header p {
  color: var(--text-secondary);
}

.support-options-title {
  color: var(--heading-color);
}

.support-option-card {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.support-option-card:hover {
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.12);
}

.support-icon-wrapper {
  background: rgba(0, 123, 255, 0.08);
}

.support-option-card:hover .support-icon-wrapper {
  background: var(--primary-color);
  color: #fff;
}

.support-option-name {
  color: var(--heading-color);
}

.support-option-desc {
  color: var(--text-secondary);
}

.support-option-link {
  color: var(--primary-color);
}

/* ============================================
 * FOOTER - Light Theme
 * ============================================ */

.footer-enhanced {
  background: var(--footer-bg);
  border-top-color: var(--border-color);
}

.footer-social-title {
  color: var(--heading-color);
}

.footer-social-subtitle {
  color: var(--text-secondary);
}

.social-link-btn {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.social-link-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
}

.footer-bottom {
  border-top-color: var(--border-color);
}

.copyright-text p {
  color: var(--text-secondary);
}

.copyright-link {
  color: var(--primary-color);
}

.copyright-link:hover {
  color: var(--accent-hover);
}

.footer-tagline {
  color: var(--text-secondary);
}

.footer-menu a {
  color: var(--text-secondary);
}

.footer-menu a:hover {
  color: var(--primary-color);
}

/* ========================================
   BOOTSTRAP UTILITY CLASS OVERRIDES
   Ensures Bootstrap utilities are consistent
   with the design system in light mode
   ======================================== */

/* Background Utilities */
.bg-light {
  background: var(--secondary-bg) !important;
}

.bg-white {
  background: var(--card-bg) !important;
}

.bg-body {
  background: var(--primary-bg) !important;
}

.bg-body-secondary {
  background: var(--secondary-bg) !important;
}

.bg-body-tertiary {
  background: var(--tertiary-bg) !important;
}

/* Text Utilities */
.text-dark {
  color: var(--text-primary) !important;
}

.text-body {
  color: var(--text-primary) !important;
}

.text-body-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Card Utilities */
.card-header {
  background: var(--secondary-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.card-footer {
  background: var(--secondary-bg);
  border-color: var(--border-color);
}

.card-title {
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
}

/* Table Utilities */
.table {
  color: var(--text-primary);
  border-color: var(--border-color);
}

.table > thead {
  color: var(--text-primary);
}

.table > tbody {
  color: var(--text-primary);
}

.table-light th,
.table-light td {
  background: var(--secondary-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.table-bordered th,
.table-bordered td {
  border-color: var(--border-color);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background: rgba(0, 0, 0, 0.02);
}

.table-hover > tbody > tr:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* List Group Utilities */
.list-group-item {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.list-group-item:hover {
  background: var(--secondary-bg);
}

.list-group-item.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Form Utilities */
.form-control {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--input-text);
}

.form-control::placeholder {
  color: var(--input-placeholder);
}

.form-control:focus {
  background: var(--input-bg);
  border-color: var(--primary-color);
  color: var(--input-text);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.form-control:disabled,
.form-control[readonly] {
  background: var(--secondary-bg);
  color: var(--text-muted);
}

.form-select {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--input-text);
}

.form-label {
  color: var(--text-primary);
}

.form-text {
  color: var(--text-muted);
}

.form-check-input {
  background-color: var(--input-bg);
  border-color: var(--input-border);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-label {
  color: var(--text-primary);
}

/* Input Group */
.input-group-text {
  background: var(--secondary-bg);
  border-color: var(--input-border);
  color: var(--text-primary);
}

/* Alert Utilities */
.alert-primary {
  background: rgba(0, 123, 255, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.alert-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}

.alert-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}

.alert-info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-text);
}

/* Modal Utilities */
.modal-title {
  color: var(--text-primary);
}

.btn-close {
  filter: none;
}

/* Dropdown Utilities */
.dropdown-menu {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.dropdown-item {
  color: var(--text-primary);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--secondary-bg);
  color: var(--primary-color);
}

.dropdown-item.active,
.dropdown-item:active {
  background: var(--primary-color);
  color: #fff;
}

.dropdown-divider {
  border-color: var(--border-color);
}

/* Nav Utilities */
.nav-link {
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-tabs {
  border-color: var(--border-color);
}

.nav-tabs .nav-link {
  border-color: transparent;
}

.nav-tabs .nav-link.active {
  background: var(--card-bg);
  border-color: var(--border-color) var(--border-color) var(--card-bg);
  color: var(--text-primary);
}

/* Breadcrumb Utilities */
.breadcrumb {
  background: var(--secondary-bg);
}

.breadcrumb-item a {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

/* Pagination Utilities */
.page-link {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.page-link:hover {
  background: var(--secondary-bg);
  border-color: var(--border-color);
  color: var(--primary-color);
}

.page-item.active .page-link {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.page-item.disabled .page-link {
  background: var(--secondary-bg);
  border-color: var(--border-color);
  color: var(--text-muted);
}

/* Progress Utilities */
.progress {
  background: var(--secondary-bg);
}

/* Spinner Utilities */
.spinner-border {
  color: var(--primary-color);
}

.spinner-grow {
  color: var(--primary-color);
}

