/* ═══════════════════════════════════════════════
   Animations — Keyframes + Utility Classes
   ═══════════════════════════════════════════════ */

/* ── Float Animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

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

/* ── Glow Pulse ── */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(105, 86, 238, 0.2); }
  50% { box-shadow: 0 0 40px rgba(105, 86, 238, 0.4); }
}

/* ── Shimmer ── */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── Rotate ── */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Fade In Up (CSS fallback when GSAP not loaded) ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Fade In ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Scale In ── */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Slide In Left ── */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Slide In Right ── */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Gradient Shift ── */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ══════════════════════════
   Animation Utility Classes
   ══════════════════════════ */

/* GSAP will handle these, but they serve as initial state */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.anim-fade-in {
  opacity: 0;
}

.anim-scale-in {
  opacity: 0;
  transform: scale(0.9);
}

.anim-slide-left {
  opacity: 0;
  transform: translateX(-60px);
}

.anim-slide-right {
  opacity: 0;
  transform: translateX(60px);
}

/* When animated (GSAP adds this) */
.anim-complete {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Hover Utilities ── */
.hover-lift {
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-glow {
  transition: box-shadow var(--duration-normal) var(--ease-out-expo);
}

.hover-glow:hover {
  box-shadow: var(--brand-glow-sm);
}

/* ── Continuous Animations ── */
.anim-float {
  animation: float 6s ease-in-out infinite;
}

.anim-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.anim-glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

.anim-rotate {
  animation: rotate 20s linear infinite;
}

.anim-gradient {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* ── Split Text Characters ── */
.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}

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

  html {
    scroll-behavior: auto;
  }

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

  .anim-float,
  .anim-pulse,
  .anim-glow-pulse,
  .anim-rotate {
    animation: none;
  }

  .marquee-track {
    animation: none;
  }
}
