/* ============================================
   HOME PREMIUM REDESIGN
   Hero · Counters · Slipstream Showcase · Services
   ============================================ */

/* ---------- SHARED MOTION BACKGROUND ---------- */
@keyframes cvAuroraA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6vmax, 4vmax) scale(1.08); }
  66% { transform: translate(-3vmax, 2vmax) scale(0.95); }
}
@keyframes cvAuroraB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-5vmax, -4vmax) scale(1.05); }
  70% { transform: translate(2vmax, -2vmax) scale(0.96); }
}
@keyframes cvAuroraC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4vmax, 3vmax) scale(1.1); }
}

.cv-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cv-glow--violet {
  width: 52vmax; height: 52vmax;
  top: -20vmax; left: -14vmax;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 62%);
  animation: cvAuroraA 30s ease-in-out infinite;
}
.cv-glow--cyan {
  width: 46vmax; height: 46vmax;
  bottom: -22vmax; right: -12vmax;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 62%);
  animation: cvAuroraB 36s ease-in-out infinite;
}
.cv-glow--pink {
  width: 42vmax; height: 42vmax;
  top: -10vmax; right: -6vmax;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.16), transparent 62%);
  animation: cvAuroraC 34s ease-in-out infinite;
}

.cv-sec-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* ---------- REVEAL SYSTEM ---------- */
.cv-reveal {
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
html.cv-js .cv-reveal { opacity: 0; transform: translateY(28px); }
html.cv-js .cv-reveal.cv-in { opacity: 1; transform: translateY(0); }

/* ---------- HERO ---------- */
.cv-hero { position: relative; }

.cv-hero .hero-badge,
.cv-hero .hero-title,
.cv-hero .hero-description,
.cv-hero .hero-buttons,
.cv-hero .hero-stats,
.cv-hero .hero-visual { animation: none; }

.cv-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.6s ease 0.15s;
  will-change: transform;
}
body.cv-loaded .cv-hero .cv-bg { opacity: 1; }

/* Plain dark base for the honeycomb hero */
.cv-hero-deep {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #050409 0%, #070512 55%, #08061a 100%);
}

/* Futuristic hexagonal grid — one clean layer flowing continuously right → left */
.cv-hex {
  position: absolute;
  left: 0; top: 0;
  width: calc(100% + 144px);
  height: 100%;
  pointer-events: none;
  will-change: transform;
  animation: cvHexFlow 20s linear infinite;
}
@keyframes cvHexFlow {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-144px, 0, 0); }
}

.cv-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 42%, rgba(5, 5, 15, 0.55) 100%);
  pointer-events: none;
}

.cv-read-layer {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 4, 12, 0.58) 0%, rgba(4, 4, 12, 0.22) 42%, transparent 60%);
}

.cv-hero-content { position: relative; z-index: 2; }
.cv-hero-visual { position: relative; z-index: 2; opacity: 0; transform: scale(0.9) translateY(14px); }
body.cv-loaded .cv-hero-visual {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

/* Hero title lines */
.cv-hero-title .cv-line { display: block; overflow: hidden; }
html.cv-js .cv-hero-title .cv-line-inner {
  display: block;
  transform: translateY(115%) rotateX(-18deg);
  transform-origin: 50% 100%;
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}
html.cv-js .cv-hero-title.cv-in .cv-line-inner { transform: translateY(0) rotateX(0); }
.cv-hero-title .cv-line:nth-child(1) .cv-line-inner { transition-delay: 0.05s; }
.cv-hero-title .cv-line:nth-child(2) .cv-line-inner { transition-delay: 0.18s; }
.cv-hero-title .cv-line:nth-child(3) .cv-line-inner { transition-delay: 0.31s; }

.cv-hl {
  background: linear-gradient(90deg, #a78bfa, #7c3aed, #06b6d4, #a78bfa);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cvHlFlow 7s linear infinite;
}
@keyframes cvHlFlow { to { background-position: -300% 0; } }

.cv-hero .hero-stats { gap: 0; }
.cv-hero .hero-stat { position: relative; padding: 4px 34px; }
.cv-hero .hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 68%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.16), transparent);
}
.cv-hero .hero-stat-number {
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
}

