/* ═══════════════════════════════════════════════════════════
   PIXELSPOT AI — v15 GENESIS
   World's Most Advanced AI-Powered Website Theme
   Gemini AI Integration • Neural Intelligence Engine
   Real-Time AI Chat • Predictive UX • Living Design System
   Zero Apple — 100% PixelSpot Original
   ═══════════════════════════════════════════════════════════ */

/* ── Houdini Custom Properties ── */
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --hue   { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --glow  { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --morph { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

/* ═══════════════════════════════════════════
   COLOR SYSTEM — Neural Dark
   Refined deep dark with living accents
   ═══════════════════════════════════════════ */
:root {
    /* Core palette — Apple-inspired light */
    --bg-void: #f5f5f7;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5f7;
    --bg-glass: rgba(255, 255, 255, 0.82);
    --bg-glass-heavy: rgba(255, 255, 255, 0.96);

    /* Text — Apple hierarchy */
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #86868b;
    --text-accent: #0071e3;

    /* Apple color spectrum */
    --neon-cyan: #0071e3;
    --neon-blue: #0071e3;
    --neon-purple: #2563eb;
    --neon-violet: #0071e3;
    --neon-pink: #ff3b30;
    --neon-magenta: #bf5af2;
    --neon-green: #34c759;
    --neon-amber: #ff9f0a;

    /* Accent system — Apple blue */
    --accent: #0071e3;
    --accent-light: #2997ff;
    --accent-hover: #0077ED;
    --accent-glow: rgba(0, 113, 227, 0.2);
    --accent-subtle: rgba(0, 113, 227, 0.06);

    /* Gradients — Apple-inspired */
    --gradient-1: linear-gradient(135deg, #0071e3 0%, #2997ff 100%);
    --gradient-2: linear-gradient(135deg, #0071e3 0%, #2997ff 100%);
    --gradient-text: linear-gradient(90deg, #0071e3, #2563eb, #3b82f6);
    --gradient-aurora: linear-gradient(135deg, #e5e7eb, #eef2ff, #f0f9ff);
    --gradient-holographic: linear-gradient(var(--angle),
        #0071e3 0%, #2997ff 25%, #0071e3 50%, #2997ff 75%, #0071e3 100%);

    /* Borders & shadows — Apple light */
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 113, 227, 0.3);
    --border-glow: rgba(0, 113, 227, 0.4);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.04);
    --shadow-epic: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-neon: 0 0 30px rgba(0,113,227,0.1);
    --shadow-neon-cyan: 0 0 30px rgba(0,113,227,0.08);

    /* Geometry */
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --radius-2xl: 40px;
    --nav-height: 44px;

    /* Easings */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-cinematic: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0, 1);

    /* Noise texture */
    --noise: none;
}

/* ═══ Global Body — World-Class Typography ═══ */
body {
    background: var(--bg-void) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    overflow-x: hidden !important;
    text-rendering: optimizeLegibility !important;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11' !important;
}

/* ═══ Clean Page Entrance ═══ */
body {
    opacity: 1 !important;
}

/* ═══ Film Grain — Disabled for clean look ═══ */
body::after {
    display: none !important;
}

/* ═══ Heavy visual effects — Hidden for clean light experience ═══ */
.liquid-mesh,
.grid-pattern,
.aurora-container,
.quantum-field,
.chrome-gradient,
.prismatic-refraction,
.neural-pulse-grid,
.gravitational-lens,
.cursor-neural-trail,
.ai-floating-orbs,
.cinematic-depth-layers,
.magnetic-field-lines,
.ai-breathing-ui,
.ai-spotlight,
.sentiment-engine,
.neural-morph-cards-overlay,
.temporal-morphing,
.custom-cursor,
.cursor-glow {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Neural canvas — subtle on light theme */
#neural-canvas {
    opacity: 0.35 !important;
}
[data-theme="light"] #neural-canvas {
    opacity: 0.25 !important;
}

/* ═══════════════════════════════════════════
   NEURAL CONSTELLATION CANVAS
   AI particle network drawn via JS
   ═══════════════════════════════════════════ */
#neural-canvas {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    opacity: 0.65;
}

/* ═══════════════════════════════════════════
   LIQUID MESH GRADIENT — Living Background
   ═══════════════════════════════════════════ */
.liquid-mesh {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    mix-blend-mode: screen;
}

.mesh-orb:nth-child(1) {
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.07) 0%, transparent 70%);
    top: -30%; left: -15%;
    filter: blur(100px);
    animation: meshOrb1 28s ease-in-out infinite;
}
.mesh-orb:nth-child(2) {
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    top: 15%; right: -20%;
    filter: blur(110px);
    animation: meshOrb2 24s ease-in-out infinite;
}
.mesh-orb:nth-child(3) {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(176, 64, 255, 0.05) 0%, transparent 70%);
    bottom: 5%; left: 25%;
    filter: blur(120px);
    animation: meshOrb3 30s ease-in-out infinite;
}
.mesh-orb:nth-child(4) {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255, 64, 129, 0.04) 0%, transparent 70%);
    top: 45%; left: 55%;
    filter: blur(130px);
    animation: meshOrb2 26s ease-in-out infinite reverse;
}
.mesh-orb:nth-child(5) {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.03) 0%, transparent 70%);
    top: 70%; right: 10%;
    filter: blur(140px);
    animation: meshOrb1 32s ease-in-out infinite reverse;
}

@keyframes meshOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -80px) scale(1.2); }
    50% { transform: translate(-60px, 100px) scale(0.85); }
    75% { transform: translate(70px, -40px) scale(1.1); }
}
@keyframes meshOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(-90px, 70px) scale(1.15) rotate(120deg); }
    66% { transform: translate(80px, -50px) scale(0.9) rotate(240deg); }
}
@keyframes meshOrb3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(60px, -90px) scale(1.1); }
    40% { transform: translate(-80px, 40px) scale(0.95); }
    60% { transform: translate(40px, 70px) scale(1.05); }
    80% { transform: translate(-50px, -60px) scale(0.9); }
}

/* ═══════════════════════════════════════════
   GRID PATTERN — Subtle Neural Net Lines
   ═══════════════════════════════════════════ */
.grid-pattern {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(0,0,0,0.6) 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(0,0,0,0.6) 0%, transparent 80%);
}

/* ═══════════════════════════════════════════
   SCROLL PROGRESS — Holographic Bar
   ═══════════════════════════════════════════ */
.scroll-progress {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, #0071e3, #0071e3) !important;
    background-size: 100% 100% !important;
    animation: none !important;
    z-index: 10001 !important;
    width: 0% !important;
    box-shadow: none !important;
}
@keyframes holoScroll {
    0%   { background-position: 0% 50%; }
    100% { background-position: 600% 50%; }
}

/* ═══════════════════════════════════════════
   AOS — Intelligent Entrance System
   ═══════════════════════════════════════════ */
[data-aos] {
    opacity: 0 !important;
    transform: translateY(60px) scale(0.96) !important;
    transition: 
        opacity 1s var(--ease-out-expo),
        transform 1s var(--ease-out-expo),
        filter 1.2s var(--ease-out-expo) !important;
    filter: blur(8px);
}
[data-aos].aos-animate {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0);
}
[data-aos-delay="150"].aos-animate { transition-delay: 0.12s !important; }
[data-aos-delay="200"].aos-animate { transition-delay: 0.18s !important; }
[data-aos-delay="300"].aos-animate { transition-delay: 0.25s !important; }
[data-aos-delay="400"].aos-animate { transition-delay: 0.35s !important; }
[data-aos-delay="450"].aos-animate { transition-delay: 0.4s !important; }

/* ═══════════════════════════════════════════
   NAVBAR — Apple.com Exact Replica
   ═══════════════════════════════════════════ */
.navbar {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    height: 44px !important;
    transition: background 0.4s ease !important;
    box-shadow: none !important;
    z-index: 10000 !important;
    isolation: isolate !important;
}
.navbar.scrolled {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
}
.nav-container {
    max-width: 980px !important;
    height: 44px !important;
    padding: 0 22px !important;
    justify-content: center !important;
    gap: 0 !important;
}
.nav-logo {
    margin-right: auto !important;
}
.nav-links {
    gap: 0 !important;
    margin-right: auto !important;
}
.nav-toggle {
    margin-left: auto !important;
}

.logo-img {
    height: 24px !important;
    filter: brightness(0) saturate(100%) !important;
    transition: opacity 0.3s !important;
}
.logo-img:hover {
    transform: none !important;
    filter: brightness(0) saturate(100%) !important;
    opacity: 0.7 !important;
}

.nav-link {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: rgba(0, 0, 0, 0.8) !important;
    padding: 0 10px !important;
    border-radius: 0 !important;
    background: transparent !important;
    transition: opacity 0.3s ease !important;
    position: relative !important;
    line-height: 44px !important;
}
.nav-link::after {
    display: none !important;
}
.nav-link:hover::after, .nav-link.active::after {
    display: none !important;
}
.nav-link:hover {
    color: rgba(0, 0, 0, 0.56) !important;
    opacity: 1 !important;
    background: transparent !important;
}
.nav-link.active {
    color: rgba(0, 0, 0, 0.8) !important;
    font-weight: 400 !important;
    background: transparent !important;
}

.nav-cta {
    padding: 4px 14px !important;
    background: #0071e3 !important;
    color: white !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    border-radius: 980px !important;
    box-shadow: none !important;
    transition: background 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    line-height: 1.33337 !important;
    letter-spacing: -0.01em !important;
}
.nav-cta::before { display: none !important; }
.nav-cta:hover {
    background: #0077ED !important;
    transform: none !important;
    box-shadow: none !important;
}
.nav-toggle span { background: #1d1d1f !important; }

/* ═══════════════════════════════════════════
   HERO — Deep Space Neural
   ═══════════════════════════════════════════ */
.hero {
    min-height: 100vh !important;
    background: transparent !important;
    padding-top: calc(var(--nav-height) + 80px) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
}
/* Keep hero backgrounds visible for Apple light theme */

/* Radiant orbs behind hero */
.hero::before {
    content: '' !important;
    position: absolute !important;
    width: 1000px !important; height: 1000px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(0,113,227,0.04) 0%, rgba(0,113,227,0.02) 40%, transparent 70%) !important;
    top: -30% !important; right: -25% !important;
    pointer-events: none !important; z-index: 0 !important;
    animation: heroFloat 20s ease-in-out infinite !important;
    filter: blur(80px) !important;
}
.hero::after {
    content: '' !important;
    position: absolute !important;
    width: 800px !important; height: 800px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(0,113,227,0.03) 0%, rgba(0,113,227,0.015) 40%, transparent 70%) !important;
    bottom: -20% !important; left: -20% !important;
    pointer-events: none !important; z-index: 0 !important;
    animation: heroFloat 26s ease-in-out infinite reverse !important;
    filter: blur(80px) !important;
}
@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -70px) scale(1.12); }
    50% { transform: translate(-40px, 60px) scale(0.88); }
    75% { transform: translate(50px, -30px) scale(1.06); }
}

.hero-content {
    animation: heroReveal 2.4s var(--ease-cinematic) 0.3s both !important;
    position: relative !important; z-index: 2 !important;
}
@keyframes heroReveal {
    0%   { opacity: 0; transform: translateY(100px) scale(0.9); filter: blur(30px) saturate(0.3); }
    40%  { filter: blur(8px) saturate(0.7); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) saturate(1); }
}

.hero-title {
    font-size: clamp(3.2rem, 8vw, 6.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.05em !important;
    color: var(--text-primary) !important;
    margin-bottom: 28px !important;
}

/* Character split animation */
.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(80px) rotateX(60deg) scale(0.4);
    filter: blur(6px);
    animation: charReveal 1s var(--ease-out-expo) both;
    will-change: transform, opacity, filter;
}
/* Gradient text chars: inherit parent gradient, don't hide */
.gradient-text .char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: charReveal 1s var(--ease-out-expo) both !important;
    -webkit-text-fill-color: transparent !important;
}
.hero-title .word { display: inline-block; }
@keyframes charReveal {
    to { opacity: 1; transform: translateY(0) rotateX(0) scale(1); filter: blur(0); }
}

/* Gradient text — Apple style */
.gradient-text {
    background: linear-gradient(90deg, #0071e3, #0071e3, #bf5af2) !important;
    background-size: 200% 100% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: prismaticText 6s ease-in-out infinite !important;
    filter: none !important;
}
@keyframes prismaticText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.15rem !important;
    color: #1d1d1f !important;
    max-width: 560px !important;
    margin: 0 auto 44px !important;
    line-height: 1.75 !important;
    animation: heroReveal 2.4s var(--ease-cinematic) 0.8s both !important;
}
.hero-buttons { animation: heroReveal 2.4s var(--ease-cinematic) 1.1s both !important; }
.hero-visual { display: none !important; }

/* ═══════════════════════════════════════════
   BUTTONS — Clean Apple Style
   ═══════════════════════════════════════════ */
.btn {
    border-radius: 980px !important;
    padding: 12px 28px !important;
    font-weight: 400 !important;
    font-size: 17px !important;
    letter-spacing: -0.01em !important;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    cursor: pointer !important;
}
.btn::before { display: none !important; }

.btn-primary {
    background: #0071e3 !important;
    color: white !important;
    box-shadow: none !important;
    border: none !important;
}
.btn-primary:hover {
    background: #0077ED !important;
    transform: none !important;
    box-shadow: none !important;
}
.btn-primary:active { transform: scale(0.97) !important; transition-duration: 0.1s !important; }

.btn-outline {
    background: transparent !important;
    color: #0071e3 !important;
    border: 2px solid #0071e3 !important;
    padding: 11px 28px !important;
    backdrop-filter: none !important;
}
.btn-outline:hover {
    border-color: #0071e3 !important;
    background: rgba(0,113,227,0.04) !important;
    transform: none !important;
    box-shadow: none !important;
    color: #0071e3 !important;
}

.btn-sm {
    background: transparent !important;
    color: #0071e3 !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.92rem !important;
    border-radius: 0 !important;
    font-weight: 500 !important;
}
.btn-sm:hover { color: #0077ED !important; transform: translateX(4px) !important; background: transparent !important; }
.btn-sm::after { content: ' →' !important; display: inline-block !important; transition: transform 0.5s var(--ease-spring) !important; }
.btn-sm:hover::after { transform: translateX(8px) !important; }
.btn-full { width: 100% !important; justify-content: center !important; }

/* Particle burst container */
.particle-burst { position: fixed; pointer-events: none; z-index: 10000; }
.particle { position: absolute; border-radius: 50%; }

/* ═══════════════════════════════════════════
   SECTION SYSTEM — Cinematic Depth
   ═══════════════════════════════════════════ */
.section { padding: 130px 0 !important; position: relative !important; }
.section-header { margin-bottom: 72px !important; }

.section-tag {
    display: inline-block !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    color: #0071e3 !important;
    background: rgba(0, 113, 227, 0.06) !important;
    padding: 7px 18px !important;
    border-radius: 24px !important;
    margin-bottom: 18px !important;
    border: 1px solid rgba(0, 113, 227, 0.12) !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
}
.section-tag::before { content: none !important; }
.section-tag::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: -100% !important;
    width: 100% !important; height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.03), transparent) !important;
    transition: left 0.6s !important;
}
.section-tag:hover::after { left: 100% !important; }

