/* ===== ANIMATIONS & MICRO-INTERACTIONS ===== */

/* Fade in on scroll */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.15s; }
.fade-in-delay-2 { transition-delay: 0.3s; }
.fade-in-delay-3 { transition-delay: 0.45s; }

/* Shimmer loading effect */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
.shimmer {
  background: linear-gradient(90deg, var(--stone-light) 25%, var(--cream) 50%, var(--stone-light) 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Pulse for donate button */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0.5); }
  50% { box-shadow: 0 0 0 12px rgba(201,162,39,0); }
}
.btn-pulse { animation: pulse-gold 2.5s infinite; }

/* Floating particles on hero */
.particle {
  position: absolute; border-radius: 50%;
  background: rgba(201,162,39,0.15);
  animation: float-particle linear infinite;
  pointer-events: none;
}
@keyframes float-particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* Number counter animation */
.counter { transition: all 0.3s ease; }

/* Timeline entrance */
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Gold line accent */
.gold-line::before {
  content: '';
  display: block; width: 60px; height: 3px;
  background: var(--gold);
  margin-bottom: 1rem;
  border-radius: 2px;
}
.gold-line-center::before { margin-left: auto; margin-right: auto; }

/* Ripple effect on buttons */
.btn { position: relative; overflow: hidden; }
.btn-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* Page transition */
.page-enter { animation: page-in 0.5s ease forwards; }
@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Donation card hover glow */
.amount-btn:hover {
  box-shadow: 0 0 0 3px rgba(122,158,95,0.3);
}
.amount-btn.active {
  box-shadow: 0 0 0 3px rgba(45,90,39,0.4);
}

/* Nav scrolled state transition */
.nav { transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.nav.scrolled { box-shadow: 0 4px 24px rgba(44,44,36,0.18); }

/* Mission card icon bounce */
.mission-card:hover .mission-icon {
  display: inline-block;
  animation: icon-bounce 0.5s ease;
}
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Progress bar glow */
.progress-fill { position: relative; }
.progress-fill::after {
  content: ''; position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px var(--gold);
}
