/* Header 2: Floating Pill Header */

        /* ===== Header Wrapper ===== */
        .header2-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 50;
            padding-top: 1rem;
            pointer-events: none;
        }

        /* ===== Header Container ===== */
        .header2-container {
            max-width: 80rem;
            margin: 0 auto;
            padding: 0 1rem;
        }

        /* ===== Floating Pill ===== */
        .header2-pill {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.75rem 1.5rem;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(12px);
            border-radius: 9999px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(229, 231, 235, 0.8);
            pointer-events: auto;
            transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
            max-width: 100%;
        }

        .dark .header2-pill {
            background: rgba(31, 41, 55, 0.95);
            border-color: rgba(75, 85, 99, 0.5);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
        }

        .header-scrolled .header2-pill {
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

        .dark .header-scrolled .header2-pill {
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
        }

        /* ===== Logo ===== */
        .header2-logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-shrink: 0;
            transition: transform 200ms;
            min-width: 0;
        }

        .header2-logo:hover {
            transform: scale(1.02);
        }

        .header2-logo-img {
            height: 2.5rem;
            width: auto;
        }

        .header2-logo-icon {
            width: 3rem;
            height: 3rem;
            border-radius: 0.75rem;
            background: linear-gradient(to bottom right, var(--color-primary-500), var(--color-primary-600), var(--color-primary-700));
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
            transition: all 300ms;
        }

        .header2-logo-icon-small {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.625rem;
            background: linear-gradient(to bottom right, var(--color-primary-500), var(--color-primary-600), var(--color-primary-700));
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .header2-logo-text {
            font-size: 1rem;
            line-height: 1.5rem;
            font-weight: 700;
            color: #111827;
            white-space: nowrap;
        }

        .dark .header2-logo-text {
            color: var(--color-text-primary);
        }

        /* ===== Desktop Navigation ===== */
        .header2-nav {
            display: none;
            align-items: center;
            gap: 0.25rem;
            flex: 0 1 auto;
            justify-content: center;
        }

        @media (min-width: 1024px) {
            .header2-nav {
                display: flex;
            }
        }

        .header2-nav-link {
            padding: 0.5rem 0.75rem;
            font-weight: 500;
            color: #374151;
            border-radius: 9999px;
            transition: all 200ms;
            white-space: nowrap;
            position: relative;
            flex-shrink: 0;
        }

        .dark .header2-nav-link {
            color: var(--color-text-secondary);
        }

        .header2-nav-link:hover {
            color: var(--color-primary-600);
            background-color: var(--color-primary-50);
        }

        .dark .header2-nav-link:hover {
            color: var(--color-primary-400);
            background-color: rgba(37, 99, 235, 0.1);
        }

        /* ===== More Dropdown ===== */
        .header2-more-dropdown {
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .header2-more-dropdown::before {
            content: '';
            position: absolute;
            top: -6px;
            left: 20px;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-bottom: 6px solid white;
        }

        .dark .header2-more-dropdown::before {
            border-bottom-color: var(--color-gray-800);
        }

        .header2-more-item:hover span:first-child {
            opacity: 1;
        }

        /* ===== Actions ===== */
        .header2-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-shrink: 0;
        }

        /* ===== Language Selector ===== */
        .header2-lang-wrapper {
            position: relative;
        }

        .header2-lang-btn,
        .header2-lang-btn-mobile {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            padding: 0.5rem 0.75rem;
            border-radius: 9999px;
            background-color: #f3f4f6;
            color: #374151;
            font-size: 0.875rem;
            font-weight: 500;
            transition: all 200ms;
            white-space: nowrap;
        }

        .dark .header2-lang-btn,
        .dark .header2-lang-btn-mobile {
            background-color: var(--color-bg-tertiary);
            color: var(--color-text-secondary);
        }

        .header2-lang-btn:hover,
        .header2-lang-btn-mobile:hover {
            background-color: #e5e7eb;
        }

        .dark .header2-lang-btn:hover,
        .dark .header2-lang-btn-mobile:hover {
            background-color: #475569;
        }

        .header2-lang-text {
            display: none;
        }

        @media (min-width: 640px) {
            .header2-lang-text {
                display: block;
            }
        }

        .header2-lang-dropdown {
            position: absolute;
            right: 0;
            margin-top: 0.5rem;
            width: 11rem;
            border-radius: 0.75rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            background-color: #ffffff;
            border: 1px solid #e5e7eb;
            padding: 0.5rem 0;
            z-index: 50;
        }

        .dark .header2-lang-dropdown {
            background-color: var(--color-card-bg);
            border-color: var(--color-border);
        }

        /* Language dropdown in mobile menu footer - opens upward */
        .header2-mobile-footer .header2-lang-dropdown {
            bottom: 100%;
            top: auto;
            margin-top: 0;
            margin-bottom: 0.5rem;
        }

        .header2-lang-option {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 0.625rem 1rem;
            text-align: left;
            font-size: 0.875rem;
            color: #374151;
            transition: all 200ms;
        }

        .dark .header2-lang-option {
            color: var(--color-text-secondary);
        }

        .header2-lang-option:hover {
            background-color: var(--color-primary-50);
            color: var(--color-primary-600);
        }

        .dark .header2-lang-option:hover {
            background-color: rgba(37, 99, 235, 0.1);
            color: var(--color-primary-400);
        }

        .header2-lang-option.active {
            color: var(--color-primary-600);
            font-weight: 600;
        }

        .dark .header2-lang-option.active {
            color: var(--color-primary-400);
        }

        /* ===== Theme Toggle ===== */
        .header2-theme-toggle,
        .header2-theme-toggle-mobile {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem;
            border-radius: 9999px;
            background-color: #f3f4f6;
            color: #374151;
            transition: all 200ms;
        }

        .dark .header2-theme-toggle,
        .dark .header2-theme-toggle-mobile {
            background-color: var(--color-bg-tertiary);
            color: var(--color-text-secondary);
        }

        .header2-theme-toggle:hover,
        .header2-theme-toggle-mobile:hover {
            background-color: #e5e7eb;
        }

        .dark .header2-theme-toggle:hover,
        .dark .header2-theme-toggle-mobile:hover {
            background-color: #475569;
        }

        .header2-theme-toggle .sun-icon,
        .header2-theme-toggle-mobile .sun-icon {
            display: none;
        }

        .dark .header2-theme-toggle .sun-icon,
        .dark .header2-theme-toggle-mobile .sun-icon {
            display: block;
        }

        .header2-theme-toggle .moon-icon,
        .header2-theme-toggle-mobile .moon-icon {
            display: block;
        }

        .dark .header2-theme-toggle .moon-icon,
        .dark .header2-theme-toggle-mobile .moon-icon {
            display: none;
        }

        /* ===== CTA Button ===== */
        .header2-cta-btn {
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.625rem 1.25rem;
            border-radius: 9999px;
            font-weight: 600;
            font-size: 0.875rem;
            background: linear-gradient(135deg, var(--color-primary-600), var(--color-secondary-600));
            color: white;
            box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
            transition: all 300ms;
            white-space: nowrap;
        }

        .header2-cta-btn:hover {
            background: linear-gradient(135deg, var(--color-primary-700), var(--color-secondary-700));
            box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
            transform: translateY(-2px);
        }

        /* ===== Mobile Menu Button ===== */
        .header2-mobile-btn {
            align-items: center;
            justify-content: center;
            padding: 0.5rem;
            border-radius: 9999px;
            background-color: #f3f4f6;
            color: #374151;
            transition: all 200ms;
        }

        .dark .header2-mobile-btn {
            background-color: var(--color-bg-tertiary);
            color: var(--color-text-secondary);
        }

        .header2-mobile-btn:hover {
            background-color: #e5e7eb;
        }

        .dark .header2-mobile-btn:hover {
            background-color: #475569;
        }

        /* ===== Mobile Menu Overlay ===== */
        .header2-overlay {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            opacity: 0;
            pointer-events: none;
            transition: opacity 300ms;
            z-index: 40;
        }

        .header2-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        /* ===== Mobile Menu ===== */
        .header2-mobile-menu {
            position: fixed;
            top: 0;
            bottom: 0;
            right: 0;
            width: 100%;
            max-width: 24rem;
            background-color: #ffffff;
            box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.1);
            transform: translateX(100%);
            transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 50;
            display: flex;
            flex-direction: column;
        }

        .dark .header2-mobile-menu {
            background-color: var(--color-bg-primary);
        }

        .header2-mobile-menu.active {
            transform: translateX(0);
        }

        /* ===== Mobile Menu Header ===== */
        .header2-mobile-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem;
            border-bottom: 1px solid #e5e7eb;
            background: linear-gradient(to right, var(--color-primary-50), rgba(37, 99, 235, 0.05));
        }

        .dark .header2-mobile-header {
            border-bottom-color: var(--color-border);
            background: linear-gradient(to right, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
        }

        .header2-mobile-close {
            padding: 0.5rem;
            border-radius: 0.5rem;
            color: var(--color-primary-700);
            transition: background-color 200ms;
        }

        .dark .header2-mobile-close {
            color: var(--color-primary-400);
        }

        .header2-mobile-close:hover {
            background-color: rgba(255, 255, 255, 0.5);
        }

        .dark .header2-mobile-close:hover {
            background-color: rgba(31, 41, 55, 0.5);
        }

        /* ===== Mobile Navigation ===== */
        .header2-mobile-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1.5rem;
            color: #374151;
            border-bottom: 1px solid #f3f4f6;
            transition: all 200ms;
        }

        .dark .header2-mobile-link {
            color: var(--color-text-secondary);
            border-bottom-color: var(--color-border);
        }

        .header2-mobile-link:hover {
            background-color: var(--color-primary-50);
            color: var(--color-primary-600);
        }

        .dark .header2-mobile-link:hover {
            background-color: rgba(37, 99, 235, 0.1);
            color: var(--color-primary-400);
        }

        /* ===== Mobile Footer ===== */
        .header2-mobile-footer {
            padding: 1rem 1.5rem;
            border-top: 1px solid #e5e7eb;
            background-color: #f9fafb;
        }

        .dark .header2-mobile-footer {
            border-top-color: var(--color-border);
            background-color: var(--color-bg-secondary);
        }

        .header2-mobile-cta {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            width: 100%;
            padding: 0.75rem 1.5rem;
            border-radius: 0.75rem;
            font-weight: 600;
            background: linear-gradient(135deg, var(--color-primary-600), var(--color-secondary-600));
            color: white;
            box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.25);
            transition: all 300ms;
        }

        .header2-mobile-cta:hover {
            background: linear-gradient(135deg, var(--color-primary-700), var(--color-secondary-700));
            box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
        }

        /* ===== TRANSPARENT MODE ===== */
        .header2-transparent .header2-pill {
            background: rgba(0, 0, 0, 0.15);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .header2-transparent .header2-logo-text {
            color: white;
        }

        .header2-transparent .header2-nav-link {
            color: rgba(255, 255, 255, 0.9);
        }

        .header2-transparent .header2-nav-link:hover {
            color: white;
            background-color: rgba(255, 255, 255, 0.15);
        }

        .header2-transparent .header2-lang-btn,
        .header2-transparent .header2-lang-btn-mobile {
            background-color: rgba(255, 255, 255, 0.15);
            color: rgba(255, 255, 255, 0.9);
        }

        .header2-transparent .header2-lang-btn:hover,
        .header2-transparent .header2-lang-btn-mobile:hover {
            background-color: rgba(255, 255, 255, 0.25);
            color: white;
        }

        .header2-transparent .header2-theme-toggle {
            background-color: rgba(255, 255, 255, 0.15);
            color: rgba(255, 255, 255, 0.9);
        }

        .header2-transparent .header2-theme-toggle:hover {
            background-color: rgba(255, 255, 255, 0.25);
            color: white;
        }

        .header2-transparent .header2-mobile-btn {
            background-color: rgba(255, 255, 255, 0.15);
            color: white;
        }

        .header2-transparent .header2-mobile-btn:hover {
            background-color: rgba(255, 255, 255, 0.25);
        }

        /* ===== TEXT COLOR MODE ===== */
        /* IMPORTANT: Text color mode settings only apply in LIGHT mode */
        /* In dark mode, colors are always controlled by dark mode variables */

        /* ===== TEXT COLOR MODE: LIGHT (white text - for dark hero backgrounds) - LIGHT MODE ONLY ===== */
        /* Only applies when NOT scrolled and NOT in dark mode */
        body:not(.dark) .header2-transparent.header2-text-light:not(.header-scrolled) .header2-pill {
            background: rgba(0, 0, 0, 0.15) !important;
            border-color: rgba(255, 255, 255, 0.2) !important;
        }

        body:not(.dark) .header2-transparent.header2-text-light:not(.header-scrolled) .header2-logo-text,
        body:not(.dark) .header2-transparent.header2-text-light:not(.header-scrolled) .header2-nav-link {
            color: rgba(255, 255, 255, 0.9) !important;
        }

        body:not(.dark) .header2-transparent.header2-text-light:not(.header-scrolled) .header2-nav-link:hover,
        body:not(.dark) .header2-transparent.header2-text-light:not(.header-scrolled) .header2-logo-text:hover {
            color: white !important;
        }

        body:not(.dark) .header2-transparent.header2-text-light:not(.header-scrolled) .header2-lang-btn,
        body:not(.dark) .header2-transparent.header2-text-light:not(.header-scrolled) .header2-lang-btn-mobile,
        body:not(.dark) .header2-transparent.header2-text-light:not(.header-scrolled) .header2-theme-toggle,
        body:not(.dark) .header2-transparent.header2-text-light:not(.header-scrolled) .header2-mobile-btn {
            background-color: rgba(255, 255, 255, 0.15) !important;
            color: rgba(255, 255, 255, 0.9) !important;
        }

        body:not(.dark) .header2-transparent.header2-text-light:not(.header-scrolled) .header2-lang-btn:hover,
        body:not(.dark) .header2-transparent.header2-text-light:not(.header-scrolled) .header2-lang-btn-mobile:hover,
        body:not(.dark) .header2-transparent.header2-text-light:not(.header-scrolled) .header2-theme-toggle:hover,
        body:not(.dark) .header2-transparent.header2-text-light:not(.header-scrolled) .header2-mobile-btn:hover {
            background-color: rgba(255, 255, 255, 0.25) !important;
            color: white !important;
        }

        /* ===== TEXT COLOR MODE: DARK (black text - for light hero backgrounds) - LIGHT MODE ONLY ===== */
        /* Only applies when NOT scrolled and NOT in dark mode */
        body:not(.dark) .header2-transparent.header2-text-dark:not(.header-scrolled) .header2-pill {
            background: rgba(255, 255, 255, 0.15) !important;
            border-color: rgba(0, 0, 0, 0.1) !important;
        }

        body:not(.dark) .header2-transparent.header2-text-dark:not(.header-scrolled) .header2-logo-text,
        body:not(.dark) .header2-transparent.header2-text-dark:not(.header-scrolled) .header2-nav-link {
            color: var(--color-gray-800) !important;
        }

        body:not(.dark) .header2-transparent.header2-text-dark:not(.header-scrolled) .header2-nav-link:hover,
        body:not(.dark) .header2-transparent.header2-text-dark:not(.header-scrolled) .header2-logo-text:hover {
            color: var(--color-gray-900) !important;
        }

        body:not(.dark) .header2-transparent.header2-text-dark:not(.header-scrolled) .header2-lang-btn,
        body:not(.dark) .header2-transparent.header2-text-dark:not(.header-scrolled) .header2-lang-btn-mobile,
        body:not(.dark) .header2-transparent.header2-text-dark:not(.header-scrolled) .header2-theme-toggle,
        body:not(.dark) .header2-transparent.header2-text-dark:not(.header-scrolled) .header2-mobile-btn {
            background-color: rgba(0, 0, 0, 0.08) !important;
            color: var(--color-gray-700) !important;
        }

        body:not(.dark) .header2-transparent.header2-text-dark:not(.header-scrolled) .header2-lang-btn:hover,
        body:not(.dark) .header2-transparent.header2-text-dark:not(.header-scrolled) .header2-lang-btn-mobile:hover,
        body:not(.dark) .header2-transparent.header2-text-dark:not(.header-scrolled) .header2-theme-toggle:hover,
        body:not(.dark) .header2-transparent.header2-text-dark:not(.header-scrolled) .header2-mobile-btn:hover {
            background-color: rgba(0, 0, 0, 0.12) !important;
            color: var(--color-gray-900) !important;
        }

        /* Dark mode for scrolled headers (both transparent and solid) */
        .dark #header.header-scrolled .header2-pill,
        .dark .header2-transparent.header2-scrolled .header2-pill {
            background-color: var(--color-bg-primary) !important;
            border-color: var(--color-border) !important;
        }

        .dark .header2-transparent.header2-scrolled .header2-logo-text {
            color: var(--color-text-primary) !important;
        }

        .dark .header2-transparent.header2-scrolled .header2-nav-link {
            color: var(--color-text-secondary) !important;
        }

        .dark .header2-transparent.header2-scrolled .header2-nav-link:hover {
            color: var(--color-primary-400) !important;
            background-color: rgba(37, 99, 235, 0.1) !important;
        }

        .dark .header2-transparent.header2-scrolled .header2-lang-btn,
        .dark .header2-transparent.header2-scrolled .header2-lang-btn-mobile {
            background-color: var(--color-bg-tertiary) !important;
            color: var(--color-text-tertiary) !important;
        }

        .dark .header2-transparent.header2-scrolled .header2-lang-btn:hover,
        .dark .header2-transparent.header2-scrolled .header2-lang-btn-mobile:hover {
            background-color: #475569 !important;
            color: var(--color-primary-400) !important;
        }

        .dark .header2-transparent.header2-scrolled .header2-theme-toggle,
        .dark .header2-transparent.header2-scrolled .header2-mobile-btn {
            background-color: var(--color-bg-tertiary) !important;
            color: var(--color-text-primary) !important;
        }

        .dark .header2-transparent.header2-scrolled .header2-theme-toggle:hover,
        .dark .header2-transparent.header2-scrolled .header2-mobile-btn:hover {
            background-color: #475569 !important;
        }

        /* Transparent mode when scrolled */
        .header2-transparent.header2-scrolled .header2-pill {
            background: rgba(255, 255, 255, 0.95);
            border-color: rgba(229, 231, 235, 0.8);
        }

        .header2-transparent.header2-scrolled .header2-logo-text {
            color: #111827;
        }

        .header2-transparent.header2-scrolled .header2-nav-link {
            color: #374151;
        }

        .header2-transparent.header2-scrolled .header2-nav-link:hover {
            color: var(--color-primary-600);
            background-color: var(--color-primary-50);
        }

        .header2-transparent.header2-scrolled .header2-lang-btn,
        .header2-transparent.header2-scrolled .header2-lang-btn-mobile {
            background-color: #f3f4f6;
            color: #374151;
        }

        .header2-transparent.header2-scrolled .header2-lang-btn:hover,
        .header2-transparent.header2-scrolled .header2-lang-btn-mobile:hover {
            background-color: #e5e7eb;
        }

        .header2-transparent.header2-scrolled .header2-theme-toggle {
            background-color: #f3f4f6;
            color: #374151;
        }

        .header2-transparent.header2-scrolled .header2-theme-toggle:hover {
            background-color: #e5e7eb;
        }

        .header2-transparent.header2-scrolled .header2-mobile-btn {
            background-color: #f3f4f6;
            color: #374151;
        }

        .header2-transparent.header2-scrolled .header2-mobile-btn:hover {
            background-color: #e5e7eb;
        }

        /* Dark mode - Transparent scrolled */
        .dark .header2-transparent.header2-scrolled .header2-pill {
            background: rgba(31, 41, 55, 0.95);
            border-color: rgba(75, 85, 99, 0.5);
        }

        .dark .header2-transparent.header2-scrolled .header2-logo-text {
            color: var(--color-text-primary);
        }

        .dark .header2-transparent.header2-scrolled .header2-nav-link {
            color: var(--color-text-secondary);
        }

        .dark .header2-transparent.header2-scrolled .header2-nav-link:hover {
            color: var(--color-primary-400);
            background-color: rgba(37, 99, 235, 0.1);
        }

        .dark .header2-transparent.header2-scrolled .header2-lang-btn,
        .dark .header2-transparent.header2-scrolled .header2-lang-btn-mobile {
            background-color: var(--color-bg-tertiary);
            color: var(--color-text-secondary);
        }

        .dark .header2-transparent.header2-scrolled .header2-lang-btn:hover,
        .dark .header2-transparent.header2-scrolled .header2-lang-btn-mobile:hover {
            background-color: #475569;
        }

        .dark .header2-transparent.header2-scrolled .header2-theme-toggle {
            background-color: var(--color-bg-tertiary);
            color: var(--color-text-secondary);
        }

        .dark .header2-transparent.header2-scrolled .header2-theme-toggle:hover {
            background-color: #475569;
        }

        .dark .header2-transparent.header2-scrolled .header2-mobile-btn {
            background-color: var(--color-bg-tertiary);
            color: var(--color-text-secondary);
        }

        .dark .header2-transparent.header2-scrolled .header2-mobile-btn:hover {
            background-color: #475569;
        }

        /* ===== RTL Support ===== */
        [dir="rtl"] .header2-mobile-menu {
            right: auto;
            left: 0;
            transform: translateX(-100%);
        }

        [dir="rtl"] .header2-mobile-menu.active {
            transform: translateX(0);
        }

        [dir="rtl"] .header2-lang-dropdown {
            right: auto;
            left: 0;
        }

        /* ===== Responsive Adjustments ===== */
        @media (max-width: 640px) {
            .header2-pill {
                padding: 0.625rem 1rem;
                gap: 1rem;
            }

            .header2-logo-text {
                font-size: 1rem;
            }

            .header2-actions {
                gap: 0.375rem;
            }
        }

        @media (max-width: 1024px) {
            .header2-container {
                padding: 0 0.75rem;
            }
        }

        /* ===== SOLID MODE (Non-transparent header) ===== */
        .header2-solid .header2-pill {
            background: rgba(255, 255, 255, 0.95) !important;
            border-color: rgba(229, 231, 235, 0.8) !important;
        }

        .header2-solid .header2-logo-text {
            color: #111827 !important;
        }

        .header2-solid .header2-nav-link {
            color: #374151 !important;
        }

        .header2-solid .header2-nav-link:hover {
            color: var(--color-primary-600) !important;
            background-color: var(--color-primary-50) !important;
        }

        .header2-solid .header2-lang-btn,
        .header2-solid .header2-lang-btn-mobile,
        .header2-solid .header2-theme-toggle,
        .header2-solid .header2-mobile-btn {
            background-color: #f3f4f6 !important;
            color: #374151 !important;
        }

        .header2-solid .header2-lang-btn:hover,
        .header2-solid .header2-lang-btn-mobile:hover,
        .header2-solid .header2-theme-toggle:hover,
        .header2-solid .header2-mobile-btn:hover {
            background-color: #e5e7eb !important;
        }

        /* Dark mode - Solid header */
        body.dark .header2-solid .header2-pill {
            background: #0f172a !important;
            border-color: rgba(255, 255, 255, 0.1) !important;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2) !important;
        }

        body.dark .header2-solid .header2-logo-text {
            color: #ffffff !important;
        }

        body.dark .header2-solid .header2-nav-link {
            color: rgba(255, 255, 255, 0.8) !important;
        }

        body.dark .header2-solid .header2-nav-link:hover {
            color: var(--color-primary-400) !important;
            background-color: rgba(37, 99, 235, 0.1) !important;
        }

        body.dark .header2-solid .header2-lang-btn,
        body.dark .header2-solid .header2-lang-btn-mobile,
        body.dark .header2-solid .header2-theme-toggle,
        body.dark .header2-solid .header2-mobile-btn {
            background-color: var(--color-bg-tertiary) !important;
            color: rgba(255, 255, 255, 0.8) !important;
        }

        body.dark .header2-solid .header2-lang-btn:hover,
        body.dark .header2-solid .header2-lang-btn-mobile:hover,
        body.dark .header2-solid .header2-theme-toggle:hover,
        body.dark .header2-solid .header2-mobile-btn:hover {
            background-color: #475569 !important;
            color: #ffffff !important;
        }