/* Event Square — Royal Hospitality & Wedding Cinema Styles */
@layer base {
  html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background-color: #111412;
    color: #e1e3df;
    font-family: 'Manrope', sans-serif;
  }
  body {
    overscroll-behavior: none;
    overflow-x: hidden;
  }
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #0c0f0d;
}
::-webkit-scrollbar-thumb {
  background: #1d332b;
  border-radius: 4px;
  border: 1px solid rgba(200, 169, 107, 0.25);
}
::-webkit-scrollbar-thumb:hover {
  background: #c8a96b;
}

/* Glassmorphism & Surface Elevation */
.glass-panel {
  background: rgba(16, 36, 31, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 169, 107, 0.25);
}

.gold-border {
  border: 1px solid rgba(200, 169, 107, 0.25);
}

.gold-border-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gold-border-hover:hover {
  border-color: rgba(200, 169, 107, 0.65);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(200, 169, 107, 0.25);
}

/* Metallic Gold Foil Shimmer Sweep */
.gold-shimmer {
  position: relative;
  overflow: hidden;
}
.gold-shimmer::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    65deg,
    transparent 40%,
    rgba(200, 169, 107, 0.12) 50%,
    transparent 60%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}
.gold-shimmer:hover::after {
  transform: rotate(25deg) translateY(100%);
}

/* Subtle Shimmer & Glow Pulses */
@keyframes goldPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(200, 169, 107, 0.25);
  }
  50% {
    box-shadow: 0 0 32px rgba(200, 169, 107, 0.5);
  }
}

.gold-glow {
  animation: goldPulse 4s infinite ease-in-out;
}

/* Atmospheric Ambient Breathing Glow */
@keyframes ambientBreathe {
  0%, 100% {
    opacity: 0.25;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.08);
  }
}

.ambient-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: ambientBreathe 8s infinite ease-in-out;
}

/* Card Smooth Transforms */
.group {
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

/* Image Slow Zoom */
.zoom-frame {
  overflow: hidden;
}
.zoom-frame img {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.zoom-frame:hover img {
  transform: scale(1.06);
}

/* Floating WhatsApp & Call Buttons */
.floating-concierge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Material Symbols Adjustments */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.material-symbols-outlined.fill-1 {
  font-variation-settings: 'FILL' 1;
}

/* Canvas Overlay */
.particles-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Scroll Progress Bar */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #c8a96b, #ffdea0, #e3c282, #c8a96b);
  width: 0%;
  z-index: 999999;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 12px rgba(200, 169, 107, 0.9), 0 0 4px rgba(255, 222, 160, 0.8);
}

/* Top Utility Ribbon Smooth Collapse */
#topUtilityRibbon {
  max-height: 32px;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, border-width 0.25s ease;
  will-change: max-height, opacity;
}

/* Royal Nav Links */
.nav-link-royal {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link-royal::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c8a96b 30%, #e3c282 50%, #c8a96b 70%, transparent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.85;
}
.nav-link-royal:hover::after,
.nav-link-royal.active::after {
  width: 100%;
  left: 0;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, ::after, ::before {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ambient-glow-orb, .gold-shimmer::after {
    animation: none !important;
    display: none !important;
  }
}

/* ===== Cinematic video layer ===== */
.cine-media { position: absolute; inset: 0; overflow: hidden; background: #0c0f0d; }
.cine-media .cine-fallback,
.cine-media .cine-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine-media .cine-video { opacity: 0; transition: opacity 1.2s ease; }
.cine-media .cine-video.is-ready { opacity: 1; }
[data-hero-media] { will-change: transform, opacity; }

/* Letterbox bars for the film section */
.cine-letterbox::before,
.cine-letterbox::after { content: ""; position: absolute; left: 0; right: 0; height: clamp(18px, 4vw, 56px); background: #0c0f0d; z-index: 6; }
.cine-letterbox::before { top: 0; }
.cine-letterbox::after { bottom: 0; }

/* Film grain + vignette for a graded look */
.cine-grade::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(8,12,10,.55) 100%); }

/* Cine Grade Vignette */

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="2"] { transition-delay: .12s; } [data-reveal="3"] { transition-delay: .24s; }

/* Film chapter cards */
.film-card { position: relative; overflow: hidden; border-radius: .5rem; aspect-ratio: 16/10; background: #0c0f0d; border: 1px solid rgba(200,169,107,.25); transition: border-color .4s; }
.film-card:hover { border-color: rgba(200,169,107,.55); }
.film-card .film-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem; z-index: 4; background: linear-gradient(to top, rgba(12,15,13,.92), transparent); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  [data-hero-media] { transform: none !important; opacity: 1 !important; }
}