.section-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.045em !important;
    color: var(--text-primary) !important;
    line-height: 1.06 !important;
}
.section-title.revealed { animation: sectionTitleIn 1.4s var(--ease-out-expo) both; }
@keyframes sectionTitleIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); filter: blur(8px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.section-subtitle {
    font-size: 1.05rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.75 !important;
    max-width: 540px !important;
}

/* Animated neon section divider */
.section + .section::before {
    content: '' !important;
    display: block !important;
    width: 100px !important; height: 1px !important;
    background: rgba(0,0,0,0.08) !important;
    background-size: 100% 100% !important;
    animation: none !important;
    margin: 0 auto !important;
    position: relative !important; top: -65px !important;
    border-radius: 1px !important;
    box-shadow: none;
}
@keyframes dividerPrismatic {
    0%   { background-position: 0% 50%; opacity: 0.2; }
    50%  { background-position: 600% 50%; opacity: 0.8; }
    100% { background-position: 0% 50%; opacity: 0.2; }
}

/* ═══════════════════════════════════════════
   SERVICE CARDS — Holographic Prismatic Border
   ═══════════════════════════════════════════ */
.service-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    padding: 56px 48px !important;
    box-shadow: var(--shadow-card) !important;
    transition: transform 0.8s var(--ease-out-expo), box-shadow 0.8s var(--ease-out-expo), border-color 0.5s !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
}
.service-card::before { display: none !important; }

/* Card border — hidden for Apple clean style */
.service-card::after {
    display: none !important;
}
}
@keyframes borderSpin { to { --angle: 360deg; } }

.service-card:hover::after { display: none !important; }
.service-card:hover {
    transform: translateY(-4px) scale(1.005) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08) !important;
    border-color: rgba(0,0,0,0.1) !important;
    background: var(--bg-card-hover) !important;
}
.service-card h3 { font-size: 1.45rem !important; font-weight: 700 !important; color: var(--text-primary) !important; }
.service-card p { color: var(--text-secondary) !important; font-size: 0.93rem !important; line-height: 1.7 !important; }
.service-features li { color: var(--text-secondary) !important; }
.service-icon {
    font-size: 2.8rem !important;
    margin-bottom: 22px !important;
    display: inline-block !important;
    transition: transform 0.7s var(--ease-spring) !important;
}
.service-card:hover .service-icon { transform: scale(1.25) rotate(-10deg) !important; }

/* ═══════════════════════════════════════════
   PERSONA CARDS — Neural Glow
   ═══════════════════════════════════════════ */
.persona-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    padding: 56px 40px !important;
    box-shadow: var(--shadow-card) !important;
    transition: all 0.8s var(--ease-out-expo) !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(12px) !important;
}
/* Inner glow */
.persona-card::before {
    content: '' !important;
    position: absolute !important; inset: 0 !important;
    background: radial-gradient(ellipse at 50% 120%, rgba(0,113,227,0.03), transparent 60%) !important;
    opacity: 0 !important;
    transition: opacity 0.6s !important;
    border-radius: inherit !important;
}
.persona-card:hover::before { opacity: 1 !important; }

/* Border on hover — hidden for clean Apple look */
.persona-card::after {
    content: '' !important;
    position: absolute !important; inset: 0 !important;
    border-radius: inherit !important;
    padding: 1px !important;
    background: transparent !important;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-composite: xor !important;
    mask-composite: exclude !important;
    opacity: 0 !important;
    transition: opacity 0.8s !important;
    pointer-events: none !important;
    animation: none !important;
}
.persona-card:hover::after { opacity: 0 !important; }

.persona-card:hover {
    transform: translateY(-4px) scale(1.005) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08) !important;
    border-color: rgba(0,0,0,0.1) !important;
}
.persona-icon { transition: transform 0.7s var(--ease-spring) !important; }
.persona-card:hover .persona-icon { transform: scale(1.4) translateY(-6px) !important; }
.persona-card h3 { color: var(--text-primary) !important; font-weight: 700 !important; }
.persona-card p { color: var(--text-secondary) !important; }

/* ── Apple-style service card override ── */
.service-card.service-card--apple {
    padding: 28px 28px 0 !important;
}

/* ── Apple-style card override — kill all generic persona-card !important styles ── */
.persona-card.persona-card--apple {
    background: #1d1d1f !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
.persona-card.persona-card--apple::before,
.persona-card.persona-card--apple::after {
    display: none !important;
}
.persona-card.persona-card--apple:hover {
    background: #1d1d1f !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25) !important;
    transform: translateY(-4px) !important;
}
.persona-card.persona-card--apple h3,
.persona-card.persona-card--apple .card-title {
    color: #fff !important;
}
.persona-card.persona-card--apple p,
.persona-card.persona-card--apple .card-subtitle {
    color: rgba(255,255,255,0.7) !important;
}
[data-theme="light"] .persona-card.persona-card--apple {
    background: #1d1d1f !important;
    border: none !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.12) !important;
}
[data-theme="light"] .persona-card.persona-card--apple:hover {
    background: #1d1d1f !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2) !important;
}
[data-theme="light"] .persona-card.persona-card--apple h3,
[data-theme="light"] .persona-card.persona-card--apple .card-title {
    color: #fff !important;
}
[data-theme="light"] .persona-card.persona-card--apple p,
[data-theme="light"] .persona-card.persona-card--apple .card-subtitle {
    color: rgba(255,255,255,0.7) !important;
}

/* ═══════════════════════════════════════════
   PORTFOLIO CARDS
   ═══════════════════════════════════════════ */
.portfolio-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-card) !important;
    transition: all 0.8s var(--ease-out-expo) !important;
    cursor: pointer !important;
    position: relative !important;
}
/* Portfolio card border — hidden for Apple clean */
.portfolio-card::after {
    display: none !important;
}
.portfolio-card:hover::after { display: none !important; }
.portfolio-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: var(--shadow-epic) !important;
}
.portfolio-image { transition: transform 1.4s var(--ease-out-expo), filter 1s !important; }
.portfolio-card:hover .portfolio-image { transform: scale(1.12) !important; filter: brightness(1.15) saturate(1.25) !important; }
.portfolio-card h4 { color: var(--text-primary) !important; }
.portfolio-play { color: #0071e3 !important; font-weight: 500 !important; transition: transform 0.5s !important; }
.portfolio-card:hover .portfolio-play { transform: translateX(6px) !important; }

/* ═══════════════════════════════════════════
   STATS — Prismatic Numbers
   ═══════════════════════════════════════════ */
.stat-badge { background: rgba(0,0,0,0.03) !important; border: 1px solid rgba(0,0,0,0.06) !important; }

.reach-stat {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-card) !important;
    transition: all 0.7s var(--ease-out-expo) !important;
    position: relative !important;
    overflow: hidden !important;
}
.reach-stat::after {
    display: none !important;
}
.reach-stat:hover::after { display: none !important; }
.reach-stat:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08) !important;
}

.reach-number, .reach-number-text {
    background: var(--gradient-text) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: none !important;
}
.counter-revealed { animation: counterPop 0.8s var(--ease-spring) both; }
@keyframes counterPop {
    0% { transform: scale(0.2); opacity: 0; filter: blur(10px); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; filter: blur(0); }
}
.reach-label { color: var(--text-primary) !important; }
.reach-desc { color: var(--text-muted) !important; }

/* Map */
.map-card { background: transparent !important; border: none !important; border-radius: 20px !important; box-shadow: none !important; padding: 0 !important; overflow: hidden !important; }
.map-outline { fill: rgba(0,113,227,0.03) !important; stroke: rgba(0,113,227,0.12) !important; }
.coming-soon-badge { background: rgba(0,0,0,0.03) !important; border: 1px solid rgba(0,0,0,0.06) !important; color: #6e6e73 !important; }

.pin-dot {
    background: #0071e3 !important;
    box-shadow: 0 0 8px rgba(0,113,227,0.4) !important;
    animation: pinGlow 2.5s ease-in-out infinite !important;
}
@keyframes pinGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(0,113,227,0.2); transform: scale(1); }
    50% { box-shadow: 0 0 16px rgba(0,113,227,0.5); transform: scale(1.15); }
}
.pin-tooltip {
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
    border-radius: 18px !important;
}
.pin-tooltip strong { color: var(--text-primary) !important; }
.pin-tooltip span { color: var(--text-secondary) !important; }
.pin-tooltip em { color: #0071e3 !important; }

/* ═══════════════════════════════════════════
   QUOTE — Neural Glass Form
   ═══════════════════════════════════════════ */
.quote-section {
    background: var(--bg-secondary) !important;
    position: relative !important;
    overflow: hidden !important;
}
.quote-section::before {
    content: '' !important;
    position: absolute !important;
    width: 800px !important; height: 800px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(0,113,227,0.02) 0%, transparent 70%) !important;
    top: -30% !important; right: -20% !important;
    pointer-events: none !important;
    animation: heroFloat 22s ease-in-out infinite !important;
    filter: blur(80px) !important;
}

.form-group input, .form-group select {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    color: var(--text-primary) !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    font-size: 0.95rem !important;
    transition: all 0.5s var(--ease-out-expo) !important;
}
.form-group input::placeholder { color: var(--text-muted) !important; }
.form-group input:focus, .form-group select:focus {
    border-color: #0071e3 !important;
    box-shadow: 0 0 0 3px rgba(0,113,227,0.1) !important;
    background: white !important;
}
.form-group select option { background: var(--bg-secondary) !important; color: var(--text-primary) !important; }

/* ═══════════════════════════════════════════
   FOOTER — Deep Neural
   ═══════════════════════════════════════════ */
.footer { background: var(--bg-secondary) !important; border-top: 1px solid rgba(0,0,0,0.06) !important; }
.footer-logo { filter: brightness(0) !important; }
.footer-brand p { color: var(--text-secondary) !important; }
.footer-col h4 { color: var(--text-primary) !important; font-size: 0.82rem !important; font-weight: 600 !important; letter-spacing: 0.06em !important; text-transform: uppercase !important; }
.footer-col a { color: var(--text-secondary) !important; font-size: 0.86rem !important; transition: all 0.3s !important; }
.footer-col a:hover { color: #0071e3 !important; transform: translateX(4px) !important; }
.footer-address { color: var(--text-muted) !important; }
.footer-bottom { border-top: 1px solid rgba(0,0,0,0.06) !important; }
.footer-bottom p { color: var(--text-muted) !important; }

.footer-social a {
    background: rgba(0,0,0,0.04) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    color: var(--text-secondary) !important;
    transition: all 0.6s var(--ease-spring) !important;
}
.footer-social a:hover {
    background: #0071e3 !important;
    border-color: #0071e3 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,113,227,0.25) !important;
}

/* ═══════════════════════════════════════════
   CUSTOM CURSOR — Neural Dot
   ═══════════════════════════════════════════ */
.cursor-dot {
    display: none !important;
}
.cursor-dot.hover {
    display: none !important;
}
.cursor-ring {
    display: none !important;
}
.cursor-ring.hover { display: none !important; }

.cursor-glow {
    display: none !important;
}

/* ═══════════════════════════════════════════
   SCROLL BAR — Minimal Neural
   ═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f5f5f7; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

::selection { background: rgba(0,113,227,0.15); color: var(--text-primary); }

/* Text scramble */
.text-scramble { display: inline-block; min-width: 1ch; }

/* Marquee */
.marquee-strip { overflow: hidden; white-space: nowrap; position: relative; padding: 24px 0; }
.marquee-track { display: inline-flex; gap: 60px; animation: marqueeScroll 30s linear infinite; }
.marquee-track span {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700; letter-spacing: -0.02em;
    color: rgba(0,0,0,0.03);
    text-transform: uppercase; flex-shrink: 0; transition: color 0.5s;
}
.marquee-strip:hover .marquee-track span { color: rgba(0,0,0,0.06); }
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Focus */
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* View Transitions */
@supports (view-transition-name: root) {
    ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.5s; }
}

/* ═══════════════════════════════════════════
   MOBILE — Perfect Touch Experience
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    :root { --nav-height: 44px !important; }
    .navbar { height: 44px !important; }

    .nav-links {
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 56px 48px 48px !important;
        gap: 0 !important;
        align-items: flex-start !important;
        text-align: left !important;
        z-index: 10000 !important;
    }
    .nav-link {
        display: block !important;
        font-size: 28px !important;
        font-weight: 600 !important;
        color: #6e6e73 !important;
        padding: 0 !important;
        line-height: 1.15 !important;
        margin-bottom: 20px !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        letter-spacing: -0.005em !important;
        text-align: left !important;
        width: auto !important;
    }
    .nav-link:first-child {
        font-weight: 700 !important;
        color: #1d1d1f !important;
    }
    .nav-link:last-child { border-bottom: none !important; margin-bottom: 0 !important; }
    .nav-link::after { display: none !important; }
    .nav-link:hover { color: #1d1d1f !important; opacity: 1 !important; }

    /* When menu is open */
    .navbar.menu-is-open {
        background: #ffffff !important;
        border-bottom-color: transparent !important;
        box-shadow: none !important;
    }
    .navbar.menu-is-open .nav-logo {
        opacity: 0 !important;
        pointer-events: none;
    }
    .navbar.menu-is-open .ps-search-btn {
        opacity: 0 !important;
        pointer-events: none;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 32px) !important;
        padding-bottom: 50px !important;
        min-height: auto !important;
    }
    /* Mobile hero orbs — smaller, lighter */
    .hero::before {
        display: block !important;
        width: 400px !important; height: 400px !important;
        top: -15% !important; right: -30% !important;
        filter: blur(60px) !important;
        opacity: 0.6 !important;
    }
    .hero::after {
        display: block !important;
        width: 350px !important; height: 350px !important;
        bottom: -10% !important; left: -30% !important;
        filter: blur(60px) !important;
        opacity: 0.5 !important;
    }
    .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem) !important; letter-spacing: -0.03em !important; }
    .hero-subtitle { font-size: 0.95rem !important; margin-bottom: 32px !important; }

    .persona-card { padding: 24px 20px !important; }
    .service-card { padding: 28px 24px !important; }
    .section { padding: 64px 0 !important; }

    /* Disable cursor effects on mobile only — keep constellation & mesh */
    .cursor-glow, .cursor-dot, .cursor-ring { display: none !important; }

    /* Mobile constellation — clearly visible */
    #neural-canvas { opacity: 0.55 !important; z-index: 1 !important; }
    .liquid-mesh { opacity: 0.45 !important; }
    .grid-pattern { opacity: 0.25 !important; }

    body::after { display: none !important; } /* No grain on mobile */

    /* Simplified animations for 60fps mobile */
    [data-aos] { filter: none !important; transform: translateY(30px) !important; }
    [data-aos].aos-animate { transform: translateY(0) !important; }

    .hero-title .char { transform: none !important; opacity: 1 !important; animation: none !important; filter: none !important; }
    .hero-content { animation-duration: 0.6s !important; }

    /* Touch-friendly tap targets */
    .btn { min-height: 48px !important; padding: 14px 28px !important; }
    .nav-link { min-height: 44px !important; display: flex !important; align-items: center !important; }
    .btn-sm { min-height: 36px !important; padding: 8px 0 !important; }

    .section + .section::before { display: none !important; }
    .service-card::after, .persona-card::after { display: none !important; }
}

