/* ============================================================
   REMINISCENCE 3.0 — Animations (animations.css)
   ============================================================ */

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(44px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-32px); }
  to   { opacity: 1; transform: translateY(0);     }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-44px); }
  to   { opacity: 1; transform: translateX(0);     }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1);    }
}

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

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0   rgba(201,168,76,0.45); }
  50%       { box-shadow: 0 0 0 14px rgba(201,168,76,0);   }
}

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

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

@keyframes spin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(0.8) translateY(-8px); }
  to   { opacity: 1; transform: scale(1)   translateY(0);    }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(6px); }
}

@keyframes ringPulse {
  0%   { transform: scale(1);    opacity: 0.5; }
  100% { transform: scale(1.55); opacity: 0;   }
}

/* ── Scroll Reveal base states ────────────────────────────── */
.reveal {
  opacity: 0;
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.reveal-up    { transform: translateY(48px); }
.reveal.reveal-left  { transform: translateX(-48px); }
.reveal.reveal-right { transform: translateX(48px); }
.reveal.reveal-scale { transform: scale(0.9); }

.reveal.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ── Stagger children ────────────────────────────────────── */
.stagger-children > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.is-visible > *:nth-child(1)  { transition-delay: 0.05s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(2)  { transition-delay: 0.12s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(3)  { transition-delay: 0.19s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(4)  { transition-delay: 0.26s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(5)  { transition-delay: 0.33s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(6)  { transition-delay: 0.40s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(7)  { transition-delay: 0.47s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(8)  { transition-delay: 0.54s; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(n+8){ transition-delay: 0.60s; opacity: 1; transform: none; }

/* ── Hero section entrance animations ────────────────────── */
.hero-badge     { animation: badgePop   0.8s cubic-bezier(0.34,1.56,0.64,1) 0.3s both; }
.hero-title     { animation: fadeInUp   1.0s ease 0.5s both; }
.hero-theme     { animation: fadeInUp   1.0s ease 0.7s both; }
.hero-meta      { animation: fadeInUp   1.0s ease 0.9s both; }
.hero-countdown { animation: fadeInUp   1.0s ease 1.1s both; }
.hero-ctas      { animation: fadeInUp   1.0s ease 1.3s both; }
.scroll-indicator { animation: fadeIn   1.0s ease 1.8s both; }

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

/* ── Shimmer loading effect ──────────────────────────────── */
.shimmer-bg {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 0%,
    rgba(255,255,255,0.09) 50%,
    rgba(255,255,255,0.03) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2.2s infinite linear;
}

/* ── Animated gold gradient text ─────────────────────────── */
.gold-animated {
  background: linear-gradient(270deg,
    var(--gold-300), var(--gold-500), var(--gold-600), var(--gold-400), var(--gold-300));
  background-size: 350% 350%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

/* ── Hover lift + glow ────────────────────────────────────── */
.hover-glow {
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.hover-glow:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-gold-h);
}

/* ── Float animation utility ──────────────────────────────── */
.float { animation: float 4s ease-in-out infinite; }

/* ── Pulse gold utility ────────────────────────────────────── */
.pulse-gold { animation: pulse-gold 2.5s ease-in-out infinite; }

/* ── Scroll wheel indicator ────────────────────────────────── */
@keyframes scrollWheel {
  0%   { transform: translateY(0);   opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}
