:root {
  --bw-bg: #000000;
  --bw-surface: #0A0A0A;
  --bw-surface-2: #111111;
  --bw-text: #FFFFFF;
  --bw-text-muted: rgba(255,255,255,0.78);
  --bw-text-faint: rgba(255,255,255,0.58);
  --bw-border: rgba(255,255,255,0.12);
  --bw-border-strong: rgba(255,255,255,0.28);
  --bw-input: #0D0D0D;
}
/* Global Design Tokens & Shared Styles */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* B&W Theme: Selection colors */
::selection {
    background-color: var(--bw-text);
    color: var(--bw-text);
}

/* Premium gradient mesh background */
.mesh-bg {
    background:
        radial-gradient(at 12% 8%, rgba(0, 0, 0, 0.05) 0px, transparent 50%),
        radial-gradient(at 85% 14%, rgba(0, 0, 0, 0.03) 0px, transparent 50%),
        radial-gradient(at 60% 90%, rgba(0, 0, 0, 0.02) 0px, transparent 50%),
        radial-gradient(at 0% 95%, rgba(0, 0, 0, 0.02) 0px, transparent 50%);
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: none;
}

/* Animated gradient mesh (Treatment A) */
.animated-mesh-bg {
    position: relative;
    overflow: hidden;
}
.animated-mesh-bg::before,
.animated-mesh-bg::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: none;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}
.animated-mesh-bg::before {
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    top: -10%;
    left: -10%;
    animation: drift-before 25s infinite alternate ease-in-out;
}
.animated-mesh-bg::after {
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent);
    bottom: -10%;
    right: -10%;
    animation: drift-after 30s infinite alternate ease-in-out;
}
@keyframes drift-before {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(120px, 60px) scale(1.15); }
    100% { transform: translate(-40px, 100px) scale(0.9); }
}
@keyframes drift-after {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-100px, -40px) scale(0.85); }
    100% { transform: translate(60px, -80px) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
    .animated-mesh-bg::before,
    .animated-mesh-bg::after {
        animation: none !important;
    }
}

.grid-pattern {
    background-image:
        linear-gradient(rgba(2, 6, 23, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 6, 23, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: -1px -1px;
}

.glass {
    background: rgba(10, 10, 10, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(2, 6, 23, 0.04);
}

.glass-strong {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid var(--bw-border);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.06);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Soft glow */
.glow-blue {
    box-shadow: 0 20px 80px -20px rgba(0, 0, 0, 0.3);
}

/* Magnetic CTA Buttons & General Magnetic */
.btn-magnetic {
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.btn-primary {
    background: var(--bw-bg);
    color: var(--bw-text);
    padding: 16px 28px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: transform 200ms cubic-bezier(.2,.8,.2,1), background 200ms, box-shadow 200ms;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: #E5E5E5;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: var(--bw-bg);
    color: var(--bw-text);
    padding: 16px 28px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid var(--bw-border);
    cursor: pointer;
    transition: all 200ms cubic-bezier(.2,.8,.2,1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-secondary:hover {
    border-color: var(--bw-text);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

/* ── CTA Button alignment fixes ──────────────────────── */
.btn-primary,
.btn-secondary,
.btn-magnetic,
.spatial-glow-btn,
.btn-get-started {
    white-space: nowrap;
    line-height: 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
}
.btn-primary svg, .btn-secondary svg, .btn-magnetic svg, .spatial-glow-btn svg, .btn-get-started svg,
.btn-primary img, .btn-secondary img, .btn-magnetic img, .spatial-glow-btn img, .btn-get-started img {
    flex-shrink: 0;
}
.btn-primary span, .btn-secondary span, .btn-magnetic span, .spatial-glow-btn span, .btn-get-started span {
    display: inline-block;
    line-height: 1;
}

/* ── Force flex centering on spatial-glow-btn ─────────── */
.spatial-glow-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.overline-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--bw-text-muted);
}

/* ===== SCROLL REVEAL ANIMATION SYSTEM ===== */
/* Content is VISIBLE by default (no invisible gaps). JS will trigger animations. */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.animate-in {
    opacity: 0;
    transform: translateY(24px);
}
.reveal.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.animate-in {
    opacity: 0;
    transform: translateX(-35px);
}
.reveal-left.animate-in.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.animate-in {
    opacity: 0;
    transform: translateX(35px);
}
.reveal-right.animate-in.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.animate-in {
    opacity: 0;
    transform: scale(0.93);
}
.reveal-scale.animate-in.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-rotate {
    opacity: 1;
    transform: rotate(0) translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-rotate.animate-in {
    opacity: 0;
    transform: rotate(-3deg) translateY(24px);
}
.reveal-rotate.animate-in.visible {
    opacity: 1;
    transform: rotate(0) translateY(0);
}

.reveal-blur {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-blur.animate-in {
    opacity: 0;
    transform: translateY(16px);
}
.reveal-blur.animate-in.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* ===== STAT COUNTER STYLES ===== */
.stat-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.08);
}

/* Force stat counter numbers pure white in Why Brands Choose Us and Trust sections */
#why-choose-us .stat-card .font-display .counter,
#why-choose-us .stat-card .font-display .text-white,
#trust .glass-strong .font-display .counter {
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
    filter: none;
    opacity: 1;
}

/* Force stat values pure white in Why Choose Us section */
.section-why-choose .stat-card .font-display,
.section-why-choose .glass-strong .font-display {
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
}
.section-why-choose .stat-card .font-display .counter {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    filter: none;
    opacity: 1;
    background: none;
    background-image: none;
    text-shadow: none;
}

/* ── Global stat-value force white ────────────────────── */
.stat-value {
    color: #FFFFFF !important;
    opacity: 1 !important;
    filter: none !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    text-shadow: none !important;
}

/* Capability feature grid items */
.capability-item {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.capability-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}



/* Stagger cards grid delay helper */
.reveal-stagger > *:nth-child(1) { transition-delay: 50ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 150ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 200ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 250ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 300ms; }
.reveal-stagger > *:nth-child(7) { transition-delay: 350ms; }
.reveal-stagger > *:nth-child(8) { transition-delay: 400ms; }
.reveal-stagger > *:nth-child(9) { transition-delay: 450ms; }
.reveal-stagger > *:nth-child(10) { transition-delay: 500ms; }

/* Float animations for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}
.floaty {
    animation: float 6s ease-in-out infinite;
}
.floaty-slow {
    animation: float-slow 7s ease-in-out infinite;
}

/* Card tilt and hover settings */
.tilt-card {
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Endless Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.animate-marquee:hover {
    animation-play-state: paused;
}
.marquee-mask {
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

/* Cursor spotlight overlay style */
.spotlight-card {
    position: relative;
    overflow: hidden;
}
.spotlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(0, 0, 0, 0.04), transparent 75%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.spotlight-card:hover::before {
    opacity: 1;
}

/* Hover card micro-interaction (site-wide) — only applies to cards without pre-existing hover styles */
.hover-card:not([class*="hover:-translate-y-"]):not([class*="hover:scale-"]) {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}
.hover-card:not([class*="hover:-translate-y-"]):not([class*="hover:scale-"]):hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.08);
}

/* Floating decorative gradient blobs for hero/CTA */
.floating-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.5;
    will-change: transform;
}

@keyframes blob-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}
.floating-blob-1 { animation: blob-pulse 8s infinite alternate ease-in-out; }
.floating-blob-2 { animation: blob-pulse 10s infinite alternate-reverse ease-in-out; }
.floating-blob-3 { animation: blob-pulse 7s infinite alternate ease-in-out; }

/* Conic border gradient animation */
.conic-border-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    z-index: 0;
    overflow: hidden;
    border: 1px solid var(--bw-border);
}
.conic-border-card::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 50% 50%, 50% 50%;
    background-position: 0 0, 100% 0, 100% 100%, 0 100%;
    background-image: conic-gradient(from 0deg at 50% 50%, transparent 40%, #000000 70%, transparent 100%);
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.conic-border-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 1px;
    top: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    background: white;
    border-radius: 23px;
}
.conic-border-card:hover::before {
    opacity: 1;
}

@keyframes rotate-border {
    100% { transform: rotate(360deg); }
}

/* Animated Floating Blobs */
@keyframes float-blob {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.15); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}
.animate-blob-1 {
    animation: float-blob 22s infinite alternate ease-in-out;
}
.animate-blob-2 {
    animation: float-blob 28s infinite alternate-reverse ease-in-out;
}
.animate-blob-3 {
    animation: float-blob 24s infinite alternate ease-in-out;
}

/* Toggle switches */
.toggle-active {
    background-color: #020617;
    color: var(--bw-text);
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.12);
}

/* Grayscale to color marquee transition */
.marquee-logo {
    /* filter removed to protect logos */
    opacity: 0.5;
    transition: all 0.3s ease;
}
.marquee-logo:hover {
    /* filter removed */
    opacity: 1;
    transform: scale(1.08);
}

/* Magnetic button ripples styles */
.btn-ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}
@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Navigation Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
    /* Extend hover area downward to bridge gap to dropdown */
    padding-bottom: 8px;
    margin-bottom: -8px;
}
.nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 0px); /* NO gap — sits right below the trigger */
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 280px;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 10px 40px rgba(2, 6, 23, 0.10);
    border-radius: 20px;
    padding: 12px;
    z-index: 10000;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.22s;
}
/* Invisible bridge — ensures cursor moving from button → dropdown never leaves hover zone */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    width: 100%;
    height: 16px;
    background: transparent;
}
/* Show dropdown on hover of EITHER the trigger OR the dropdown itself — pure CSS, no JS */
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0px);
}

/* Nav links — NO magnet/transform effect, color only */
#navbar nav a,
#navbar nav .nav-dropdown > a {
    transform: none !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366 !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background-color: #20ba5a !important;
}
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 16px !important;
        right: 16px !important;
        width: 52px !important;
        height: 52px !important;
    }
    .whatsapp-float svg {
        width: 22px !important;
        height: 22px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float { transition: none !important; }
    .whatsapp-float:hover { transform: none !important; }
}

/* Navbar Scroll State */
.navbar-scrolled #nav-wrapper {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 24px rgba(2, 6, 23, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    color: #1e293b !important;
}

/* ─── NAVBAR: Fixed position, hidden by default, slides in via .nav-visible ─── */
#navbar {
    transform: translateY(-120%);
    transition: transform 0.45s ease;
}
#navbar.nav-visible {
    transform: translateY(0);
}

/* ─── NAV WRAPPER PILL ─── */
#nav-wrapper {
    height: 60px;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 32px rgba(2, 6, 23, 0.08);
    border-radius: 9999px;
    padding: 0 28px;
    color: #1e293b !important;
}

/* ── FORCE HERO CTA BUTTON TEXT & ELEMENTS VISIBLE ── */
.btn-primary,
.btn-primary:hover,
.btn-secondary,
.btn-secondary:hover {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}
/* Override about.html animation classes that set opacity:0 with no JS to animate them */
.hero-h1-anim,
.hero-p-anim,
.hero-cta-anim,
.hero-stat-anim {
    opacity: 1 !important;
    transform: none !important;
}

