/* ============================================
   BANDAR AKI APP — Premium Lighting & Motion System
   ============================================ */

/* ── 1. Global Lighting System ── */
.lighting-system {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Ambient Lighting */
.ambient-light {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(153, 27, 27, 0.05), rgba(76, 29, 149, 0.03), transparent 60%);
  animation: ambientPulse 20s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes ambientPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
  100% { transform: scale(1.1) translate(-2%, 2%); opacity: 1; }
}

/* Aurora Animation */
.aurora-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at top left, rgba(229, 57, 53, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
  filter: blur(60px);
  animation: auroraDrift 30s linear infinite alternate;
  will-change: transform;
}

@keyframes auroraDrift {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(5deg) scale(1.2); }
}

/* Mouse Spotlight */
.mouse-spotlight {
  position: fixed;
  top: 0; left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(40px);
  pointer-events: none;
  z-index: 10;
  /* Updated via JS using CSS variables */
  transform: translate(calc(var(--mouse-x, 0) * 1px - 200px), calc(var(--mouse-y, 0) * 1px - 200px));
  will-change: transform;
  transition: opacity 0.3s ease;
  opacity: 0;
}

body:hover .mouse-spotlight {
  opacity: 1;
}

/* ── 2. Grid Sweeping Light ── */
.hero__bg-grid::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(229, 57, 53, 0.1) 50%, transparent 100%);
  animation: gridSweep 8s linear infinite;
  pointer-events: none;
  will-change: transform;
}

@keyframes gridSweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ── 3. Premium Card Effects ── */
.card, .promo-card, .feature-card, .product-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease !important;
  will-change: transform, box-shadow;
  position: relative;
}

.card:hover, .promo-card:hover, .feature-card:hover, .product-card:hover {
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow: 0 12px 30px -10px rgba(229, 57, 53, 0.2), 0 0 0 1px rgba(229, 57, 53, 0.3) !important;
  z-index: 2;
}

/* ── 4. Button Effects ── */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform, box-shadow;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 20px -6px rgba(229, 57, 53, 0.5), 0 0 15px rgba(229, 57, 53, 0.3) !important;
}

/* Ripple effect via JS */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ── 5. Text Glow ── */
.hero__title {
  text-shadow: 0 0 40px rgba(229, 57, 53, 0.2);
}

.hero__highlight {
  text-shadow: 0 0 20px rgba(229, 57, 53, 0.4);
}

/* Ensure z-index layering */
.container, .hero__content {
  position: relative;
  z-index: 1;
}
