/* ═══════════════════════════════════════════════
   css/animations.css
   Keyframes + scroll-reveal class
   ═══════════════════════════════════════════════ */

/* ── Keyframes ── */

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

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

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

/* ── Scroll-reveal ── */
/* Elements with class="reveal" start invisible */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* js/animations.js adds .visible when element enters viewport */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children — add to a parent that has .stagger class */
.stagger .reveal:nth-child(1) { transition-delay: 0s;    }
.stagger .reveal:nth-child(2) { transition-delay: 0.1s;  }
.stagger .reveal:nth-child(3) { transition-delay: 0.2s;  }
.stagger .reveal:nth-child(4) { transition-delay: 0.3s;  }
.stagger .reveal:nth-child(5) { transition-delay: 0.4s;  }
.stagger .reveal:nth-child(6) { transition-delay: 0.5s;  }
