/*
 * RAINBOW VOGG GLOBAL LTD
 * Animations & Motion System
 */

/* ── KEYFRAMES ── */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-left { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fade-right { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scale-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes slide-up-full { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes glow-pulse { 0%, 100% { box-shadow: 0 0 20px rgba(0,212,255,0.2); } 50% { box-shadow: 0 0 50px rgba(0,212,255,0.45); } }
@keyframes glow-gold { 0%, 100% { box-shadow: 0 0 20px rgba(255,184,0,0.2); } 50% { box-shadow: 0 0 50px rgba(255,184,0,0.4); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes border-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes metric-fill { from { width: 0 !important; } }
@keyframes count-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 spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes wave { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* ── ANIMATION UTILITIES ── */
.animate-fade-in  { animation: fade-in 0.4s ease forwards; }
.animate-fade-up  { animation: fade-up 0.5s ease forwards; }
.animate-fade-down{ animation: fade-down 0.4s ease forwards; }
.animate-scale-in { animation: scale-in 0.3s ease forwards; }
.animate-float    { animation: float 4s ease-in-out infinite; }
.animate-glow     { animation: glow-pulse 3s ease-in-out infinite; }
.animate-glow-gold{ animation: glow-gold 3s ease-in-out infinite; }
.animate-spin-slow{ animation: spin-slow 8s linear infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-800 { animation-delay: 0.8s; }

/* ── HERO ANIMATIONS ── */
.hero-content > * {
  opacity: 0;
  animation: fade-up 0.7s ease forwards;
}
.hero-content > :nth-child(1) { animation-delay: 0.1s; }
.hero-content > :nth-child(2) { animation-delay: 0.25s; }
.hero-content > :nth-child(3) { animation-delay: 0.4s; }
.hero-content > :nth-child(4) { animation-delay: 0.55s; }
.hero-content > :nth-child(5) { animation-delay: 0.7s; }
.hero-content > :nth-child(6) { animation-delay: 0.85s; }

/* ── GLOW ORBS (hero background) ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}
.glow-orb-1 { width: 600px; height: 600px; background: rgba(0,153,217,0.1); top: -200px; right: -100px; animation: float 8s ease-in-out infinite; }
.glow-orb-2 { width: 400px; height: 400px; background: rgba(255,184,0,0.05); bottom: -100px; left: -100px; animation: float 10s ease-in-out infinite reverse; }
.glow-orb-3 { width: 300px; height: 300px; background: rgba(0,212,255,0.07); top: 40%; left: 30%; animation: float 7s ease-in-out infinite 2s; }

/* ── GRID PATTERN (hero) ── */
.grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── METRIC BAR ANIMATION ── */
.metric-bar-fill { animation: metric-fill 1.2s ease forwards; }

/* ── SKELETON LOADER ── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  border-radius: var(--r-md);
}

/* ── PAGE TRANSITION ── */
.page-enter { animation: fade-in 0.3s ease; }

/* ── HOVER MICRO-INTERACTIONS ── */
.lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.scale-hover { transition: transform 0.2s ease; }
.scale-hover:hover { transform: scale(1.02); }

.glow-hover { transition: box-shadow 0.2s ease; }
.glow-hover:hover { box-shadow: var(--shadow-glow-cyan); }

/* ── WAVE BARS (podcast/audio indicator) ── */
.wave-bars { display: flex; align-items: center; gap: 2px; height: 20px; }
.wave-bar { width: 3px; border-radius: 2px; background: var(--violet); }
.wave-bar:nth-child(1) { animation: wave 1.2s ease-in-out infinite 0.0s; }
.wave-bar:nth-child(2) { animation: wave 1.2s ease-in-out infinite 0.2s; }
.wave-bar:nth-child(3) { animation: wave 1.2s ease-in-out infinite 0.4s; }
.wave-bar:nth-child(4) { animation: wave 1.2s ease-in-out infinite 0.6s; }
.wave-bar:nth-child(5) { animation: wave 1.2s ease-in-out infinite 0.8s; }

/* ── LIVE INDICATOR ── */
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,61,90,0.15);
  border: 1px solid rgba(255,61,90,0.35);
  color: #FF4D6A;
  padding: 3px 10px; border-radius: var(--r-full);
  font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700;
}
.live-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #FF4D6A; animation: pulse-dot 1.5s ease-in-out infinite; }

/* ── PARALLAX CONTAINER ── */
.parallax-wrapper { overflow: hidden; }
.parallax-element { will-change: transform; }

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