/* ============================================
   JUMPLINKSTACK.CAM — ANIMATIONS
   jumplinkstack.cam
   ============================================ */

/* ── KEYFRAMES ───────────────────────────────── */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

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

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

@keyframes orbit-move-1 {
  from { transform: translate(-50%, 0) rotate(0deg) translateX(150px) rotate(0deg); }
  to { transform: translate(-50%, 0) rotate(360deg) translateX(150px) rotate(-360deg); }
}

@keyframes orbit-move-2 {
  from { transform: translate(0, -50%) rotate(0deg) translateX(-180px) rotate(0deg); }
  to { transform: translate(0, -50%) rotate(360deg) translateX(-180px) rotate(-360deg); }
}

@keyframes glow-breathe {
  0%, 100% {
    box-shadow: 0 0 30px rgba(124, 245, 255, 0.06);
    opacity: 0.6;
  }
  50% {
    box-shadow: 0 0 60px rgba(124, 245, 255, 0.14);
    opacity: 1;
  }
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

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

@keyframes fade-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(0.5); }
}

@keyframes nebula-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -10px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.97); }
}

@keyframes slot-spin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-120px); }
}

@keyframes win-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 245, 255, 0.2); }
  50% { box-shadow: 0 0 50px rgba(124, 245, 255, 0.5); }
}

/* ── SCROLL-TRIGGERED ANIMATIONS ────────────── */

.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.fade-in-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* ── AMBIENT ANIMATIONS ──────────────────────── */

.nebula-1 {
  animation: nebula-drift 18s ease-in-out infinite;
}

.nebula-2 {
  animation: nebula-drift 22s ease-in-out infinite reverse;
}

.nebula-3 {
  animation: nebula-drift 14s ease-in-out infinite 3s;
}

.nebula-4 {
  animation: nebula-drift 20s ease-in-out infinite 5s;
}

.nebula-5 {
  animation: nebula-drift 16s ease-in-out infinite 2s;
}

/* Hero visual float */
.slot-preview-inner {
  animation: float-gentle 5s ease-in-out infinite;
}

/* Symbol cycling animation */
.symbol-col:nth-child(1) { animation: slot-spin-col 3s ease-in-out infinite 0s; }
.symbol-col:nth-child(2) { animation: slot-spin-col 3s ease-in-out infinite 0.3s; }
.symbol-col:nth-child(3) { animation: slot-spin-col 3s ease-in-out infinite 0.6s; }

@keyframes slot-spin-col {
  0%, 70%, 100% { filter: none; }
  30% { filter: blur(1px); opacity: 0.7; }
}

/* Dot animations */
.dot-1 {
  top: 50%;
  left: 50%;
  transform-origin: -150px 0;
  animation: orbit-dot-1 20s linear infinite;
}

.dot-2 {
  top: 50%;
  left: 50%;
  transform-origin: -180px 0;
  animation: orbit-dot-2 30s linear infinite reverse;
}

@keyframes orbit-dot-1 {
  from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

@keyframes orbit-dot-2 {
  from { transform: rotate(0deg) translateX(180px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(180px) rotate(-360deg); }
}

/* Page transition */
body {
  animation: page-fade-in 0.4s ease forwards;
}

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

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

/* Game container ambient */
.game-ambient-1 {
  animation: nebula-drift 10s ease-in-out infinite;
}

.game-ambient-2 {
  animation: nebula-drift 12s ease-in-out infinite reverse;
}

/* Rank orb float */
.rank-orb-main {
  animation: float-gentle 4s ease-in-out infinite;
}

/* Smooth hover transitions applied globally */
* {
  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── STAR CANVAS STAR STYLES ─────────────────── */
/* Star twinkling handled via JS canvas */

/* ── HOVER LIFT ──────────────────────────────── */
.feature-card,
.value-card,
.step-card,
.reward-item,
.contact-info-card,
.resource-card {
  will-change: transform;
}
/* ============================================ */