/* ============================================================
   OMNISPINSPRK.COM — ANIMATIONS STYLESHEET
   omnispinsprk.com © 2026 omnispinsprk.com
   ============================================================ */

/* ============================================================
   KEYFRAMES
   ============================================================ */

/* Glow Pulse */
@keyframes glowPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Scroll Bounce */
@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* Particle Float */
@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100vh) translateX(var(--drift, 20px)) rotate(360deg);
    opacity: 0;
  }
}

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Left */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Right */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Spin Slow */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Gold Shimmer */
@keyframes goldShimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Corner Flicker */
@keyframes cornerFlicker {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Mobile Menu Slide */
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* Game Ambient */
@keyframes ambientGlow {
  0%, 100% {
    box-shadow: 0 0 40px rgba(201, 164, 76, 0.1), 0 0 80px rgba(201, 164, 76, 0.05);
  }
  50% {
    box-shadow: 0 0 60px rgba(201, 164, 76, 0.2), 0 0 100px rgba(201, 164, 76, 0.1);
  }
}

/* ============================================================
   SCROLL REVEAL CLASSES
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s);
}

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   COMPONENT ANIMATIONS
   ============================================================ */

/* Hero Parallax Base */
.hero-bg {
  will-change: transform;
}

/* Logo Hover */
.logo:hover .logo-text {
  color: var(--color-highlight, #f4e6c3);
  transition: color 0.25s ease;
}

/* Game Frame Hover */
.game-frame-wrapper {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Gold Text Shimmer (Applied to .text-gold) */
.text-gold {
  background-size: 200% auto;
  animation: goldShimmer 4s ease infinite;
}

/* Corner Decorations */
.game-corner {
  animation: cornerFlicker 3s ease-in-out infinite;
}

.game-corner-tl { animation-delay: 0s; }
.game-corner-tr { animation-delay: 0.75s; }
.game-corner-bl { animation-delay: 1.5s; }
.game-corner-br { animation-delay: 2.25s; }

/* Section Badge Entrance */
.section-badge {
  animation: fadeInUp 0.5s ease both;
}

/* Card Hover Transitions */
.feature-card,
.testimonial-card,
.value-card,
.rg-principle-card,
.glass-card {
  will-change: transform;
}

/* Button Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

.btn:active::after {
  width: 200px;
  height: 200px;
  opacity: 0;
}

/* Particle Styles */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat var(--duration, 8s) var(--delay, 0s) linear infinite;
  left: var(--x, 50%);
  --drift: var(--particle-drift, 20px);
}

.particle-gold {
  background: rgba(201, 164, 76, 0.7);
  box-shadow: 0 0 4px rgba(201, 164, 76, 0.5);
}

.particle-emerald {
  background: rgba(143, 212, 180, 0.6);
  box-shadow: 0 0 4px rgba(143, 212, 180, 0.4);
}

.particle-light {
  background: rgba(244, 230, 195, 0.5);
  box-shadow: 0 0 3px rgba(244, 230, 195, 0.3);
}

.particle-sm {
  width: 2px;
  height: 2px;
}

.particle-lg {
  width: 4px;
  height: 4px;
}

/* ============================================================
   REDUCE MOTION SUPPORT
   ============================================================ */
@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;
  }

  .fade-in-up,
  .fade-in-left,
  .fade-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .particle {
    display: none;
  }
}