.cv-btn-mag { will-change: transform; }
.cv-btn-arrow { display: inline-block; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.cv-btn-mag:hover .cv-btn-arrow { transform: translateX(5px); }

/* Hero right-side visual stage */
.cv-orb-stage {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- COUNTERS ---------- */
.cv-counters .container { position: relative; z-index: 1; }

.cv-counters .counter-card {
  padding: 42px 22px 38px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, box-shadow 0.5s;
  --cv-accent: #7c3aed;
  --cv-accent-soft: rgba(124, 58, 237, 0.35);
}
.cv-counters .counter-card:nth-child(2) { --cv-accent: #06b6d4; --cv-accent-soft: rgba(6, 182, 212, 0.35); }
.cv-counters .counter-card:nth-child(3) { --cv-accent: #f59e0b; --cv-accent-soft: rgba(245, 158, 11, 0.35); }
.cv-counters .counter-card:nth-child(4) { --cv-accent: #10b981; --cv-accent-soft: rgba(16, 185, 129, 0.35); }

.cv-counters .counter-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--cv-accent), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s;
}
.cv-counters .counter-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), var(--cv-accent-soft), transparent 45%);
  opacity: 0;
  transform: none;
  transition: opacity 0.45s;
}
.cv-counters .counter-card:hover::before { opacity: 1; }
.cv-counters .counter-card:hover::after { opacity: 1; transform: none; }
.cv-counters .counter-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--cv-accent) 45%, transparent);
  box-shadow: 0 22px 50px -22px var(--cv-accent-soft);
}
.cv-counters .counter-card > * { position: relative; z-index: 1; }

.cv-counters .counter-icon {
  width: 62px; height: 62px;
  line-height: 62px;
  margin: 0 auto 18px;
  border-radius: 18px;
  font-size: 1.9rem;
  background: rgba(124, 58, 237, 0.14);
  background: color-mix(in srgb, var(--cv-accent) 16%, transparent);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s;
}
.cv-counters .counter-card:hover .counter-icon {
  transform: translateY(-4px) scale(1.07);
  box-shadow: 0 12px 26px -10px var(--cv-accent-soft);
}

.cv-counters .counter-number {
  background: linear-gradient(120deg, var(--cv-accent) 0%, var(--cv-accent) 38%, #ffffff 50%, var(--cv-accent) 62%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cvNumShine 7s ease-in-out infinite;
  font-variant-numeric: tabular-nums;
}
@keyframes cvNumShine {
  0% { background-position: 130% 0; }
  55% { background-position: -130% 0; }
  100% { background-position: -130% 0; }
}

/* ---------- SLIPSTREAM SHOWCASE ---------- */
.cv-showcase {
  position: relative;
  padding: var(--section-padding);
  overflow: hidden;
  z-index: 0;
}
.cv-showcase .container { position: relative; z-index: 1; }
.cv-showcase-head { position: relative; z-index: 1; text-align: center; margin-bottom: 22px; }

.cv-showcase-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 48px 0 24px;
}

.cv-track {
  --cv-z: 0px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: max-content;
  will-change: transform;
  animation: cvMarquee var(--cv-dur, 46s) linear infinite;
}

@keyframes cvMarquee {
  from { transform: translate3d(0, 0, var(--cv-z, 0px)); }
  to { transform: translate3d(var(--cv-shift, -50%), 0, var(--cv-z, 0px)); }
}

/* Left-moving row (content travels right → left on screen) */
.cv-track--left { animation-name: cvMarquee; }

/* Right-moving row (content travels left → right on screen) */
.cv-track--right { animation-name: cvMarqueeRight; }
@keyframes cvMarqueeRight {
  from { transform: translate3d(calc(-1 * var(--cv-shift, 50%)), 0, var(--cv-z, 0px)); }
  to { transform: translate3d(0, 0, var(--cv-z, 0px)); }
}

.cv-showcase.cv-paused .cv-track { animation-play-state: paused; }

.cv-chip-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 30px;
  padding-right: 30px;
}

.cv-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  margin: 0;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, color 0.3s, box-shadow 0.3s, background 0.3s, opacity 0.4s;
}
.cv-brand-dot {
  width: 8px; height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand, var(--accent-primary));
  box-shadow: 0 0 12px var(--brand, var(--accent-primary));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.cv-brand-name {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  letter-spacing: 0.3px;
}
.cv-brand-name em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-muted);
}

