/* ============================================
   INFINITYS GAMING - ANIMATIONS STYLESHEET
   https://infinitysgaming.vip
   ============================================ */

/* ============ KEYFRAMES ============ */
@keyframes ig-fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ig-fade-in-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ig-fade-in-left {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes ig-fade-in-right {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes ig-scale-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes ig-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes ig-pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,0.3); }
  50%       { box-shadow: 0 0 45px rgba(124,58,237,0.7), 0 0 80px rgba(6,182,212,0.2); }
}
@keyframes ig-pulse-neon {
  0%, 100% { text-shadow: 0 0 10px rgba(124,58,237,0.5); }
  50%       { text-shadow: 0 0 25px rgba(124,58,237,0.9), 0 0 45px rgba(6,182,212,0.4); }
}
@keyframes ig-rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes ig-flicker {
  0%, 95%, 100% { opacity: 1; }
  96%, 98%      { opacity: 0.7; }
  97%, 99%      { opacity: 0.9; }
}
@keyframes ig-typewriter {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes ig-blink-cursor {
  0%, 100% { border-right-color: transparent; }
  50%       { border-right-color: var(--ig-accent); }
}
@keyframes ig-particle-float {
  0%   { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-10vh) translateX(50px) rotate(360deg); opacity: 0; }
}
@keyframes ig-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes ig-bounce-in {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.1); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes ig-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes ig-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes ig-scan-line {
  0%   { top: 0; }
  100% { top: 100%; }
}
@keyframes ig-counter-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ HERO ANIMATIONS ============ */
.ig-hero-title { animation: ig-fade-in-up 0.9s ease 0.2s both; }
.ig-hero-subtitle { animation: ig-fade-in-up 0.9s ease 0.4s both; }
.ig-hero-cta { animation: ig-fade-in-up 0.9s ease 0.6s both; }
.ig-hero-img-wrap { animation: ig-fade-in-right 1s ease 0.4s both; }
.ig-hero-img-wrap:hover { animation: ig-pulse-glow 2s ease-in-out infinite; }
.ig-hero-badge { animation: ig-bounce-in 0.8s ease 0.1s both; }

/* ============ FLOATING ANIMATION ============ */
.ig-float { animation: ig-float 4s ease-in-out infinite; }
.ig-float-slow { animation: ig-float 6s ease-in-out infinite; }
.ig-float-delay { animation: ig-float 4s ease-in-out 1s infinite; }

/* ============ SCROLL REVEAL ============ */
.ig-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.ig-reveal.ig-visible {
  opacity: 1;
  transform: translateY(0);
}
.ig-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.ig-reveal-left.ig-visible {
  opacity: 1;
  transform: translateX(0);
}
.ig-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.ig-reveal-right.ig-visible {
  opacity: 1;
  transform: translateX(0);
}
.ig-reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.ig-reveal-scale.ig-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.ig-reveal-delay-1 { transition-delay: 0.1s; }
.ig-reveal-delay-2 { transition-delay: 0.2s; }
.ig-reveal-delay-3 { transition-delay: 0.3s; }
.ig-reveal-delay-4 { transition-delay: 0.4s; }
.ig-reveal-delay-5 { transition-delay: 0.5s; }
.ig-reveal-delay-6 { transition-delay: 0.6s; }

/* ============ HOVER EFFECTS ============ */
.ig-hover-glow:hover {
  box-shadow: 0 0 30px rgba(124,58,237,0.4), 0 0 60px rgba(6,182,212,0.15);
}
.ig-hover-lift:hover { transform: translateY(-6px); }
.ig-hover-scale:hover { transform: scale(1.04); }

/* ============ GRADIENT ANIMATE ============ */
.ig-animated-gradient {
  background: linear-gradient(270deg, #7c3aed, #06b6d4, #a855f7, #7c3aed);
  background-size: 400% 400%;
  animation: ig-gradient-shift 6s ease infinite;
}

/* ============ SHIMMER TEXT ============ */
.ig-shimmer-text {
  background: linear-gradient(90deg, var(--ig-text-primary) 30%, var(--ig-accent) 50%, var(--ig-text-primary) 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ig-shimmer 3s linear infinite;
}

/* ============ PARTICLES ============ */
.ig-particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--ig-accent);
  border-radius: 50%;
  opacity: 0;
  animation: ig-particle-float linear infinite;
}

/* ============ GLOW PULSE ============ */
.ig-glow-pulse { animation: ig-pulse-glow 3s ease-in-out infinite; }
.ig-neon-pulse { animation: ig-pulse-neon 2.5s ease-in-out infinite; }

/* ============ QUIZ TRANSITIONS ============ */
.ig-quiz-transition-enter {
  animation: ig-fade-in-right 0.4s ease both;
}
.ig-quiz-transition-exit {
  animation: ig-fade-in-left 0.4s ease reverse both;
}
.ig-quiz-result-enter { animation: ig-bounce-in 0.6s ease both; }

/* ============ COUNTER ANIMATION ============ */
.ig-counter { animation: ig-counter-up 0.6s ease both; }

/* ============ LOADING SPINNER ============ */
.ig-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--ig-border);
  border-top-color: var(--ig-primary);
  border-radius: 50%;
  animation: ig-rotate-slow 0.8s linear infinite;
  margin: 2rem auto;
}

/* ============ TYPED CURSOR ============ */
.ig-typed-cursor {
  border-right: 2px solid var(--ig-accent);
  animation: ig-blink-cursor 0.8s infinite;
}

/* ============ SCAN EFFECT ============ */
.ig-scan-container {
  position: relative;
  overflow: hidden;
}
.ig-scan-container::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ig-accent), transparent);
  opacity: 0.4;
  animation: ig-scan-line 3s linear infinite;
}

/* ============ CARD HOVER EFFECTS ============ */
.ig-card-3d {
  transform-style: preserve-3d;
  transition: transform 0.5s;
}
.ig-card-3d:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

/* ============ GENRE CARD ANIMATION ============ */
.ig-genre-card .ig-genre-icon {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.ig-genre-card:hover .ig-genre-icon {
  transform: scale(1.25) rotate(-5deg);
}

/* ============ STATS COUNTER ============ */
.ig-stat-counter {
  display: inline-block;
  animation: ig-fade-in-up 0.6s ease both;
}

/* ============ FLICKER FOR NEON ============ */
.ig-neon-flicker {
  animation: ig-flicker 5s step-end infinite;
}

/* ============ PAGE TRANSITIONS ============ */
.ig-page-enter {
  animation: ig-fade-in-up 0.6s ease both;
}

/* ============ PROGRESSIVE REVEAL ============ */
.ig-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ig-stagger.ig-visible > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:0.05s; }
.ig-stagger.ig-visible > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:0.15s; }
.ig-stagger.ig-visible > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:0.25s; }
.ig-stagger.ig-visible > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:0.35s; }
.ig-stagger.ig-visible > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:0.45s; }
.ig-stagger.ig-visible > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay:0.55s; }