@media (max-width: 480px) {
    .hero-title { font-size: clamp(1.8rem, 10vw, 2.6rem) !important; margin-bottom: 20px !important; }
    .hero-subtitle { font-size: 0.88rem !important; }
    .btn { padding: 12px 22px !important; font-size: 0.88rem !important; min-height: 44px !important; }
    .section { padding: 48px 0 !important; }
    .section-header { margin-bottom: 40px !important; }
    .persona-card { padding: 20px 16px !important; }
    .service-card { padding: 22px 18px !important; }
    .section-title { font-size: clamp(1.5rem, 7vw, 2rem) !important; }
}

/* Touch hover state prevention on mobile */
@media (hover: none) {
    .service-card:hover, .persona-card:hover, .portfolio-card:hover,
    .reach-stat:hover, .btn-primary:hover, .btn-outline:hover {
        transform: none !important;
    }
    .service-card:hover::after, .persona-card:hover::after, .portfolio-card:hover::after { opacity: 0 !important; }
    .service-card:active, .persona-card:active, .portfolio-card:active { transform: scale(0.98) !important; transition-duration: 0.15s !important; }
    .btn-primary:active { transform: scale(0.96) !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .liquid-mesh, #neural-canvas, .grid-pattern { display: none !important; }
}

/* ═══════════════════════════════════════════
   PAGE-SPECIFIC CARD OVERRIDES
   ═══════════════════════════════════════════ */
.feature-card, .price-card, .solution-card,
.indoor-outdoor-card, .contact-card, .blog-card, .plan-card,
.marketplace-card, .standee-card, .spec-card, .step-card,
.benefit-card, .pricing-card, .product-card, .dash-stat, .dash-panel {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-card) !important;
    transition: transform 0.8s var(--ease-out-expo), box-shadow 0.8s var(--ease-out-expo) !important;
    position: relative; overflow: hidden;
    backdrop-filter: blur(12px);
}

.feature-card::after, .price-card::after,
.solution-card::after, .blog-card::after, .plan-card::after,
.marketplace-card::after, .standee-card::after, .spec-card::after,
.step-card::after, .benefit-card::after, .pricing-card::after, .product-card::after {
    display: none !important;
}

.feature-card:hover::after, .price-card:hover::after,
.solution-card:hover::after, .blog-card:hover::after, .plan-card:hover::after,
.marketplace-card:hover::after, .standee-card:hover::after, .spec-card:hover::after,
.step-card:hover::after, .benefit-card:hover::after, .pricing-card:hover::after, .product-card:hover::after { display: none !important; }

.feature-card:hover, .price-card:hover,
.solution-card:hover, .indoor-outdoor-card:hover,
.contact-card:hover, .blog-card:hover, .plan-card:hover,
.marketplace-card:hover, .standee-card:hover, .spec-card:hover,
.step-card:hover, .benefit-card:hover, .pricing-card:hover, .product-card:hover {
    transform: translateY(-4px) scale(1.005) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08) !important;
    border-color: rgba(0,0,0,0.1) !important;
}

/* Legal / Policy */
.policy-content, .legal-content { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

/* Wizard */
.wizard-container, .wizard-step { background: var(--bg-card) !important; border: 1px solid var(--border) !important; box-shadow: var(--shadow-card) !important; border-radius: var(--radius-lg) !important; }
.cq-option-card, .config-option, .option-card { background: var(--bg-card) !important; border: 2px solid var(--border) !important; border-radius: 16px !important; transition: all 0.5s var(--ease-out-expo) !important; }
.cq-option-card:hover, .config-option:hover, .option-card:hover { border-color: var(--accent) !important; box-shadow: 0 6px 24px var(--accent-glow) !important; transform: translateY(-3px) !important; }
.cq-option-card.selected, .config-option.selected, .option-card.selected { border-color: var(--accent) !important; background: var(--accent-subtle) !important; box-shadow: 0 6px 24px var(--accent-glow) !important; }

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

/* Dashboard overrides */
.dashboard-mockup { background: var(--bg-card) !important; border: 1px solid var(--border) !important; border-radius: var(--radius-xl) !important; }
.dashboard-stats { gap: 12px !important; }

/* Blog tab */
.blog-tab { background: var(--bg-card) !important; border: 1px solid var(--border) !important; color: var(--text-secondary) !important; }
.blog-tab.active { background: var(--accent-subtle) !important; border-color: var(--accent) !important; color: var(--accent-light) !important; }
.blog-tab:hover { border-color: rgba(0,0,0,0.12) !important; }

/* ═══════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
   Gorgeous animated sun/moon switcher
   ═══════════════════════════════════════════════════════════ */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-primary);
    transition: all 0.5s var(--ease-out-expo);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-right: 8px;
    flex-shrink: 0;
    z-index: 10;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 20px var(--accent-glow);
}
.theme-toggle:active {
    transform: scale(0.92);
    transition-duration: 0.1s;
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: all 0.5s var(--ease-out-expo);
    line-height: 1;
}
/* Dark mode: show moon, hide sun */
.theme-toggle .icon-sun {
    opacity: 0;
    transform: scale(0.4) rotate(-90deg);
}
.theme-toggle .icon-moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: scale(0.4) rotate(90deg);
}

/* ═══════════════════════════════════════════════════════════
   LIGHT THEME — Premium White Mode
   Clean, professional, ultra-readable
   ═══════════════════════════════════════════════════════════ */
[data-theme="light"] {
    /* Refined warm off-white base — subtle warmth, never clinical */
    --bg-void: #fafafa;
    --bg-primary: #f5f5f7;
    --bg-secondary: #eeeff3;
    --bg-tertiary: #e5e6ec;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-glass: rgba(255, 255, 255, 0.82);
    --bg-glass-heavy: rgba(255, 255, 255, 0.96);

    /* Deep ink text — high contrast, premium readability */
    --text-primary: #111118;
    --text-secondary: #52526b;
    --text-muted: #8c8ca5;
    --text-accent: #4338ca;

    /* Refined accent spectrum — Stripe/Linear-grade vibrancy */
    --neon-cyan: #0891b2;
    --neon-blue: #2563eb;
    --neon-purple: #2563eb;
    --neon-violet: #1d4ed8;
    --neon-pink: #db2777;
    --neon-magenta: #60a5fa;
    --neon-green: #059669;
    --neon-amber: #d97706;

    /* Primary accent — deep vivid indigo */
    --accent: #1d4ed8;
    --accent-light: #3b82f6;
    --accent-hover: #1e40af;
    --accent-glow: rgba(29, 78, 216, 0.18);
    --accent-subtle: rgba(29, 78, 216, 0.05);

    /* Gradients — smooth, multi-stop, modern */
    --gradient-1: linear-gradient(135deg, #1d4ed8 0%, #2563eb 40%, #60a5fa 100%);
    --gradient-2: linear-gradient(135deg, #0891b2 0%, #1d4ed8 100%);
    --gradient-text: linear-gradient(135deg, #0891b2, #2563eb, #2563eb, #db2777);
    --gradient-aurora: linear-gradient(135deg, #0891b2, #2563eb, #1d4ed8, #2563eb, #60a5fa, #db2777);
    --gradient-holographic: linear-gradient(var(--angle),
        #0891b2 0%, #2563eb 15%, #1d4ed8 30%, #2563eb 45%,
        #60a5fa 60%, #db2777 75%, #d97706 90%, #0891b2 100%);

    /* Borders — ultra-subtle with accent tint */
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(29, 78, 216, 0.25);
    --border-glow: rgba(29, 78, 216, 0.35);

    /* Shadows — layered for premium depth, hint of color */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
    --shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.06), 0 24px 48px rgba(0,0,0,0.08);
    --shadow-card: 0 0 0 1px rgba(0,0,0,0.03), 0 2px 8px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.06);
    --shadow-epic: 0 24px 80px -16px rgba(0,0,0,0.12), 0 0 1px rgba(0,0,0,0.08), 0 0 48px rgba(29,78,216,0.05);
    --shadow-neon: 0 0 24px rgba(29,78,216,0.08), 0 0 64px rgba(29,78,216,0.03);
    --shadow-neon-cyan: 0 0 24px rgba(8,145,178,0.08), 0 0 48px rgba(8,145,178,0.03);

    --noise: none;
}

/* ── Light: Body ── */
[data-theme="light"] body {
    background: #ffffff !important;
    color: #111118 !important;
}

/* ── Light: Disable dark-specific effects ── */
[data-theme="light"] body::after { display: none !important; }
[data-theme="light"] #neural-canvas { opacity: 0.18 !important; }
[data-theme="light"] .liquid-mesh { opacity: 0.35 !important; }
[data-theme="light"] .grid-pattern {
    background-image:
        linear-gradient(rgba(29,78,216,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29,78,216,0.03) 1px, transparent 1px) !important;
}

/* ── Light: Scroll progress ── */
[data-theme="light"] .scroll-progress {
    box-shadow: 0 0 8px rgba(29,78,216,0.35), 0 0 20px rgba(8,145,178,0.12) !important;
}

/* ── Light: Navbar — Apple.com exact ── */
[data-theme="light"] .navbar {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}
[data-theme="light"] .navbar.scrolled {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
}
[data-theme="light"] .logo-img {
    filter: brightness(0) saturate(100%) !important;
}
[data-theme="light"] .logo-img:hover {
    filter: brightness(0) saturate(100%) !important;
    opacity: 0.7 !important;
}
[data-theme="light"] .nav-link {
    color: rgba(0, 0, 0, 0.8) !important;
    font-weight: 400 !important;
}
[data-theme="light"] .nav-link:hover {
    color: rgba(0, 0, 0, 0.56) !important;
    background: transparent !important;
}
[data-theme="light"] .nav-link.active {
    color: rgba(0, 0, 0, 0.8) !important;
    background: transparent !important;
    font-weight: 400 !important;
}
[data-theme="light"] .nav-toggle span {
    background: #1d1d1f !important;
}
[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.98) !important;
}

/* ── Light: Hero — Premium Depth ── */
[data-theme="light"] .hero::before {
    background: radial-gradient(ellipse 80% 60% at 30% 40%, rgba(8,145,178,0.06) 0%, transparent 70%) !important;
}
[data-theme="light"] .hero::after {
    background: radial-gradient(ellipse 70% 50% at 70% 50%, rgba(29,78,216,0.05) 0%, transparent 70%) !important;
}
[data-theme="light"] .hero-title {
    color: #1d1d1f !important;
    -webkit-text-fill-color: #1d1d1f !important;
    letter-spacing: -0.03em !important;
}
[data-theme="light"] .hero-subtitle {
    color: #1d1d1f !important;
    letter-spacing: -0.01em !important;
    line-height: 1.7 !important;
}
/* Homepage hero — white on dark video */
[data-theme="light"] #heroSection .hero-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5) !important;
}
[data-theme="light"] #heroSection .hero-subtitle {
    color: rgba(255,255,255,0.92) !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5) !important;
}
[data-theme="light"] .gradient-text {
    filter: saturate(1.4) brightness(0.9) !important;
}

/* ── Light: Buttons — Premium Elevated ── */
[data-theme="light"] .btn-primary {
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(29,78,216,0.2), inset 0 1px 0 rgba(255,255,255,0.15) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 12px 32px rgba(29,78,216,0.25), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    transform: translateY(-1px) !important;
}
[data-theme="light"] .btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 2px 8px rgba(29,78,216,0.15) !important;
}
[data-theme="light"] .btn-outline {
    background: rgba(255,255,255,0.7) !important;
    border-color: rgba(0,0,0,0.1) !important;
    color: #111118 !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
[data-theme="light"] .btn-outline:hover {
    border-color: rgba(29,78,216,0.25) !important;
    background: rgba(255,255,255,0.9) !important;
    color: #111118 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06) !important;
    transform: translateY(-1px) !important;
}
[data-theme="light"] .btn-sm {
    color: #1d4ed8 !important;
}
[data-theme="light"] .btn-sm:hover {
    color: #1e40af !important;
}

/* ── Light: Section tags/titles — Refined Typography ── */
[data-theme="light"] .section-tag {
    color: #0071e3 !important;
    background: rgba(0,113,227,0.06) !important;
    border-color: rgba(0,113,227,0.12) !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
}
[data-theme="light"] .section-title {
    color: #111118 !important;
    letter-spacing: -0.03em !important;
}
[data-theme="light"] .section-subtitle {
    color: #52526b !important;
    letter-spacing: -0.01em !important;
}

/* ── Light: Section divider ── */
[data-theme="light"] .section + .section::before {
    box-shadow: none !important;
    opacity: 0.5 !important;
}

/* ── Light: Cards — World-Class Elevated Design ── */
[data-theme="light"] .service-card,
[data-theme="light"] .persona-card,
[data-theme="light"] .portfolio-card,
[data-theme="light"] .reach-stat,
[data-theme="light"] .feature-card,
[data-theme="light"] .price-card,
[data-theme="light"] .solution-card,
[data-theme="light"] .indoor-outdoor-card,
[data-theme="light"] .contact-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .plan-card,
[data-theme="light"] .marketplace-card,
[data-theme="light"] .standee-card,
[data-theme="light"] .spec-card,
[data-theme="light"] .step-card,
[data-theme="light"] .benefit-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .product-card,
[data-theme="light"] .dash-stat,
[data-theme="light"] .dash-panel {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.03), 0 4px 16px rgba(0,0,0,0.04) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
[data-theme="light"] .service-card:hover,
[data-theme="light"] .persona-card:hover,
[data-theme="light"] .portfolio-card:hover,
[data-theme="light"] .reach-stat:hover,
[data-theme="light"] .feature-card:hover,
[data-theme="light"] .blog-card:hover,
[data-theme="light"] .plan-card:hover,
[data-theme="light"] .pricing-card:hover,
[data-theme="light"] .product-card:hover,
[data-theme="light"] .standee-card:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 0 0 1px rgba(29,78,216,0.06), 0 4px 12px rgba(0,0,0,0.04), 0 24px 64px -16px rgba(0,0,0,0.1) !important;
    border-color: rgba(29,78,216,0.1) !important;
    transform: translateY(-2px) !important;
}

/* ── Light: Card text — Premium Hierarchy ── */
[data-theme="light"] .service-card h3,
[data-theme="light"] .persona-card h3,
[data-theme="light"] .portfolio-card h4,
[data-theme="light"] .reach-label {
    color: #111118 !important;
    letter-spacing: -0.02em !important;
    font-weight: 650 !important;
}
[data-theme="light"] .service-card p,
[data-theme="light"] .persona-card p,
[data-theme="light"] .service-features li,
[data-theme="light"] .reach-desc {
    color: #52526b !important;
    line-height: 1.65 !important;
}

