/* === Core Keyframes === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

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

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

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

.shimmer {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s ease infinite;
}

/* === Ambient Motion === */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(240, 180, 41, 0.15); }
  50% { box-shadow: 0 0 24px rgba(240, 180, 41, 0.35); }
}

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

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(1deg); }
  66% { transform: translateY(-4px) rotate(-1deg); }
}

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

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

@keyframes borderGlow {
  0%, 100% { border-color: rgba(240, 180, 41, 0.15); }
  50% { border-color: rgba(240, 180, 41, 0.35); }
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(240, 180, 41, 0.3); }
  50% { text-shadow: 0 0 25px rgba(240, 180, 41, 0.5), 0 0 50px rgba(240, 180, 41, 0.2); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

/* === Orb Background Animation === */
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -50px) scale(1.1); }
  50% { transform: translate(-20px, -80px) scale(0.95); }
  75% { transform: translate(-40px, -30px) scale(1.05); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-40px, 30px) scale(1.05); }
  50% { transform: translate(30px, 60px) scale(0.9); }
  75% { transform: translate(50px, 20px) scale(1.1); }
}

/* === Animation Classes === */
.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease forwards;
  opacity: 0;
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
}

.animate-scale-in {
  animation: fadeInScale var(--transition-slow) ease forwards;
  opacity: 0;
}

/* === Stagger Children === */
.stagger-children > * {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 70ms; }
.stagger-children > *:nth-child(3) { animation-delay: 140ms; }
.stagger-children > *:nth-child(4) { animation-delay: 210ms; }
.stagger-children > *:nth-child(5) { animation-delay: 280ms; }
.stagger-children > *:nth-child(6) { animation-delay: 350ms; }
.stagger-children > *:nth-child(7) { animation-delay: 420ms; }
.stagger-children > *:nth-child(8) { animation-delay: 490ms; }
.stagger-children > *:nth-child(9) { animation-delay: 560ms; }
.stagger-children > *:nth-child(10) { animation-delay: 630ms; }
.stagger-children > *:nth-child(11) { animation-delay: 700ms; }
.stagger-children > *:nth-child(12) { animation-delay: 770ms; }

/* === Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === 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);
}

.hover-glow {
  transition: box-shadow var(--transition-base);
}
.hover-glow:hover {
  box-shadow: var(--shadow-glow-gold);
}

/* === Modal Animation === */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(50px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* === Marquee (optional for category pills) === */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === Hero Entrance Animation === */
@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-entrance {
  opacity: 0;
  animation: heroEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-entrance--1 { animation-delay: 0.1s; }
.hero-entrance--2 { animation-delay: 0.3s; }
.hero-entrance--3 { animation-delay: 0.5s; }
.hero-entrance--4 { animation-delay: 0.7s; }
.hero-entrance--5 { animation-delay: 0.9s; }
