/* ═══════════════════════════════════════════════════════════
   ROOFTOP ROYALE — AMBIENT LIGHTING & ANIMATION SYSTEM
   Premium nightlife aesthetic. Gold + deep red. Black depth.
   ═══════════════════════════════════════════════════════════ */

/* ── Reduced Motion Safety ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #ambient-particles,
  #cursor-trail,
  .ambient-glow-pool {
    display: none !important;
  }
}


/* ══════════════════════════════════════════════════════════
   1. AMBIENT GLOW POOLS — depth behind sections
   ══════════════════════════════════════════════════════════ */

.ambient-glow-pool {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  will-change: opacity, transform;
}

.ambient-glow-pool--gold {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at center,
    rgba(212, 175, 55, 0.11) 0%,
    rgba(212, 175, 55, 0.04) 55%,
    transparent 70%
  );
  animation: glow-breathe 7s ease-in-out infinite;
}

.ambient-glow-pool--red {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at center,
    rgba(139, 0, 0, 0.09) 0%,
    rgba(139, 0, 0, 0.03) 55%,
    transparent 70%
  );
  animation: glow-breathe 9s ease-in-out infinite reverse;
}

.ambient-glow-pool--gold-mid {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at center,
    rgba(212, 175, 55, 0.08) 0%,
    transparent 70%
  );
  animation: glow-breathe 11s ease-in-out infinite;
  animation-delay: 2.5s;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.18); }
}


/* ══════════════════════════════════════════════════════════
   2. LED EDGE GLOW — card borders pulse (box-shadow approach)
      Uses box-shadow to avoid conflicts with existing ::before
   ══════════════════════════════════════════════════════════ */

/* Pulsing LED border glow on cards — no pseudo-element conflicts */
.feature-card,
.price-card,
.ir-card,
.about-block,
.value-item {
  animation: card-border-glow 5s ease-in-out infinite;
  will-change: box-shadow;
}

/* Stagger card animations */
.feature-card:nth-child(2), .value-item:nth-child(2), .ir-card:nth-child(2) {
  animation-delay: 0.8s;
}
.feature-card:nth-child(3), .value-item:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes card-border-glow {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px rgba(212, 175, 55, 0.07),
      0 2px 8px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(212, 175, 55, 0.32),
      0 0 18px rgba(212, 175, 55, 0.07),
      0 2px 8px rgba(0, 0, 0, 0.35);
  }
}

/* Nav bottom LED strip — nav is position:fixed in styles.css (stacking context already set) */
.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent               0%,
    rgba(212, 175, 55, 0.2)   15%,
    rgba(212, 175, 55, 0.6)   40%,
    rgba(255, 240, 120, 0.8)  50%,
    rgba(139, 0, 0, 0.55)     65%,
    rgba(212, 175, 55, 0.2)   85%,
    transparent               100%
  );
  background-size: 250% 100%;
  animation: nav-led 4s linear infinite;
  will-change: background-position;
  pointer-events: none;
}

@keyframes nav-led {
  0%   { background-position: 150% 0; }
  100% { background-position: -100% 0; }
}

/* Form border glow on focus */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.5),
    0 0 14px rgba(212, 175, 55, 0.18),
    0 2px 8px rgba(0,0,0,0.4) !important;
  outline: none;
}


/* ══════════════════════════════════════════════════════════
   3. BUTTON & CTA PULSE — gold CTAs breathe
   ══════════════════════════════════════════════════════════ */

.btn-primary {
  animation: btn-glow-pulse 3.5s ease-in-out infinite;
  will-change: box-shadow;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes btn-glow-pulse {
  0%, 100% {
    box-shadow:
      0 2px 16px rgba(220, 20, 60, 0.3),
      0 0 10px rgba(212, 175, 55, 0.12);
  }
  50% {
    box-shadow:
      0 4px 28px rgba(255, 23, 68, 0.5),
      0 0 24px rgba(212, 175, 55, 0.32),
      0 0 48px rgba(220, 20, 60, 0.2);
  }
}

.btn-primary:hover {
  animation: none;
  box-shadow:
    0 6px 30px rgba(255, 23, 68, 0.4),
    0 0 28px rgba(212, 175, 55, 0.4),
    0 0 60px rgba(220, 20, 60, 0.25) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98) !important;
}


