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

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

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

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

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

/* ─── Scroll Reveal — Elements start hidden ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ─── Hero animation ─────────────────────────────────────────────────────────── */
.hero__tag    { animation: fade-in-up 0.7s 0.1s both; }
.hero__name   { animation: fade-in-up 0.7s 0.2s both; }
.hero__tagline{ animation: fade-in-up 0.7s 0.3s both; }
.hero__actions{ animation: fade-in-up 0.7s 0.4s both; }
.hero__stats  { animation: fade-in-up 0.7s 0.5s both; }
.hero__avatar { animation: scale-in   0.8s 0.2s both; float: animation; }

/* Avatar float */
.hero__avatar {
  animation: scale-in 0.8s 0.2s both, float 5s 1s ease-in-out infinite;
}

/* ─── Gradient animated background on hero name ─────────────────────────────── */
.hero__name.gradient-text {
  background-size: 200% auto;
  animation: gradient-shift 6s linear infinite, fade-in-up 0.7s 0.2s both;
}

/* ─── Counter number animation ──────────────────────────────────────────────── */
.counter {
  display: inline-block;
}

/* ─── Particle canvas (subtle background) ───────────────────────────────────── */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ─── Section header stagger ────────────────────────────────────────────────── */
.section-label { transition-delay: 0s; }
.section-title { transition-delay: 0.08s; }
.section-desc  { transition-delay: 0.16s; }
