/* ==========================================================================
   ADIL EVENT - PERFORMANCE-TUNED FESTIVE ANIMATIONS & LOW-END OVERRIDES
   ========================================================================== */

/* --------------------------------------------------------------------------
   GPU-Accelerated Keyframes
   -------------------------------------------------------------------------- */
@keyframes subtleFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

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

@keyframes partyGlow {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(255, 0, 122, 0.3);
  }
  50% {
    box-shadow: 0 12px 35px rgba(121, 40, 202, 0.45);
  }
}

/* Ambient Floating Party Lights (CSS Only) */
.ambient-orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.18;
  z-index: 0;
  will-change: transform;
}

.ambient-orb--gold {
  background: radial-gradient(circle, #ff007a 0%, transparent 70%);
  top: 10%;
  right: 8%;
  animation: subtleFloat 8s ease-in-out infinite;
}

.ambient-orb--amber {
  background: radial-gradient(circle, #00b4d8 0%, transparent 70%);
  bottom: 10%;
  left: 8%;
  animation: subtleFloat 10s ease-in-out infinite 2s;
}

/* --------------------------------------------------------------------------
   Scroll Reveal System (IntersectionObserver Compatible)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-smooth), transform 0.65s var(--ease-smooth);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-25px);
  transition: opacity 0.65s var(--ease-smooth), transform 0.65s var(--ease-smooth);
}

.reveal-left.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(25px);
  transition: opacity 0.65s var(--ease-smooth), transform 0.65s var(--ease-smooth);
}

.reveal-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger Delays for Cards & Grids */
.stagger-1 { transition-delay: 60ms; }
.stagger-2 { transition-delay: 120ms; }
.stagger-3 { transition-delay: 180ms; }
.stagger-4 { transition-delay: 240ms; }
.stagger-5 { transition-delay: 300ms; }
.stagger-6 { transition-delay: 360ms; }

/* --------------------------------------------------------------------------
   LOW-END DEVICE ENGINE (.low-perf MODE)
   -------------------------------------------------------------------------- */
html.low-perf *,
html.low-perf *::before,
html.low-perf *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.low-perf .site-header.header--scrolled {
  background-color: #ffffff !important;
}

html.low-perf .mobile-drawer {
  background-color: #ffffff !important;
}

html.low-perf .ambient-orb {
  display: none !important;
}

html.low-perf .service-card,
html.low-perf .entertainment-card,
html.low-perf .gallery-item {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
  transition: transform 120ms ease !important;
}

html.low-perf .service-card:hover,
html.low-perf .entertainment-card:hover,
html.low-perf .gallery-item:hover {
  transform: translateY(-2px) !important;
}

html.low-perf .service-card:hover .service-card-img,
html.low-perf .gallery-item:hover .gallery-img {
  transform: none !important;
}

html.low-perf .btn-primary::after {
  display: none !important;
}

html.low-perf .reveal,
html.low-perf .reveal-left,
html.low-perf .reveal-right {
  transition: opacity 0.2s ease !important;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY: PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
  .ambient-orb {
    display: none !important;
  }
}