/* ── FORCE ALL NAV LINKS TO PURE BLACK ── */
/* Overrides per-page #desktop-nav a { color: #475569 } and mobile inline color:#1e293b */
#desktop-nav a,
#desktop-nav a:hover,
.nav-dropdown-menu a,
.nav-dropdown-menu a:hover {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

/* ── DROPDOWN MENU ITEMS ── */
.nav-dropdown-menu a {
    display: block !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: -0.005em !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}
.nav-dropdown-menu a:hover {
    transform: translateX(2px) !important;
    background-color: #F5F5F5 !important;
}
.nav-dropdown-menu a.active-service {
    font-weight: 700 !important;
    background-color: #F8F8F8 !important;
}

/* ── MOBILE SUBMENU ITEMS ── */
#mobile-services-submenu a {
    font-weight: 500 !important;
    letter-spacing: -0.005em !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    -webkit-text-fill-color: #111111 !important;
    color: #111111 !important;
}
/* Mobile menu nav links (excludes the "Get Started" button) */
#mobile-menu a:not([href*="audit"]),
#mobile-menu a:not([href*="audit"]):hover {
    color: #000000 !important;
}

/* ===== PREMIUM BACKGROUND INTEGRATION ===== */
/* Make existing solid backgrounds slightly translucent to reveal the animated Three.js canvas */
body.bg-white, main.bg-white, section.bg-white {
    background-color: var(--bw-bg) !important;
}

/* For slate-50 sections */
.bg-slate-50\/40, .bg-slate-50\/50, section.bg-slate-50 {
    background-color: var(--bw-surface) !important;
}

/* For dark footer */
footer.bg-slate-950, .bg-slate-950 {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

/* B&W Theme: Selection colors */
::selection {
    background-color: var(--bw-text);
    color: var(--bw-text);
}

/* ── Hero section responsive fixes ── */
@media (max-width: 768px) {
    section.pt-36.md\:pt-44 {
        padding-top: 100px !important;
    }
    .hero-gradient-bg section:first-of-type,
    section.hero-gradient-bg {
        padding-top: 100px !important;
        padding-bottom: 48px !important;
    }
    .mesh-bg section:first-of-type,
    section.mesh-bg {
        padding-top: 100px !important;
    }
    /* Hero heading text wrapping fix */
    .text-reveal,
    h1.font-display {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    /* Fix hero CTA buttons on mobile - don't force full width */
    .mesh-bg .btn-primary,
    .mesh-bg .btn-secondary,
    .hero-gradient-bg .btn-primary,
    .hero-gradient-bg .btn-secondary {
        width: auto !important;
        padding: 12px 20px !important;
        font-size: 13px !important;
    }
    /* Hero description text */
    .max-w-2xl.text-lg.md\:text-xl {
        font-size: 15px !important;
    }
    /* Hero stat cards row */
    .hero-stat-anim {
        padding: 12px !important;
    }
}

@media (max-width: 480px) {
    section.pt-36.md\:pt-44,
    section.mesh-bg,
    section.hero-gradient-bg {
        padding-top: 80px !important;
    }
}

/* ── Custom Section Spacing ── */
.section-spacing {
    padding-top: 1cm !important;
    padding-bottom: 1cm !important;
}

/* ===== PREMIUM HERO SECTION ENHANCEMENTS ===== */
.glow-pulse-text {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #000000, #333333, #666666, #000000);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 5s linear infinite, textGlowPulse 4s ease-in-out infinite alternate;
    will-change: filter, background-position;
}

@keyframes textShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes textGlowPulse {
    0% { filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.1)); }
    100% { filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3)); }
}

#hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--hero-mouse-x, 50%) var(--hero-mouse-y, 50%), rgba(0, 0, 0, 0.03), transparent 80%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#hero-section.mouse-active::before {
    opacity: 1;
}

/* Blur-to-sharp animation word style */
.reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    will-change: transform, opacity, filter;
}

/* ============================================================
   PREMIUM SAAS ENHANCEMENTS
   All additive. Each block is independently removable.
   ============================================================ */

/* ============================================================
   1. SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 100;          /* sits above the sticky navbar */
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, #000000 0%, #333333 50%, #000000 100%);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
    #scroll-progress { display: none; }
    .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-rotate, .reveal-blur {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    .reveal-stagger > * { transition-delay: 0ms !important; }
    .shine-sweep::before { animation: none !important; display: none !important; }
    .conic-border-card::before { animation: none !important; }
    [class*="hover:scale-"]:hover { transform: none !important; }
    /* Disable marquee animations */
    .animate-marquee,
    .client-logo-marquee .cl-marquee-track,
    .cl-marquee-track,
    .trust-marquee__track {
        animation: none !important;
    }
}



/* ============================================================
   4. PREMIUM CARD POLISH
   ============================================================ */
/* Animated gradient border glow on hover (works on existing white cards) */
.premium-card-glow {
    position: relative;
    isolation: isolate;
}
.premium-card-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(130deg, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.0));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}
.premium-card-glow:hover::after {
    opacity: 1;
}

/* Continuous "shine sweep" — used sparingly on hero CTA tiles */
.shine-sweep {
    position: relative;
    overflow: hidden;
}
.shine-sweep::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
    transform: skewX(-18deg);
    pointer-events: none;
    z-index: 2;
}
.shine-sweep:hover::before {
    animation: shineSweep 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes shineSweep {
    0%   { left: -120%; }
    100% { left: 130%; }
}

/* ============================================================
   5. INFINITE TRUST MARQUEE (reuses .animate-marquee / .marquee-mask)
   ============================================================ */
.trust-marquee {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
            mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    user-select: none;
}
.trust-marquee__track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    flex-shrink: 0;
    padding-right: 3.5rem; /* match gap so the loop seam is even */
}
.trust-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--bw-text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}
.trust-marquee__item:hover {
    opacity: 1;
    color: var(--bw-text);
}
.trust-marquee__item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.trust-marquee__item img {
    height: 28px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    flex-shrink: 0;
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.trust-marquee__item:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* Client logo marquee cards */
#client-logo-marquee-wrap {
    width: 100%;
    box-sizing: border-box;
    /* Prevent horizontal scroll — section already has overflow:hidden */
}
.client-logo-marquee {
    overflow: hidden;
    user-select: none;
    width: 100%;
}
/* Track holds both duplicated sets — width:max-content ensures -50% = one set exactly */
.client-logo-marquee .cl-marquee-track {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: max-content;
    flex-shrink: 0;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.client-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 130px;
    background: transparent !important;
    border: none !important;
    border-radius: 12px;
    padding: 28px;
    flex-shrink: 0;
    box-sizing: border-box;
    box-shadow: none !important;
    transition: transform 0.3s ease;
}
.client-logo-card:hover {
    transform: translateY(-2px);
    box-shadow: none !important;
}
.client-logo-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    filter: none;
    transition: opacity 0.3s ease;
    will-change: filter, transform;
}
.client-logo-card:hover img {
    opacity: 1;
    filter: none;
}
.client-logo-card .client-name-fallback {
    color: #333333;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.02em;
    line-height: 1.3;
    display: none;
}
.client-logo-card img[data-failed="true"] {
    display: none;
}
.client-logo-card img[data-failed="true"] + .client-name-fallback {
    display: block;
}

/* ── Seamless marquee animation ────────────────────────── */
/* .cl-marquee-track contains two identical sets of logos.
   width:max-content makes translate3d(-50%,0,0) = exactly one set,
   producing an infinite seamless loop with zero empty space.
   translate3d forces GPU compositing at 60fps. */
@keyframes clientScrollLeft {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
@keyframes clientScrollRight {
    0%   { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}
.client-logo-marquee .cl-marquee-track.animate-clientScrollLeft {
    animation: clientScrollLeft 40s linear infinite;
}
.client-logo-marquee .cl-marquee-track.animate-clientScrollRight {
    animation: clientScrollRight 40s linear infinite;
}
/* Pause on hover */
.client-logo-marquee:hover .cl-marquee-track {
    animation-play-state: paused;
}


/* JS will add this class to slide it down */


.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Nav Links - Simple Color Hover, NO Magnet Movement */
.nav-link {
  text-decoration: none;
  color: var(--bw-text);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 99px;
  
  /* Explicitly limiting transitions to color/bg to prevent magnet transform effects */
  transition: color 0.2s ease, background 0.2s ease; 
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: var(--bw-text);
  background: rgba(255,255,255,0.1);
}

/* Get Started Button */
.btn-get-started {
  text-decoration: none;
  background-color: var(--bw-text);
  color: #fff;
  padding: 10px 20px;
  border-radius: 99px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-get-started:hover {
  background-color: #e5e5e5;
}

/* Services Dropdown - Pure CSS (NO JS) */
.nav-item {
  position: relative;
}

.nav-item .dropdown {
  display: none;
  position: absolute;
  top: 100%;       /* Sits right below the trigger */
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;   /* Removes any margin-top gap */
  padding-top: 0;  /* Removes any padding-top gap */
  width: 250px;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px;
  z-index: 100;
}

/* Invisible bridge so cursor doesn't leave hover zone */
.nav-item .dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: transparent;
}

/* Keep dropdown open when hovering trigger OR dropdown */
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 10px 15px;
  color: var(--bw-text);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-link:hover {
  color: var(--bw-text);
  background: rgba(255,255,255,0.1);
}

/* ── Navbar responsive fixes ─────────────────────────── */
@media (max-width: 1024px) {
    /* The per-page inline <style> already handles this, but ensure consistency */
    #desktop-nav { display: none !important; }
    #hamburger-btn { display: block !important; }
}
@media (max-width: 768px) {
    #navbar {
        padding: 8px 0 !important;
    }
    #navbar > div {
        padding: 0 12px !important;
    }
    #nav-wrapper {
        height: 48px !important;
        padding: 0 12px !important;
        border-radius: 50px !important;
        gap: 6px !important;
    }
    #navbar img[alt*="Logo"] {
        height: 22px !important;
        max-width: 120px !important;
    }
    #navbar a[href*="audit"] {
        padding: 6px 10px !important;
        font-size: 11px !important;
        gap: 4px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    #navbar a[href*="audit"] svg {
        width: 12px !important;
        height: 12px !important;
    }
    #hamburger-btn {
        padding: 4px !important;
        flex-shrink: 0 !important;
    }
    #hamburger-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
    #mobile-menu {
        max-height: 80vh !important;
        overflow-y: auto !important;
        border-radius: 16px !important;
    }
    #mobile-menu a {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }
}

/* ── Extra small screens (360-414px) ── */
@media (max-width: 480px) {
    #nav-wrapper {
        height: 44px !important;
        padding: 0 10px !important;
    }
    #navbar img[alt*="Logo"] {
        height: 18px !important;
        max-width: 100px !important;
    }
    #navbar a[href*="audit"] {
        padding: 5px 8px !important;
        font-size: 10px !important;
    }
    #hamburger-btn {
        padding: 2px !important;
    }
    #hamburger-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* ── Mobile menu polish ── */
#mobile-menu.open {
    display: flex !important;
    animation: mobileMenuIn 0.3s ease forwards;
}
@keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    #mobile-menu.open { animation: none !important; }
}