.cv-track:hover .cv-brand { opacity: 0.5; }
.cv-track:hover .cv-brand:hover {
  opacity: 1;
  transform: translateY(-8px) scale(1.1);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand, var(--accent-primary));
  color: #fff;
  box-shadow: 0 18px 42px -14px var(--brand-soft, rgba(124, 58, 237, 0.35));
}
.cv-brand:hover .cv-brand-dot { transform: scale(1.4); }
.cv-brand:hover .cv-brand-name { color: var(--brand, var(--accent-primary)); }
.cv-brand:hover .cv-brand-name em { color: var(--text-secondary); }

/* ---------- SERVICES ---------- */
.cv-services .container { position: relative; z-index: 1; }
.cv-services .services-grid { margin-top: 56px; }

.svc-card {
  position: relative;
  padding: 42px 32px 38px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, box-shadow 0.55s;
}
.svc-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-pink));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s;
}
.svc-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 58, 237, 0.13), transparent 46%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.svc-card:hover::before { opacity: 1; }
.svc-card:hover::after { opacity: 1; }
.svc-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 30px 60px -28px rgba(124, 58, 237, 0.5);
}
.svc-card > * { position: relative; z-index: 1; }

.svc-card .service-card-icon {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s;
}
.svc-card:hover .service-card-icon {
  transform: translateY(-4px) scale(1.07);
  box-shadow: 0 14px 28px -10px rgba(124, 58, 237, 0.55);
}