/* ── Light: Stats — keep gradient vibrant ── */
[data-theme="light"] .reach-number,
[data-theme="light"] .reach-number-text {
    filter: drop-shadow(0 0 8px rgba(0,151,167,0.15)) brightness(0.9) saturate(1.3) !important;
}

/* ── Light: Map ── */
[data-theme="light"] .map-card {
    background: transparent !important;
    border: none !important;
    border-radius: 20px !important;
}
[data-theme="light"] .map-outline {
    fill: rgba(29,78,216,0.04) !important;
    stroke: rgba(29,78,216,0.2) !important;
}
[data-theme="light"] .pin-dot {
    background: #0891b2 !important;
    box-shadow: 0 0 8px rgba(8,145,178,0.4) !important;
}
[data-theme="light"] .pin-tooltip {
    background: rgba(255,255,255,0.98) !important;
    border-color: rgba(0,0,0,0.06) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .pin-tooltip strong { color: #111118 !important; }
[data-theme="light"] .pin-tooltip span { color: #52526b !important; }
[data-theme="light"] .pin-tooltip em { color: #0891b2 !important; }
[data-theme="light"] .coming-soon-badge {
    background: rgba(29,78,216,0.05) !important;
    border-color: rgba(29,78,216,0.1) !important;
    color: #1d4ed8 !important;
}

/* ── Light: Quote form ── */
[data-theme="light"] .quote-section {
    background: #eeeef2 !important;
}
[data-theme="light"] .quote-section::before {
    background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(29,78,216,0.03) 0%, transparent 70%) !important;
}
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select {
    background: rgba(255,255,255,0.85) !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    color: #111118 !important;
    transition: all 0.2s ease !important;
}
[data-theme="light"] .form-group input::placeholder {
    color: #8c8ca5 !important;
}
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgba(29,78,216,0.08), 0 2px 8px rgba(29,78,216,0.06) !important;
    background: white !important;
    outline: none !important;
}
[data-theme="light"] .form-group select option {
    background: white !important;
    color: #0f0f1a !important;
}

/* ── Light: Footer — Clean Premium ── */
[data-theme="light"] .footer {
    background: #eeeef2 !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
}
[data-theme="light"] .footer-logo {
    filter: brightness(0) saturate(100%) !important;
}
[data-theme="light"] .footer-brand p { color: #52526b !important; }
[data-theme="light"] .footer-col h4 { color: #111118 !important; font-weight: 650 !important; letter-spacing: -0.01em !important; }
[data-theme="light"] .footer-col a { color: #52526b !important; }
[data-theme="light"] .footer-col a:hover { color: #1d4ed8 !important; }
[data-theme="light"] .footer-address { color: #8c8ca5 !important; }
[data-theme="light"] .footer-bottom { border-top-color: rgba(0,0,0,0.05) !important; }
[data-theme="light"] .footer-bottom p { color: #8c8ca5 !important; }
[data-theme="light"] .footer-social a {
    background: rgba(0,0,0,0.04) !important;
    border-color: rgba(0,0,0,0.06) !important;
    color: #52526b !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
[data-theme="light"] .footer-social a:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(29,78,216,0.25) !important;
}

/* ── Light: Cursor system ── */
[data-theme="light"] .cursor-dot {
    background: #1d4ed8;
    box-shadow: 0 0 8px rgba(29,78,216,0.35);
}
[data-theme="light"] .cursor-dot.hover {
    background: rgba(29,78,216,0.06);
    border-color: #3b82f6;
    box-shadow: 0 0 16px rgba(29,78,216,0.12);
}
[data-theme="light"] .cursor-ring {
    border-color: rgba(29,78,216,0.1);
}
[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle, rgba(29,78,216,0.02) 0%, rgba(8,145,178,0.01) 30%, transparent 70%);
}

/* ── Light: Scrollbar ── */
[data-theme="light"] ::-webkit-scrollbar-track { background: #f5f5f7; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 100px; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.22); }
[data-theme="light"] ::selection { background: rgba(29,78,216,0.12); color: #111118; }

/* ── Light: Marquee ── */
[data-theme="light"] .marquee-track span { color: rgba(0,0,0,0.03) !important; }
[data-theme="light"] .marquee-strip:hover .marquee-track span { color: rgba(29,78,216,0.05) !important; }

/* ── Light: Wizard / Config ── */
[data-theme="light"] .wizard-container,
[data-theme="light"] .wizard-step {
    background: rgba(255,255,255,0.9) !important;
    border-color: rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .cq-option-card,
[data-theme="light"] .config-option,
[data-theme="light"] .option-card {
    background: rgba(255,255,255,0.8) !important;
    border-color: rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .cq-option-card:hover,
[data-theme="light"] .config-option:hover,
[data-theme="light"] .option-card:hover {
    border-color: #1d4ed8 !important;
}
[data-theme="light"] .cq-option-card.selected,
[data-theme="light"] .config-option.selected,
[data-theme="light"] .option-card.selected {
    border-color: #1d4ed8 !important;
    background: rgba(29,78,216,0.04) !important;
}

/* ── Light: Dashboard ── */
[data-theme="light"] .dashboard-mockup {
    background: rgba(255,255,255,0.9) !important;
    border-color: rgba(0,0,0,0.06) !important;
}

/* ── Light: Blog tabs ── */
[data-theme="light"] .blog-tab {
    background: rgba(255,255,255,0.8) !important;
    border-color: rgba(0,0,0,0.06) !important;
    color: #4a4a6a !important;
}
[data-theme="light"] .blog-tab.active {
    background: rgba(29,78,216,0.06) !important;
    border-color: #1d4ed8 !important;
    color: #1d4ed8 !important;
}

/* ── Light: Legal / Policy ── */
[data-theme="light"] .policy-content,
[data-theme="light"] .legal-content {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
}

/* ── Light: Stat badge ── */
[data-theme="light"] .stat-badge {
    background: rgba(29,78,216,0.05) !important;
    border-color: rgba(29,78,216,0.1) !important;
}

/* ── Light: Smooth theme transition ── */
[data-theme="light"] *,
[data-theme="light"] *::before,
[data-theme="light"] *::after {
    transition-property: background-color, color, border-color, box-shadow, fill, stroke;
    transition-duration: 0.5s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════
   ENHANCED MOBILE — Ultra Touch-Friendly
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Theme toggle in mobile */
    .theme-toggle {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        margin-right: 4px !important;
    }

    /* Smoother mobile menu with slide-in */
    .nav-links {
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s !important;
        transform: translateY(-10px) !important;
        opacity: 0 !important;
    }
    .nav-links.open {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    /* Larger touch-safe spacing */
    .persona-card {
        gap: 14px !important;
    }

    /* Better mobile form */
    .form-group input,
    .form-group select {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        min-height: 48px !important;
        border-radius: 12px !important;
    }

    /* Mobile hero breathing room */
    .hero-buttons {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .hero-buttons .btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Reach stats compact on mobile */
    .reach-stat {
        flex-direction: column !important;
        text-align: center !important;
        padding: 18px 16px !important;
    }
    .reach-number, .reach-number-text {
        font-size: 2rem !important;
    }

    /* Portfolio cards horizontal scroll on small */
    .portfolio-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
    }

    /* Safe area padding for notch phones */
    .navbar {
        padding-left: env(safe-area-inset-left) !important;
        padding-right: env(safe-area-inset-right) !important;
    }
    .footer {
        padding-bottom: calc(30px + env(safe-area-inset-bottom)) !important;
    }
    /* Prevent horizontal overflow */
    .container {
        overflow-x: hidden !important;
    }
}

/* Ultra small screens */
@media (max-width: 380px) {
    .hero-title { font-size: 1.6rem !important; }
    .section-title { font-size: 1.3rem !important; }
    .btn { font-size: 0.85rem !important; padding: 11px 18px !important; }
    .persona-card { padding: 16px 12px !important; }
    .service-card { padding: 18px 14px !important; }
    .container { padding: 0 12px !important; }
}

/* Landscape mobile - compact layout */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto !important;
        padding-top: calc(var(--nav-height) + 16px) !important;
        padding-bottom: 24px !important;
    }
    .hero-title { font-size: 1.8rem !important; }
    .hero-subtitle { font-size: 0.85rem !important; margin-bottom: 16px !important; }
    .section { padding: 40px 0 !important; }
}

/* iPad / Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .persona-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; }
    .portfolio-grid { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; }
    .reach-stats { grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; }
    .section { padding: 80px 0 !important; }
    .hero-title { font-size: clamp(2.5rem, 5vw, 4rem) !important; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE LIQUID MESH — Lightweight Version
   Smaller orbs, lower opacity, less blur for 60fps
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .liquid-mesh-mobile .mesh-orb:nth-child(1) {
        width: 400px !important; height: 400px !important;
        filter: blur(60px) !important;
    }
    .liquid-mesh-mobile .mesh-orb:nth-child(2) {
        width: 350px !important; height: 350px !important;
        filter: blur(70px) !important;
    }
    .liquid-mesh-mobile .mesh-orb:nth-child(3) {
        width: 300px !important; height: 300px !important;
        filter: blur(80px) !important;
    }
    /* Mobile grid — larger cells for subtlety */
    .grid-pattern {
        background-size: 40px 40px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   AI GREETING BADGE — Smart Time-Aware Welcome
   ═══════════════════════════════════════════════════════════ */
.ai-greeting-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 20px;
    animation: aiGreetingIn 1.2s var(--ease-out-expo) 1.5s both;
    font-size: 1rem;
    flex-wrap: wrap;
}
.ai-sparkle {
    color: var(--neon-cyan);
    animation: aiSparkle 2s ease-in-out infinite;
    font-size: 1.2rem;
}
@keyframes aiSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    25% { transform: scale(1.3) rotate(20deg); opacity: 0.7; }
    50% { transform: scale(0.8) rotate(-10deg); opacity: 1; }
    75% { transform: scale(1.2) rotate(15deg); opacity: 0.8; }
}
.ai-greeting-text {
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.ai-hint {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}
@keyframes aiGreetingIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); filter: blur(8px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

[data-theme="light"] .ai-greeting-badge {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}
[data-theme="light"] .ai-sparkle { color: #60a5fa !important; }
[data-theme="light"] .ai-greeting-text { color: #ffffff !important; font-weight: 650 !important; }
[data-theme="light"] .ai-hint { color: rgba(255, 255, 255, 0.8) !important; }

/* ═══════════════════════════════════════════════════════════
   ADVANCED CARD SYSTEM — Inner Glow + Shimmer + Depth
   ═══════════════════════════════════════════════════════════ */
.card-inner-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    transition: background 0.3s ease;
}

.card-shimmer {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}
.card-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 25%,
        rgba(0, 113, 227, 0.02) 38%,
        rgba(0, 113, 227, 0.03) 50%,
        rgba(0, 113, 227, 0.02) 62%,
        transparent 75%
    );
    transition: none;
    transform: skewX(-15deg);
}
.card-shimmer.shimmer-active::before {
    animation: cardShimmerSweep 1.2s var(--ease-out-expo) both;
}
@keyframes cardShimmerSweep {
    0%   { left: -150%; }
    100% { left: 150%; }
}

/* Card floating icon effect */
.service-icon, .persona-icon {
    position: relative;
    z-index: 3;
    animation: iconFloat 4s ease-in-out infinite;
}
@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.service-card:hover .service-icon { animation: iconPop 0.6s var(--ease-spring) both; }
.persona-card:hover .persona-icon { animation: iconPop 0.6s var(--ease-spring) both; }
@keyframes iconPop {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.35) rotate(-15deg); }
    60% { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1.25) rotate(-10deg); }
}

/* Advanced card depth layers */
.service-card, .persona-card, .portfolio-card {
    transform-style: preserve-3d !important;
}
.service-card h3, .persona-card h3, .portfolio-card h4 {
    position: relative;
    z-index: 3;
}
.service-card p, .persona-card p, .portfolio-card p {
    position: relative;
    z-index: 3;
}

/* Clean card borders — Apple style */
.service-card, .persona-card {
    background: var(--bg-card) !important;
    background-origin: border-box !important;
    background-clip: padding-box !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    animation: none;
}
@keyframes cardBorderRotate {
    to { --angle: 360deg; }
}

/* Card accent lines — hidden for Apple clean style */
.service-card::before, .persona-card::before {
    display: none !important;
}
.service-card:hover::before, .persona-card:hover::before {
    display: none !important;
}

/* Portfolio card hover — image parallax effect */
.portfolio-card .portfolio-image {
    transition: transform 1.4s var(--ease-out-expo), filter 1s !important;
    will-change: transform;
}
.portfolio-card:hover .portfolio-image {
    transform: scale(1.12) translateY(-4px) !important;
    filter: brightness(1.2) saturate(1.3) !important;
}

/* Portfolio overlay gradient enhancement */
.portfolio-overlay {
    transition: all 0.6s var(--ease-out-expo) !important;
}
.portfolio-card:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.3) 60%, transparent 100%) !important;
}

/* Reach stat card — number glow on hover */
.reach-stat:hover .reach-number,
.reach-stat:hover .reach-number-text {
    filter: none !important;
    transition: filter 0.4s !important;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE ADVANCED CARDS
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .ai-greeting-badge {
        font-size: 0.78rem !important;
        padding: 6px 14px !important;
        margin-bottom: 14px !important;
    }
    .ai-hint {
        font-size: 0.72rem !important;
    }
    
    /* Mobile card floating effect — subtler */
    .service-icon, .persona-icon {
        animation-duration: 5s !important;
    }
    @keyframes iconFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-3px); }
    }

    /* Prevent cards from gradient border on mobile for perf */
    .service-card, .persona-card {
        background-image: none !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
    }
}

