﻿/* ============ Header Block 1: Search, Nav, Mega-Dropdown ============ */
    /* ============================================
       SEARCH OVERLAY STYLES
       ============================================ */
    #search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.98);
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 5vh 20px;
    }

    #search-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .search-modal-container {
        width: 100%;
        max-width: 700px;
    }

    .search-input-wrapper {
        position: relative;
        margin-bottom: 20px;
    }

    #globalSearchInput {
        width: 100%;
        padding: 20px 25px 20px 60px;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        color: white;
        font-size: 1.2rem;
        outline: none;
    }

    .search-icon-inside {
        position: absolute;
        left: 25px;
        top: 50%;
        transform: translateY(-50%);
        color: #64748b;
    }

    .close-search-btn {
        position: absolute;
        top: 30px;
        right: 40px;
        font-size: 3rem;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
    }

    #search-results-list {
        max-height: 60vh;
        overflow-y: auto;
        background: white;
        border-radius: 12px;
        padding: 10px;
    }

    .search-result-item {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #f1f5f9;
        text-decoration: none;
        color: #1e293b;
    }

    .search-result-item:hover {
        background: #f8fafc;
    }

    .search-result-category {
        font-size: 0.7rem;
        text-transform: uppercase;
        color: #2563eb;
        font-weight: 700;
    }

    .search-result-title {
        font-weight: 600;
        margin: 4px 0;
    }

    .search-result-desc {
        font-size: 0.85rem;
        color: #64748b;
    }

    /* ============================================
       PROFESSIONAL HEADER STYLES
       ============================================ */
    
    :root {
        --header-height-desktop: 84px;
        --header-height-mobile: 66px;
        --header-switch-breakpoint: 1200px;
    }

    #main-header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        height: var(--header-height-desktop);
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(18px) saturate(160%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, height 0.3s ease;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.45);
    }
    
    /* Gradient Accent Line Below Header */
    #main-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.42), rgba(14, 165, 233, 0.12));
        opacity: 1;
    }
    
    #main-header.scrolled {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 16px 36px -24px rgba(15, 23, 42, 0.5);
        height: 64px;
    }

    #main-header.scrolled::after {
        opacity: 1;
    }

    #main-header.scrolled .brand-logo img {
        height: 38px;
    }

    #main-header .container > div {
        height: 100%;
        gap: clamp(0.5rem, 1.5vw, 1.5rem);
    }

    /* ============================================
       NAV LINK STYLES - Fluid Responsive
       Works perfectly at ANY scale/resolution
       ============================================ */
    .nav-link-pro {
        display: inline-flex;
        align-items: center;
        gap: clamp(3px, 0.3vw, 6px);
        padding: clamp(6px, 0.6vw, 12px) clamp(8px, 0.8vw, 18px);
        font-size: clamp(0.72rem, 0.85vw, 0.95rem);
        font-weight: 500;
        color: #475569;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.25s ease;
        white-space: nowrap;
        position: relative;
        letter-spacing: 0.01em;
    }

    .nav-link-pro:hover {
        color: #2563eb;
        background: rgba(37, 99, 235, 0.06);
    }

    .nav-link-pro.active {
        color: #2563eb;
        font-weight: 600;
    }

    .nav-link-pro.active::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 2px;
        background: linear-gradient(90deg, #2563eb, #3b82f6);
        border-radius: 2px;
    }

    .nav-link-pro svg {
        width: clamp(12px, 1vw, 16px);
        height: clamp(12px, 1vw, 16px);
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }

    .group:hover .nav-link-pro svg {
        transform: rotate(180deg);
    }

    .brand-logo img {
        height: clamp(42px, 5.3vw, 56px);
        width: auto;
        transition: height 0.3s ease;
    }
    
    /* ============================================
       MEGA DROPDOWN - SUPER PRO DESIGN
       Multi-Column Grid Layout Like Fortune 500
       ============================================ */
    
    .mega-dropdown {
        position: absolute;
        top: calc(100% + 5px);
        left: 50%;
        transform: translateX(-50%) translateY(15px) scale(0.98);
        min-width: min(560px, 92vw);
        max-width: min(92vw, 1050px);
        max-height: calc(100vh - 110px);
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border-radius: 16px;
        box-shadow: 
            0 25px 60px -15px rgba(0, 0, 0, 0.25),
            0 10px 20px -10px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(0, 0, 0, 0.05);
        padding: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 9999;
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    /* Small dropdowns (Wealth Samadhan, Privacy Policy) */
    .mega-dropdown.dropdown-sm {
        min-width: min(280px, 78vw);
    }
    
    /* Medium dropdowns (Resources) */
    .mega-dropdown.dropdown-md {
        min-width: min(520px, 88vw);
    }
    
    .mega-dropdown .dropdown-inner {
        max-width: 100%;
    }
    
    /* Dropdown Top Gradient Bar */
    .mega-dropdown::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #1e40af, #3b82f6, #06b6d4, #10b981);
        z-index: 1;
    }
    
    .group:hover .mega-dropdown {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Dropdown Inner Container */
    .dropdown-inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 1.1rem;
    }
    
    /* 3 Column Layout for Services */
    .dropdown-inner.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Single Column Layout */
    .dropdown-inner.cols-1 {
        grid-template-columns: 1fr;
    }
    
    /* Dropdown Category Header */
    .dropdown-category {
        grid-column: 1 / -1;
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.5rem;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #64748b;
        border-bottom: 1px solid #e2e8f0;
    }
    
    /* Dropdown Menu Items - Grid Cards */
    .dropdown-item {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.85rem;
        margin: 0.2rem;
        color: #1e293b;
        text-decoration: none;
        font-size: 0.82rem;
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 10px;
        background: transparent;
        border: 1px solid transparent;
        position: relative;
    }
    
    .dropdown-item:hover {
        background: linear-gradient(135deg, #eff6ff, #f0f9ff);
        border-color: #bfdbfe;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.3);
    }
    
    .dropdown-item:hover .dropdown-icon {
        transform: scale(1.1);
        box-shadow: 0 6px 20px -5px currentColor;
    }
    
    .dropdown-item:hover .item-arrow {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Item Text Container */
    .item-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .item-title {
        font-weight: 600;
        color: #1e293b;
        font-size: 0.86rem;
        transition: color 0.2s;
    }
    
    .dropdown-item:hover .item-title {
        color: #1d4ed8;
    }
    
    .item-desc {
        font-size: 0.7rem;
        font-weight: 400;
        color: #64748b;
        line-height: 1.4;
    }
    
    /* Arrow Indicator */
    .item-arrow {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateX(-8px) translateY(-50%);
        opacity: 0;
        color: #3b82f6;
        transition: all 0.3s ease;
        font-size: 0.875rem;
    }
    
    /* Dropdown Icons - Premium 3D Style */
    .dropdown-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 1.05rem;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
    }
    
    /* Colorful Icon Styles */
    .icon-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
    .icon-green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #15803d; }
    .icon-orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #c2410c; }
    .icon-pink { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #be185d; }
    .icon-purple { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4338ca; }
    .icon-teal { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0f766e; }
    .icon-red { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #b91c1c; }
    .icon-violet { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #7c3aed; }
    .icon-cyan { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #0e7490; }
    .icon-lime { background: linear-gradient(135deg, #ecfccb, #d9f99d); color: #4d7c0f; }
    .icon-yellow { background: linear-gradient(135deg, #fef9c3, #fde68a); color: #a16207; }
    
    /* Featured/Highlight Item */
    .dropdown-item.featured {
        background: linear-gradient(135deg, #1e40af, #3b82f6);
        color: white;
        border: none;
    }
    
    .dropdown-item.featured .item-title,
    .dropdown-item.featured .item-desc {
        color: white;
    }
    
    .dropdown-item.featured .dropdown-icon {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .dropdown-item.featured:hover {
        background: linear-gradient(135deg, #1e3a8a, #2563eb);
        transform: translateY(-2px);
        box-shadow: 0 12px 25px -8px rgba(37, 99, 235, 0.5);
    }
    
    /* Dropdown Footer CTA */
    .dropdown-footer {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1.1rem;
        margin-top: 0.5rem;
        background: linear-gradient(135deg, #f8fafc, #f1f5f9);
        border-top: 1px solid #e2e8f0;
    }
    
    .dropdown-footer a {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        font-weight: 600;
        color: #2563eb;
        text-decoration: none;
        transition: all 0.2s;
    }
    
    .dropdown-footer a:hover {
        color: #1d4ed8;
        gap: 0.75rem;
    }
    
    /* ============================================
       CTA BUTTONS - PREMIUM STYLING
       ============================================ */
    
    .btn-get-started {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.625rem 1.25rem;
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        color: white;
        font-weight: 600;
        font-size: 0.875rem;
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
        border: none;
        cursor: pointer;
        white-space: nowrap;
    }
    
    .btn-get-started:hover {
        background: linear-gradient(135deg, #1d4ed8, #2563eb);
        box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
        transform: translateY(-2px);
    }
    
    /* Subtle Pulse Glow Animation */
    @keyframes subtle-glow {
        0%, 100% { box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); }
        50% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5); }
    }
    
    .btn-get-started {
        animation: subtle-glow 3s ease-in-out infinite;
    }
    
    .btn-get-started:hover {
        animation: none;
    }
    
    .btn-get-started i, .btn-get-started svg {
        transition: transform 0.25s ease;
    }
    
    .btn-get-started:hover i, .btn-get-started:hover svg {
        transform: translateX(3px);
    }
    
    .btn-login-pro {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.625rem 1rem;
        background: transparent;
        color: #475569;
        font-weight: 500;
        font-size: 0.875rem;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.25s ease;
        cursor: pointer;
        white-space: nowrap;
    }
    
    .btn-login-pro:hover {
        border-color: #2563eb;
        color: #2563eb;
        background: rgba(37, 99, 235, 0.05);
    }
    
    /* Login Dropdown */
    .login-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 0.5rem;
        min-width: 200px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
        padding: 0.5rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.25s ease;
        z-index: 10000;
    }
    
    .group:hover .login-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .login-dropdown a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        color: #475569;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .login-dropdown a:hover {
        background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), transparent);
        color: #2563eb;
    }
    
    .login-dropdown a i {
        width: 20px;
        text-align: center;
        color: #64748b;
        transition: color 0.2s ease;
    }
    
    .login-dropdown a:hover i {
        color: #2563eb;
    }
    
    /* Body padding-top is now set dynamically via JavaScript
       to always match the actual rendered header height */

    @media (max-width: 1199px) {
            /* Body padding-top handled by JS below */

        .mobile-menu {
            top: var(--header-height-mobile);
        }

        .mobile-overlay {
            top: var(--header-height-mobile);
        }
    }
    
    /* Hamburger Animation */
    .hamburger-line {
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* ============================================
       GLOBAL SEARCH OVERLAY - PREMIUM DESIGN
       ============================================ */
    #search-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 10000000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: clamp(2rem, 10vh, 6rem) 1rem;
    }

    #search-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .search-modal-container {
        width: 100%;
        max-width: 800px;
        transform: translateY(30px);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    #search-overlay.active .search-modal-container {
        transform: translateY(0);
    }

    .search-input-wrapper {
        position: relative;
        margin-bottom: 2rem;
    }

    #globalSearchInput {
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 1.5rem 1.5rem 1.5rem 4rem;
        color: white;
        font-size: 1.5rem;
        font-weight: 600;
        transition: all 0.3s ease;
        outline: none;
    }

    #globalSearchInput:focus {
        background: rgba(255, 255, 255, 0.1);
        border-color: #3b82f6;
        box-shadow: 0 0 40px -10px rgba(59, 130, 246, 0.5);
    }

    .search-icon-inside {
        position: absolute;
        left: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        color: #64748b;
        font-size: 1.5rem;
    }

    #search-results-list {
        max-height: 50vh;
        overflow-y: auto;
        border-radius: 20px;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .search-result-item {
        display: flex;
        flex-direction: column;
        padding: 1.25rem;
        border-radius: 15px;
        color: #e2e8f0;
        text-decoration: none;
        transition: all 0.2s ease;
        margin-bottom: 0.5rem;
        border: 1px solid transparent;
    }

    .search-result-item:hover {
        background: rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.3);
        transform: translateX(8px);
    }

    .search-result-title {
        font-weight: 700;
        font-size: 1.1rem;
        color: white;
        margin-bottom: 0.25rem;
    }

    .search-result-desc {
        font-size: 0.85rem;
        color: #94a3b8;
        line-height: 1.4;
    }

    .search-result-category {
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #3b82f6;
        margin-bottom: 0.5rem;
    }

    .close-search-btn {
        position: absolute;
        top: 2rem;
        right: 2rem;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        font-size: 1.5rem;
    }

    .close-search-btn:hover {
        background: #ef4444;
        transform: rotate(90deg);
    }

    #search-trigger-pro {
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        color: #475569;
        transition: all 0.2s ease;
        border: 2px solid #e2e8f0;
    }

    #search-trigger-pro:hover {
        color: #2563eb;
        border-color: #2563eb;
        background: rgba(37, 99, 235, 0.05);
    }


/* ============ Header Block 2: Mobile Menu, Hamburger ============ */
    .mobile-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        z-index: 1000001;
        -webkit-overflow-scrolling: touch;
        padding: 1rem;
        visibility: hidden;
        pointer-events: none;
    }
    
    .mobile-menu.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(4px);
        z-index: 1000000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Mobile Menu Header Section */
    .mobile-menu-header {
        padding: 1rem 0.5rem;
        margin-bottom: 0.5rem;
        border-bottom: 2px solid;
        border-image: linear-gradient(90deg, #1e40af, #3b82f6, #06b6d4) 1;
    }
    
    .mobile-menu-header h3 {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #64748b;
    }
    
    /* Mobile Menu Items - Card Style */
    .mobile-menu-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        margin: 0.5rem 0;
        background: #ffffff;
        border-radius: 14px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.06);
        font-size: 1rem;
        font-weight: 600;
        color: #1e293b;
        text-decoration: none;
        transition: all 0.25s ease;
        cursor: pointer;
    }
    
    .mobile-menu-item:active {
        transform: scale(0.98);
        background: linear-gradient(135deg, #eff6ff, #f0f9ff);
        border-color: #bfdbfe;
    }
    
    .mobile-menu-item.has-dropdown svg {
        width: 20px;
        height: 20px;
        color: #94a3b8;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-item.has-dropdown.active svg {
        transform: rotate(180deg);
        color: #3b82f6;
    }
    
    /* Mobile Menu Item with Icon */
    .mobile-item-content {
        display: flex;
        align-items: center;
        gap: 0.875rem;
    }
    
    .mobile-item-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    /* Icon Colors for Mobile */
    .mobile-item-icon.icon-home { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
    .mobile-item-icon.icon-about { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #15803d; }
    .mobile-item-icon.icon-wealth { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
    .mobile-item-icon.icon-services { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #be185d; }
    .mobile-item-icon.icon-resources { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4338ca; }
    .mobile-item-icon.icon-contact { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0f766e; }
    .mobile-item-icon.icon-privacy { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #b91c1c; }
    
    .mobile-menu button {
        background: none;
        border: none;
        text-align: left;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        width: 100%;
    }
    
    .mobile-menu a {
        display: block;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        z-index: 10;
    }

    /* Hamburger Animation */
    .hamburger-line {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }

    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .mobile-dropdown {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: #f8fafc;
        margin: 0 0.5rem;
        border-radius: 0 0 14px 14px;
    }

    .mobile-dropdown.active {
        max-height: 1000px;
        padding-bottom: 0.5rem;
        border: 1px solid #e2e8f0;
        border-top: none;
    }

    .mobile-dropdown-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.875rem 1.25rem;
        color: #475569;
        font-size: 0.9375rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .mobile-dropdown-item:active {
        background: #f1f5f9;
        color: #1e40af;
    }

    .dropdown-icon {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 0.875rem;
    }

    .dropdown-icon.icon-blue { background: #eff6ff; color: #3b82f6; }
    .dropdown-icon.icon-green { background: #f0fdf4; color: #22c55e; }
    .dropdown-icon.icon-orange { background: #fff7ed; color: #f97316; }
    .dropdown-icon.icon-pink { background: #fdf2f8; color: #ec4899; }
    .dropdown-icon.icon-purple { background: #faf5ff; color: #a855f7; }
    .dropdown-icon.icon-teal { background: #f0fdfa; color: #14b8a6; }
    
    /* Mobile Overlay - Darker with blur */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1000000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Dropdown Animations */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Mobile Accordion - Premium Dropdown */
    .mobile-dropdown {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        background: linear-gradient(135deg, #f8fafc, #f1f5f9);
        border-radius: 0 0 14px 14px;
        margin-top: -0.5rem;
    }
    
    .mobile-dropdown.active {
        max-height: 1000px;
        overflow: visible;
        padding: 0.75rem 0;
        border: 1px solid #e2e8f0;
        border-top: none;
    }
    
    /* Mobile Dropdown Items - Premium Cards */
    .mobile-dropdown-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
        margin: 0.25rem 0.5rem;
        background: white;
        border-radius: 10px;
        color: #334155;
        font-size: 0.9rem;
        font-weight: 500;
        text-decoration: none;
        border: 1px solid transparent;
        transition: all 0.2s ease;
    }
    
    .mobile-dropdown-item:active {
        background: linear-gradient(135deg, #eff6ff, #f0f9ff);
        border-color: #bfdbfe;
        transform: scale(0.98);
    }
    
    .mobile-dropdown-item .dropdown-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    /* Mobile CTA Buttons - Scrolls with content */
    .mobile-cta-section {
        padding: 1.5rem 0.5rem;
        margin-top: 1.5rem;
        border-top: 1px solid #e2e8f0;
    }
    
    .mobile-btn-login {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 1rem;
        margin-bottom: 0.75rem;
        background: #ffffff;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        color: #334155;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .mobile-btn-login:active {
        background: #f1f5f9;
        border-color: #cbd5e1;
    }
    
    .mobile-btn-signup {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 1rem;
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        color: white;
        text-decoration: none;
        box-shadow: 0 4px 15px -3px rgba(37, 99, 235, 0.4);
        transition: all 0.2s ease;
    }
    
    .mobile-btn-signup:active {
        transform: scale(0.98);
        box-shadow: 0 2px 10px -2px rgba(37, 99, 235, 0.5);
    }
    
    .nav-desktop,
    .header-actions {
        display: none;
    }

    .nav-mobile {
        display: flex;
    }

    @media (min-width: 1200px) {
        .nav-desktop,
        .header-actions {
            display: flex;
        }

        .nav-mobile {
            display: none;
        }

        .mobile-menu,
        .mobile-overlay {
            display: none !important;
        }
    }
    
    @media (max-width: 1199px) {
        .mobile-menu button,
        .mobile-menu a {
            min-height: 44px; /* iOS recommended touch target size */
            display: flex;
            align-items: center;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
        }
        
        .mobile-menu .mobile-dropdown a {
            padding-left: 32px;
        }
        
        /* Ensure header is always on top */
        #main-header {
            position: fixed !important;
            z-index: 999999 !important;
            height: var(--header-height-mobile);
        }
        
        /* Ensure hamburger is clickable */
        .hamburger {
            cursor: pointer !important;
            touch-action: manipulation;
        }
        
        /* Ensure mobile menu displays properly */
        .mobile-menu {
            display: block !important;
        }
        
        .mobile-overlay {
            display: block !important;
        }
    }

    /* ============================================
       RESPONSIVE HEADER - Medium Desktops (1200-1535px)
       Applies at 150% scale on 1080p, or smaller laptops
       ============================================ */
    @media (min-width: 1200px) and (max-width: 1535px) {
        #main-header {
            height: 72px;
        }

        #main-header .container > div {
            gap: clamp(0.3rem, 0.8vw, 0.75rem);
        }

        .brand-logo img {
            height: clamp(36px, 3.5vw, 46px);
        }

        .nav-desktop {
            gap: clamp(0px, 0.3vw, 4px) !important;
        }

        .nav-link-pro {
            padding: clamp(6px, 0.5vw, 8px) clamp(6px, 0.6vw, 10px);
            font-size: clamp(0.7rem, 0.72vw, 0.82rem);
            gap: 3px;
        }

        .nav-link-pro svg {
            width: 13px;
            height: 13px;
        }

        .header-actions {
            gap: clamp(0.25rem, 0.5vw, 0.5rem);
        }

        .btn-login-pro {
            padding: 0.45rem 0.65rem;
            font-size: clamp(0.7rem, 0.72vw, 0.8rem);
            border-width: 1px;
        }

        .btn-lang-toggle {
            padding: 0.45rem 0.6rem;
            font-size: clamp(0.68rem, 0.7vw, 0.78rem);
        }

        .btn-get-started {
            padding: 0.45rem 0.65rem;
            font-size: clamp(0.68rem, 0.7vw, 0.78rem);
            gap: 0.3rem;
        }
        
        .mega-dropdown {
            min-width: min(640px, 88vw);
            max-width: 88vw;
        }
        
        .mega-dropdown.dropdown-md {
            min-width: min(500px, 80vw);
        }
        
        .mega-dropdown.dropdown-sm {
            min-width: min(280px, 55vw);
        }
        
        .dropdown-inner {
            padding: 1rem;
        }
        
        .dropdown-item {
            padding: 0.75rem;
            font-size: 0.82rem;
        }
    }

    /* ============================================
       RESPONSIVE HEADER - Large Desktops (1536px+)
       Applies at 100% scale on 1080p and larger monitors
       ============================================ */
    @media (min-width: 1536px) {
        #main-header {
            height: 80px;
        }

        #main-header .container > div {
            gap: clamp(0.75rem, 1.2vw, 2rem);
        }

        .brand-logo img {
            height: clamp(44px, 3.2vw, 56px);
        }

        .nav-desktop {
            gap: clamp(2px, 0.4vw, 8px) !important;
        }

        .nav-link-pro {
            padding: 8px clamp(10px, 0.9vw, 20px);
            font-size: clamp(0.82rem, 0.78vw, 0.95rem);
            gap: 5px;
        }

        .nav-link-pro svg {
            width: 15px;
            height: 15px;
        }

        .header-actions {
            gap: clamp(0.4rem, 0.7vw, 0.75rem);
        }

        .btn-login-pro {
            padding: 0.55rem 0.9rem;
            font-size: 0.85rem;
        }

        .btn-get-started {
            padding: 0.55rem 1rem;
            font-size: 0.85rem;
            gap: 0.4rem;
        }

        .btn-lang-toggle {
            padding: 0.55rem 0.85rem;
            font-size: 0.82rem;
        }
    }

    /* ============================================
       RESPONSIVE HEADER - Ultra-wide (1920px+)
       For very large monitors or 4K displays
       ============================================ */
    @media (min-width: 1920px) {
        #main-header {
            height: 84px;
        }

        .nav-link-pro {
            padding: 10px 18px;
            font-size: 0.92rem;
            gap: 6px;
        }

        .nav-link-pro svg {
            width: 16px;
            height: 16px;
        }

        .btn-login-pro {
            padding: 0.625rem 1rem;
            font-size: 0.875rem;
        }

        .btn-get-started {
            padding: 0.625rem 1.25rem;
            font-size: 0.875rem;
        }
    }
    /* Dark Mode Overrides */
    .dark #main-header {
        background: rgba(15, 23, 42, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
    
    .dark .nav-link-pro {
        color: #e2e8f0;
    }
    
    .dark .nav-link-pro:hover {
        color: #60a5fa;
        background: rgba(59, 130, 246, 0.1);
    }
    
    .dark .mega-dropdown {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
        box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
    }
    
    .dark .dropdown-category {
        border-bottom-color: #334155;
        color: #94a3b8;
    }
    
    .dark .dropdown-item {
        color: #f1f5f9;
        border-color: transparent;
    }
    
    .dark .dropdown-item:hover {
        background: rgba(59, 130, 246, 0.1);
        border-color: #3b82f6;
    }
    
    .dark .item-title {
        color: #f1f5f9;
    }
    
    .dark .item-desc {
        color: #94a3b8;
    }
    
    .dark .dropdown-footer {
        background: #0f172a;
        border-top-color: #334155;
    }
    
    /* Mobile Menu Dark Mode */
    .dark .mobile-menu {
        background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    }
    
    .dark .mobile-menu-header {
        border-bottom-color: #3b82f6;
    }
    
    .dark .mobile-menu-header h3 {
        color: #94a3b8;
    }
    
    .dark .mobile-menu-item {
        background: #1e293b;
        border-color: #334155;
        color: #f1f5f9;
        border: 1px solid #334155;
    }
    
    .dark .mobile-menu-item:active {
        background: #334155;
    }
    
    .dark .mobile-dropdown {
        background: #0f172a;
    }
    
    .dark .mobile-dropdown-item {
        background: #1e293b;
        color: #cbd5e1;
    }
    
    /* Logo Inversion in Header */
    .dark #main-header img {
        filter: brightness(0) invert(1);
    }
    
    /* Hamburger Icon */
    .dark .hamburger-line {
        background-color: #f1f5f9;
    }
    
    /* ============================================
       LANGUAGE TOGGLE STYLES
       ============================================ */
    /* Hide Google Translate Toolbar */
    .goog-te-banner-frame {
        display: none !important;
    }
    body {
        top: 0px !important;
    }
    /* Hide Google Tooltip */
    .goog-tooltip {
        display: none !important;
    }
    .goog-tooltip:hover {
        display: none !important;
    }
    .goog-text-highlight {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    /* Hide the google translate element itself */
    #google_translate_element {
        display: none;
    }
    
    /* Language Button */
    .btn-lang-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 600;
        color: #1e293b;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }
    
    .btn-lang-toggle:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
        color: #2563eb;
    }
    
    .btn-lang-toggle span.hi {
        font-family: 'Poppins', sans-serif;
    }
    /* Dark Mode Overrides */
    .dark #main-header {
        background: rgba(15, 23, 42, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
    
    .dark .nav-link-pro {
        color: #e2e8f0;
    }
    
    .dark .nav-link-pro:hover {
        color: #60a5fa;
        background: rgba(59, 130, 246, 0.1);
    }
    
    .dark .mega-dropdown {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
        box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
    }
    
    .dark .dropdown-category {
        border-bottom-color: #334155;
        color: #94a3b8;
    }
    
    .dark .dropdown-item {
        color: #f1f5f9;
        border-color: transparent;
    }
    
    .dark .dropdown-item:hover {
        background: rgba(59, 130, 246, 0.1);
        border-color: #3b82f6;
    }
    
    .dark .item-title {
        color: #f1f5f9;
    }
    
    .dark .item-desc {
        color: #94a3b8;
    }
    
    .dark .dropdown-footer {
        background: #0f172a;
        border-top-color: #334155;
    }
    
    /* Mobile Menu Dark Mode */
    .dark .mobile-menu {
        background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    }
    
    .dark .mobile-menu-header {
        border-bottom-color: #3b82f6;
    }
    
    .dark .mobile-menu-header h3 {
        color: #94a3b8;
    }
    
    .dark .mobile-menu-item {
        background: #1e293b;
        border-color: #334155;
        color: #f1f5f9;
        border: 1px solid #334155;
    }
    
    .dark .mobile-menu-item:active {
        background: #334155;
    }
    
    .dark .mobile-dropdown {
        background: #0f172a;
    }
    
    .dark .mobile-dropdown-item {
        background: #1e293b;
        color: #cbd5e1;
    }
    
    /* Logo Inversion in Header */
    .dark #main-header img {
        filter: brightness(0) invert(1);
    }
    
    /* Hamburger Icon */
    .dark .hamburger-line {
        background-color: #f1f5f9;
    }
    
    /* ============================================
       LANGUAGE TOGGLE STYLES
       ============================================ */
    /* Hide Google Translate Toolbar */
    .goog-te-banner-frame {
        display: none !important;
    }
    body {
        top: 0px !important;
    }
    /* Hide Google Tooltip */
    .goog-tooltip {
        display: none !important;
    }
    .goog-tooltip:hover {
        display: none !important;
    }
    .goog-text-highlight {
        background-color: transparent !important;
        border: none !important; 
        box-shadow: none !important;
    }
    /* Hide the google translate element itself */
    #google_translate_element {
        display: none;
    }
    
    /* Language Button */
    .btn-lang-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 600;
        color: #1e293b;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }
    
    .btn-lang-toggle:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
        color: #2563eb;
    }
    
    .btn-lang-toggle span.hi {
        font-family: 'Poppins', sans-serif; /* Good for Hindi */
    }

/* ============ Header Block 3: Contact Dock ============ */
  .contact-dock {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  @media (min-width: 1400px) {
    .contact-dock { display: flex; }
  }
  .contact-dock.dock-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
  }
  .contact-dock a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    backdrop-filter: blur(6px);
  }
  .contact-dock a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    filter: saturate(1.15);
  }
  .dock-call { background: linear-gradient(135deg,#16a34a,#22c55e); }
  .dock-whatsapp { background: linear-gradient(135deg,#0f766e,#14b8a6); }
  .dock-email { background: linear-gradient(135deg,#2563eb,#3b82f6); }