/* ── Floating Bubbles — More Visible ─────── */
.bubble {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: radial-gradient(circle at 30% 30%,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.02) 50%,
    transparent 70%);
  pointer-events: none;
  animation: bubbleFloat 8s ease-in-out infinite;
  will-change: transform;
}

.bubble-1 {
  width: 120px; height: 120px;
  top: 5%; left: 3%;
  animation-delay: 0s;
  animation-duration: 9s;
  border-color: rgba(0, 0, 0, 0.12);
}
.bubble-2 {
  width: 80px; height: 80px;
  top: 15%; left: 12%;
  animation-delay: 1.5s;
  animation-duration: 7s;
  border-color: rgba(0, 0, 0, 0.1);
}
.bubble-3 {
  width: 160px; height: 160px;
  top: 8%; right: 8%;
  animation-delay: 0.8s;
  animation-duration: 11s;
  border-color: rgba(0, 0, 0, 0.08);
}
.bubble-4 {
  width: 60px; height: 60px;
  top: 40%; right: 15%;
  animation-delay: 2s;
  animation-duration: 6s;
  border-color: rgba(0, 0, 0, 0.12);
}
.bubble-5 {
  width: 200px; height: 200px;
  bottom: 10%; left: 5%;
  animation-delay: 3s;
  animation-duration: 13s;
  border-color: rgba(0, 0, 0, 0.06);
}
.bubble-6 {
  width: 90px; height: 90px;
  bottom: 20%; right: 5%;
  animation-delay: 0.5s;
  animation-duration: 8s;
  border-color: rgba(0, 0, 0, 0.1);
}
.bubble-7 {
  width: 140px; height: 140px;
  top: 55%; left: 45%;
  animation-delay: 4s;
  animation-duration: 10s;
  border-color: rgba(0, 0, 0, 0.08);
}
.bubble-8 {
  width: 50px; height: 50px;
  top: 70%; left: 25%;
  animation-delay: 1s;
  animation-duration: 7s;
  border-color: rgba(0, 0, 0, 0.14);
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  33%       { transform: translateY(-18px) scale(1.03); }
  66%       { transform: translateY(-8px) scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none !important; }
  .floaty, .floaty-slow { animation: none !important; }
  .animate-blob-1, .animate-blob-2, .animate-blob-3 { animation: none !important; }
  .floating-blob-1, .floating-blob-2, .floating-blob-3 { animation: none !important; }
  .cl-particle { animation: none !important; display: none !important; }
  [class*="animate-"] { animation-duration: 0s !important; animation: none !important; }
}

/* Partners grid robust layout class */
.partners-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}
@media (min-width: 640px) {
    .partners-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Grid pattern — more visible */
.grid-pattern {
  opacity: 0.06 !important;
  background-image:
    linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}


/* ===== CLIENT LOGOS — PREMIUM ENTERPRISE MARQUEE ===== */
.client-logos-enterprise {
  position: relative;
  background: var(--bw-bg);
  padding: 140px 0;
  overflow: hidden;
}

/* Elegant top divider */
.client-logos-enterprise::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.12), transparent);
}

/* Subtle radial glow */
.client-logos-enterprise::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.015) 0%, transparent 70%);
  pointer-events: none;
}

/* Thin grid pattern overlay */
.cl-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image:
    linear-gradient(rgba(0,0,0,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Floating particles container */
.cl-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cl-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  animation: cl-float 18s ease-in-out infinite;
}
.cl-particle:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; animation-duration: 20s; }
.cl-particle:nth-child(2) { top: 70%; left: 25%; animation-delay: -4s; animation-duration: 22s; }
.cl-particle:nth-child(3) { top: 30%; left: 75%; animation-delay: -8s; animation-duration: 17s; }
.cl-particle:nth-child(4) { top: 80%; left: 85%; animation-delay: -2s; animation-duration: 24s; }
.cl-particle:nth-child(5) { top: 50%; left: 50%; animation-delay: -6s; animation-duration: 19s; }
.cl-particle:nth-child(6) { top: 20%; left: 60%; animation-delay: -10s; animation-duration: 21s; }
@keyframes cl-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(30px, -40px) scale(1.5); opacity: 0.7; }
  90% { opacity: 1; }
}

/* Header */
.cl-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.cl-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bw-text-muted);
  margin-bottom: 20px;
  display: block;
}
.cl-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bw-text);
  line-height: 1.1;
  margin: 0 0 20px;
}
.cl-description {
  font-size: 17px;
  color: var(--bw-text-muted);
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

/* Marquee wrapper */
.cl-marquee-wrap {
  position: relative;
  z-index: 1;
}
.cl-marquee-row {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  user-select: none;
  padding: 12px 0;
}
.cl-marquee-row + .cl-marquee-row {
  margin-top: 24px;
}

.cl-marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
  padding-right: 28px;
}

/* Row 1: scroll left */
.cl-marquee-row--left .cl-marquee-track {
  animation: cl-scroll-left 40s linear infinite;
}
/* Row 2: scroll right */
.cl-marquee-row--right .cl-marquee-track {
  animation: cl-scroll-right 45s linear infinite;
}

/* Pause on hover */
.cl-marquee-row:hover .cl-marquee-track {
  animation-play-state: paused;
}

@keyframes cl-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes cl-scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Glass logo card */
.cl-logo-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 140px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 10px 35px rgba(0,0,0,.06);
  transition: all .35s cubic-bezier(.22,1,.36,1);
  cursor: default;
}
.cl-logo-card:hover {
  transform: translateY(-8px);
  border-color: var(--bw-text);
  box-shadow: 0 20px 50px rgba(0,0,0,.14);
}
.cl-logo-card:hover img {
  transform: scale(1.08);
}

/* Logo image */
.cl-logo-card img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .client-logos-enterprise {
    padding: 100px 0;
  }
  .cl-logo-card {
    width: 180px;
    height: 125px;
    padding: 28px;
  }
  .cl-logo-card img {
    max-height: 70px;
  }
  .cl-marquee-row--left .cl-marquee-track {
    animation-duration: 50s;
  }
  .cl-marquee-row--right .cl-marquee-track {
    animation-duration: 55s;
  }
}

