/* ============================================
   animations.css — Aman Kumar Portfolio
   Keyframes, scroll reveals, transitions
   ============================================ */

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #22c55e; }
  50%       { opacity: 0.4; box-shadow: 0 0 2px #22c55e; }
}

@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

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

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

/* ── HERO ENTRY ANIMATIONS ── */
.hero-badge      { animation: fadeUp 0.6s 0s ease both; }
.hero-avatar,
.hero-avatar-placeholder { animation: fadeUp 0.6s 0.05s ease both; }
.hero-name       { animation: fadeUp 0.6s 0.1s ease both; }
.hero-role       { animation: fadeUp 0.6s 0.2s ease both; }
.hero-company    { animation: fadeUp 0.6s 0.25s ease both; }
.hero-btns       { animation: fadeUp 0.6s 0.35s ease both; }
.scroll-hint     { animation: fadeUp 0.6s 0.8s ease both; }

/* ── BADGE DOT ── */
.badge-dot {
  animation: pulse 2s infinite;
}

/* ── SCROLL LINE ── */
.scroll-line {
  animation: scrollLine 1.8s infinite;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: none; }

/* ── HOVER FLOAT ── */
.hover-float {
  transition: transform 0.3s ease;
}
.hover-float:hover {
  transform: translateY(-6px);
}

/* ── NAV SCROLL STATE ── */
nav.scrolled {
  padding: 0.85rem 5vw;
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
