/* ============================================================
   ANIMATIONS — Keyframes for SVG illustrations and UI motion
   ============================================================ */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(34, 211, 238, 0.0)); }
  50%      { filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.55)); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes dash-flow {
  to { stroke-dashoffset: -800; }
}

@keyframes orbit-dot {
  0%   { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes ping-soft {
  0%   { transform: scale(1);   opacity: 0.85; }
  80%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes bar-rise {
  from { transform: scaleY(0.2); }
  to   { transform: scaleY(1); }
}

@keyframes pop {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}

/* Utility classes */
.anim-float    { animation: float 4s ease-in-out infinite; }
.anim-glow     { animation: pulse-glow 3.2s ease-in-out infinite; }
.anim-spin     { animation: spin-slow 12s linear infinite; transform-origin: center; transform-box: fill-box; }
.anim-fade-up  { animation: fade-up 0.6s ease-out both; }
.anim-pop      { animation: pop 0.5s ease-out both; }

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }
.delay-5 { animation-delay: 0.60s; }
.delay-6 { animation-delay: 0.72s; }

/* SVG specific (used by inline svg classes) */
.svg-pipeline-pulse {
  stroke-dasharray: 14 22;
  animation: dash-flow 4.5s linear infinite;
}

.svg-orbit-dot {
  offset-rotate: 0deg;
  animation: orbit-dot 6s linear infinite;
}

.svg-bar { transform-origin: center bottom; animation: bar-rise 1.4s ease-out both; }

.svg-ping {
  transform-origin: center;
  transform-box: fill-box;
  animation: ping-soft 2.2s ease-out infinite;
}

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