@media (max-width: 768px) {
  .client-logos-enterprise {
    padding: 80px 0;
  }
  .cl-header {
    margin-bottom: 48px;
  }
  .cl-logo-card {
    width: 160px;
    height: 110px;
    padding: 24px;
    border-radius: 18px;
  }
  .cl-logo-card img {
    max-height: 60px;
  }
  .cl-marquee-row + .cl-marquee-row {
    display: none;
  }
  .cl-marquee-track {
    gap: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .client-logos-enterprise {
    padding: 64px 0;
  }
  .cl-logo-card {
    width: 140px;
    height: 100px;
    padding: 20px;
    border-radius: 16px;
  }
}

/* Custom Global Section Gaps */
section:not(#hero-section) {
    padding-top: clamp(32px, 5vw, 64px) !important;
    padding-bottom: clamp(32px, 5vw, 64px) !important;
}

/* First section on subpages needs extra top padding to clear the fixed navbar */
main > section:first-of-type:not(#hero-section) {
    padding-top: clamp(100px, 15vh, 180px) !important;
}

footer {
    padding-top: clamp(32px, 5vw, 64px) !important;
    padding-bottom: clamp(32px, 5vw, 64px) !important;
}

/* ===== STYLISH MULTICOLOR GRADIENTS FOR KEY TEXTS ===== */

/* Make section subtitles overline-labels pure white (no gradient) */
.overline-label {
    color: #FFFFFF !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #FFFFFF !important;
    display: inline-block;
    font-weight: 700 !important;
    mix-blend-mode: normal !important;
}

/* Premium multicolor text gradient utility */
.text-gradient-premium {
    background: linear-gradient(135deg, #f472b6 0%, #c084fc 50%, #6366f1 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    display: inline-block;
}

/* Make italic spans inside all headings pure white */
h1 span.italic,
h2 span.italic,
h3 span.italic,
.text-reveal span.italic {
    color: #FFFFFF !important;
    display: inline !important;
}

/* Force pure white on ALL text-reveal word-split spans — overrides dark theme grey span rule */
/* NOTE: opacity is intentionally excluded — GSAP controls it for the reveal animation */
.text-reveal .reveal-word {
    color: #FFFFFF !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #FFFFFF !important;
    text-shadow: none !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* Alternate premium gradients for stats card labels across all pages */
div:has(> .font-display) > div:last-child:not(.font-display) {
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    display: inline-block !important;
}

/* Card type 1: Pink-Purple-Blue */
div:has(> .font-display):nth-of-type(3n+1) > div:last-child:not(.font-display),
.stat-card:nth-of-type(3n+1) div:last-child,
.hero-stat-anim:nth-of-type(3n+1) div:last-child {
    background: linear-gradient(135deg, #f472b6 0%, #c084fc 50%, #6366f1 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Card type 2: Orange-Red */
div:has(> .font-display):nth-of-type(3n+2) > div:last-child:not(.font-display),
.stat-card:nth-of-type(3n+2) div:last-child,
.hero-stat-anim:nth-of-type(3n+2) div:last-child {
    background: linear-gradient(135deg, #fb923c 0%, #f87171 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Card type 3: Blue-Purple */
div:has(> .font-display):nth-of-type(3n+3) > div:last-child:not(.font-display),
.stat-card:nth-of-type(3n+3) div:last-child,
.hero-stat-anim:nth-of-type(3n+3) div:last-child {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ==========================================================================
   GLOBAL DARK THEME OVERRIDES (FORCE ALL WHITE/GREY ELEMENTS TO BLACK)
   ========================================================================== */

/* 1. Backgrounds: Force all white/grey backgrounds to solid black */
body,
html,
main,
section,
.bg-white,
.bg-slate-50,
.bg-slate-100,
.bg-gray-50,
.bg-slate-50\/40,
.bg-slate-50\/60,
.bg-slate-50\/80,
.bg-gray-50\/40,
.bg-slate-100\/40,
.bg-slate-500\/5,
.bg-slate-500\/10 {
    background-color: #000000 !important;
    background-image: none !important;
}

/* Restore gradient for channel performance bars */
.channel-bar {
    background-image: linear-gradient(to top, #2563eb, #818cf8) !important;
}

/* 2. Cards & Containers: Force to dark surface color */
.card,
.stat-card,
.capability-item,
.spotlight-card,
.testimonial-card,
.glass-strong,
div.bg-white.rounded-2xl,
div.bg-white.rounded-3xl,
div.bg-white.rounded-xl,
div[class*="bg-white"][class*="rounded-"],
div[class*="bg-slate-50"][class*="rounded-"],
.bg-white\/5,
.bg-white\/10 {
    background-color: #0A0A0A !important;
    background-image: none !important;
}

/* 3. Icon Containers: Keep dark background contrast */
.bg-blue-50,
.bg-indigo-50,
.bg-emerald-50,
.bg-amber-50,
.bg-rose-50,
.bg-sky-50,
.bg-blue-50\/10,
.bg-indigo-50\/10,
.bg-emerald-50\/10,
.bg-amber-50\/10,
.bg-rose-50\/10,
.bg-sky-50\/10 {
    background-color: #111111 !important;
}

/* 4. Typography: Force dark texts to white */
h1, h2, h3, h4, h5, h6,
.text-slate-900,
.text-slate-800,
.text-slate-700,
.text-gray-900,
.text-gray-800,
.text-slate-950,
body.text-slate-900,
span.text-slate-900,
div.text-slate-900,
p.text-slate-900 {
    color: #FFFFFF !important;
}

p:not(.overline-label):not(.text-gradient-premium):not(.italic),
span:not(.overline-label):not(.text-gradient-premium):not(.italic):not(.reveal-word),
li:not(.overline-label):not(.text-gradient-premium):not(.italic),
.text-slate-600:not(.overline-label):not(.text-gradient-premium):not(.italic),
.text-slate-500:not(.overline-label):not(.text-gradient-premium):not(.italic),
.text-slate-400:not(.overline-label):not(.text-gradient-premium):not(.italic),
.text-gray-600:not(.overline-label):not(.text-gradient-premium):not(.italic),
.text-gray-500:not(.overline-label):not(.text-gradient-premium):not(.italic) {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* 5. Inputs, textareas, dropdowns */
input,
textarea,
select {
    background-color: #0A0A0A !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 6. Borders */
.border,
.border-slate-200,
.border-slate-100,
.border-slate-300,
.border-gray-200,
.border-slate-200\/80 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVE — 375px+ Polish Pass
   ========================================================================== */

/* ── Prevent horizontal overflow globally ── */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* ── Base mobile spacing token ── */
:root {
    --mobile-px: 16px;
    --section-gap-mobile: 48px;
}

/* ── Global section rhythm on mobile ── */
@media (max-width: 768px) {
    section:not(#hero-section) {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    main > section:first-of-type:not(#hero-section) {
        padding-top: 100px !important;
    }
}

/* ── 768px breakpoint — tablet & small desktop ── */
@media (max-width: 768px) {

    /* Typography scaling — override Tailwind classes */
    .text-4xl, .text-5xl, .text-6xl, .text-7xl,
    h1.text-4xl, h1.text-5xl, h1.text-6xl, h1.text-7xl,
    h2.text-4xl, h2.text-5xl, h2.text-6xl, h2.text-7xl {
        font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
        line-height: 1.15 !important;
    }
    .text-3xl, h2.text-3xl, h3.text-3xl {
        font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
        line-height: 1.2 !important;
    }
    .text-2xl, h3.text-2xl, h4.text-2xl {
        font-size: clamp(1.15rem, 4.5vw, 1.5rem) !important;
        line-height: 1.25 !important;
    }
    .text-xl, .text-lg {
        font-size: clamp(1rem, 4vw, 1.15rem) !important;
    }
    h1 { font-size: clamp(1.75rem, 7vw, 2.5rem) !important; line-height: 1.15 !important; }
    h2 { font-size: clamp(1.5rem, 5.5vw, 2rem) !important; line-height: 1.2 !important; }
    h3 { font-size: clamp(1.15rem, 4vw, 1.5rem) !important; line-height: 1.25 !important; }
    h4 { font-size: clamp(1rem, 3.5vw, 1.25rem) !important; }

    /* Paragraph text */
    p { font-size: 15px !important; line-height: 1.65 !important; }

    /* Grid layouts → responsive columns */
    .grid-cols-4,
    .md\:grid-cols-4,
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .grid-cols-3,
    .md\:grid-cols-3,
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .grid-cols-2,
    .md\:grid-cols-2,
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Flex rows that should stack */
    .md\:flex-row,
    .lg\:flex-row {
        flex-direction: column !important;
    }

    /* Ensure consistent horizontal padding on all containers */
    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl,
    .max-w-4xl,
    .max-w-3xl,
    .max-w-2xl {
        padding-left: var(--mobile-px) !important;
        padding-right: var(--mobile-px) !important;
    }

    /* Stat cards — ensure readable */
    .stat-card {
        padding: 16px !important;
    }

    /* Buttons — thumb-friendly */
    .btn-primary,
    .btn-secondary,
    .spatial-glow-btn,
    a[class*="btn"],
    button[class*="btn"] {
        min-height: 44px !important;
        padding: 12px 24px !important;
        font-size: 14px !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Badge / overline text */
    .overline-label,
    [class*="uppercase"][class*="tracking"] {
        font-size: 10px !important;
        letter-spacing: 0.15em !important;
    }

    /* Reduce marquee animation complexity */
    .client-logo-marquee {
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }
    .client-logo-card {
        width: 160px !important;
        height: 110px !important;
        padding: 18px !important;
    }

    /* Case study cards */
    .cs-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    .cs-card .cs-body {
        padding: 1.25rem !important;
    }
    .cs-card .cs-title {
        font-size: 16px !important;
    }
    .cs-card .cs-results {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    .cs-card .cs-result-val {
        font-size: 15px !important;
    }

    /* Filter buttons — horizontal scroll */
    .cs-filter-wrap {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 8px !important;
        gap: 8px !important;
    }
    .cs-filter-btn {
        flex-shrink: 0 !important;
        padding: 8px 16px !important;
        font-size: 12px !important;
    }

    /* WhatsApp float */
    .whatsapp-float {
        bottom: 16px !important;
        right: 16px !important;
        width: 52px !important;
        height: 52px !important;
    }

    /* Footer grid - col-span overrides for md:col-span-2 items (e.g. gallery) */
    .lg\:grid-cols-12:not(.gallery-grid) {
        grid-template-columns: 1fr !important;
    }
    .lg\:col-span-4,
    .lg\:col-span-8 {
        grid-column: span 1 !important;
    }
    /* Preserve md:col-span-2 in gallery/masonry grids */
    .md\:col-span-2 {
        grid-column: span 2 !important;
    }

    /* Large display text in hero */
    .font-display.text-3xl,
    .font-display.text-4xl,
    .font-display.text-5xl,
    .font-display.text-6xl,
    .font-display.text-7xl {
        font-size: clamp(1.5rem, 6vw, 2.25rem) !important;
        letter-spacing: -0.02em !important;
    }

    /* Hero section bottom padding fix for scroll indicator overlap */
    .mesh-bg,
    .hero-gradient-bg {
        padding-bottom: 40px !important;
    }

    /* Hero section text */
    .cs-hero h1 {
        font-size: clamp(1.75rem, 7vw, 3rem) !important;
    }

    /* Stat counter grid */
    .cs-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Hero stat cards */
    .hero-stat-anim,
    .stat-shimmer {
        padding: 12px !important;
    }

    /* Overflow prevention on all images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Fix scroll indicator overlap on mobile hero */
    [class*="scroll-indicator"],
    [class*="scroll-down"],
    [class*="scroll-cta"] {
        position: relative !important;
        margin-top: 16px !important;
    }

    /* Ensure containers don't overflow */
    .overflow-hidden,
    .overflow-x-hidden {
        overflow-x: hidden !important;
    }

    /* Contact form */
    form {
        width: 100% !important;
    }
    input, textarea, select {
        font-size: 16px !important; /* Prevent iOS zoom */
        padding: 12px !important;
    }

    /* Testimonial / quote cards */
    .testimonial-card,
    .quote-card {
        padding: 16px !important;
    }

    /* Blog cards */
    .blog-card {
        padding: 16px !important;
    }

    /* Accordion / FAQ */
    details summary {
        padding: 14px 0 !important;
        font-size: 14px !important;
    }
}

/* ── 480px breakpoint — small phones ── */
@media (max-width: 480px) {
    .text-4xl, .text-5xl, .text-6xl, .text-7xl,
    h1.text-4xl, h1.text-5xl, h1.text-6xl, h1.text-7xl,
    h2.text-4xl, h2.text-5xl, h2.text-6xl, h2.text-7xl {
        font-size: clamp(1.5rem, 8vw, 2rem) !important;
    }
    .text-3xl, h2.text-3xl, h3.text-3xl {
        font-size: clamp(1.25rem, 6vw, 1.75rem) !important;
    }
    .text-2xl, h3.text-2xl, h4.text-2xl {
        font-size: clamp(1rem, 5vw, 1.25rem) !important;
    }

    h1 { font-size: clamp(1.5rem, 8vw, 2rem) !important; }
    h2 { font-size: clamp(1.25rem, 6vw, 1.75rem) !important; }
    h3 { font-size: clamp(1rem, 5vw, 1.25rem) !important; }

    p { font-size: 14px !important; }

    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl,
    .max-w-4xl {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .client-logo-card {
        width: 130px !important;
        height: 90px !important;
        padding: 14px !important;
    }

    /* Hero heading on smallest screens */
    .outline-title {
        font-size: clamp(2rem, 12vw, 3.5rem) !important;
    }
    .fill-title {
        font-size: clamp(1rem, 5vw, 1.5rem) !important;
    }

    /* Grid layouts → single column on small phones */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .md\:grid-cols-2,
    .md\:grid-cols-3,
    .md\:grid-cols-4,
    .lg\:grid-cols-2,
    .lg\:grid-cols-3,
    .lg\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }

    /* Portfolio gallery image heights */
    .h-\[60vh\] { height: 40vh !important; }
    
    /* Reduce gap on small screens */
    .gap-8 { gap: 16px !important; }
    .gap-6 { gap: 14px !important; }
    .gap-5 { gap: 12px !important; }
    .gap-4 { gap: 10px !important; }
    
    /* Stat cards compact */
    .stat-card { padding: 12px !important; }
    .stat-card .font-display { font-size: 1.25rem !important; }
    
    /* Service cards */
    .h-80 { height: auto !important; min-height: 260px !important; }
    .group.rounded-\[2rem\] { border-radius: 1.25rem !important; padding: 1.25rem !important; }
    
    /* Portfolio item grid 2-col images on mobile */
    .grid-cols-2.gap-4.h-\[60vh\] {
        height: auto !important;
        grid-template-columns: 1fr !important;
    }
    .grid-cols-2.gap-4.h-\[60vh\] > * {
        height: 200px !important;
    }
}

/* ── Hero: Fix CTA text overlapping & scale animation on mobile ── */
@media (max-width: 767px) {
    #scroll-cue {
        bottom: 56px !important;
    }
    #scroll-cue span {
        font-size: 7px !important;
    }
    .hero-scene-overlay.active-scene {
        bottom: 14vh !important;
    }
    .hero-scene-overlay.active-scene .spatial-glow-btn {
        font-size: 10px !important;
        padding: 10px 20px !important;
    }
    #hero-threejs-canvas {
        transform: none;
    }
    #hero-section {
        isolation: isolate;
    }
}

/* ── Mobile menu backdrop & submenu ── */
@media (max-width: 1024px) {
    #mobile-menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        display: none;
    }
    #mobile-menu-backdrop.active {
        display: block;
    }
    #mobile-menu {
        position: relative !important;
        z-index: 9999 !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 60px rgba(2,6,23,0.15) !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
    }
    #mobile-menu a {
        padding: 12px 14px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        font-size: 15px !important;
        border-radius: 10px !important;
        text-decoration: none !important;
    }
    #mobile-menu a:hover {
        background: #f1f5f9 !important;
    }
    #mobile-services-submenu {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 0;
        margin-left: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
    }
    #mobile-services-submenu.open {
        max-height: 500px;
        opacity: 1;
        padding: 4px 0 4px 16px;
    }
    #mobile-services-submenu a {
        font-size: 13px !important;
        min-height: 40px !important;
        padding: 8px 12px !important;
    }
    @media (prefers-reduced-motion: reduce) {
        #mobile-services-submenu {
            transition: none !important;
        }
    }
}