/* Mobile AI greeting responsive */
@media (max-width: 380px) {
    .ai-greeting-badge {
        font-size: 0.72rem !important;
        padding: 5px 10px !important;
        gap: 4px !important;
    }
    .ai-hint { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   AI CHATBOT WIDGET — Floating Smart Assistant
   ═══════════════════════════════════════════════════════════ */
.ai-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 10000;
    font-family: 'Inter', -apple-system, sans-serif;
}
.ai-chat-trigger {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #0071e3;
    color: white;
    box-shadow: 0 4px 16px rgba(0,113,227,0.3);
    transition: all 0.5s var(--ease-out-expo);
    animation: aiTriggerFloat 4s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
}
@keyframes aiTriggerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.ai-chat-trigger:hover {
    transform: scale(1.08) translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0,113,227,0.35);
}
.ai-chat-trigger.active {
    transform: scale(0.92) !important;
    animation: none !important;
}
.ai-chat-trigger.ai-chat-pulse {
    animation: aiChatPulse 1s ease-in-out 3 !important;
}
@keyframes aiChatPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(0,113,227,0.3); }
    50% { transform: scale(1.1); box-shadow: 0 8px 24px rgba(0,113,227,0.4); }
}
.ai-chat-icon { display: flex; align-items: center; justify-content: center; }
.ai-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff3b30;
    color: white;
    font-size: 0.55rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255,59,48,0.4);
    animation: aiBadgePulse 2s ease-in-out infinite;
}
@keyframes aiBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Chat Panel */
.ai-chat-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 340px;
    max-height: 480px;
    border-radius: 24px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
}
.ai-chat-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: rgba(0,0,0,0.02);
}
.ai-chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-chat-avatar { font-size: 1.4rem; }
.ai-chat-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}
.ai-chat-status {
    font-size: 0.68rem;
    color: var(--neon-green);
    display: flex;
    align-items: center;
    gap: 4px;
}
.ai-online-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    animation: aiPulseDot 2s ease-in-out infinite;
}
.ai-chat-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
}
.ai-chat-close:hover { background: rgba(255,59,48,0.08); color: #ff3b30; }

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 280px;
    scroll-behavior: smooth;
}
.ai-chat-msg { display: flex; }
.ai-msg { justify-content: flex-start; }
.user-msg { justify-content: flex-end; }
.ai-msg-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-primary);
}
.ai-msg .ai-msg-bubble {
    background: rgba(0,113,227,0.06);
    border: 1px solid rgba(0,113,227,0.08);
    border-bottom-left-radius: 6px;
}
.user-msg .ai-msg-bubble {
    background: var(--gradient-1);
    color: white;
    border-bottom-right-radius: 6px;
}
.ai-msg-bubble a {
    color: #0071e3;
    text-decoration: underline;
    font-weight: 500;
}

/* AI Typing Dots */
.ai-typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}
.ai-typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: aiDotBounce 1.4s ease-in-out infinite;
}
.ai-typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes aiDotBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}
@keyframes aiMsgIn {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Suggestions */
.ai-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.ai-suggestion-chip {
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.02);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}
.ai-suggestion-chip:hover, .ai-suggestion-chip:active {
    background: rgba(0,113,227,0.06);
    border-color: #0071e3;
    color: #0071e3;
    transform: scale(1.02);
}

/* ═══════════════════════════════════════════════════════════
   AI SCROLL INTELLIGENCE — Reading Progress + Section Glow
   ═══════════════════════════════════════════════════════════ */
.ai-reading-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    background: rgba(255,255,255,0.02);
}
.ai-reading-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0071e3, #0071e3);
    background-size: 200% 100%;
    animation: none;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: none;
}
.ai-reading-complete .ai-reading-fill {
    box-shadow: 0 0 20px rgba(0,230,118,0.5), 0 0 50px rgba(0,230,118,0.2) !important;
    background: linear-gradient(90deg, #34c759, #30d158) !important;
}
.ai-reading-label {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-glass-heavy);
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.04);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.4s var(--ease-out-expo);
    pointer-events: none;
    white-space: nowrap;
}
.ai-reading-label.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section active glow */
.ai-section-active {
    position: relative;
}
.ai-section-active::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    width: 60px !important;
    height: 3px !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(90deg, #0071e3, #0071e3) !important;
    background-size: 100% 100% !important;
    animation: none !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    z-index: 5 !important;
}

/* Nav link AI glow */
.ai-nav-glow {
    color: #0071e3 !important;
    text-shadow: none;
}

/* ═══════════════════════════════════════════════════════════
   AI SMART CTA — Contextual Floating Suggestion
   ═══════════════════════════════════════════════════════════ */
.ai-smart-cta {
    position: fixed;
    top: calc(var(--nav-height) + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 9998;
    opacity: 0;
    transition: all 0.6s var(--ease-out-expo);
    pointer-events: none;
}
.ai-smart-cta.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.ai-smart-cta-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 100px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    white-space: nowrap;
    max-width: calc(100vw - 32px);
    overflow: hidden;
}
.ai-smart-cta-icon {
    font-size: 1.1rem;
    animation: aiSparkle 2s ease-in-out infinite;
}
.ai-smart-cta-text {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.ai-smart-cta-btn {
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--gradient-1);
    color: white !important;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s;
}
.ai-smart-cta-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 16px var(--accent-glow);
}
.ai-smart-cta-dismiss {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.ai-smart-cta-dismiss:hover { background: rgba(255,59,48,0.08); color: #ff3b30; }

/* Return visitor tag */
.ai-return-tag {
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(0,113,227,0.06);
    border: 1px solid rgba(0,113,227,0.1);
    color: #0071e3;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 4px;
}

/* ═══════════════════════════════════════════════════════════
   TOUCH RIPPLE — Material Tap Effect
   ═══════════════════════════════════════════════════════════ */
.touch-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,113,227,0.08) 0%, rgba(0,113,227,0.04) 40%, transparent 70%);
    transform: scale(0);
    animation: rippleExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
    z-index: 10;
}
@keyframes rippleExpand {
    0%   { transform: scale(0); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE AI CHATBOT + FEATURES RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .ai-chat-widget {
        bottom: 88px !important;
        right: 16px !important;
    }
    .ai-chat-trigger {
        width: 50px !important;
        height: 50px !important;
    }
    .ai-chat-panel {
        width: calc(100vw - 32px) !important;
        max-height: 420px !important;
        right: -8px !important;
        bottom: 62px !important;
        border-radius: 20px !important;
    }
    .ai-chat-body {
        max-height: 230px !important;
    }
    .ai-suggestion-chip {
        font-size: 0.68rem !important;
        padding: 6px 10px !important;
    }
    .ai-smart-cta-inner {
        padding: 8px 12px !important;
        gap: 6px !important;
    }
    .ai-smart-cta-text {
        font-size: 0.7rem !important;
        white-space: normal !important;
    }
    .ai-reading-label {
        display: none !important;
    }
    /* Section active glow on mobile */
    .ai-section-active::after {
        width: 40px !important;
        height: 2px !important;
    }
}

@media (max-width: 380px) {
    .ai-chat-panel {
        width: calc(100vw - 24px) !important;
        right: -12px !important;
    }
    .ai-smart-cta-text { font-size: 0.65rem !important; }
    .ai-smart-cta-icon { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   LIGHT THEME — AI Features
   ═══════════════════════════════════════════════════════════ */
[data-theme="light"] .ai-chat-trigger {
    box-shadow: 0 8px 32px rgba(29,78,216,0.3), 0 0 40px rgba(0,151,167,0.08) !important;
}
[data-theme="light"] .ai-chat-panel {
    background: rgba(255,255,255,0.95) !important;
    border-color: rgba(29,78,216,0.1) !important;
    box-shadow: 0 32px 80px rgba(0,0,0,0.15), 0 0 40px rgba(29,78,216,0.05) !important;
}
[data-theme="light"] .ai-chat-header {
    background: rgba(29,78,216,0.03) !important;
    border-bottom-color: rgba(0,0,0,0.04) !important;
}
[data-theme="light"] .ai-msg .ai-msg-bubble {
    background: rgba(29,78,216,0.06) !important;
    border-color: rgba(29,78,216,0.08) !important;
}
[data-theme="light"] .ai-suggestion-chip {
    background: rgba(29,78,216,0.04) !important;
    border-color: rgba(29,78,216,0.1) !important;
    color: #4a4a6a !important;
}
[data-theme="light"] .ai-suggestion-chip:hover {
    background: rgba(29,78,216,0.08) !important;
    color: #0f0f1a !important;
}
[data-theme="light"] .ai-smart-cta-inner {
    background: rgba(255,255,255,0.95) !important;
    border-color: rgba(29,78,216,0.1) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .ai-smart-cta-text { color: #4a4a6a !important; }
[data-theme="light"] .ai-return-tag {
    background: rgba(0,151,167,0.06) !important;
    border-color: rgba(0,151,167,0.12) !important;
    color: #0097a7 !important;
}
[data-theme="light"] .touch-ripple {
    background: radial-gradient(circle, rgba(29,78,216,0.1) 0%, rgba(0,151,167,0.06) 40%, transparent 70%) !important;
}
[data-theme="light"] .ai-reading-fill {
    box-shadow: 0 0 8px rgba(29,78,216,0.3) !important;
}
[data-theme="light"] .ai-chat-close:hover {
    background: rgba(198,40,91,0.08) !important;
}

/* ═══════════════════════════════════════════════════════════
   v11 — NEURAL NETWORK VISUALIZATION
   ═══════════════════════════════════════════════════════════ */
.neural-network-viz {
    position: fixed;
    top: 0;
    right: 0;
    width: 40px;
    height: 100vh;
    z-index: 50;
    pointer-events: none;
}
.neural-connections-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.neural-synapse {
    transition: stroke 0.3s;
}
.neural-node {
    position: absolute;
    width: 10px;
    height: 10px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.neural-node-core {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.3);
    transition: all 0.5s;
    position: relative;
    z-index: 2;
}
.neural-node-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.5s;
}
.neural-node-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.5s;
}
.neural-node.active .neural-node-core {
    background: var(--accent, #0071e3);
    box-shadow: 0 0 8px rgba(0, 113, 227, 0.4);
    transform: scale(1.3);
}
.neural-node.active .neural-node-ring {
    border-color: rgba(37, 99, 235, 0.4);
    transform: scale(1.5);
}
.neural-node.active .neural-node-pulse {
    opacity: 1;
    animation: neuralPulse 2s infinite;
}
.neural-node.firing .neural-node-core {
    background: var(--neon-cyan, #0071e3);
    box-shadow: 0 0 12px rgba(0, 113, 227, 0.5), 0 0 24px rgba(0, 113, 227, 0.2);
    transform: scale(1.8);
}
.neural-node.firing .neural-node-pulse {
    opacity: 1;
    animation: neuralFire 0.6s ease-out;
}
@keyframes neuralPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.8); opacity: 0.8; }
}
@keyframes neuralFire {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   v11 — AI ENGAGEMENT SCORING
   ═══════════════════════════════════════════════════════════ */
.ai-engagement-score {
    position: fixed;
    bottom: 90px;
    left: 16px;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.ai-engagement-score.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.ai-engagement-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 10px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.ai-engagement-ring {
    position: relative;
    width: 40px;
    height: 40px;
}
.ai-engagement-svg {
    width: 40px;
    height: 40px;
    transform: rotate(-90deg);
}
.ai-engagement-bg {
    fill: none;
    stroke: rgba(0, 113, 227, 0.1);
    stroke-width: 2.5;
}
.ai-engagement-fill {
    fill: none;
    stroke: #0071e3;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dasharray 1s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.5s;
}
.ai-engagement-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #eeeef5;
    font-family: 'SF Mono', monospace;
}
.ai-engagement-label {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #7a7a98;
    font-weight: 600;
}
.ai-engagement-score.ai-high-engagement .ai-engagement-inner {
    border-color: rgba(0, 230, 118, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 230, 118, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   v11 — PREDICTIVE PRELOADER
   ═══════════════════════════════════════════════════════════ */
.ai-preload-indicator {
    position: fixed;
    top: 8px;
    right: 60px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 10px;
    color: #0071e3;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.ai-preload-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}
.ai-preload-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0071e3;
    animation: preloadBlink 0.8s infinite alternate;
}
@keyframes preloadBlink {
    from { opacity: 0.3; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.2); }
}
.ai-preload-text {
    font-weight: 600;
    font-family: 'SF Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════
   v11 — GESTURE NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.gesture-nav-hint {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 9998;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    opacity: 0;
    transition: opacity 0.5s;
}
.gesture-nav-hint.visible {
    opacity: 1;
}
.gesture-arrow {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 8px 14px;
    color: #0071e3;
    font-size: 18px;
    font-weight: 700;
    opacity: 0.5;
    transition: all 0.3s;
    transform: scale(0.9);
}
.gesture-arrow.showing {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}
.gesture-page-name {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #b0b0d0;
}

/* ═══════════════════════════════════════════════════════════
   v11 — CONTENT MORPHING
   ═══════════════════════════════════════════════════════════ */
.section.ai-morphing-active {
    position: relative;
}
.section.ai-morphing-active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0,113,227,0.02) 0%, transparent 50%, rgba(0,113,227,0.02) 100%);
    pointer-events: none;
    z-index: -1;
    animation: morphGlow 3s ease-in-out infinite;
}
@keyframes morphGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}
.ai-personalization-badge {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 12px;
    color: #6e6e73;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.ai-personalization-badge.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.ai-personalization-icon {
    font-size: 16px;
}
.ai-personalization-text {
    font-weight: 600;
    background: linear-gradient(135deg, #0071e3, #0071e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════════════════
   v11 — SCROLL MOMENTUM INDICATOR
   ═══════════════════════════════════════════════════════════ */
.ai-scroll-momentum {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.ai-scroll-momentum.visible {
    opacity: 1;
}
.ai-momentum-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0071e3, #0071e3, #0071e3);
    background-size: 200% 100%;
    animation: momentumShimmer 1s infinite linear;
    border-radius: 0 2px 2px 0;
    transition: width 0.15s ease-out;
    box-shadow: none;
}
@keyframes momentumShimmer {
    from { background-position: 0% 0%; }
    to { background-position: 200% 0%; }
}

/* ═══════════════════════════════════════════════════════════
   v11 — MOBILE RESPONSIVE FOR NEW FEATURES
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .neural-network-viz {
        width: 28px;
    }
    .neural-node-core {
        width: 4px;
        height: 4px;
    }
    .ai-engagement-score {
        bottom: 75px;
        left: 8px;
    }
    .ai-engagement-inner {
        padding: 6px 8px;
        border-radius: 12px;
    }
    .ai-engagement-ring {
        width: 32px;
        height: 32px;
    }
    .ai-engagement-svg {
        width: 32px;
        height: 32px;
    }
    .ai-engagement-num {
        font-size: 9px;
    }
    .ai-engagement-label {
        font-size: 7px;
    }
    .ai-preload-indicator {
        top: auto;
        bottom: 4px;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        font-size: 9px;
    }
    .ai-preload-indicator.visible {
        transform: translateX(-50%) translateY(0);
    }
    .ai-personalization-badge {
        font-size: 11px;
        padding: 6px 14px;
    }
    .gesture-arrow {
        padding: 6px 10px;
        font-size: 14px;
    }
    .gesture-page-name {
        font-size: 8px;
    }
}

/* ═══════════════════════════════════════════════════════════
   v11 — LIGHT THEME OVERRIDES FOR NEW FEATURES
   ═══════════════════════════════════════════════════════════ */
[data-theme="light"] .neural-node-core {
    background: rgba(29, 78, 216, 0.3) !important;
}
[data-theme="light"] .neural-node-ring {
    border-color: rgba(29, 78, 216, 0.15) !important;
}
[data-theme="light"] .neural-node-pulse {
    background: radial-gradient(circle, rgba(0, 151, 167, 0.15) 0%, transparent 70%) !important;
}
[data-theme="light"] .neural-node.active .neural-node-core {
    background: #1e3a8a !important;
    box-shadow: 0 0 8px rgba(29, 78, 216, 0.4) !important;
}
[data-theme="light"] .neural-node.active .neural-node-ring {
    border-color: rgba(29, 78, 216, 0.3) !important;
}
[data-theme="light"] .neural-node.firing .neural-node-core {
    background: #0097a7 !important;
    box-shadow: 0 0 16px rgba(0, 151, 167, 0.6), 0 0 32px rgba(0, 151, 167, 0.2) !important;
}
[data-theme="light"] .ai-engagement-inner {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(29, 78, 216, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .ai-engagement-bg {
    stroke: rgba(29, 78, 216, 0.08) !important;
}
[data-theme="light"] .ai-engagement-num {
    color: #0f0f1a !important;
}
[data-theme="light"] .ai-engagement-label {
    color: #6a6a8a !important;
}
[data-theme="light"] .ai-preload-indicator {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 151, 167, 0.15) !important;
    color: #0097a7 !important;
}
[data-theme="light"] .ai-preload-dot {
    background: #0097a7 !important;
}
[data-theme="light"] .gesture-arrow {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(29, 78, 216, 0.15) !important;
    color: #1e3a8a !important;
}
[data-theme="light"] .gesture-arrow.showing {
    background: rgba(29, 78, 216, 0.08) !important;
    border-color: rgba(29, 78, 216, 0.3) !important;
    box-shadow: 0 0 20px rgba(29, 78, 216, 0.1) !important;
}
[data-theme="light"] .gesture-page-name {
    color: #6a6a8a !important;
}
[data-theme="light"] .section.ai-morphing-active::before {
    background: linear-gradient(135deg, rgba(29,78,216,0.04) 0%, transparent 50%, rgba(0,151,167,0.04) 100%) !important;
}
[data-theme="light"] .ai-personalization-badge {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(29, 78, 216, 0.12) !important;
    color: #4a4a6a !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .ai-momentum-bar {
    background: linear-gradient(90deg, #1e3a8a, #0097a7, #1e3a8a) !important;
    background-size: 200% 100%;
    box-shadow: 0 0 8px rgba(29, 78, 216, 0.3) !important;
}
[data-theme="light"] .ai-scroll-momentum {
    background: rgba(0, 0, 0, 0.02) !important;
}

/* ── Light theme: liquid mesh orbs ── */
[data-theme="light"] .liquid-mesh .orb {
    opacity: 0.35 !important;
    filter: blur(100px) !important;
}

/* ═══════════════════════════════════════════════════════════
 ██╗   ██╗ ██╗██████╗      ██████╗███████╗███████╗
 ██║   ██║███║╚════██╗    ██╔════╝██╔════╝██╔════╝
 ██║   ██║╚██║ █████╔╝    ██║     ███████╗███████╗
 ╚██╗ ██╔╝ ██║██╔═══╝     ██║     ╚════██║╚════██║
  ╚████╔╝  ██║███████╗    ╚██████╗███████║███████║
   ╚═══╝   ╚═╝╚══════╝     ╚═════╝╚══════╝╚══════╝
   WORLD'S MOST BEAUTIFUL WEBSITE
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   AURORA BOREALIS — Living Sky
   ═══════════════════════════════════════════ */
.aurora-borealis {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.4;
}
.aurora-wave {
    position: absolute;
    width: 200%;
    height: 50%;
    left: -50%;
    filter: blur(80px);
    mix-blend-mode: screen;
    will-change: transform;
}
.aurora-wave-1 {
    top: -20%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 229, 255, 0.08) 20%,
        rgba(37, 99, 235, 0.06) 40%,
        transparent 70%
    );
    animation: auroraFlow1 18s ease-in-out infinite;
}
.aurora-wave-2 {
    top: 10%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(176, 64, 255, 0.06) 30%,
        rgba(255, 64, 129, 0.04) 50%,
        transparent 80%
    );
    animation: auroraFlow2 22s ease-in-out infinite;
}
.aurora-wave-3 {
    top: 40%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 230, 118, 0.04) 25%,
        rgba(0, 229, 255, 0.06) 45%,
        transparent 75%
    );
    animation: auroraFlow3 26s ease-in-out infinite;
}
.aurora-wave-4 {
    top: 65%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(37, 99, 235, 0.05) 35%,
        rgba(176, 64, 255, 0.03) 55%,
        transparent 80%
    );
    animation: auroraFlow1 30s ease-in-out infinite reverse;
}

