﻿/* ═══════════════════════════════════════════
   ANIMATIONS.CSS — Keyframes & Motion Styles
   ═══════════════════════════════════════════ */

/* ─── Orb spin ─── */
@keyframes orb-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── Chip float ─── */
@keyframes chip-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* ─── Pulse ring ─── */
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(3); opacity: 0; }
}

/* ─── Gradient shift ─── */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── Shimmer ─── */
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}

/* ─── Blink (live indicator) ─── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ─── Star fill ─── */
@keyframes star-fill {
  from { fill: transparent; stroke: #FBBF24; }
  to   { fill: #FBBF24; stroke: #FBBF24; }
}

/* ─── Fade in up (for JS-free fallback) ─── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Fade in ─── */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Mesh gradient flow ─── */
@keyframes mesh-flow {
  0%   { transform: scale(1) rotate(0deg); }
  50%  { transform: scale(1.08) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ─── Number count up (used as fallback) ─── */
@keyframes count-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Gradient text shimmer ─── */
.text-shimmer {
  background: linear-gradient(
    90deg,
    var(--accent-cyan) 0%,
    var(--accent-violet) 40%,
    var(--accent-cyan) 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ─── Glow pulse ─── */
.glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(0,200,215,0.15); }
  50%       { box-shadow: 0 0 32px rgba(0,200,215,0.3); }
}

/* ─── Gradient mesh background ─── */
.mesh-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  animation: mesh-flow 8s ease-in-out infinite;
}

.mesh-blob--1 {
  width: 500px;
  height: 500px;
  background: var(--accent-violet);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.mesh-blob--2 {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  bottom: -150px;
  left: -50px;
  animation-delay: -4s;
}

.mesh-blob--3 {
  width: 300px;
  height: 300px;
  background: var(--accent-pink);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -2s;
  opacity: 0.1;
}

/* ─── Prefers Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ─── Utility classes ─── */
.will-change-transform { will-change: transform; }
.will-change-opacity   { will-change: opacity; }

/* SVG stroke defaults for DrawSVG */
.svg-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.svg-line--cyan   { stroke: var(--accent-cyan); }
.svg-line--violet { stroke: var(--accent-violet); }

/* Process connector */
.process-line {
  stroke: url(#lineGrad);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 8 6;
}

/* Live dot */
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

