/* ==========================================================================
   SurfaceGPT Motion System ✨
   ========================================================================== */

/* 🎈 Float animation — orbs gotta float 🫧 */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.08); }
  66% { transform: translate(-40px, 50px) scale(0.95); }
}

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

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

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

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

/* 💡 Glowing pulse — it's alive! 🧟 */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4); }
  50% { box-shadow: 0 0 50px rgba(168, 85, 247, 0.7), 0 0 90px rgba(6, 182, 212, 0.35); }
}

@keyframes gold-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(250, 204, 21, 0.25), 0 8px 32px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 48px rgba(250, 204, 21, 0.5), 0 0 90px rgba(245, 158, 11, 0.25); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

/* 🎊 Confetti physics 🎉 (gravity not included) */
@keyframes confetti-fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.shimmer {
  animation: shimmer 4s linear infinite;
}

.glow {
  animation: glow-pulse 3s ease-in-out infinite;
}

.verdict {
  animation: pop 500ms var(--ease-spring);
}

.cursor::after {
  content: "▋";
  margin-left: 2px;
  color: var(--purple-400);
  animation: blink 1s step-end infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

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

.confetti {
  position: fixed;
  top: -20px;
  width: 10px;
  height: 14px;
  z-index: 200;
  pointer-events: none;
  animation: confetti-fall 2.4s linear forwards;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