/* ══════════════════════════════════════════════════════════
   4. SCROLL REVEAL SYSTEM — fade + slide in on scroll
   ══════════════════════════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity  0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-reveal="up"]    { transform: translateY(36px); }
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays for card groups */
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }
[data-reveal-delay="6"] { transition-delay: 0.48s; }


/* ══════════════════════════════════════════════════════════
   5. TEXT SHIMMER — gold sweep across headlines
   ══════════════════════════════════════════════════════════ */

.shimmer-text {
  position: relative;
  display: inline;
  overflow: visible;
}

.shimmer-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent              0%,
    rgba(212, 175, 55, 0.25) 35%,
    rgba(255, 245, 180, 0.55) 50%,
    rgba(212, 175, 55, 0.25) 65%,
    transparent              100%
  );
  transform: skewX(-12deg);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0;
}

.shimmer-text.shimmer-go::after {
  animation: shimmer-sweep 1.4s ease-out forwards;
}

@keyframes shimmer-sweep {
  0%   { left: -100%; opacity: 1; }
  80%  { left: 130%;  opacity: 1; }
  100% { left: 150%;  opacity: 0; }
}


/* ══════════════════════════════════════════════════════════
   6. PARTICLE CANVAS — gold dust field
   ══════════════════════════════════════════════════════════ */

#ambient-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  will-change: transform;
}


/* ══════════════════════════════════════════════════════════
   7. CURSOR TRAIL — warm gold glow follows mouse
   ══════════════════════════════════════════════════════════ */

#cursor-trail {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(212, 175, 55, 0.07) 0%,
    rgba(212, 175, 55, 0.02) 50%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  top: 0;
  left: 0;
}

/* Disable cursor trail on touch/mobile */
@media (hover: none), (pointer: coarse), (max-width: 768px) {
  #cursor-trail { display: none !important; }
}


/* ══════════════════════════════════════════════════════════
   8. LED SECTION DIVIDERS
   ══════════════════════════════════════════════════════════ */

.led-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent              0%,
    rgba(212, 175, 55, 0.1)  10%,
    rgba(212, 175, 55, 0.45) 35%,
    rgba(139, 0, 0, 0.4)     50%,
    rgba(212, 175, 55, 0.45) 65%,
    rgba(212, 175, 55, 0.1)  90%,
    transparent              100%
  );
  background-size: 250% 100%;
  animation: divider-shift 7s linear infinite;
  will-change: background-position;
  display: block;
}

@keyframes divider-shift {
  0%   { background-position: 0% 0; }
  100% { background-position: 250% 0; }
}


/* ══════════════════════════════════════════════════════════
   9. ENHANCED CARD HOVER — lift + warm glow
   ══════════════════════════════════════════════════════════ */

.feature-card,
.price-card,
.ir-card,
.about-block,
.value-item {
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover,
.price-card:hover,
.ir-card:hover,
.about-block:hover,
.value-item:hover {
  animation: none; /* pause LED pulse so hover box-shadow takes effect */
  transform: translateY(-5px);
  box-shadow:
    0 10px 40px rgba(212, 175, 55, 0.12),
    inset 0 0 0 1px rgba(212, 175, 55, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.6);
}


/* ══════════════════════════════════════════════════════════
   10. BODY Z-INDEX SAFETY — keep ambient effects behind content
   ══════════════════════════════════════════════════════════ */

/* Glow pools stay behind all content — fixed nav is already z-index:1000 */
.ambient-glow-pool {
  z-index: 0 !important;
}

/* Particle canvas behind content but visible */
#ambient-particles {
  z-index: 1 !important;
}

/* Cursor trail below nav (1000) and modals */
#cursor-trail {
  z-index: 500 !important;
}