@keyframes auroraFlow1 {
    0%, 100% { transform: translateX(0) skewX(0deg); }
    25% { transform: translateX(8%) skewX(-2deg); }
    50% { transform: translateX(-5%) skewX(3deg); }
    75% { transform: translateX(6%) skewX(-1deg); }
}
@keyframes auroraFlow2 {
    0%, 100% { transform: translateX(0) skewX(0deg) scaleY(1); }
    33% { transform: translateX(-10%) skewX(4deg) scaleY(1.2); }
    66% { transform: translateX(8%) skewX(-3deg) scaleY(0.9); }
}
@keyframes auroraFlow3 {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    20% { transform: translateX(6%) rotate(1deg); }
    40% { transform: translateX(-8%) rotate(-1deg); }
    60% { transform: translateX(4%) rotate(0.5deg); }
    80% { transform: translateX(-3%) rotate(-0.5deg); }
}

/* ═══════════════════════════════════════════
   HOLOGRAPHIC TEXT SHIMMER
   ═══════════════════════════════════════════ */
.holo-text-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(0, 229, 255, 0.12) 45%,
        rgba(37, 99, 235, 0.12) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 70%
    );
    transform: translateX(-120%);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}
.holo-text-shimmer.active {
    animation: holoSweep 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes holoSweep {
    from { transform: translateX(-120%); }
    to { transform: translateX(120%); }
}

/* ═══════════════════════════════════════════
   CINEMATIC SECTION REVEALS
   ═══════════════════════════════════════════ */
/* Cinema reveals disabled — was hiding sections with opacity:0 */
.cinema-section.cinema-revealed {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

/* ═══════════════════════════════════════════
   AI FLOATING INTELLIGENCE ORBS
   ═══════════════════════════════════════════ */
.ai-floating-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}
.ai-float-orb {
    position: absolute;
    width: 20px;
    height: 20px;
    animation: floatOrb 15s ease-in-out infinite;
    transition: top 3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ai-orb-core {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent, #0071e3);
    box-shadow: 0 0 8px rgba(0, 113, 227, 0.4), 0 0 16px rgba(0, 113, 227, 0.15);
    animation: orbPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
.ai-orb-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.15);
    animation: orbRing 4s ease-in-out infinite;
}
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(90deg); }
    50% { transform: translate(-15px, 15px) rotate(180deg); }
    75% { transform: translate(25px, -10px) rotate(270deg); }
}
@keyframes orbPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}
@keyframes orbRing {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(2.5); opacity: 0; }
}

/* ═══════════════════════════════════════════
   AI CURSOR NEURAL TRAIL CANVAS
   ═══════════════════════════════════════════ */
.ai-cursor-trail-canvas {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.8;
}

/* ═══════════════════════════════════════════
   AI ATTENTION HEATMAP
   ═══════════════════════════════════════════ */
.ai-heatmap-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: screen;
}

/* ═══════════════════════════════════════════
   AI MOOD AMBIENT (Weather/Time)
   ═══════════════════════════════════════════ */
.ai-mood-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 3s ease;
}
.ai-mood-ambient.mood-night {
    opacity: 0.15;
    background: radial-gradient(ellipse at 50% 0%, rgba(30, 10, 80, 0.3) 0%, transparent 70%);
}
.ai-mood-ambient.mood-morning {
    opacity: 0.1;
    background: radial-gradient(ellipse at 80% 20%, rgba(255, 183, 77, 0.15) 0%, transparent 60%);
}
.ai-mood-ambient.mood-evening {
    opacity: 0.12;
    background: radial-gradient(ellipse at 20% 30%, rgba(255, 87, 34, 0.12) 0%, transparent 60%);
}
.ai-mood-ambient.mood-day {
    opacity: 0.08;
    background: radial-gradient(ellipse at 50% 10%, rgba(0, 176, 255, 0.1) 0%, transparent 60%);
}

/* ═══════════════════════════════════════════
   AI PAGE DNA FINGERPRINT
   ═══════════════════════════════════════════ */
.ai-page-dna {
    position: fixed;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0.4;
    transition: opacity 0.5s;
}
.ai-page-dna:hover {
    opacity: 0.8;
}
.dna-strand {
    display: flex;
    align-items: center;
    gap: 2px;
    animation: dnaRotate 6s ease-in-out infinite;
}
.dna-node {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--dna-color, #0071e3);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.dna-node-a {
    transform: translateX(0px);
}
.dna-node-b {
    transform: translateX(0px);
}
.dna-bridge {
    width: 8px;
    height: 1px;
    background: var(--dna-color, #0071e3);
    opacity: 0.15;
    transition: all 0.6s;
}
.dna-strand.active .dna-node {
    opacity: 1;
    transform: scale(2);
    box-shadow: 0 0 8px var(--dna-color);
}
.dna-strand.active .dna-bridge {
    opacity: 0.6;
    width: 14px;
    box-shadow: 0 0 4px var(--dna-color);
}
@keyframes dnaRotate {
    0%, 100% { transform: translateX(0px); }
    25% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
}

/* ═══════════════════════════════════════════
   ENHANCED GLASSMORPHISM 2.0 — Cards
   Even more stunning glass effects
   ═══════════════════════════════════════════ */
.service-card,
.persona-card,
.portfolio-card {
    background: rgba(255, 255, 255, 0.022) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.service-card:hover,
.persona-card:hover,
.portfolio-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
}

/* ═══════════════════════════════════════════
   ENHANCED HERO — Floating Elements
   ═══════════════════════════════════════════ */
.hero-content {
    position: relative !important;
}
.hero-title {
    text-shadow: 0 0 80px rgba(37, 99, 235, 0.08) !important;
}

/* ═══════════════════════════════════════════
   v12 MOBILE RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .aurora-borealis {
        opacity: 0.25;
    }
    .aurora-wave {
        filter: blur(60px);
    }
    .ai-floating-orbs {
        opacity: 0.5;
    }
    .ai-float-orb {
        width: 14px;
        height: 14px;
    }
    .ai-orb-core {
        width: 4px;
        height: 4px;
    }
    .ai-cursor-trail-canvas {
        display: none;
    }
    .ai-page-dna {
        display: none;
    }
    .ai-heatmap-canvas {
        opacity: 0.3;
    }
    /* Cinema reveals handled by AOS */
    .holo-text-shimmer {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   v12 LIGHT THEME OVERRIDES
   ═══════════════════════════════════════════ */
[data-theme="light"] .aurora-borealis {
    opacity: 0.2;
    mix-blend-mode: normal;
}
[data-theme="light"] .aurora-wave {
    mix-blend-mode: multiply;
    filter: blur(100px);
}
[data-theme="light"] .aurora-wave-1 {
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 151, 167, 0.06) 20%,
        rgba(29, 78, 216, 0.04) 40%,
        transparent 70%
    );
}
[data-theme="light"] .aurora-wave-2 {
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(29, 78, 216, 0.04) 30%,
        rgba(198, 40, 91, 0.03) 50%,
        transparent 80%
    );
}
[data-theme="light"] .aurora-wave-3 {
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 137, 123, 0.04) 25%,
        rgba(0, 151, 167, 0.05) 45%,
        transparent 75%
    );
}
[data-theme="light"] .holo-text-shimmer {
    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(0, 0, 0, 0.02) 40%,
        rgba(29, 78, 216, 0.06) 45%,
        rgba(0, 151, 167, 0.06) 50%,
        rgba(0, 0, 0, 0.02) 55%,
        transparent 70%
    ) !important;
    mix-blend-mode: normal !important;
}
[data-theme="light"] .ai-orb-core {
    background: #1e3a8a !important;
    box-shadow: 0 0 12px rgba(29, 78, 216, 0.4), 0 0 24px rgba(29, 78, 216, 0.15) !important;
}
[data-theme="light"] .ai-orb-ring {
    border-color: rgba(29, 78, 216, 0.12) !important;
}
[data-theme="light"] .ai-heatmap-canvas {
    mix-blend-mode: multiply !important;
}
[data-theme="light"] .ai-mood-ambient.mood-morning {
    opacity: 0.06 !important;
}
[data-theme="light"] .ai-mood-ambient.mood-day {
    opacity: 0.04 !important;
}
[data-theme="light"] .ai-mood-ambient.mood-evening {
    opacity: 0.06 !important;
}
[data-theme="light"] .ai-mood-ambient.mood-night {
    opacity: 0.08 !important;
}
[data-theme="light"] .dna-node {
    opacity: 0.25 !important;
}
[data-theme="light"] .dna-strand.active .dna-node {
    opacity: 0.8 !important;
}
[data-theme="light"] .service-card,
[data-theme="light"] .persona-card,
[data-theme="light"] .portfolio-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}
[data-theme="light"] .service-card:hover,
[data-theme="light"] .persona-card:hover,
[data-theme="light"] .portfolio-card:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(29, 78, 216, 0.15) !important;
}
/* Cinema reveals handled by AOS in light theme */
[data-theme="light"] .hero-title {
    text-shadow: none !important;
}
[data-theme="light"] #heroSection .hero-title {
    text-shadow: 0 2px 20px rgba(0,0,0,0.5) !important;
}

/* ═══════════════════════════════════════════════════════════
 ██╗   ██╗ ██╗██████╗      ██████╗███████╗███████╗
 ██║   ██║███║╚════██╗    ██╔════╝██╔════╝██╔════╝
 ██║   ██║╚██║ █████╔╝    ██║     ███████╗███████╗
 ╚██╗ ██╔╝ ██║██╔═══╝     ██║     ╚════██║╚════██║
  ╚████╔╝  ██║███████╗    ╚██████╗███████║███████║
   ╚═══╝   ╚═╝╚══════╝     ╚═════╝╚══════╝╚══════╝
   N E X T   L E V E L — A D V A N C E D   B E S T
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   QUANTUM PARTICLE FIELD — Canvas
   ═══════════════════════════════════════════ */
.quantum-field-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
    mix-blend-mode: screen;
}

/* ═══════════════════════════════════════════
   CHROME LIQUID GRADIENT — Molten Metal
   ═══════════════════════════════════════════ */
.chrome-liquid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.35;
}
.chrome-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
    mix-blend-mode: screen;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.chrome-blob-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(192, 192, 255, 0.08) 0%, rgba(37, 99, 235, 0.04) 40%, transparent 70%);
    top: -10%;
    left: -5%;
    animation: chromePulse1 20s ease-in-out infinite;
}
.chrome-blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, rgba(61, 90, 254, 0.03) 40%, transparent 70%);
    top: 40%;
    right: -10%;
    animation: chromePulse2 25s ease-in-out infinite;
}
.chrome-blob-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(224, 64, 251, 0.05) 0%, rgba(176, 64, 255, 0.03) 40%, transparent 70%);
    bottom: 10%;
    left: 30%;
    animation: chromePulse1 30s ease-in-out infinite reverse;
}

@keyframes chromePulse1 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.35; }
    25% { transform: translate(50px, -30px) scale(1.15) rotate(5deg); opacity: 0.45; }
    50% { transform: translate(-30px, 50px) scale(0.9) rotate(-3deg); opacity: 0.3; }
    75% { transform: translate(40px, -20px) scale(1.1) rotate(4deg); opacity: 0.4; }
}
@keyframes chromePulse2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    33% { transform: translate(-40px, 30px) scale(1.2); opacity: 0.4; }
    66% { transform: translate(30px, -40px) scale(0.85); opacity: 0.25; }
}

