/* ─── ANIMATIONS & KEYFRAMES ─── */

/* Fade up reveal */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fade in */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Glow pulse */
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 10px rgba(0,229,255,.3); }
  50%      { box-shadow: 0 0 30px rgba(0,229,255,.7), 0 0 60px rgba(0,229,255,.2); }
}

/* Ripple out */
@keyframes ripple {
  from { transform: translate(-50%,-50%) scale(0); opacity: .6; }
  to   { transform: translate(-50%,-50%) scale(2.5); opacity: 0; }
}

/* Spin slow */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Number count-up bounce */
@keyframes countBounce {
  0%   { transform: scale(.85); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.count-anim { animation: countBounce .55s var(--ease) both; }

/* Underline grow */
@keyframes underlineGrow {
  from { width: 0; }
  to   { width: 100%; }
}

/* Shimmer sweep */
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}
.shimmer-text {
  background: linear-gradient(90deg, var(--cyan) 0%, #fff 40%, var(--cyan) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* Border glow loop */
@keyframes borderGlow {
  0%,100% { border-color: rgba(0,229,255,.15); }
  50%      { border-color: rgba(0,229,255,.5); }
}
.border-glow { animation: borderGlow 3s ease infinite; }

/* Stagger fade for lists */
.stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: .05s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .12s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .19s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .26s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .33s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: .40s; }
.stagger.visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: .47s; }
.stagger.visible > *:nth-child(8) { opacity: 1; transform: none; transition-delay: .54s; }
.stagger.visible > *:nth-child(9) { opacity: 1; transform: none; transition-delay: .61s; }
.stagger.visible > *:nth-child(10) { opacity: 1; transform: none; transition-delay: .68s; }
.stagger.visible > *:nth-child(11) { opacity: 1; transform: none; transition-delay: .75s; }
.stagger.visible > *:nth-child(12) { opacity: 1; transform: none; transition-delay: .82s; }
.stagger.visible > *:nth-child(13) { opacity: 1; transform: none; transition-delay: .89s; }
.stagger.visible > *:nth-child(14) { opacity: 1; transform: none; transition-delay: .96s; }
.stagger.visible > *:nth-child(15) { opacity: 1; transform: none; transition-delay: .103s; }
.stagger.visible > *:nth-child(16) { opacity: 1; transform: none; transition-delay: .110s; }
.stagger.visible > *:nth-child(17) { opacity: 1; transform: none; transition-delay: .117s; }
.stagger.visible > *:nth-child(18) { opacity: 1; transform: none; transition-delay: .124s; }


/* Page transition overlay */
.page-overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.page-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Particle canvas */
#particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

/* Hover lift utility */
.lift {
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

/* Cyan line decoration */
.cyan-line {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--cyan);
  margin: 1.2rem 0;
  box-shadow: 0 0 8px rgba(0,229,255,.5);
}

/* Glitch text */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: .6;
}
.glitch::before {
  color: #ff00c1;
  animation: glitch1 3s infinite;
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
}
.glitch::after {
  color: #00fff9;
  animation: glitch2 3s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
}
@keyframes glitch1 {
  0%,94%,100% { transform: none; opacity: 0; }
  95%  { transform: translateX(-3px); opacity: .6; }
  97%  { transform: translateX(3px); opacity: .6; }
}
@keyframes glitch2 {
  0%,94%,100% { transform: none; opacity: 0; }
  96%  { transform: translateX(3px); opacity: .6; }
  98%  { transform: translateX(-3px); opacity: .6; }
}

.reveal-card {
  opacity: 0;
  transform: translateY(50px) scale(0.96);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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