/* ============================================
   ANIMATIONS — GSAP handles the heavy lifting,
   this file has CSS-only animations and states
   ============================================ */

/* ---- Reveal states (GSAP targets these) ---- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

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

.revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ---- Text split animation targets ---- */
.split-word {
  display: inline-block;
  overflow: hidden;
}

.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

/* ---- Floating animation for hero elements ---- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.float {
  animation: float 6s ease-in-out infinite;
}

.float-delayed {
  animation: float-delayed 7s ease-in-out infinite 1s;
}

/* ---- Shimmer effect for the gradient text ---- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-text {
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}

/* ---- Subtle glow pulse for accents ---- */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(107, 58, 94, 0.1); }
  50% { box-shadow: 0 0 40px rgba(107, 58, 94, 0.25); }
}

.glow-pulse {
  animation: glow-pulse 4s ease-in-out infinite;
}

/* ---- Card hover micro-interactions ---- */
.card-hover {
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ---- Stagger animation helper ---- */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
}