/* ═══════════════════════════════════════════
   PRISMATIC LIGHT REFRACTION — Crystal Rays
   ═══════════════════════════════════════════ */
.prismatic-refraction {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.15;
}
.prism-ray {
    position: absolute;
    width: 2px;
    height: 200%;
    transform-origin: top center;
    filter: blur(1px);
    animation: prismSweep 12s ease-in-out infinite;
}
.prism-ray-1 {
    left: 15%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 229, 255, 0.3) 20%, rgba(0, 229, 255, 0.6) 50%, rgba(0, 229, 255, 0.3) 80%, transparent 100%);
    animation-delay: 0s;
    animation-duration: 14s;
}
.prism-ray-2 {
    left: 35%;
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.3) 25%, rgba(37, 99, 235, 0.5) 50%, rgba(37, 99, 235, 0.3) 75%, transparent 100%);
    animation-delay: -2s;
    animation-duration: 18s;
}
.prism-ray-3 {
    left: 55%;
    background: linear-gradient(180deg, transparent 0%, rgba(176, 64, 255, 0.25) 20%, rgba(176, 64, 255, 0.5) 50%, rgba(176, 64, 255, 0.25) 80%, transparent 100%);
    animation-delay: -4s;
    animation-duration: 16s;
}
.prism-ray-4 {
    left: 72%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 64, 129, 0.2) 30%, rgba(255, 64, 129, 0.45) 50%, rgba(255, 64, 129, 0.2) 70%, transparent 100%);
    animation-delay: -6s;
    animation-duration: 20s;
}
.prism-ray-5 {
    left: 88%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 230, 118, 0.2) 25%, rgba(0, 230, 118, 0.4) 50%, rgba(0, 230, 118, 0.2) 75%, transparent 100%);
    animation-delay: -8s;
    animation-duration: 22s;
}

@keyframes prismSweep {
    0%   { transform: rotate(-20deg) translateY(-30%); opacity: 0; }
    15%  { opacity: 1; }
    50%  { transform: rotate(8deg) translateY(10%); }
    85%  { opacity: 1; }
    100% { transform: rotate(25deg) translateY(40%); opacity: 0; }
}

/* ═══════════════════════════════════════════
   AI SMART SPOTLIGHT — Content Illuminator
   ═══════════════════════════════════════════ */
.ai-smart-spotlight {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(37, 99, 235, 0.03) 0%,
        rgba(0, 229, 255, 0.015) 30%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s ease, left 0.15s ease, top 0.15s ease;
    opacity: 0;
    mix-blend-mode: screen;
}
.spotlight-active {
    position: relative;
}
@keyframes spotlightPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ═══════════════════════════════════════════
   AI BREATHING UI — Living Interface
   Uses CSS custom property --breath
   ═══════════════════════════════════════════ */
.service-card,
.persona-card,
.portfolio-card {
    box-shadow: var(--shadow-card),
        0 0 calc(20px * var(--breath-glow, 0.1)) rgba(37, 99, 235, var(--breath-glow, 0.05)) !important;
}
.nav-cta {
    box-shadow: none !important;
}
.scroll-progress {
    box-shadow: 0 0 calc(8px + var(--breath, 0.5) * 6px) rgba(37, 99, 235, calc(0.3 + var(--breath, 0.5) * 0.2)),
                0 0 calc(20px + var(--breath, 0.5) * 15px) rgba(0, 229, 255, calc(0.1 + var(--breath, 0.5) * 0.08)) !important;
}

/* ═══════════════════════════════════════════
   AI MAGNETIC FIELD LINES — Canvas
   ═══════════════════════════════════════════ */
.magnetic-field-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* ═══════════════════════════════════════════
   CINEMATIC DEPTH LAYERS
   Multi-plane parallax depth effect
   ═══════════════════════════════════════════ */
.cinematic-depth-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.depth-plane {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.depth-plane-1 {
    background: radial-gradient(ellipse 80% 60% at 20% 30%, rgba(37, 99, 235, 0.015) 0%, transparent 60%);
    filter: blur(40px);
}
.depth-plane-2 {
    background: radial-gradient(ellipse 60% 50% at 70% 60%, rgba(0, 229, 255, 0.01) 0%, transparent 55%);
    filter: blur(60px);
}
.depth-plane-3 {
    background: radial-gradient(ellipse 90% 70% at 50% 50%, rgba(176, 64, 255, 0.008) 0%, transparent 65%);
    filter: blur(80px);
}

/* ═══════════════════════════════════════════
   ENHANCED GRADIENT TEXT v13
   Ultra-smooth animated prismatic text
   ═══════════════════════════════════════════ */
.gradient-text,
.section-title {
    position: relative !important;
}

/* ═══════════════════════════════════════════
   ENHANCED CARD HOVER v13 — Liquid Border
   Animated gradient border on hover
   ═══════════════════════════════════════════ */
.service-card::after,
.persona-card::after,
.portfolio-card::after {
    display: none !important;
}
.service-card:hover::after,
.persona-card:hover::after,
.portfolio-card:hover::after {
    display: none !important;
}

/* ═══════════════════════════════════════════
   ENHANCED SECTION HEADERS — Bigger Impact
   ═══════════════════════════════════════════ */
.section-tag {
    letter-spacing: 0.3em !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: #0071e3 !important;
    text-transform: uppercase !important;
    position: relative !important;
    display: inline-block !important;
    padding: 4px 16px !important;
    border-radius: 20px !important;
    background: rgba(0, 113, 227, 0.06) !important;
    border: 1px solid rgba(0, 113, 227, 0.12) !important;
    margin-bottom: 12px !important;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
}

/* ═══════════════════════════════════════════
   ENHANCED FOOTER v13 — Depth & Glow
   ═══════════════════════════════════════════ */
.footer {
    position: relative !important;
}
.footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 10% !important;
    right: 10% !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), rgba(0, 229, 255, 0.2), rgba(37, 99, 235, 0.3), transparent) !important;
}

/* ═══════════════════════════════════════════
   ENHANCED BUTTONS v13 — Glass Depth
   ═══════════════════════════════════════════ */
.btn-primary {
    position: relative !important;
    z-index: 1 !important;
}
.btn-primary::after {
    content: '' !important;
    position: absolute !important;
    inset: 2px !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.btn-outline {
    position: relative !important;
    overflow: hidden !important;
}
.btn-outline::after {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: conic-gradient(from var(--angle, 0deg), transparent 60%, rgba(37, 99, 235, 0.1) 80%, transparent) !important;
    animation: borderSpin 6s linear infinite !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* ═══════════════════════════════════════════
   v13 MOBILE RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .quantum-field-canvas {
        opacity: 0.4;
    }
    .chrome-liquid-bg {
        opacity: 0.2;
    }
    .chrome-blob {
        filter: blur(80px);
    }
    .chrome-blob-1 { width: 400px; height: 400px; }
    .chrome-blob-2 { width: 350px; height: 350px; }
    .chrome-blob-3 { width: 300px; height: 300px; }
    .prismatic-refraction {
        opacity: 0.08;
    }
    .prism-ray {
        filter: blur(2px);
    }
    .ai-smart-spotlight {
        display: none;
    }
    .magnetic-field-canvas {
        display: none;
    }
    .cinematic-depth-container {
        opacity: 0.5;
    }
    .depth-plane { filter: blur(60px); }
    .section-tag {
        font-size: 0.6rem !important;
        letter-spacing: 0.2em !important;
    }
}

@media (max-width: 480px) {
    .quantum-field-canvas {
        opacity: 0.3;
    }
    .chrome-liquid-bg {
        opacity: 0.15;
    }
    .prismatic-refraction {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   v13 LIGHT THEME OVERRIDES
   ═══════════════════════════════════════════ */
[data-theme="light"] .quantum-field-canvas {
    opacity: 0.4 !important;
    mix-blend-mode: multiply !important;
}
[data-theme="light"] .chrome-liquid-bg {
    opacity: 0.2 !important;
}
[data-theme="light"] .chrome-blob {
    mix-blend-mode: multiply !important;
}
[data-theme="light"] .chrome-blob-1 {
    background: radial-gradient(circle, rgba(29, 78, 216, 0.04) 0%, rgba(29, 78, 216, 0.02) 40%, transparent 70%) !important;
}
[data-theme="light"] .chrome-blob-2 {
    background: radial-gradient(circle, rgba(0, 151, 167, 0.03) 0%, rgba(41, 98, 255, 0.015) 40%, transparent 70%) !important;
}
[data-theme="light"] .chrome-blob-3 {
    background: radial-gradient(circle, rgba(171, 71, 188, 0.03) 0%, rgba(29, 78, 216, 0.015) 40%, transparent 70%) !important;
}
[data-theme="light"] .prismatic-refraction {
    opacity: 0.06 !important;
}
[data-theme="light"] .prism-ray-1 {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 151, 167, 0.15) 20%, rgba(0, 151, 167, 0.3) 50%, rgba(0, 151, 167, 0.15) 80%, transparent 100%) !important;
}
[data-theme="light"] .prism-ray-2 {
    background: linear-gradient(180deg, transparent 0%, rgba(29, 78, 216, 0.15) 25%, rgba(29, 78, 216, 0.25) 50%, rgba(29, 78, 216, 0.15) 75%, transparent 100%) !important;
}
[data-theme="light"] .prism-ray-3 {
    background: linear-gradient(180deg, transparent 0%, rgba(29, 78, 216, 0.1) 20%, rgba(29, 78, 216, 0.25) 50%, rgba(29, 78, 216, 0.1) 80%, transparent 100%) !important;
}
[data-theme="light"] .prism-ray-4 {
    background: linear-gradient(180deg, transparent 0%, rgba(194, 24, 91, 0.1) 30%, rgba(194, 24, 91, 0.2) 50%, rgba(194, 24, 91, 0.1) 70%, transparent 100%) !important;
}
[data-theme="light"] .prism-ray-5 {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 137, 123, 0.1) 25%, rgba(0, 137, 123, 0.2) 50%, rgba(0, 137, 123, 0.1) 75%, transparent 100%) !important;
}
[data-theme="light"] .ai-smart-spotlight {
    background: radial-gradient(circle,
        rgba(29, 78, 216, 0.015) 0%,
        rgba(0, 151, 167, 0.008) 30%,
        transparent 60%
    ) !important;
    mix-blend-mode: normal !important;
}
[data-theme="light"] .magnetic-field-canvas {
    opacity: 0.3 !important;
}
[data-theme="light"] .cinematic-depth-container {
    opacity: 0.6 !important;
}
[data-theme="light"] .depth-plane-1 {
    background: radial-gradient(ellipse 80% 60% at 20% 30%, rgba(29, 78, 216, 0.01) 0%, transparent 60%) !important;
}
[data-theme="light"] .depth-plane-2 {
    background: radial-gradient(ellipse 60% 50% at 70% 60%, rgba(0, 151, 167, 0.008) 0%, transparent 55%) !important;
}
[data-theme="light"] .depth-plane-3 {
    background: radial-gradient(ellipse 90% 70% at 50% 50%, rgba(29, 78, 216, 0.006) 0%, transparent 65%) !important;
}
[data-theme="light"] .section-tag {
    color: #0071e3 !important;
    background: rgba(0, 113, 227, 0.06) !important;
    border-color: rgba(0, 113, 227, 0.12) !important;
}
[data-theme="light"] .footer::before {
    background: linear-gradient(90deg, transparent, rgba(29, 78, 216, 0.15), rgba(0, 151, 167, 0.1), rgba(29, 78, 216, 0.15), transparent) !important;
}
[data-theme="light"] .service-card,
[data-theme="light"] .persona-card,
[data-theme="light"] .portfolio-card {
    box-shadow: var(--shadow-card),
        0 0 calc(15px * var(--breath-glow, 0.05)) rgba(29, 78, 216, calc(var(--breath-glow, 0.03) * 0.5)) !important;
}

/* ═══════════════════════════════════════════════════════════
   v14 — BEYOND REALITY — CSS FOR 10 MOST ADVANCED AI EFFECTS
   ═══════════════════════════════════════════════════════════ */

/* ──────── 1. GRAVITATIONAL LENS WARP ──────── */
.grav-lens-warp {
    position: fixed;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(circle,
        rgba(100, 180, 255, 0.03) 0%,
        rgba(100, 180, 255, 0.01) 40%,
        transparent 70%
    );
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    border: 1px solid rgba(100, 180, 255, 0.06);
    box-shadow:
        0 0 60px rgba(100, 180, 255, 0.04),
        0 0 120px rgba(100, 180, 255, 0.02),
        inset 0 0 30px rgba(100, 180, 255, 0.03);
    transition: opacity 0.3s;
    mix-blend-mode: screen;
}

/* ──────── 3. HOLOGRAPHIC 3D PARALLAX ──────── */
.holo-3d-parallax {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.holo-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    will-change: transform;
}
.holo-layer-1 {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 60px,
        rgba(100, 180, 255, 0.015) 60px,
        rgba(100, 180, 255, 0.015) 61px
    );
}
.holo-layer-2 {
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 80px,
        rgba(180, 100, 255, 0.012) 80px,
        rgba(180, 100, 255, 0.012) 81px
    );
}
.holo-layer-3 {
    background: radial-gradient(
        ellipse 100% 100% at 50% 30%,
        rgba(100, 255, 200, 0.02) 0%,
        transparent 50%
    );
}
.holo-shimmer {
    position: absolute;
    top: 0; left: 0;
    width: 200%; height: 200%;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(255, 255, 255, 0.015) 45%,
        transparent 55%,
        rgba(100, 180, 255, 0.01) 70%,
        transparent 80%
    );
    background-size: 200% 200%;
    animation: holoShimmerDrift 12s ease-in-out infinite;
}
@keyframes holoShimmerDrift {
    0%, 100% { transform: translate(-25%, -25%); }
    50% { transform: translate(-10%, -10%); }
}

/* ──────── 4. AI EMOTION PARTICLE STORM ──────── */
.emotion-storm-canvas {
    mix-blend-mode: screen;
}

/* ──────── 5. QUANTUM ENTANGLEMENT CURSOR ──────── */
.entangled-cursor {
    position: fixed;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}
.entangled-cursor-1 {
    background: radial-gradient(circle, rgba(100, 180, 255, 0.4), transparent 70%);
    box-shadow: 0 0 20px rgba(100, 180, 255, 0.3), 0 0 40px rgba(100, 180, 255, 0.1);
    border: 1px solid rgba(100, 180, 255, 0.25);
}
.entangled-cursor-2 {
    background: radial-gradient(circle, rgba(200, 100, 255, 0.3), transparent 70%);
    box-shadow: 0 0 20px rgba(200, 100, 255, 0.25), 0 0 40px rgba(200, 100, 255, 0.08);
    border: 1px solid rgba(200, 100, 255, 0.2);
    width: 14px; height: 14px;
}