.svc-line {
  position: absolute;
  left: 34px; bottom: 0;
  width: 58px; height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-card:hover .svc-line { transform: scaleX(1); }

.svc-card h3 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.svc-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ---------- LIGHT THEME ADAPTATION ---------- */
html[data-theme="light"] .cv-vignette { background: radial-gradient(120% 90% at 50% 40%, transparent 42%, rgba(235, 232, 252, 0.55) 100%); }
html[data-theme="light"] .cv-hero .hero-stat + .hero-stat::before { background: linear-gradient(to bottom, transparent, rgba(30, 20, 80, 0.14), transparent); }
html[data-theme="light"] .cv-brand { background: rgba(255, 255, 255, 0.72); border-color: rgba(124, 58, 237, 0.16); }
html[data-theme="light"] .cv-track:hover .cv-brand:hover { background: #fff; box-shadow: 0 18px 42px -14px rgba(124, 58, 237, 0.25); }
html[data-theme="light"] .cv-counters .counter-card,
html[data-theme="light"] .svc-card { background: linear-gradient(165deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.55)); border-color: rgba(124, 58, 237, 0.16); }
html[data-theme="light"] .cv-counters .counter-number { background: linear-gradient(120deg, var(--cv-accent) 0%, var(--cv-accent) 38%, #1e1b3a 50%, var(--cv-accent) 62%); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html[data-theme="light"] .svc-card:hover { border-color: rgba(124, 58, 237, 0.35); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .cv-hex { opacity: 0.5; }
}

@media (max-width: 768px) {
  .cv-hero .hero-stats { gap: 22px; }
  .cv-hero .hero-stat { padding: 0; }
  .cv-hero .hero-stat + .hero-stat::before { display: none; }

  .cv-showcase-stage { padding: 36px 0 14px; gap: 14px; }
  .cv-brand { padding: 10px 20px; gap: 8px; margin: 0; }
  .cv-brand-name { font-size: 0.9rem; }
  .cv-chip-group { gap: 22px; padding-right: 22px; }
}

@media (max-width: 480px) {
  .cv-brand { padding: 9px 16px; }
  .cv-brand-name { font-size: 0.84rem; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html.cv-js .cv-reveal,
  html.cv-js .cv-hero-visual { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.cv-js .cv-line-inner { transform: none !important; }
  .cv-track, .cv-glow, .cv-hex,
  .ai-orbit-spin, .ai-sphere-scan, .ai-bot,
  .ai-sphere, .ai-bubble, .ai-dot, .ai-ambient, .ai-spark { animation: none !important; }
  .cv-bg, .cv-hero-visual { transition: none !important; }
}

/* ============================================
   HERO RIGHT-SIDE AI ORB VISUAL
   Blue→purple gradient sphere · mini robot ·
   concentric glowing orbits · floating bubbles
   ============================================ */
.robot-stage {
  position: relative;
  width: min(100%, 44vw, 540px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.ai-visual {
  position: absolute;
  inset: 0;
}

/* Ambient halo behind the composition */
.ai-ambient {
  position: absolute;
  left: 50%; top: 50%;
  width: 96%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, rgba(59, 130, 246, 0.18) 34%, rgba(6, 182, 212, 0.08) 60%, transparent 72%);
  animation: aiAmbient 9s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes aiAmbient {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

/* ---- Concentric glowing orbit rings (3D tilt + spin) ---- */
.ai-orbit {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--ai-d);
  aspect-ratio: 1;
  border-radius: 50%;
}
.ai-orbit--far {
  --ai-d: 96%;
  z-index: 1;
  border: 1px solid rgba(167, 139, 250, 0.42);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.22), inset 0 0 24px rgba(124, 58, 237, 0.14);
  transform: translate(-50%, -50%) rotateZ(-8deg) rotateX(70deg);
}
.ai-orbit--mid {
  --ai-d: 76%;
  z-index: 3;
  border: 1px dashed rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.22), inset 0 0 18px rgba(6, 182, 212, 0.12);
  transform: translate(-50%, -50%) rotateZ(14deg) rotateX(64deg);
}
.ai-orbit--near {
  --ai-d: 57%;
  z-index: 4;
  border: 1px solid rgba(165, 180, 252, 0.55);
  box-shadow: 0 0 16px rgba(129, 140, 248, 0.32), inset 0 0 14px rgba(129, 140, 248, 0.2);
  transform: translate(-50%, -50%) rotateZ(-20deg) rotateX(55deg);
}
.ai-orbit-spin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: aiOrbitSpin 26s linear infinite;
}
.ai-orbit--mid .ai-orbit-spin { animation-duration: 20s; animation-direction: reverse; }
.ai-orbit--near .ai-orbit-spin { animation-duration: 13s; }
@keyframes aiOrbitSpin {
  to { transform: rotate(360deg); }
}

/* ---- Glowing particles riding the orbits ---- */
.ai-dot {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ai-dot--n { left: 50%; top: 0; }
.ai-dot--s { left: 50%; top: 100%; }
.ai-dot--w { left: 0; top: 50%; }
.ai-dot--e { left: 100%; top: 50%; }
.ai-dot--cyan {
  background: #67e8f9;
  box-shadow: 0 0 12px 3px rgba(34, 211, 238, 0.8);
  animation: aiDotPulse 3s ease-in-out infinite;
}
.ai-dot--violet {
  width: 7px; height: 7px;
  background: #c4b5fd;
  box-shadow: 0 0 12px 3px rgba(139, 92, 246, 0.8);
  animation: aiDotPulse 4s ease-in-out infinite 0.8s;
}
.ai-dot--white {
  width: 5px; height: 5px;
  background: #ffffff;
  box-shadow: 0 0 9px 2px rgba(255, 255, 255, 0.85);
  animation: aiDotPulse 2.6s ease-in-out infinite 1.4s;
}
@keyframes aiDotPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ---- Blue → purple gradient sphere ---- */
.ai-sphere {
  position: absolute;
  left: 50%; top: 50%;
  width: 44%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 2;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95) 0%, rgba(186, 230, 253, 0.5) 9%, rgba(96, 165, 250, 0.22) 22%, rgba(59, 130, 246, 0) 36%),
    radial-gradient(circle at 36% 34%, #93c5fd 0%, #60a5fa 24%, #3b82f6 48%, #7c3aed 74%, #451a91 100%);
  box-shadow:
    0 34px 90px -22px rgba(37, 99, 235, 0.6),
    0 0 60px rgba(124, 58, 237, 0.5),
    0 0 130px rgba(34, 211, 238, 0.25),
    inset -20px -26px 60px rgba(24, 24, 80, 0.55),
    inset 14px 16px 44px rgba(255, 255, 255, 0.25);
  animation: aiSphereFloat 8s ease-in-out infinite;
}
@keyframes aiSphereFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-12px); }
}
.ai-sphere-ring {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px solid rgba(224, 242, 254, 0.35);
  box-shadow: inset 0 0 24px rgba(224, 242, 254, 0.3);
  pointer-events: none;
}
.ai-sphere-scan {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(165, 243, 252, 0.4) 30deg, transparent 60deg);
  animation: aiSphereScan 9s linear infinite;
  pointer-events: none;
}
@keyframes aiSphereScan {
  to { transform: rotate(360deg); }
}

