/* ==========================================================================
   Triple Four Network Indonesia (444 Network)
   GPU-Accelerated 60 FPS Continuous Infinite Motion Engine
   Theme: BMS Soft Lavender, Electric Indigo & Cyan Ambient Mesh Layer
   Strict Budget: Only transform: translate3d(), scale(), opacity, rotateZ()
   Layout reflow/repaint triggers (top, left, width, height, margin) are BANNED.
   ========================================================================== */

/* Background Canvas Layer */
.motion-viewport {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* 1. Ambient Floating Glowing Orbs (Soft Mesh Tints) */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.ambient-orb-1 {
  width: 380px;
  height: 380px;
  top: -40px;
  left: -80px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, rgba(199, 210, 254, 0.1) 70%);
  animation: orbContinuousMotionA 18s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  width: 420px;
  height: 420px;
  bottom: 5%;
  right: -90px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, rgba(224, 242, 254, 0.1) 70%);
  opacity: 0.35;
  animation: orbContinuousMotionB 22s ease-in-out infinite alternate;
}

.ambient-orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 45%;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.25) 0%, rgba(245, 208, 254, 0.05) 70%);
  opacity: 0.25;
  animation: orbContinuousMotionC 26s ease-in-out infinite alternate;
}

@keyframes orbContinuousMotionA {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(60px, 80px, 0) scale(1.15);
  }
  100% {
    transform: translate3d(-30px, 140px, 0) scale(0.92);
  }
}

@keyframes orbContinuousMotionB {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-80px, -60px, 0) scale(1.2);
  }
  100% {
    transform: translate3d(-40px, 90px, 0) scale(0.9);
  }
}

@keyframes orbContinuousMotionC {
  0% {
    transform: translate3d(-50%, 0, 0) scale(0.9);
  }
  50% {
    transform: translate3d(-30%, -70px, 0) scale(1.22);
  }
  100% {
    transform: translate3d(-70%, 50px, 0) scale(0.95);
  }
}

/* 2. Kinetic Marquee Ticker Track */
.kinetic-ticker-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 12px 0;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.kinetic-ticker-track {
  display: inline-flex;
  gap: 36px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: continuousTicker 28s linear infinite;
  color: var(--text-muted);
  font-weight: 600;
}

@keyframes continuousTicker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* 3. Floating Interactive Card (Smooth Parallax Physics) */
.motion-float-card {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: cardFloatingPhysics 6s ease-in-out infinite alternate;
}

.motion-float-card-delay-1 {
  animation-delay: -2s;
}

.motion-float-card-delay-2 {
  animation-delay: -4s;
}

@keyframes cardFloatingPhysics {
  0% {
    transform: translate3d(0, 0, 0) rotateZ(0deg);
  }
  50% {
    transform: translate3d(0, -6px, 0) rotateZ(0.3deg);
  }
  100% {
    transform: translate3d(0, 4px, 0) rotateZ(-0.3deg);
  }
}

/* 4. Pulse Radar Animation */
.radar-pulse-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.radar-pulse-ring::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: 1px solid var(--brand-indigo);
  will-change: transform, opacity;
  animation: radarPulseAnim 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPulseAnim {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* 5. Battery Saver & Visibility API Freeze Hook */
.anim-paused,
.anim-paused * {
  animation-play-state: paused !important;
}

/* 6. Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ambient-orb {
    display: none !important;
  }
}