/* ── WhatsApp float button ── */
.whatsapp-float {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 90 !important;
}

/* Prevent stats/counter sections from being hidden behind WhatsApp */
@media (max-width: 768px) {
    section:has(.stat-value) {
        padding-bottom: 80px !important;
    }
    footer:has(+ *) { margin-bottom: 70px; }
}

/* ── Client logos responsive: shrink cards so none get clipped ── */
@media (max-width: 900px) {
    .client-logo-card {
        width: 150px !important;
        height: 100px !important;
        padding: 18px !important;
    }
    .client-logo-card img {
        max-height: 54px !important;
    }
}
@media (max-width: 600px) {
    .client-logo-card {
        width: 120px !important;
        height: 82px !important;
        padding: 14px !important;
    }
    .client-logo-card img {
        max-height: 42px !important;
    }
}
@media (max-width: 400px) {
    .client-logo-card {
        width: 96px !important;
        height: 68px !important;
        padding: 10px !important;
    }
    .client-logo-card img {
        max-height: 34px !important;
    }
}

/* ==========================================================================
   MOBILE PROCESS SECTION FIXES — below 992px
   Force all reveal animations visible, stack timelines vertically,
   ensure no content is hidden or clipped.
   ========================================================================== */
@media (max-width: 991px) {
    /* ── Force ALL reveal elements visible — no hidden content on mobile ── */
    .reveal,
    .reveal.animate-in,
    .reveal.animate-in.visible,
    .reveal-left,
    .reveal-left.animate-in,
    .reveal-left.animate-in.visible,
    .reveal-right,
    .reveal-right.animate-in,
    .reveal-right.animate-in.visible,
    .reveal-scale,
    .reveal-scale.animate-in,
    .reveal-scale.animate-in.visible,
    .reveal-rotate,
    .reveal-rotate.animate-in,
    .reveal-rotate.animate-in.visible,
    .reveal-blur,
    .reveal-blur.animate-in,
    .reveal-blur.animate-in.visible {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    /* ── Force all text-reveal word spans visible ── */
    .reveal-word {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* ── Process timeline (web-development.html flex variant): stack vertically ── */
    .relative.flex.gap-6,
    .relative.flex.gap-10 {
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* ── Process timeline: ensure all child divs are visible ── */
    .relative.flex.gap-6 > div,
    .relative.flex.gap-10 > div {
        opacity: 1 !important;
        transform: none !important;
    }

    /* ── Process section: remove overflow-hidden that clips content ── */
    section.overflow-hidden {
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    /* ── Process timeline (services.html border-l variant): tighten spacing ── */
    .border-l-2.ml-4.pl-8 {
        margin-left: 16px !important;
        padding-left: 24px !important;
    }

    /* ── Process timeline: adjust circle position for tighter padding ── */
    .-left-\[41px\] {
        left: -25px !important;
    }

    /* ── Process timeline (web-development.html): ensure connecting lines render ── */
    .w-px.bg-\[\#111111\] {
        background-color: #111111 !important;
        min-height: 20px !important;
    }

    /* ── Prevent any horizontal overflow from process sections ── */
    .max-w-3xl.mx-auto.space-y-0 {
        overflow: visible !important;
    }
}

/* ==========================================================================
   MOBILE NAVBAR — Services split link + chevron button
   ========================================================================== */
@media (max-width: 1023px) {
    /* Container wrapping Services link + chevron button */
    .mobile-services-row {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    /* The text link hugs its content width */
    .mobile-services-row > a {
        flex: 0 0 auto;
    }
    /* The chevron button is a fixed-size touch target */
    .mobile-services-row > button {
        background: none;
        border: none;
        padding: 8px;
        margin-left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #1e293b;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
        border-radius: 10px;
    }
    .mobile-services-row > button:active {
        background: #f1f5f9;
    }
    /* Hide the old single-anchor Services trigger */
    .mobile-services-row-hide {
        display: none !important;
    }
}

/* Remove unwanted white lines/dividers from marquee sections */
.client-logos-enterprise::before,
.client-logos-enterprise::after {
    display: none !important;
}

/* Fix for Blinking White Line During Marquee Animation — Hardware Acceleration */
.client-logos-enterprise, 
.trust-marquee, 
.client-logo-marquee,
#client-logo-marquee-wrap,
.marquee-container,
.marquee-content,
.client-logos-enterprise * {
    -webkit-transform: translateZ(0) !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    will-change: transform !important;
    outline: 1px solid transparent !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.client-logos-enterprise, 
.trust-marquee, 
.client-logo-marquee,
#client-logo-marquee-wrap {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Fix flickering on the images/logos themselves */
.client-logo-marquee img,
.client-logos-enterprise img,
.trust-marquee__item img {
    -webkit-transform: translateZ(0) !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    display: block !important;
}

/* Ensure no hidden fractional margins are creating a gap */
.client-logo-marquee {
    margin-top: -1px !important;
    margin-bottom: -1px !important;
}

/* ============================== */
/* CTA ANIMATED BACKGROUND        */
/* ============================== */
.cta-animated-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Base breathing radial gradient */
.cta-animated-bg-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.06) 0%, transparent 60%);
    animation: cta-breathe 10s ease-in-out infinite alternate;
}

/* Panning Grid/Dot pattern */
.cta-animated-bg-grid {
    position: absolute;
    inset: -100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.04;
    animation: cta-pan 30s linear infinite;
}

/* Floating blurred blobs */
.cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
}
.cta-blob-1 {
    width: 400px;
    height: 400px;
    background: #ffffff;
    top: -10%;
    left: -10%;
    animation: cta-float-1 12s ease-in-out infinite alternate;
}
.cta-blob-2 {
    width: 500px;
    height: 500px;
    background: #e2e8f0;
    bottom: -10%;
    right: -10%;
    animation: cta-float-2 14s ease-in-out infinite alternate-reverse;
}

/* Keyframes */
@keyframes cta-breathe {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}
@keyframes cta-pan {
    0% { transform: translate(0, 0); }
    100% { transform: translate(32px, 32px); }
}
@keyframes cta-float-1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 40px); }
}
@keyframes cta-float-2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40px, -60px); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .cta-animated-bg-glow, .cta-animated-bg-grid, .cta-blob-1, .cta-blob-2 {
        animation: none !important;
    }
}

/* ============================== */
/* FAQ SMOOTH ACCORDION           */
/* ============================== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding-bottom 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding-bottom: 0 !important;
}
.faq-answer.expanded {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 1.25rem !important; /* matches pb-5 */
}

/* ============================== */
/* CTA FLOATING BUBBLES           */
/* ============================== */
.cta-bubbles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.cta-bubble-wrapper {
    position: absolute;
    bottom: -100px;
    animation: bubble-rise linear infinite;
    /* Will-change hints the browser to offload to GPU */
    will-change: transform, opacity;
}

.cta-bubble {
    border-radius: 50%;
    animation: bubble-sway ease-in-out infinite alternate;
    will-change: transform;
}

.cta-bubble.filled {
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
}

.cta-bubble.outline {
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
}

@keyframes bubble-rise {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-800px); opacity: 0; }
}

@keyframes bubble-sway {
    0% { transform: translateX(-30px); }
    100% { transform: translateX(30px); }
}

@media (prefers-reduced-motion: reduce) {
    .cta-bubble-wrapper, .cta-bubble {
        animation: none !important;
        display: none !important;
    }
}

/* ============================== */
/* NAVBAR STYLES (EXTRACTED)      */
/* ============================== */
#desktop-nav {
    display: flex !important;
    align-items: center;
    gap: 4px;
}
@media (max-width: 1024px) {
    #desktop-nav { display: none !important; }
    #hamburger-btn { display: block !important; }
}
#desktop-nav a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    border-radius: 9999px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    transform: none !important;
}
#desktop-nav a:hover {
    color: #000000;
    background: rgba(255,255,255,0.07);
    transform: none !important;
}
.nav-dropdown {
    position: relative;
    padding-bottom: 8px;
    margin-bottom: -8px;
}
.nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 260px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(226,232,240,0.8);
    box-shadow: 0 10px 40px rgba(2,6,23,0.10);
    border-radius: 20px;
    padding: 10px;
    z-index: 99999;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0px);
}
.nav-dropdown-menu a {
    display: block;
    padding: 9px 14px;
    font-size: 13px;
    color: #475569;
    border-radius: 10px;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.nav-dropdown-menu a:hover {
    color: #000000;
    background: #f1f5f9;
}
#navbar.nav-visible {
    transform: translateY(0) !important;
}
#mobile-menu.open {
    display: flex !important;
}
/* Hero gradient animation */
.hero-gradient {
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #1e3a5f);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================== */
/* MOBILE RESPONSIVENESS & TOUCH  */
/* ============================== */
body, html {
    overflow-x: hidden !important;
    width: 100%;
}

@media (max-width: 1024px) {
    /* Touch Target Enforcement */
    button, 
    a, 
    .faq-btn, 
    .nav-dropdown-menu a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Mobile Menu Full Width */
    #mobile-menu {
        width: 100%;
        max-width: calc(100vw - 32px);
        margin-inline: auto;
    }
}

/* ============================== */
/* MOBILE FIXES (VIDEO REVIEW)    */
/* ============================== */

/* --- Fix 0: Hide decorative blobs/circles on mobile --- */
@media (max-width: 768px) {
    .bg-black.overflow-hidden > .absolute.rounded-full,
    .relative.py-16 > .absolute.rounded-full,
    .reveal-right > .absolute.rounded-full {
        display: none !important;
    }
    /* Hide the stats card right column to remove empty gap */
    .lg\:col-span-5.reveal-right {
        display: none !important;
    }
}

@keyframes marqueeScrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes marqueeScrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* --- Fix 1: Client Logos Grid (vertical marquee) --- */
@media (max-width: 768px) {
    .vertical-logo-grid, .clients-logo {
        display: flex !important;
        gap: 0.75rem !important;
        position: relative !important;
        height: 300px !important;
        overflow: hidden !important;
        justify-content: center !important;
        align-items: flex-start !important;
        width: 100% !important;
    }
    .v-marquee-col, .logo-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: calc(33.333% - 8px) !important;
    }
    .v-client-card, .logo-track {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        will-change: transform !important;
        transform: translateZ(0);
    }
    .v-marquee-col.scroll-up, .logo-track.up {
        animation: marqueeScrollUp 30s linear infinite !important;
    }
    .v-marquee-col.scroll-down, .logo-track.down {
        animation: marqueeScrollDown 30s linear infinite !important;
        transform: translateY(-50%);
    }
    .v-client-card img, .logo-col img {
        display: block !important;
        width: 100% !important;
        height: 85px !important;
        padding: 0.5rem !important;
        object-fit: contain !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        max-width: 100% !important;
    }
    .vertical-marquee-section, .brand-section {
        padding: 3rem 0 2.5rem !important;
    }
    .vertical-marquee-inner, .brand-section .container {
        gap: 1.75rem !important;
        padding: 0 24px !important;
    }
    /* Partner Marquee */
    .partner-marquee-item {
        width: 110px !important;
        height: 55px !important;
        padding: 10px 12px !important;
    }
    .partner-marquee-item svg {
        width: 22px !important;
        height: 22px !important;
    }
    .partner-marquee-item span {
        font-size: 10px !important;
    }
    #credentials-section {
        padding-top: 1.25rem !important;
    }
}

