/* Common animations used across multiple pages */

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

@keyframes pulse {
  0%, 100% {
    text-shadow: 0 0 10px #00b3ff, 0 0 20px #a855f7;
  }
  50% {
    text-shadow: 0 0 30px #00b3ff, 0 0 50px #a855f7, 0 0 70px #a855f7;
  }
}

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

@keyframes sparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 1;
  }
}

@keyframes particleFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(var(--vx) * 50px),
      calc(var(--vy) * 50px)
    ) scale(0);
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-100px) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Magic particles shared across pages */
.magic-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ffd700, #a855f7);
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat 1s ease-out forwards;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
  z-index: 9999;
}
