/* ══════════════════════════════════════════
   animations.css  —  Keyframes & motion
   ══════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

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

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

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

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

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

/* ── Applied animations ── */
.badge-dot {
  animation: pulse 2s ease-in-out infinite;
}

/* Hero stagger */
.hero__badge   { animation: fadeUp var(--duration-slower) 0.0s var(--ease-out) both; }
.hero__title   { animation: fadeUp var(--duration-slower) 0.1s var(--ease-out) both; }
.hero__subtitle{ animation: fadeUp var(--duration-slower) 0.2s var(--ease-out) both; }
.hero__actions { animation: fadeUp var(--duration-slower) 0.3s var(--ease-out) both; }
.hero__scroll  { animation: fadeUp var(--duration-slower) 0.4s var(--ease-out) both; }

/* Skill bar reveal */
.skill-card__fill {
  transition: width 1s var(--ease-out) 0.2s;
}

/* Scroll-reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