/* --- Fix 2: Decorative CTA/Footer Background Overflow --- */
@media (max-width: 768px) {
    footer,
    section[id="contact"],
    .cta-section-wrapper {
        overflow: hidden !important;
    }
    /* Shrink giant decorative blobs that cause horizontal scroll */
    footer .absolute,
    section[id="contact"] .absolute {
        max-width: 100vw !important;
    }
    /* Specific oversized circles */
    footer > div[class*="w-[700px]"],
    footer > .absolute[class*="w-[700"],
    section > div[class*="w-[420px]"],
    section > div[class*="w-[700px]"] {
        width: 300px !important;
        height: 200px !important;
    }
    /* CTA card inner decorative circles */
    section[id="contact"] div[class*="rounded-full"][class*="pointer-events-none"] {
        width: 200px !important;
        height: 200px !important;
        opacity: 0.15 !important;
    }
    /* Floaty circle in CTA */
    .floaty {
        width: 40px !important;
        height: 40px !important;
        right: 5px !important;
        top: 5px !important;
    }
}

/* --- Fix 3: Footer Logo Size --- */
@media (max-width: 768px) {
    footer img[alt*="Logo"] {
        height: 28px !important;
        max-width: 160px !important;
        width: auto !important;
    }
    footer .grid {
        gap: 2rem !important;
    }
    /* Footer bottom bar */
    footer .border-t {
        flex-direction: column !important;
        text-align: center;
        gap: 1rem !important;
    }
    /* Footer padding */
    footer {
        padding-top: 2.5rem !important;
        padding-bottom: 2rem !important;
    }
}

/* --- Fix 4: Header Alignment & Spacing --- */
@media (max-width: 768px) {
    #nav-wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
        height: 52px !important;
    }
    /* Logo smaller on mobile */
    #nav-wrapper img[alt*="Logo"] {
        height: 24px !important;
    }
    /* More gap between Get Started and Hamburger */
    #nav-wrapper > div:last-child {
        gap: 8px !important;
    }
    /* Get Started button smaller on mobile */
    #nav-wrapper a[href="audit.html"] {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    /* Hamburger button proper sizing */
    #hamburger-btn {
        padding: 8px !important;
    }
    /* Navbar top padding */
    header#navbar {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
}

/* --- General Mobile Card/Section Polish --- */
@media (max-width: 768px) {
    /* CTA section responsive stacking */
    section[id="contact"] .grid {
        gap: 1.5rem !important;
    }
    /* CTA card padding */
    section[id="contact"] .rounded-\\[36px\\] {
        padding: 1.5rem !important;
        border-radius: 24px !important;
    }
    /* Stats cards */
    .stat-value, .stat-metric-accent {
        font-size: 2.5rem !important;
    }
    /* FAQ section */
    .faq-btn {
        padding: 14px 16px !important;
        font-size: 14px !important;
    }
    .faq-answer {
        padding-left: 16px !important;
        padding-right: 16px !important;
        font-size: 13px !important;
    }
}

/* ==========================================================================
   MOBILE MARQUEE VIEWPORT MASK FIX (For screens below 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. Main Parent Container: Phone ki screen size me lock karo aur baaki logos chhupao */
    #logo-view-marquee,
    .marquee-container,
    .client-logos-enterprise,
    [id*="marquee"],
    [class*="marquee"] {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        position: relative !important;
        display: block !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 2. Inner Moving Track: Logos ko sirf EK SINGLE horizontal line me rakho, niche wrap mat hone do */
    #logo-view-marquee > div,
    .marquee-content,
    .marquee-track,
    .animate-marquee,
    [class*="marquee"] > div {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        gap: 1.5rem !important;
    }

    /* 3. Individual Logo Items: Har logo ka size fixed karo taaki wo kheechein ya pichkein nahi */
    #logo-view-marquee img,
    .marquee-content img,
    .animate-marquee img,
    [class*="marquee"] img,
    [class*="marquee"] .flex-shrink-0 {
        flex-shrink: 0 !important;
        width: auto !important;
        height: 28px !important;
        max-width: none !important;
    }
}

/* ==========================================================================
   NO SCROLLBAR + MASK EDGES (For horizontal logo scroll on mobile)
   ========================================================================== */

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth fade effect on edges for the marquee */
.mask-edges {
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

/* ==========================================================================
   MOBILE RESPONSIVE — Section-by-section rebuild (mobile-first)
   Desktop untouched. No *, no section, no div, no ::before/::after globals.
   ========================================================================== */


/* ======================================================================
   TABLET / LARGE PHONE LANDSCAPE — max-width: 1024px
   ====================================================================== */
@media (max-width: 1024px) {

    /* ── HERO ── */
    .hero-scene-overlay {
        width: 80% !important;
        max-width: 600px !important;
        left: 6vw !important;
        bottom: 10vh !important;
    }
    #hero-scene-dots {
        right: 16px !important;
    }

    /* ── NAVBAR ── */
    #navbar {
        padding: 12px 0 !important;
    }
    #nav-wrapper {
        height: 54px !important;
        padding: 0 16px !important;
    }
    #nav-wrapper img[alt*="Logo"] {
        height: 26px !important;
    }

    /* ── PARTNER & CERTIFICATION SECTION (bg-black) ── */
    /* Override inline 3-col grid on partner grid */
    #partner-grid-wrap {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    #partner-grid-wrap .pc {
        padding: 16px !important;
    }
    .bg-indigo-900\/10.w-\[420px\] {
        width: 240px !important;
        height: 240px !important;
        opacity: 0.06 !important;
    }

    /* ── VERTICAL SCROLLING LOGO SECTION ── */
    .vertical-text-content h2 {
        font-size: 2.25rem !important;
    }

    /* ── WHY BRANDS CHOOSE US (dark) ── */
    #why-choose-us > .max-w-7xl > .text-center {
        padding: 0 2rem !important;
    }
    #why-choose-us h2 {
        font-size: 2.5rem !important;
    }

    /* ── WHY CHOOSE US (white) ── */
    .section-why-choose h2 {
        font-size: 2.5rem !important;
    }

    /* ── PROOF / DASHBOARD ── */
    #proof-dashboard .grid.lg\:grid-cols-12 {
        grid-template-columns: 1fr !important;
    }

    /* ── CTA ── */
    #contact h2 {
        font-size: 3rem !important;
    }

    /* ── TRUST ── */
    #trust h2 {
        font-size: 2.5rem !important;
    }

    /* ── REVIEWS ── */
    #reviews h2 {
        font-size: 2.5rem !important;
    }

    /* ── SERVICES ── */
    #services h2 {
        font-size: 2.5rem !important;
    }

    /* ── FOOTER ── */
    [class*="bg-slate-950"].text-white .grid.lg\:grid-cols-12 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}


/* ======================================================================
   MAIN MOBILE BREAKPOINT — max-width: 768px
   ====================================================================== */
