/* ============================================
   nexifunkick.art — ANIMATIONS.CSS
   Keyframes & animation utilities
   ============================================ */

/* ---- KEYFRAMES ---- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes pulseBig {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes gameBorderGlow {
  from {
    opacity: 0.15;
  }
  to {
    opacity: 0.35;
  }
}

@keyframes raysShift {
  from {
    opacity: 0.7;
    transform: scale(1) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: scale(1.05) rotate(2deg);
  }
}

@keyframes floatRelic {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.5;
  }
  33% {
    transform: translateY(-12px) rotate(5deg);
    opacity: 0.8;
  }
  66% {
    transform: translateY(-6px) rotate(-3deg);
    opacity: 0.6;
  }
}

@keyframes glyphFloat {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-8px);
    opacity: 0.8;
  }
}

@keyframes scrollBounce {
  0%, 100% {
    transform: scaleY(1);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1.3);
    opacity: 1;
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-10vh) translateX(var(--drift, 20px));
    opacity: 0;
  }
}

@keyframes successPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ---- ANIMATION UTILITY CLASSES ---- */

.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}

.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.fade-in.is-visible {
  opacity: 1;
}

/* ---- HOVER EFFECTS ---- */

.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ---- GAME SECTION HOVER ---- */
.game-altar:hover .game-frame-glow {
  animation-duration: 2s;
  opacity: 0.4;
}

/* ---- LOGO GLYPH ---- */
.logo-icon {
  display: inline-block;
  transition: filter var(--transition-base), transform var(--transition-base);
}

.logo:hover .logo-icon {
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.9));
  transform: scale(1.1) rotate(-5deg);
}