::selection {
            background-color: #1152df;
            color: white;
        }
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.5);
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(17, 82, 223, 0.5);
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #1152df;
        }

        /* Apple Glassmorphism Classes */
        .glass-nav {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.5);
        }
        
        .apple-glass-card {
            background: rgba(255, 255, 255, 0.65);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.8);
            box-shadow: 0 8px 32px rgba(17, 82, 223, 0.04);
        }

        .glass-btn-primary {
            background: rgba(17, 82, 223, 0.85);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.4);
            box-shadow: 0 4px 24px -4px rgba(17, 82, 223, 0.5);
            color: white;
        }
        .glass-btn-primary:hover {
            background: rgba(17, 82, 223, 1);
            transform: translateY(-2px);
            box-shadow: 0 8px 32px -4px rgba(17, 82, 223, 0.6);
        }

        .glass-btn-secondary {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.9);
            box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.05);
            color: #1152df;
        }
        .glass-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.95);
            transform: translateY(-2px);
            box-shadow: 0 8px 32px -4px rgba(17, 82, 223, 0.1);
        }

        .text-gradient {
            background: linear-gradient(135deg, #1152df, #5ac8fa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        html, body {
            max-width: 100vw;
            overflow-x: hidden !important;
            margin: 0;
            padding: 0;
            width: 100%;
        }
#scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            background: linear-gradient(90deg, #1152df, #5ac8fa);
            z-index: 99999;
            width: 0%;
            transition: width 0.1s ease;
        }


        @keyframes spin { 100% { transform: rotate(360deg); } }
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }
        .animate-float { animation: float 5s ease-in-out infinite; }
        .animate-float-delayed { animation: float 6s ease-in-out infinite 1s; }
        
        .typing-cursor::after {
            content: '|';
            animation: blink 1s step-end infinite;
        }
        @keyframes blink { 50% { opacity: 0; } }

        @keyframes marquee { 100% { transform: translateX(-50%); } }
        .animate-marquee { display: flex; width: max-content; animation: marquee 30s linear infinite; }
        .animate-marquee:hover { animation-play-state: paused; }
        
        .client-logo {
            display: flex; align-items: center; gap: 0.75rem; padding: 0 2rem;
            filter: grayscale(100%); opacity: 0.6; transition: all 0.3s ease; cursor: pointer;
        }
        .client-logo:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

        .process-line::before {
            content: ''; position: absolute; top: 50%; left: 50px; right: 50px;
            height: 2px; background: rgba(17, 82, 223, 0.1); z-index: 0;
        }
        @media (max-width: 1024px) {
            .process-line::before { top: 0; bottom: 0; left: 24px; width: 2px; height: 100%; right: auto; }
        }
        
        .reviews-container { scroll-snap-type: x mandatory; scrollbar-width: none; }
        .reviews-container::-webkit-scrollbar { display: none; }
        .review-card { scroll-snap-align: center; }
    
        /* Mexa Motion brand wordmark — Nexa */
        .mexa-wordmark {
            font-family: 'Nexa', 'Nexa Bold', 'Nexa Light', sans-serif !important;
            font-weight: 700;
            letter-spacing: 0;
            text-transform: uppercase;
            white-space: nowrap;
        }

        /* Mexa Motion brand typography */
        @font-face {
            font-family: 'Nexa';
            src: local('Nexa Extra Light'), local('Nexa');
            font-weight: 200;
            font-style: normal;
            font-display: swap;
        }
        .font-nexa-extralight {
            font-family: 'Nexa', Arial, sans-serif !important;
            font-weight: 200 !important;
        }


        /* Responsive, lightweight Mexa Motion navigation */
        .nav-shell { transition: box-shadow .2s ease, background-color .2s ease; }
        .nav-shell.nav-scrolled { box-shadow: 0 12px 34px rgba(10,49,133,.13); background: rgba(255,255,255,.96); }
        .brand-banner { background: transparent; box-shadow: none; }
        .header-banner-link { position: relative; display: flex; flex: 0 0 auto; align-items: center; width: clamp(150px, 15vw, 190px); height: 58px; overflow: hidden; border-radius: 11px; isolation: isolate; animation: bannerSwipeIn .65s cubic-bezier(.2,.8,.2,1) both; }
        .header-banner-image { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
        .header-banner-link::after { content: ''; position: absolute; inset: -20% auto -20% -55%; width: 35%; transform: skewX(-22deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent); animation: bannerShine 4.8s ease-in-out 1s infinite; pointer-events: none; }
        @keyframes bannerSwipeIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
        @keyframes bannerShine { 0%, 72%, 100% { left: -55%; } 86% { left: 125%; } }
        @media (max-width: 639px) { .header-banner-link { width: 145px; height: 46px; border-radius: 9px; } }
        .nav-link { position: relative; display: inline-flex; align-items: center; padding: .72rem .68rem; border-radius: 999px; color: #334155; font-size: .88rem; font-weight: 600; white-space: nowrap; transition: color .18s ease, background-color .18s ease; }
        .nav-link:hover, .nav-link.active-link { color: #1152df; background: #eff5ff; }
        .mobile-link { display: flex; align-items: center; padding: .9rem 1rem; border-radius: .9rem; color: #17366f; font-size: 1.05rem; font-weight: 600; transition: background-color .18s ease, color .18s ease; }
        .mobile-link:hover { color: #1152df; background: #eff5ff; }
        @media (min-width: 1280px) and (max-width: 1399px) { .nav-link { padding-left: .48rem; padding-right: .48rem; font-size: .82rem; } }
        @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }


/* Mobile anchor navigation: account for the fixed header and bring section headings into view. */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}
#team {
    scroll-margin-top: 76px;
}
@media (max-width: 767px) {
    #team {
        scroll-margin-top: 76px;
        padding-top: 1.25rem !important;
    }
    #team > .container > div:first-child {
        margin-bottom: 2.5rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