@media (max-width: 768px) {

    /* ── Section vertical stacking ── */
    /* These Tailwind lg:grid-cols-12 sections already stack below 1024px
       because Tailwind grid defaults to 1fr. Only override where inline
       !important forces multi-column. The main cases are handled below. */

    /* ── NAVBAR: Shubh-style ── */
    #navbar {
        padding: 8px 0 !important;
    }
    #nav-wrapper {
        height: 50px !important;
        padding: 0 14px !important;
        border-radius: 9999px !important;
    }
    #nav-wrapper img[alt*="Logo"] {
        height: 24px !important;
    }
    #nav-wrapper a[href="audit.html"] {
        font-size: 12px !important;
        padding: 7px 14px !important;
        gap: 4px !important;
    }
    #hamburger-btn {
        padding: 5px !important;
    }
    #hamburger-btn i {
        width: 20px !important;
        height: 20px !important;
    }

    /* ── PARTNER LOGO MARQUEE ── */
    #logo-view-marquee .partner-marquee-item {
        width: 100px !important;
        height: 42px !important;
        padding: 8px 10px !important;
        gap: 8px !important;
        border-radius: 8px !important;
    }
    #logo-view-marquee .partner-marquee-item svg {
        width: 20px !important;
        height: 20px !important;
    }
    #logo-view-marquee .partner-marquee-item span {
        font-size: 10px !important;
    }
    #logo-view-marquee .partner-marquee-track {
        gap: 10px !important;
    }

    /* ── PARTNER GRID: 1-col (override inline 3-col) ── */
    #partner-grid-wrap {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    #partner-grid-wrap .pc {
        padding: 16px 18px !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
    }
    #partner-grid-wrap .pc svg {
        width: 28px !important;
        height: 28px !important;
    }
    .bg-indigo-900\/10.w-\[420px\] {
        width: 180px !important;
        height: 180px !important;
        opacity: 0.05 !important;
    }

    /* ── PARTNER SECTION stats card ── */
    .bg-black.overflow-hidden .glass-strong {
        padding: 1.5rem !important;
    }
    .bg-black.overflow-hidden .text-7xl {
        font-size: 3rem !important;
    }

    /* ── VERTICAL SCROLLING LOGOS (Trusted By Industry Leaders) ── */
    /* Dark bg, left-aligned, static grid on mobile — matches standard section layout */
    .vertical-marquee-section, .brand-section {
        padding: 3rem 0 2.5rem !important;
    }
    .vertical-marquee-inner, .brand-section .container {
        gap: 2rem !important;
        padding: 0 24px !important;
    }
    .vertical-text-content .overline, .clients-info .overline {
        display: block !important;
        font-size: 11px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.2em !important;
        font-weight: 600 !important;
        color: rgba(255, 255, 255, 0.4) !important;
        margin-bottom: 0.75rem !important;
    }
    .vertical-text-content, .clients-info {
        text-align: left !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .vertical-text-content h2, .clients-info h2 {
        font-size: 1.75rem !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
    }
    .vertical-text-content p, .clients-info p {
        font-size: 14px !important;
        margin: 0 !important;
        max-width: 100% !important;
        color: rgba(255, 255, 255, 0.65) !important;
        line-height: 1.65 !important;
    }
    .vertical-logo-grid, .clients-logo {
        display: flex !important;
        gap: 0.75rem !important;
        position: relative !important;
        height: 300px !important;
        overflow: hidden !important;
        justify-content: center !important;
        align-items: flex-start !important;
        width: 100% !important;
    }
    .vertical-logo-grid::before,
    .vertical-logo-grid::after,
    .clients-logo::before,
    .clients-logo::after {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;
        z-index: 10 !important;
        pointer-events: none !important;
        display: block !important;
    }
    .vertical-logo-grid::before, .clients-logo::before {
        top: 0 !important;
        background: linear-gradient(to bottom, #000000 0%, rgba(0,0,0,0) 100%) !important;
    }
    .vertical-logo-grid::after, .clients-logo::after {
        bottom: 0 !important;
        background: linear-gradient(to top, #000000 0%, rgba(0,0,0,0) 100%) !important;
    }
    .v-marquee-col, .logo-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: calc(33.333% - 8px) !important;
    }
    .v-client-card, .logo-track {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        will-change: transform !important;
        transform: translateZ(0);
    }
    .v-marquee-col.scroll-up, .logo-track.up {
        animation: marqueeScrollUp 30s linear infinite !important;
    }
    .v-marquee-col.scroll-down, .logo-track.down {
        animation: marqueeScrollDown 30s linear infinite !important;
        transform: translateY(-50%);
    }
    .v-client-card img, .logo-col img {
        display: block !important;
        width: 100% !important;
        height: 85px !important;
        padding: 0.5rem !important;
        object-fit: contain !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        max-width: 100% !important;
    }
    .vertical-logo-grid:hover .v-marquee-col,
    .clients-logo:hover .logo-track {
        animation-play-state: paused !important;
    }

    /* ── WHY BRANDS CHOOSE US (dark) ── */
    #why-choose-us {
        padding: 3rem 0 !important;
    }
    #why-choose-us h2 {
        font-size: 2rem !important;
    }
    #why-choose-us h2 br {
        display: none !important;
    }
    #why-choose-us > .max-w-7xl > .text-center {
        padding: 0 1rem !important;
        margin-bottom: 2rem !important;
    }
    /* Stat counters: 2-col */
    #why-choose-us > .max-w-7xl > .grid.grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    #why-choose-us .stat-card {
        padding: 1rem !important;
    }
    #why-choose-us .stat-card .text-3xl {
        font-size: 1.75rem !important;
    }
    /* Feature cards: 1-col */
    #why-choose-us > .max-w-7xl > .grid.sm\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    #why-choose-us .spotlight-card {
        padding: 1.25rem !important;
    }
    #why-choose-us .spotlight-card .w-14 {
        width: 2.75rem !important;
        height: 2.75rem !important;
    }
    #why-choose-us .spotlight-card h3 {
        font-size: 1.1rem !important;
    }
    /* Blobs: subtle */
    #why-choose-us .floating-blob-1 {
        width: 180px !important;
        height: 180px !important;
        opacity: 0.04 !important;
    }
    #why-choose-us .floating-blob-2 {
        width: 100px !important;
        height: 100px !important;
        opacity: 0.04 !important;
    }
    #why-choose-us .floating-blob-3 {
        width: 80px !important;
        height: 80px !important;
        opacity: 0.04 !important;
    }

    /* ── SERVICES ── */
    #services {
        padding: 3rem 0 !important;
    }
    #services h2 {
        font-size: 2rem !important;
    }
    /* Service cards: 1-col */
    #services > .max-w-7xl > .grid.sm\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    #services .spotlight-card {
        padding: 1.25rem !important;
    }
    #services .spotlight-card .w-12 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    #services .spotlight-card h3 {
        font-size: 1.15rem !important;
    }
    /* Services: View All button */
    #services .btn-primary {
        padding: 12px 24px !important;
        font-size: 13px !important;
    }

    /* ── WHY CHOOSE US (white) ── */
    .section-why-choose {
        padding: 3rem 0 !important;
    }
    .section-why-choose h2 {
        font-size: 2rem !important;
    }
    .section-why-choose h2 br {
        display: none !important;
    }
    /* Image: auto height */
    .section-why-choose .relative.rounded-3xl {
        height: auto !important;
        min-height: 240px !important;
        max-height: 300px !important;
    }
    /* Floating stat card: inline */
    .section-why-choose .absolute.-bottom-6 {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        margin: -1rem auto 0 !important;
        width: 90% !important;
        max-width: 260px !important;
    }
    /* Feature list items */
    .section-why-choose .space-y-3 .group {
        padding: 12px !important;
    }
    .section-why-choose .space-y-3 .group h3 {
        font-size: 15px !important;
    }
    .section-why-choose .space-y-3 .group p {
        font-size: 13px !important;
    }
    .section-why-choose .space-y-3 .w-11 {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }
    /* Blobs */
    .section-why-choose .floating-blob-1 {
        width: 160px !important;
        height: 160px !important;
        opacity: 0.04 !important;
    }
    .section-why-choose .floating-blob-2 {
        width: 100px !important;
        height: 100px !important;
        opacity: 0.04 !important;
    }

    /* ── PROOF / DASHBOARD ── */
    #proof {
        padding: 3rem 0 !important;
    }
    #proof h2 {
        font-size: 2rem !important;
    }
    #proof-dashboard {
        border-radius: 20px !important;
    }
    #proof-dashboard .p-5 {
        padding: 1rem !important;
    }
    /* Dashboard: revenue / leads / ROAS cards stack vertical */
    #proof-dashboard .grid.grid-cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    #proof-dashboard .grid.grid-cols-3 > .rounded-2xl {
        padding: 10px !important;
    }
    #proof-dashboard .grid.grid-cols-3 > .rounded-2xl .text-2xl {
        font-size: 1.1rem !important;
    }
    #proof-dashboard .lg\:col-span-8 > .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    #proof-dashboard .lg\:col-span-8 > .grid-cols-3 > .rounded-2xl {
        padding: 10px !important;
    }
    /* Channel bars */
    #proof-dashboard .text-\[11px\] {
        font-size: 10px !important;
    }
    /* Goal completion rings */
    #proof-dashboard .grid.grid-cols-3.gap-2 {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* ── FEATURE CAPABILITIES ── */
    .capability-item {
        padding: 1rem !important;
    }
    .capability-item .w-10 {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }
    .capability-item h3 {
        font-size: 14px !important;
    }
    .capability-item p {
        font-size: 12px !important;
    }
    .pl-\[52px\] {
        padding-left: 2.5rem !important;
    }

    /* ── TRUST ── */
    #trust {
        padding: 3rem 0 !important;
    }
    #trust h2 {
        font-size: 2rem !important;
    }
    /* Trust cards: 2-col, auto height */
    #trust > .max-w-7xl > .grid.sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    #trust .glass-strong.h-56 {
        height: auto !important;
        min-height: 150px !important;
        padding: 1.25rem !important;
        border-radius: 20px !important;
    }
    #trust .glass-strong.h-56 .w-10 {
        width: 2.25rem !important;
        height: 2.25rem !important;
        margin-bottom: 0.75rem !important;
    }
    #trust .glass-strong.h-56 .text-4xl {
        font-size: 2rem !important;
    }
    #trust .glass-strong.h-56 .text-\[14px\] {
        font-size: 11px !important;
    }

    /* ── REVIEWS ── */
    #reviews {
        padding: 3rem 0 !important;
    }
    #reviews h2 {
        font-size: 2rem !important;
    }
    #reviews > .max-w-7xl > .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    #reviews .rounded-3xl.border {
        padding: 1.25rem !important;
    }
    #reviews .rounded-3xl.border p {
        font-size: 14px !important;
    }

    /* ── CTA ── */
    #contact {
        padding: 3rem 0 !important;
    }
    #contact h2 {
        font-size: 2.25rem !important;
    }
    #contact .rounded-\[36px\] {
        padding: 2rem 1.5rem !important;
        border-radius: 24px !important;
    }
    #contact .rounded-\[36px\] > .grid.lg\:grid-cols-12 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    #contact .flex.flex-col.sm\:flex-row {
        flex-direction: column !important;
        gap: 10px !important;
    }
    #contact a[href="audit.html"] {
        width: 100% !important;
        justify-content: center !important;
    }
    #contact a[href="contact.html"] {
        width: 100% !important;
        justify-content: center !important;
    }
    #contact .rounded-3xl.border {
        padding: 1rem !important;
    }
    #contact .text-4xl {
        font-size: 2rem !important;
    }
    /* CTA blobs */
    #contact .cta-blob-1 {
        width: 160px !important;
        height: 160px !important;
    }
    #contact .cta-blob-2 {
        width: 200px !important;
        height: 200px !important;
    }

    /* ── FOOTER ── */
    [class*="bg-slate-950"].text-white {
        padding-top: 3rem !important;
        padding-bottom: 1.5rem !important;
    }
    [class*="bg-slate-950"].text-white .grid.lg\:grid-cols-12 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    [class*="bg-slate-950"].text-white .lg\:col-span-4 {
        text-align: center !important;
    }
    [class*="bg-slate-950"].text-white .lg\:col-span-4 .flex {
        justify-content: center !important;
    }
    [class*="bg-slate-950"].text-white .lg\:col-span-4 p {
        margin: 0 auto !important;
        max-width: 100% !important;
    }
    [class*="bg-slate-950"].text-white .lg\:col-span-8 > .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    [class*="bg-slate-950"].text-white .border-t {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }
    [class*="bg-slate-950"].text-white .border-t [class*="items-center"].gap-4 {
        justify-content: center !important;
    }

    /* ── TYPOGRAPHY SCALING ── */
    .outline-title,
    .fill-title {
        font-size: clamp(32px, 10vw, 56px) !important;
        -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85) !important;
    }
    #scroll-cue {
        bottom: 20px !important;
    }
    #scroll-cue span {
        font-size: 8px !important;
    }
    .scroll-line {
        height: 28px !important;
    }
    .overline-label {
        font-size: 10px !important;
    }

    /* ── SECTION PADDING (consistent 90px → ~5.6rem) ── */
    #why-choose-us,
    #services,
    #proof,
    #trust,
    #reviews,
    #contact,
    .vertical-marquee-section,
    .brand-section,
    .section-why-choose {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    .py-\[90px\] {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    .py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* ── PARTNER SECTION blob (hidden on mobile) ── */
    .bg-black.overflow-hidden > .absolute:first-child {
        display: none !important;
    }

    /* ── REVEAL: force visible on mobile (no animation) ── */
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .text-reveal {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    /* ── PREVENT iOS ZOOM on inputs ── */
    input, textarea, select {
        font-size: 16px !important;
    }
}


/* ======================================================================
   SMALL PHONES — max-width: 480px
   ====================================================================== */
@media (max-width: 480px) {

    /* ── NAVBAR ── */
    #nav-wrapper {
        height: 46px !important;
        padding: 0 12px !important;
    }
    #nav-wrapper img[alt*="Logo"] {
        height: 20px !important;
    }
    #nav-wrapper a[href="audit.html"] {
        font-size: 10px !important;
        padding: 6px 10px !important;
    }
    #hamburger-btn {
        padding: 4px !important;
    }

    /* ── HERO ── */
    .hero-scene-overlay {
        width: 90% !important;
        max-width: none !important;
        left: 5vw !important;
        bottom: 8vh !important;
    }
    .outline-title,
    .fill-title {
        font-size: clamp(26px, 9vw, 40px) !important;
    }
    .hero-scene-overlay p {
        font-size: 13px !important;
    }
    .hero-scene-overlay a {
        padding: 10px 20px !important;
        font-size: 10px !important;
    }
    #hero-scene-dots {
        display: none !important;
    }

    /* ── PARTNER LOGO MARQUEE ── */
    #logo-view-marquee .partner-marquee-item {
        width: 85px !important;
        height: 36px !important;
        padding: 6px 8px !important;
        gap: 6px !important;
        border-radius: 6px !important;
    }
    #logo-view-marquee .partner-marquee-item svg {
        width: 16px !important;
        height: 16px !important;
    }
    #logo-view-marquee .partner-marquee-item span {
        font-size: 8px !important;
    }
    #logo-view-marquee .partner-marquee-track {
        gap: 8px !important;
    }

    /* ── PARTNER GRID ── */
    #partner-grid-wrap {
        gap: 8px !important;
    }
    #partner-grid-wrap .pc {
        padding: 12px 14px !important;
        gap: 10px !important;
    }
    #partner-grid-wrap .pc svg {
        width: 24px !important;
        height: 24px !important;
    }
    #partner-grid-wrap .pc [style*="font-size:15px"] {
        font-size: 13px !important;
    }

    /* ── PARTNER SECTION ── */
    .bg-black.overflow-hidden > .max-w-7xl > .grid h2 {
        font-size: 1.75rem !important;
    }
    .bg-black.overflow-hidden .glass-strong {
        padding: 1.25rem !important;
    }
    .bg-black.overflow-hidden .text-7xl {
        font-size: 2.5rem !important;
    }

    /* ── VERTICAL LOGOS (Trusted By Industry Leaders) ── */
    .vertical-logo-grid, .clients-logo {
        height: 250px !important;
    }
    .v-client-card img, .logo-col img {
        height: 70px !important;
        padding: 0.35rem !important;
    }
    .vertical-text-content h2 {
        font-size: 1.5rem !important;
    }
    .vertical-text-content p {
        font-size: 0.85rem !important;
    }

    /* ── WHY BRANDS CHOOSE US ── */
    #why-choose-us h2 {
        font-size: 1.75rem !important;
    }
    #why-choose-us > .max-w-7xl > .grid.grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    #why-choose-us .stat-card {
        padding: 0.75rem !important;
    }
    #why-choose-us .stat-card .text-3xl {
        font-size: 1.4rem !important;
    }
    #why-choose-us .stat-card .text-\[10px\] {
        font-size: 9px !important;
    }
    #why-choose-us .spotlight-card {
        padding: 1rem !important;
    }

    /* ── SERVICES ── */
    #services h2 {
        font-size: 1.75rem !important;
    }
    #services .spotlight-card {
        padding: 1rem !important;
    }
    #services .spotlight-card h3 {
        font-size: 1.05rem !important;
    }
    #services .spotlight-card p {
        font-size: 13px !important;
    }

    /* ── WHY CHOOSE US ── */
    .section-why-choose h2 {
        font-size: 1.75rem !important;
    }
    .section-why-choose .relative.rounded-3xl {
        min-height: 200px !important;
        max-height: 240px !important;
    }
    .section-why-choose .space-y-3 .group {
        padding: 10px !important;
    }
    .section-why-choose .space-y-3 .group h3 {
        font-size: 14px !important;
    }
    .section-why-choose .space-y-3 .group p {
        font-size: 12px !important;
    }
    .section-why-choose .absolute.-bottom-6 {
        padding: 1rem !important;
    }
    .section-why-choose .absolute.-bottom-6 .text-3xl {
        font-size: 1.5rem !important;
    }

    /* ── PROOF / DASHBOARD ── */
    #proof h2 {
        font-size: 1.75rem !important;
    }
    #proof-dashboard .grid.grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    #proof-dashboard .lg\:col-span-8 > .grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
    #proof-dashboard .grid.grid-cols-3.gap-2 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    #proof-dashboard .h-44 {
        height: 120px !important;
    }
    #proof-dashboard .text-2xl {
        font-size: 1.1rem !important;
    }
    #proof-dashboard .p-5 {
        padding: 0.75rem !important;
    }
    #proof-dashboard .gap-5 {
        gap: 0.75rem !important;
    }

    /* ── FEATURE CAPABILITIES ── */
    .capability-item {
        padding: 0.85rem !important;
    }

    /* ── TRUST ── */
    #trust h2 {
        font-size: 1.75rem !important;
    }
    #trust > .max-w-7xl > .grid.sm\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    #trust .glass-strong.h-56 {
        min-height: 130px !important;
        padding: 1rem !important;
    }
    #trust .glass-strong.h-56 .text-4xl {
        font-size: 1.75rem !important;
    }

    /* ── REVIEWS ── */
    #reviews h2 {
        font-size: 1.75rem !important;
    }
    #reviews .rounded-3xl.border {
        padding: 1rem !important;
    }
    #reviews .rounded-3xl.border p {
        font-size: 13px !important;
    }

    /* ── CTA ── */
    #contact h2 {
        font-size: 1.75rem !important;
    }
    #contact .rounded-\[36px\] {
        padding: 1.5rem 1rem !important;
        border-radius: 20px !important;
    }
    #contact .text-4xl {
        font-size: 1.5rem !important;
    }
    #contact .flex.gap-3 {
        gap: 8px !important;
    }
    #contact a[href="audit.html"],
    #contact a[href="contact.html"] {
        padding: 12px 20px !important;
        font-size: 13px !important;
    }
    /* CTA blobs: hide on small phones */
    #contact .cta-blob-1,
    #contact .cta-blob-2 {
        display: none !important;
    }

    /* ── FOOTER ── */
    [class*="bg-slate-950"].text-white .lg\:col-span-8 > .grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    [class*="bg-slate-950"].text-white ul li [href] {
        font-size: 13px !important;
    }

    /* ── BLOBS: hide decorative on small phones ── */
    #why-choose-us .floating-blob-1,
    #why-choose-us .floating-blob-2,
    #why-choose-us .floating-blob-3,
    .section-why-choose .floating-blob-1,
    .section-why-choose .floating-blob-2 {
        display: none !important;
    }

    /* ── SECTION PADDING (compact on small phones) ── */
    #why-choose-us,
    #services,
    #proof,
    #trust,
    #reviews,
    #contact,
    .vertical-marquee-section,
    .brand-section,
    .section-why-choose {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .py-16 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    #credentials-section {
        padding-top: 1rem !important;
    }
}