/* ──────── 6. AI PREDICTIVE GAZE ──────── */
.predictive-approaching {
    box-shadow:
        0 0 calc(30px * var(--predictive-glow, 0)) rgba(100, 180, 255, var(--predictive-glow, 0)),
        0 0 calc(60px * var(--predictive-glow, 0)) rgba(100, 180, 255, calc(var(--predictive-glow, 0) * 0.3)) !important;
    border-color: rgba(100, 180, 255, calc(var(--predictive-glow, 0) * 0.4)) !important;
    transition: box-shadow 0.6s ease, border-color 0.6s ease;
}

/* ──────── 7. NEURAL PULSE HEARTBEAT GRID ──────── */
.heartbeat-grid-canvas {
    mix-blend-mode: screen;
}

/* ──────── 9. AI TEMPORAL MORPHING ──────── */
/* Subtle temporal accent applied via CSS vars set by JS */
[data-temporal="dawn"] .hero-section { --accent-temporal: rgba(255, 180, 50, 0.06); }
[data-temporal="day"] .hero-section { --accent-temporal: rgba(50, 120, 255, 0.06); }
[data-temporal="sunset"] .hero-section { --accent-temporal: rgba(255, 80, 150, 0.06); }
[data-temporal="night"] .hero-section { --accent-temporal: rgba(100, 50, 200, 0.06); }
.hero-section {
    background-image: radial-gradient(ellipse at 50% 30%, var(--accent-temporal, transparent) 0%, transparent 70%);
}

/* ──────── v14 LIGHT THEME OVERRIDES ──────── */
[data-theme="light"] .grav-lens-warp {
    background: radial-gradient(circle, rgba(29, 78, 216, 0.03), transparent 70%);
    border-color: rgba(29, 78, 216, 0.06);
    box-shadow: 0 0 60px rgba(29, 78, 216, 0.04);
}
[data-theme="light"] .entangled-cursor-1 {
    background: radial-gradient(circle, rgba(29, 78, 216, 0.3), transparent 70%);
    box-shadow: 0 0 20px rgba(29, 78, 216, 0.2);
    border-color: rgba(29, 78, 216, 0.2);
}
[data-theme="light"] .entangled-cursor-2 {
    background: radial-gradient(circle, rgba(0, 151, 167, 0.25), transparent 70%);
    box-shadow: 0 0 20px rgba(0, 151, 167, 0.15);
    border-color: rgba(0, 151, 167, 0.15);
}
[data-theme="light"] .predictive-approaching {
    box-shadow:
        0 0 calc(30px * var(--predictive-glow, 0)) rgba(29, 78, 216, var(--predictive-glow, 0)),
        0 0 calc(60px * var(--predictive-glow, 0)) rgba(29, 78, 216, calc(var(--predictive-glow, 0) * 0.3)) !important;
    border-color: rgba(29, 78, 216, calc(var(--predictive-glow, 0) * 0.4)) !important;
}
[data-theme="light"] .holo-layer-1 {
    background: repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(29, 78, 216, 0.01) 60px, rgba(29, 78, 216, 0.01) 61px);
}
[data-theme="light"] .holo-layer-2 {
    background: repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(0, 151, 167, 0.008) 80px, rgba(0, 151, 167, 0.008) 81px);
}

/* ──────── v14 MOBILE RESPONSIVE ──────── */
@media (max-width: 768px) {
    .grav-lens-warp,
    .entangled-cursor,
    .holo-3d-parallax { display: none !important; }
    .emotion-storm-canvas { opacity: 0.5 !important; }
    .heartbeat-grid-canvas { opacity: 0.15 !important; }
}

/* ═══════════════════════════════════════════════════════════
   v14 — REAL AI FEATURES CSS
   ═══════════════════════════════════════════════════════════ */

/* ──────── AI SMART ASSISTANT WIDGET — CLEAN DOT ──────── */
.ai-assistant-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ai-assist-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1d1d1f;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ai-assist-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.ai-assist-btn.active {
    transform: scale(0.94);
}

/* ── Simple Green Blinking Dot ── */
.ai-assist-icon {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.ai-bubble-canvas { display: none !important; }
/* CSS blob hidden */
.ai-blob, .ai-blob::before, .ai-blob-ring { display: none; }
.ai-blob-text {
    position: relative;
    z-index: 5;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34C759;
    box-shadow: 0 0 6px rgba(52, 199, 89, 0.6), 0 0 12px rgba(52, 199, 89, 0.3);
    animation: dotBlink 2s ease-in-out infinite;
    font-size: 0;
    color: transparent;
    pointer-events: none;
}
@keyframes dotBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(52,199,89,0.6), 0 0 12px rgba(52,199,89,0.3); }
    50% { opacity: 0.4; box-shadow: 0 0 3px rgba(52,199,89,0.3); }
}
@keyframes blobMorph {
    0%, 100% { border-radius: 42% 58% 56% 44% / 48% 44% 56% 52%; }
    25% { border-radius: 56% 44% 48% 52% / 44% 56% 42% 58%; }
    50% { border-radius: 48% 52% 44% 56% / 58% 42% 56% 44%; }
    75% { border-radius: 44% 56% 52% 48% / 52% 48% 44% 56%; }
}
@keyframes blobShift {
    0%, 100% { background-position: 0% 0%, 100% 100%, 0% 100%, 100% 0%, center; }
    33% { background-position: 100% 0%, 0% 100%, 100% 100%, 0% 0%, center; }
    66% { background-position: 0% 100%, 100% 0%, 0% 0%, 100% 100%, center; }
}
@keyframes ringPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

/* ── Mini Dot Avatar (in chat messages) ── */
.ai-avatar-blob {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: relative;
    background: #1d1d1f;
}
.ai-avatar-blob::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34C759;
    box-shadow: 0 0 4px rgba(52, 199, 89, 0.5);
    animation: dotBlink 2s ease-in-out infinite;
}
.ai-avatar-blob.has-canvas::after {
    display: block;
}

/* ── Tooltip blob icon ── */
.ai-tip-blob {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 30% 30%, #7B68EE 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, #4ECDC4 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, #6C63FF 0%, #2d2b55 100%);
    vertical-align: middle;
    margin-right: 6px;
    animation: blobMorph 8s ease-in-out infinite;
}

.ai-assist-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(52, 199, 89, 0.3);
    animation: aiPulse 3s ease-in-out infinite;
}
@keyframes aiPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 0; }
}

/* Panel */
.ai-assist-panel {
    position: absolute;
    bottom: 74px;
    right: 0;
    width: 380px;
    max-height: min(720px, calc(100vh - 100px));
    background: rgba(12, 12, 28, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 22px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 40px rgba(108, 99, 255, 0.08);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.92);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.ai-assist-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.ai-assist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(78, 205, 196, 0.06));
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
    flex-shrink: 0;
}
.ai-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ECDC4;
    box-shadow: 0 0 8px rgba(78, 205, 196, 0.6);
    animation: aiDotBlink 2s ease-in-out infinite;
}
@keyframes aiDotBlink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.ai-title {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
}
.ai-gemini-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.2), rgba(52, 168, 83, 0.2), rgba(251, 188, 4, 0.2), rgba(234, 67, 53, 0.2));
    border: 1px solid rgba(66, 133, 244, 0.3);
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ai-panel-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
}
.ai-panel-close:hover { color: #fff; }
.ai-status {
    font-size: 11px;
    color: #4ECDC4;
    font-weight: 500;
}
.ai-assist-body {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 16px 24px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
    flex: 1 1 auto;
}
.ai-assist-body::-webkit-scrollbar { width: 4px; }
.ai-assist-body::-webkit-scrollbar-track { background: transparent; }
.ai-assist-body::-webkit-scrollbar-thumb { background: rgba(108, 99, 255, 0.2); border-radius: 4px; }
.ai-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: aiMsgIn 0.3s ease-out;
}
@keyframes aiMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.ai-message-user {
    flex-direction: row-reverse;
}
.ai-avatar {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}
.ai-message-user .ai-avatar {
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.15);
}
.ai-bubble {
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.12);
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
    max-width: 82%;
    min-width: 0;
}
/* Full-width card bubbles (quote cards, comparison cards, etc.) */
.ai-bubble-card {
    max-width: 100% !important;
    flex: 1 1 0%;
    min-width: 0;
}
.ai-bubble .ai-bullet { color: #6C63FF; font-weight: 700; }
.ai-message-user .ai-bubble {
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.15);
    color: rgba(255,255,255,0.92);
}

/* Thinking dots */
.ai-thinking {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}
.ai-thinking span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6C63FF;
    animation: aiThinkBounce 1.4s ease-in-out infinite;
}
.ai-thinking span:nth-child(2) { animation-delay: 0.2s; }
.ai-thinking span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiThinkBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.ai-typing {
    color: rgba(255,255,255,0.5);
    animation: aiTyping 0.8s ease-in-out infinite alternate;
}
@keyframes aiTyping { from{opacity:0.3} to{opacity:0.8} }

.ai-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px;
    border-top: 1px solid rgba(108, 99, 255, 0.08);
    flex-shrink: 0;
}
.ai-quick-btn {
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}
.ai-quick-btn:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: rgba(108, 99, 255, 0.35);
    transform: translateY(-1px);
    color: #fff;
}
.ai-input-row {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(108, 99, 255, 0.08);
    flex-shrink: 0;
}
.ai-input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: 22px;
    padding: 10px 18px;
    font-size: 13px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}
.ai-input:focus { border-color: #6C63FF; background: rgba(108, 99, 255, 0.06); }
.ai-input::placeholder { color: rgba(255,255,255,0.3); }
.ai-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C63FF, #4ECDC4);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    flex-shrink: 0;
}
.ai-send-btn:hover { transform: scale(1.1); }
.ai-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Attach button (image upload) */
.ai-attach-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.25);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.ai-attach-btn:hover {
    background: rgba(108, 99, 255, 0.3);
    color: #fff;
    transform: scale(1.1);
}
/* Image preview */
.ai-image-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(108, 99, 255, 0.08);
    border-top: 1px solid rgba(108, 99, 255, 0.1);
}
.ai-image-preview img {
    max-width: 60px;
    max-height: 60px;
    border-radius: 8px;
    object-fit: cover;
}
.ai-image-preview button {
    background: rgba(255,60,60,0.2);
    border: none;
    color: #ff6b6b;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-image-preview button:hover { background: rgba(255,60,60,0.4); }

/* Footer tag */
.ai-footer-tag {
    text-align: center;
    padding: 8px 16px;
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    border-top: 1px solid rgba(108, 99, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 5px;
}

/* Auto-tip */
.ai-auto-tip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.ai-auto-tip.show {
    opacity: 1;
    transform: translateY(0);
}

/* ──────── AI LIVE STATS ──────── */
.ai-live-stats {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9999;
    background: rgba(20, 20, 30, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 16px;
    padding: 14px 18px;
    min-width: 200px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.ai-live-stats.visible {
    opacity: 1;
    transform: translateX(0);
}
.ai-stats-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.ai-stats-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ECDC4;
    animation: aiDotBlink 1.5s ease-in-out infinite;
}
.ai-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ai-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.ai-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    min-width: 50px;
    text-align: right;
}
.ai-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}

/* ──────── LIGHT THEME OVERRIDES ──────── */
[data-theme="light"] .ai-assist-panel {
    background: rgba(255,255,255,0.97);
    border-color: rgba(108, 99, 255, 0.12);
    box-shadow: 0 24px 80px rgba(0,0,0,0.1), 0 0 40px rgba(108, 99, 255, 0.04);
}
[data-theme="light"] .ai-assist-header {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.06), rgba(78, 205, 196, 0.04));
}
[data-theme="light"] .ai-title { color: #1a1a2e; }
[data-theme="light"] .ai-gemini-badge {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(52, 168, 83, 0.1), rgba(251, 188, 4, 0.1), rgba(234, 67, 53, 0.1));
    color: #555;
}
[data-theme="light"] .ai-panel-close { color: rgba(0,0,0,0.3); }
[data-theme="light"] .ai-panel-close:hover { color: #000; }
[data-theme="light"] .ai-avatar {
    background: transparent;
    border-color: transparent;
}
[data-theme="light"] .ai-bubble {
    color: #1a1a2e;
    background: rgba(108, 99, 255, 0.05);
    border-color: rgba(108, 99, 255, 0.08);
}
[data-theme="light"] .ai-message-user .ai-bubble {
    background: rgba(78, 205, 196, 0.08);
    border-color: rgba(78, 205, 196, 0.12);
}
[data-theme="light"] .ai-quick-btn {
    color: #444;
    background: rgba(108, 99, 255, 0.04);
    border-color: rgba(108, 99, 255, 0.1);
}
[data-theme="light"] .ai-input {
    background: rgba(0,0,0,0.03);
    border-color: rgba(108, 99, 255, 0.12);
    color: #1a1a2e;
}
[data-theme="light"] .ai-input::placeholder { color: rgba(0,0,0,0.3); }
[data-theme="light"] .ai-footer-tag { color: rgba(0,0,0,0.25); }
[data-theme="light"] .ai-auto-tip {
    background: rgba(255,255,255,0.97);
    color: #333;
    border-color: rgba(108, 99, 255, 0.12);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
[data-theme="light"] .ai-assist-btn {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
[data-theme="light"] .ai-live-stats {
    background: rgba(255,255,255,0.94);
    border-color: rgba(108, 99, 255, 0.12);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
[data-theme="light"] .ai-stats-header { color: rgba(0,0,0,0.5); }
[data-theme="light"] .ai-stat-value { color: #1a1a2e; }
[data-theme="light"] .ai-stat-label { color: rgba(0,0,0,0.45); }

/* ──────── AI FEATURES MOBILE ──────── */
@media (max-width: 768px) {
    .ai-assistant-widget { bottom: 16px; right: 14px; }
    .ai-assist-btn { width: 44px; height: 44px; }
    .ai-assist-icon { width: 44px; height: 44px; }
    .ai-blob-text { width: 8px; height: 8px; font-size: 0; }
    .ai-bubble-canvas { display: none !important; }
    .ai-assist-panel {
        width: calc(100vw - 28px);
        right: -7px;
        bottom: 64px;
        max-height: min(700px, calc(100vh - 80px));
        border-radius: 18px;
    }
    .ai-assist-body { min-height: 0; padding-bottom: 20px; }
    .ai-live-stats { display: none; }
}

/* ═══════════════════════════════════════════
   HERO TEXT — FINAL OVERRIDES (highest cascade)
   All pages: crisp dark black text
   Homepage (#heroSection): white on video
   ═══════════════════════════════════════════ */
.hero-title {
    color: #1d1d1f !important;
    -webkit-text-fill-color: #1d1d1f !important;
    text-shadow: none !important;
}
.hero-subtitle {
    color: #1d1d1f !important;
    -webkit-text-fill-color: #1d1d1f !important;
    text-shadow: none !important;
}
/* Homepage only — white on dark video */
#heroSection .hero-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5) !important;
}
#heroSection .hero-subtitle {
    color: rgba(255,255,255,0.92) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.92) !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4) !important;
}