/* ---- Mini AI robot centered inside the sphere ---- */
.ai-bot {
  position: absolute;
  left: 50%; top: 50%;
  width: 52%;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: drop-shadow(0 6px 18px rgba(30, 41, 90, 0.55));
  animation: aiBot 6s ease-in-out infinite;
}
@keyframes aiBot {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-4px); }
}
.ai-bot-svg { display: block; width: 100%; height: auto; }
.ai-bot-ant { animation: aiBotAnt 2.6s ease-in-out infinite; }
@keyframes aiBotAnt {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ---- Sparkle accents ---- */
.ai-spark {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #a5f3fc;
  box-shadow: 0 0 8px 2px rgba(34, 211, 238, 0.7);
  z-index: 5;
  animation: aiSpark 4s ease-in-out infinite;
}
.ai-spark--1 { left: 20%; top: 26%; }
.ai-spark--2 { left: 74%; top: 20%; width: 3px; height: 3px; animation-delay: -1.3s; }
.ai-spark--3 { left: 82%; top: 60%; width: 5px; height: 5px; animation-delay: -2.1s; }
@keyframes aiSpark {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 1; transform: scale(1); }
}

/* ---- Floating glass bubbles ---- */
.ai-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 5;
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(167, 139, 250, 0.42);
  box-shadow:
    0 18px 40px -12px rgba(10, 10, 40, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -10px 24px rgba(124, 58, 237, 0.22);
  animation: aiBubbleFloat 7s ease-in-out infinite;
}
.ai-bubble--bulb {
  width: 17%;
  aspect-ratio: 1;
  top: 28%; left: 65%;
  animation-delay: 0s;
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow:
    0 0 26px rgba(34, 211, 238, 0.4),
    0 18px 40px -12px rgba(10, 10, 40, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -10px 24px rgba(34, 211, 238, 0.25);
}
.ai-bubble--chart {
  width: 15%;
  aspect-ratio: 1;
  top: 42%; left: 1%;
  animation-delay: -2.4s;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow:
    0 0 26px rgba(59, 130, 246, 0.4),
    0 18px 40px -12px rgba(10, 10, 40, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -10px 24px rgba(59, 130, 246, 0.28);
}
.ai-bubble--rocket {
  width: 18%;
  aspect-ratio: 1;
  top: 56%; left: 66%;
  animation-delay: -4.2s;
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow:
    0 0 28px rgba(139, 92, 246, 0.45),
    0 18px 40px -12px rgba(10, 10, 40, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -10px 24px rgba(139, 92, 246, 0.3);
}
@keyframes aiBubbleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}
.ai-bubble-gleam {
  position: absolute;
  top: 14%; left: 20%;
  width: 26%; height: 26%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 70%);
  opacity: 0.85;
}
.ai-bubble-ico {
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* Light-theme adaptation */
html[data-theme="light"] .cv-read-layer { background: linear-gradient(90deg, rgba(248, 249, 252, 0.72) 0%, rgba(248, 249, 252, 0.28) 42%, transparent 60%); }
html[data-theme="light"] .cv-hero-deep { background: linear-gradient(180deg, #f6f6fd 0%, #f3f2fc 100%); }
html[data-theme="light"] .cv-hex { opacity: 0.38; }
html[data-theme="light"] .ai-sphere { box-shadow:
  0 30px 80px -24px rgba(59, 130, 246, 0.45),
  0 0 50px rgba(124, 58, 237, 0.3),
  0 0 110px rgba(34, 211, 238, 0.2),
  inset -20px -26px 60px rgba(24, 24, 80, 0.4),
  inset 14px 16px 44px rgba(255, 255, 255, 0.3); }
html[data-theme="light"] .ai-bubble { border-color: rgba(124, 58, 237, 0.3); }
