/* ============================================================
   HOLISTIC SOUL JOURNEY — animations.css
   Keyframes + scroll reveal + element-level motion
   ============================================================ */

/* ------------- Keyframes ------------- */
@keyframes pageFadeIn {
  to { opacity: 0; visibility: hidden; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

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

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

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

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 24px rgba(201,168,76,0.20); }
  50%      { box-shadow: 0 0 60px rgba(201,168,76,0.55), 0 0 100px rgba(201,168,76,0.20); }
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -18px, 0); }
}

@keyframes floatSlow {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  50%      { transform: translate3d(0, -22px, 0) rotate(2deg); }
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: 0.5; }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes letterIn {
  from { opacity: 0; transform: translate3d(0, 30px, 0); filter: blur(8px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.08); }
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(40px, -30px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 1; }
}

/* ------------- Hero animated gradient title ------------- */
.hero-title {
  background: linear-gradient(135deg, #F0D080 0%, #C9A84C 25%, #F8F4FF 50%, #C9A84C 75%, #F0D080 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientSweep 8s ease-in-out infinite;
}

/* ------------- Scroll reveal ------------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translate3d(-40px, 0, 0); }
[data-reveal="right"] { transform: translate3d(40px, 0, 0); }
[data-reveal="zoom"]  { transform: scale(0.92); }
[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

[data-reveal-delay="1"]  { transition-delay: 0.1s; }
[data-reveal-delay="2"]  { transition-delay: 0.2s; }
[data-reveal-delay="3"]  { transition-delay: 0.3s; }
[data-reveal-delay="4"]  { transition-delay: 0.4s; }
[data-reveal-delay="5"]  { transition-delay: 0.5s; }
[data-reveal-delay="6"]  { transition-delay: 0.6s; }

/* ------------- Floating orbs ------------- */
.float-slow { animation: floatSlow 10s ease-in-out infinite; }
.float      { animation: float 6s ease-in-out infinite; }
.drift      { animation: drift 14s ease-in-out infinite; }
.spin-slow  { animation: spinSlow 60s linear infinite; }
.twinkle    { animation: twinkle 3.5s ease-in-out infinite; }
.glow-pulse { animation: glowPulse 6s ease-in-out infinite; }

/* ------------- Scroll indicator ------------- */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
  z-index: 3;
}
.scroll-indicator svg { animation: bounceArrow 1.8s ease-in-out infinite; }

/* ------------- Hero entry animation ------------- */
.hero-eyebrow { opacity: 0; animation: fadeUp 800ms var(--ease-out) 0.35s forwards; }
.hero-title   { opacity: 0; animation: fadeUp 1000ms var(--ease-out) 0.55s forwards, gradientSweep 8s ease-in-out 1.5s infinite; }
.hero-sub     { opacity: 0; animation: fadeUp 800ms var(--ease-out) 0.95s forwards; }
.hero-actions { opacity: 0; animation: fadeUp 800ms var(--ease-out) 1.2s forwards; }
.scroll-indicator { opacity: 0; animation: fadeIn 800ms var(--ease-out) 1.6s forwards; }

/* ------------- Reduce motion ------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-eyebrow, .hero-title, .hero-sub, .hero-actions, .scroll-indicator { opacity: 1 !important; }
  .btn-gold { animation: none !important; }
}
