/* ==========================================================
   Sri Krishna Fireworks - Keyframe Animations
   ========================================================== */

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.7;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.9);
  }
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes floatItem {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmerEffect {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulseGlowRed {
  0%, 100% {
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(225, 29, 72, 0.7);
  }
}

.animate-float {
  animation: floatItem 3.5s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}


/* ==========================================================
   Global Detached Fixed Canvas in DOM Flow
   Completely detaches fireworks & sky shot canvases from document flow
   ========================================================== */
#skyshotCanvas,
#fireworks,
#fireworks-canvas,
.fireworks-canvas,
canvas.skyshot-canvas,
canvas[id*="canvas"],
canvas[id*="firework"],
canvas[id*="skyshot"] {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================
   Preloader / Transition Screen Overlay
   ========================================================== */
#site-loader,
.site-loader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #090d16 !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5rem !important;
  pointer-events: auto !important;
  transition: opacity 0.5s ease, visibility 0.5s ease !important;
}

#site-loader.fade-out,
.site-loader.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.firework-spinner {
  position: relative;
  width: 70px;
  height: 70px;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #f59e0b;
  animation: spinRing 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(2) {
  inset: 8px;
  border-top-color: #ff4d4d;
  animation-delay: -0.3s;
}

.spinner-ring:nth-child(3) {
  inset: 16px;
  border-top-color: #10b981;
  animation-delay: -0.6s;
}

.spinner-core {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 15px #f59e0b;
  animation: pulseCore 1s ease-in-out infinite alternate;
}

.loader-text {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.05rem;
  color: #f8fafc;
  font-weight: 500;
  transition: opacity 0.25s ease;
}

.loader-brand {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #94a3b8;
  font-weight: 600;
}