/* ======================================================================
   VERY SMALL PHONES — max-width: 360px
   ====================================================================== */
@media (max-width: 360px) {

    /* ── NAVBAR ── */
    #nav-wrapper {
        height: 42px !important;
        padding: 0 10px !important;
    }
    #nav-wrapper img[alt*="Logo"] {
        height: 18px !important;
    }
    #nav-wrapper a[href="audit.html"] {
        font-size: 9px !important;
        padding: 5px 8px !important;
    }

    /* ── HERO ── */
    .outline-title,
    .fill-title {
        font-size: clamp(22px, 8vw, 34px) !important;
    }
    .hero-scene-overlay p {
        font-size: 12px !important;
    }

    /* ── PARTNER LOGO MARQUEE ── */
    #logo-view-marquee .partner-marquee-item {
        width: 72px !important;
        height: 32px !important;
        padding: 4px 6px !important;
    }
    #logo-view-marquee .partner-marquee-item svg {
        width: 14px !important;
        height: 14px !important;
    }
    #logo-view-marquee .partner-marquee-item span {
        font-size: 7px !important;
    }

    /* ── VERTICAL LOGOS (Trusted By Industry Leaders) ── */
    .vertical-logo-grid, .clients-logo {
        height: 220px !important;
    }
    .v-client-card img, .logo-col img {
        height: 60px !important;
        padding: 0.25rem !important;
    }
    .vertical-text-content h2 {
        font-size: 1.35rem !important;
    }

    /* ── WHY BRANDS CHOOSE US ── */
    #why-choose-us h2 {
        font-size: 1.5rem !important;
    }

    /* ── SERVICES ── */
    #services h2 {
        font-size: 1.5rem !important;
    }

    /* ── WHY CHOOSE US ── */
    .section-why-choose h2 {
        font-size: 1.5rem !important;
    }

    /* ── PROOF ── */
    #proof h2 {
        font-size: 1.5rem !important;
    }

    /* ── TRUST ── */
    #trust h2 {
        font-size: 1.5rem !important;
    }

    /* ── REVIEWS ── */
    #reviews h2 {
        font-size: 1.5rem !important;
    }

    /* ── CTA ── */
    #contact h2 {
        font-size: 1.5rem !important;
    }
    #contact .rounded-\[36px\] {
        padding: 1.25rem 0.85rem !important;
    }

    /* ── SECTION PADDING ── */
    #why-choose-us,
    #services,
    #proof,
    #trust,
    #reviews,
    #contact,
    .vertical-marquee-section,
    .brand-section,
    .section-why-choose {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    #credentials-section {
        padding-top: 0.75rem !important;
    }
}

/* ================================================================
   MOBILE REDESIGN PATCH — added on top of existing rules
   Scope: mobile only (<=640px unless noted). Nothing here touches
   desktop styles or overrides anything above 768px. All rules are
   additive/last-in-cascade so existing behaviour above 768px is
   completely unchanged.
   ================================================================ */

/* --- 1. True single-column cards on phones ---------------------
   Existing rules already turn 3/4-col grids into 2-col at 768px.
   On real phones (<=640px) most card grids read better as 1 column.
   Known stat/mini-metric grids are excluded so they keep their
   compact 2–3 col layout (they are addressed by their own,
   more specific selectors already in this file). */
@media (max-width: 640px) {
    .grid-cols-2:not(.cs-results):not([class*="stat"]),
    .md\:grid-cols-2:not(.cs-results):not([class*="stat"]),
    .grid-cols-3:not(.cs-results):not([class*="stat"]),
    .md\:grid-cols-3:not(.cs-results):not([class*="stat"]),
    .lg\:grid-cols-3:not(.cs-results):not([class*="stat"]),
    .grid-cols-4:not(.cs-results):not([class*="stat"]),
    .md\:grid-cols-4:not(.cs-results):not([class*="stat"]),
    .lg\:grid-cols-4:not(.cs-results):not([class*="stat"]) {
        grid-template-columns: 1fr !important;
    }
}

/* --- 2. Consistent vertical rhythm between sections -------------
   Applies only to generic Tailwind spacing utilities that don't
   already have a page-specific override, so nothing double-fires. */
@media (max-width: 768px) {
    section.py-24, section.py-28, section.py-32, section.py-20 {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }
}

/* --- 3. Navbar: even spacing between logo / CTA / hamburger ----- */
@media (max-width: 768px) {
    #nav-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }
}

/* --- 4. Footer: bigger, centered, breathing room on phones ------ */
@media (max-width: 640px) {
    footer .max-w-7xl,
    footer .max-w-6xl {
        text-align: center;
    }
    footer .grid {
        justify-items: center !important;
        text-align: center !important;
    }
    footer {
        padding-top: 56px !important;
        padding-bottom: 40px !important;
    }
}

/* --- 5. Touch-friendly tap targets everywhere -------------------- */
@media (max-width: 640px) {
    a, button, [role="button"] {
        touch-action: manipulation;
    }
}