/* animations.css — keyframes & scroll-triggered classes */

/* ── Keyframes ── */
@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.25); opacity: 0.3; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

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

/* ── Hero entrance ── */
.hero-tag   { animation: fadeUp 0.8s var(--ease-out) 0.2s both; }
.hero-title { animation: fadeUp 0.9s var(--ease-out) 0.35s both; }
.hero-sub   { animation: fadeUp 0.8s var(--ease-out) 0.5s both; }
.hero-actions { animation: fadeUp 0.8s var(--ease-out) 0.65s both; }
.scroll-indicator { animation: fadeUp 0.8s var(--ease-out) 0.9s both; }

/* ── Scroll-triggered fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger siblings */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }

/* ── Exp items ── */
.exp-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.exp-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger exp items */
.exp-item:nth-child(1) { transition-delay: 0s; }
.exp-item:nth-child(2) { transition-delay: 0.1s; }
.exp-item:nth-child(3) { transition-delay: 0.18s; }
.exp-item:nth-child(4) { transition-delay: 0.26s; }
.exp-item:nth-child(5) { transition-delay: 0.34s; }

/* ── Skill bars ── */
/* Triggered via JS by setting transform: scaleX(N) when visible */

/* ── Hover glow on purple elements ── */
.btn-primary:active   { transform: translateY(0) scale(0.98); }
.profil-card:active   { transform: translateX(3px); }
