/* ==========================================================================
   ANIMATIONS & KEYFRAMES (v3.0 — WebTonic Dynamic & Cinematic)
   Seamless Infinite Marquee, Rainbow Shimmer, Ambient Glow Orbs
   ========================================================================== */

/* --------------------------------------------------------------------------
   ZERO-STUTTER INFINITE MARQUEE (Continuous Loop)
   -------------------------------------------------------------------------- */
@keyframes scroll-seamless {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

@keyframes scroll-seamless-reverse {
  0%   { transform: translate3d(-100%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.marquee-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-3xl);
  min-width: 100%;
  flex-shrink: 0;
  animation: scroll-seamless 32s linear infinite;
  will-change: transform;
}

.marquee-group.reverse {
  animation: scroll-seamless-reverse 38s linear infinite;
}

.marquee-wrapper:hover .marquee-group {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   CONTINUOUS INFINITE TICKER TAPE
   -------------------------------------------------------------------------- */
@keyframes ticker-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 26s linear infinite;
  will-change: transform;
}

.ticker-wrapper:hover .ticker-track {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   HOLOGRAPHIC RAINBOW ARC GLOW
   -------------------------------------------------------------------------- */
@keyframes rainbow-spin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.rainbow-glow-effect {
  animation: rainbow-spin 48s linear infinite;
  filter: blur(110px);
}

/* --------------------------------------------------------------------------
   AMBIENT GLOWING MESH ORBS (Zero-Cost GPU Floating Atmosphere)
   -------------------------------------------------------------------------- */
.ambient-glow-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: var(--z-bg);
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  will-change: transform;
}

/* Orb 1 — Brand Green (top-left) */
.orb-1 {
  top: 10%;
  left: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(44, 173, 117, 0.28) 0%, rgba(44, 173, 117, 0.08) 50%, transparent 75%);
  animation: orb-drift-1 32s ease-in-out infinite alternate;
}

/* Orb 2 — Electric Blue (right) */
.orb-2 {
  top: 45%;
  right: -8%;
  width: 780px;
  height: 780px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.24) 0%, rgba(59, 130, 246, 0.06) 50%, transparent 75%);
  animation: orb-drift-2 38s ease-in-out infinite alternate;
}

/* Orb 3 — Purple (bottom-center) */
.orb-3 {
  top: 75%;
  left: 15%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.20) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 75%);
  animation: orb-drift-3 36s ease-in-out infinite alternate;
}

/* Orb 4 — Teal (upper-right cluster) */
.orb-4 {
  top: 25%;
  right: 22%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(6, 182, 212, 0.06) 50%, transparent 75%);
  animation: orb-drift-4 44s ease-in-out infinite alternate;
}

@keyframes orb-drift-1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(70px, 50px, 0) scale(1.08);
  }
  100% {
    transform: translate3d(35px, 95px, 0) scale(0.96);
  }
}

@keyframes orb-drift-2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-80px, -55px, 0) scale(1.1);
  }
  100% {
    transform: translate3d(-40px, 45px, 0) scale(0.94);
  }
}

@keyframes orb-drift-3 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(55px, -60px, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-45px, -30px, 0) scale(0.98);
  }
}

@keyframes orb-drift-4 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-50px, 60px, 0) scale(1.08);
  }
  100% {
    transform: translate3d(40px, -40px, 0) scale(0.95);
  }
}

/* --------------------------------------------------------------------------
   BUTTON SHIMMER ANIMATION
   -------------------------------------------------------------------------- */
@keyframes btn-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* --------------------------------------------------------------------------
   SCROLL REVEAL (Fast, Responsive, Zero-Lag)
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity  0.34s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 50ms; }
.delay-200 { transition-delay: 100ms; }
.delay-300 { transition-delay: 150ms; }

/* --------------------------------------------------------------------------
   SUBTLE FLOAT
   -------------------------------------------------------------------------- */
@keyframes float-subtle {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.float-animation {
  animation: float-subtle 7s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   SPIN (loading state)
   -------------------------------------------------------------------------- */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spin-slow {
  animation: spin-slow 18s linear infinite;
}

/* --------------------------------------------------------------------------
   SCROLL INDICATOR BOUNCE
   -------------------------------------------------------------------------- */
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* --------------------------------------------------------------------------
   PULSE DOT (Live Status)
   -------------------------------------------------------------------------- */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.72); }
}
