/* ==========================================================================
   RANA ARAFA - OPTION 2: ULTRA-MODERN HIGH-CONTRAST DESIGN SYSTEM
   High-Brightness Font Colors on All Dark Sections | Outfit + Plus Jakarta Sans
   100% Legible, Vivid Gold Accents & Ultra-Crisp White / Platinum Silver Text
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  /* DARK THEME (Neo-Obsidian, Bright Platinum & Champagne Gold) */
  --bg-primary: #06070a;
  --bg-secondary: #0c0f16;
  --bg-surface: #111520;
  --bg-card: rgba(17, 21, 32, 0.92);
  --bg-card-hover: rgba(26, 32, 48, 0.98);
  --gold-primary: #f5c842;
  --gold-light: #fef08a;
  --gold-dark: #d97706;
  --gold-gradient: linear-gradient(135deg, #fff9db 0%, #fde047 45%, #f59e0b 100%);
  --gold-border: rgba(245, 200, 66, 0.35);
  --gold-glow: 0 0 35px rgba(245, 200, 66, 0.25);
  --text-heading: #ffffff;
  --text-body: #f8fafc;
  --text-muted: #cbd5e1;
  --nav-bg: rgba(6, 7, 10, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.15);
  --border-card: rgba(255, 255, 255, 0.12);

  /* Clean Modern Fonts */
  --font-headline: 'Outfit', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --font-arabic: 'Noto Sans Arabic', sans-serif;
}

/* Base Setup */
* , *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-shadow: none !important;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-body);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.65;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  position: relative;
  text-shadow: none !important;
}

/* Modern Typography Classes */
.font-headline, .font-display, .font-formal {
  font-family: var(--font-headline) !important;
  letter-spacing: -0.01em;
}
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

/* Plain Solid Colors on Text (NO Gradients) */
.gold-gradient-text,
.text-gold-gradient {
  color: #f5c842 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  display: inline-block;
}

/* ==========================================================================
   DEFAULT DARK THEME: ULTRA-BRIGHT HIGH CONTRAST TYPOGRAPHY (PLAIN COLORS)
   (Ensures text is 100% crisp, bright white and plain solid gold on dark sections)
   ========================================================================== */
h1, h2, h3, h4,
.font-headline {
  color: #ffffff !important;
  text-shadow: none !important;
}

p, li {
  color: #f1f5f9 !important;
  text-shadow: none !important;
}

.text-gray-400,
.text-gray-500 {
  color: #cbd5e1 !important;
}

.text-gray-300,
.text-gray-200,
.text-slate-200 {
  color: #f8fafc !important;
}

.text-gold-400,
.text-gold-300,
.text-gold-200 {
  color: #fef08a !important;
  text-shadow: none !important;
}

/* Dark theme glass cards */
.modern-glass-card {
  background: rgba(17, 21, 32, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5) !important;
}

.modern-glass-card h2,
.modern-glass-card h3,
.modern-glass-card h4 {
  color: #ffffff !important;
  text-shadow: none !important;
}

.modern-glass-card p {
  color: #f1f5f9 !important;
  text-shadow: none !important;
}

/* Dark theme bento items */
.bento-item-6 {
  background: rgba(17, 21, 32, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.bento-item-6 h3 {
  color: #ffffff !important;
  text-shadow: none !important;
}

.bento-item-6 p {
  color: #f1f5f9 !important;
  text-shadow: none !important;
}

/* Quote and narrative callouts in dark mode */
.bg-gold-500\/10 {
  background-color: rgba(245, 200, 66, 0.16) !important;
  border-left-color: #fde047 !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

/* Counter boxes in dark mode */
.counter-box .live-counter {
  color: #ffffff !important;
  text-shadow: none !important;
}

.counter-box div[class*="text-gray"] {
  color: #fef08a !important;
  font-weight: 600;
  text-shadow: none !important;
}

/* Table in dark mode */
table thead th {
  color: #fef08a !important;
  background: rgba(255, 255, 255, 0.08) !important;
  text-shadow: none !important;
}

table tbody td {
  color: #f8fafc !important;
  text-shadow: none !important;
}

table tbody tr:hover {
  background-color: rgba(245, 200, 66, 0.1) !important;
}

/* Inputs & forms in dark mode */
input,
textarea,
select {
  background-color: rgba(0, 0, 0, 0.65) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8 !important;
}

label {
  color: #ffffff !important;
}



/* ==========================================================================
   DARK SURFACE ISOLATION: HERO, SLIDES, MODALS, FOOTER, BADGES, ZOOM CARDS
   (FORCED 100% PURE BRIGHT WHITE & LUMINOUS GOLD IN BOTH LIGHT & DARK MODES)
   ========================================================================== */
.dark-surface,
.hero-fullwidth-container,
.hero-fullwidth-slide,
.gallery-card,
.lightbox-overlay,
#showreel-modal,
#whatsapp-modal,
.hero-image-badge,
footer {
  color: #f8fafc !important;
  text-shadow: none !important;
}

/* Pure Brilliant White Titles on all dark surfaces */
.dark-surface h1, .dark-surface h2, .dark-surface h3, .dark-surface h4,
.hero-fullwidth-container h1, .hero-fullwidth-container h2, .hero-fullwidth-container h3, .hero-fullwidth-container h4,
.hero-fullwidth-slide h1, .hero-fullwidth-slide h2, .hero-fullwidth-slide h3, .hero-fullwidth-slide h4,
.gallery-card h1, .gallery-card h2, .gallery-card h3, .gallery-card h4,
.lightbox-overlay h1, .lightbox-overlay h2, .lightbox-overlay h3, .lightbox-overlay h4,
#showreel-modal h1, #showreel-modal h2, #showreel-modal h3, #showreel-modal h4,
#whatsapp-modal h1, #whatsapp-modal h2, #whatsapp-modal h3, #whatsapp-modal h4,
.hero-image-badge h1, .hero-image-badge h2, .hero-image-badge h3, .hero-image-badge h4,
footer h1, footer h2, footer h3, footer h4,
footer .font-headline,
.hero-fullwidth-container .font-headline,
.hero-fullwidth-slide .font-headline {
  color: #ffffff !important;
  text-shadow: none !important;
}

/* Crisp Bright Platinum Silver on paragraphs & descriptions on all dark surfaces */
.dark-surface p,
.hero-fullwidth-container p,
.hero-fullwidth-slide p,
.gallery-card p,
.lightbox-overlay p,
#showreel-modal p,
#whatsapp-modal p,
.hero-image-badge p,
footer p {
  color: #f1f5f9 !important;
  text-shadow: none !important;
}

/* Plain Solid Gold on all dark surfaces */
.dark-surface .text-gold-300, .dark-surface .text-gold-400, .dark-surface .text-gold-200,
.hero-fullwidth-container .text-gold-300, .hero-fullwidth-container .text-gold-400, .hero-fullwidth-container .text-gold-200,
.hero-fullwidth-slide .text-gold-300, .hero-fullwidth-slide .text-gold-400, .hero-fullwidth-slide .text-gold-200,
.gallery-card .text-gold-300, .gallery-card .text-gold-400,
.lightbox-overlay .text-gold-300, .lightbox-overlay .text-gold-400,
#showreel-modal .text-gold-300, #showreel-modal .text-gold-400,
#whatsapp-modal .text-gold-300, #whatsapp-modal .text-gold-400,
.hero-image-badge .text-gold-300, .hero-image-badge .text-gold-400,
footer .text-gold-300, footer .text-gold-400 {
  color: #fef08a !important;
  text-shadow: none !important;
}

/* Hero Glass Buttons on Dark Background */
.hero-fullwidth-slide .btn-modern-glass {
  background: rgba(0, 0, 0, 0.65) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.hero-fullwidth-slide .btn-modern-glass:hover {
  background: rgba(245, 200, 66, 0.3) !important;
  border-color: var(--gold-primary) !important;
  color: #fef08a !important;
}

/* Hero Bottom Tabs on Dark Background (Generous Spacing & Smooth Touch Scrolling) */
.hero-tabs-track {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

@media (min-width: 640px) {
  .hero-tabs-track {
    gap: 16px !important;
  }
}

.hero-tabs-track::-webkit-scrollbar {
  display: none !important;
}

.hero-tab-btn {
  background: rgba(6, 8, 14, 0.8) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  cursor: pointer;
  touch-action: manipulation;
  flex-shrink: 0 !important;
  transition: all 0.25s ease-in-out !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.hero-tab-btn.active, .hero-tab-btn:hover {
  background: rgba(245, 200, 66, 0.22) !important;
  color: #ffffff !important;
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 20px rgba(245, 200, 66, 0.25) !important;
}

.hero-fullwidth-container {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.hero-fullwidth-container::-webkit-scrollbar {
  display: none !important;
}

.slider-progress-bar {
  position: relative !important;
  width: 100% !important;
  height: 3px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
  margin-top: 4px !important;
}

.slider-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #fde047;
  border-radius: 9999px;
  transition: width 7s linear;
}

/* Footer Background & High-Contrast Typography */
footer,
footer.dark-surface {
  background-color: #050608 !important;
  color: #f8fafc !important;
}

footer p,
footer .footer-bio-text,
.footer-bio-text {
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}

footer a {
  color: #f1f5f9 !important;
}

footer a:hover {
  color: #f5c842 !important;
}

footer .text-slate-100,
footer .text-slate-200,
footer .text-slate-300,
footer .text-gray-300,
footer .text-gray-400 {
  color: #f1f5f9 !important;
}

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold-primary);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ==========================================================================
   FULL-WIDTH HERO CINEMATIC SLIDER & RESPONSIVENESS (BRIGHT PICTURE OVERHAUL)
   ========================================================================== */
.hero-fullwidth-container {
  position: relative;
  width: 100%;
  min-height: clamp(620px, 85vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-bottom: 2rem;
}

@media (min-width: 640px) {
  .hero-fullwidth-container {
    min-height: clamp(680px, 88vh, 950px);
    padding-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-fullwidth-container {
    min-height: clamp(720px, 90vh, 1000px);
    padding-bottom: 2rem;
  }
}

.hero-fullwidth-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
  display: flex;
  align-items: center;
}

.hero-fullwidth-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transform-origin: center 15%;
  transform: scale(1);
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
  filter: brightness(0.92) contrast(1.03);
}

.hero-fullwidth-slide.active .hero-bg-img {
  transform: scale(1.06);
}

/* Hero overlay: strong left-side scrim so text is always readable, subject visible right */
.hero-vignette {
  position: absolute;
  inset: 0;
  /* Left-to-right: heavy dark scrim fades to transparent by 70% */
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.50) 40%,
    transparent      70%
  );
  pointer-events: none;
}

/* Mobile: add a bottom-up gradient so text sitting at the bottom stays readable */
@media (max-width: 767px) {
  .hero-vignette {
    background:
      linear-gradient(
        to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.55) 40%,
        transparent      75%
      ),
      linear-gradient(
        to right,
        rgba(0,0,0,0.60) 0%,
        transparent      60%
      );
  }
}

/* Hero text column: constrained left half on desktop so subject has clear right space */
.hero-slide-content {
  max-width: 100%;  /* mobile: full width */
}

@media (min-width: 768px) {
  .hero-slide-content {
    max-width: 45%;
    min-width: 360px; /* prevent over-squishing on mid-range tablets */
  }
}

/* Mobile: anchor text to bottom of hero so subject stays visible above */
@media (max-width: 767px) {
  .hero-fullwidth-slide {
    align-items: flex-end !important;
  }
  .hero-fullwidth-slide > .hero-slide-outer {
    padding-top: 0;
    padding-bottom: 5rem; /* clear of slide tabs */
  }
}

/* Hero headline: fluid size, never bigger than 3.5rem */
.hero-fullwidth-slide h1 {
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
  line-height: 1.14;
}

/* Glassmorphic Panels */
.modern-glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 1.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .modern-glass-card {
    border-radius: 1.5rem;
  }
}

.modern-glass-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--gold-glow);
  transform: translateY(-4px);
}

/* /* Logo Wall */
.logo-item-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  padding: 1.25rem 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.logo-item-wrapper:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}

.brand-logo-img {
  max-height: 44px;
  max-width: 145px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-item-wrapper:hover .brand-logo-img {
  opacity: 1;
  transform: scale(1.06);
  filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.25));
}

/* Transparent Dark Glass Hero Box */
.stage-proof-dark-glass {
  background: rgba(10, 12, 18, 0.32) !important;
  backdrop-filter: blur(14px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  border-radius: 1.75rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-proof-dark-glass:hover {
  border-color: rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 30px rgba(212, 175, 55, 0.15) !important;
}

/* ==========================================================================
   ANIMATED CARDS WITH SLOW ZOOM-IN ON HOVER
   ========================================================================== */
.zoom-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .zoom-card {
    border-radius: 1.5rem;
  }
}

.zoom-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1);
}

.zoom-card:hover .zoom-card-img {
  transform: scale(1.08);
}

.zoom-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,7,10,0) 20%, rgba(6,7,10,0.7) 65%, rgba(6,7,10,0.95) 100%);
  transition: background 0.4s ease;
}

.zoom-card:hover .zoom-card-overlay {
  background: linear-gradient(180deg, rgba(6,7,10,0.1) 10%, rgba(6,7,10,0.8) 60%, rgba(6,7,10,0.98) 100%);
}

/* ==========================================================================
   BENTO GRID (Mobile-First)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .bento-grid {
    gap: 1.5rem;
  }
}

.bento-item-6 { grid-column: span 12; }
@media (min-width: 768px) {
  .bento-item-6 { grid-column: span 6; }
}

/* ==========================================================================
   BUTTONS (Touch-Optimized)
   ========================================================================== */
.btn-modern-primary {
  background: var(--gold-gradient);
  color: #06070a !important;
  font-weight: 700;
  font-family: var(--font-headline);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 4px 25px rgba(245, 200, 66, 0.35);
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .btn-modern-primary {
    padding: 0.85rem 1.85rem;
    gap: 0.5rem;
    min-height: 44px;
  }
}

.btn-modern-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(245, 200, 66, 0.5);
}

.btn-modern-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff !important;
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-family: var(--font-headline);
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}

@media (min-width: 640px) {
  .btn-modern-glass {
    padding: 0.85rem 1.85rem;
  }
}

.btn-modern-glass:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary) !important;
  background: rgba(245, 200, 66, 0.15);
  transform: translateY(-2px);
}

/* ==========================================================================
   SCROLL REVEAL (IntersectionObserver)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

/* ==========================================================================
   SLOW EASING NUMBER COUNTERS
   ========================================================================== */
.live-counter {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: color 0.3s ease;
  color: #ffffff !important;
}

.live-counter.counting-done {
  animation: counterDonePulse 0.6s ease-out;
}

@keyframes counterDonePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); color: var(--gold-light); }
  100% { transform: scale(1); }
}

.slider-progress-bar {
  height: 3px;
  background: rgba(128, 128, 128, 0.25);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.slider-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--gold-gradient);
  transition: width 5.5s linear;
}

/* ==========================================================================
   ROCK-SOLID OFFCANVAS SIDE DRAWER (Mobile Safe-Area Friendly)
   ========================================================================== */
.offcanvas-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: min(420px, 92vw);
  background: #090c14;
  border-left: 1px solid var(--gold-border);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.offcanvas-drawer.open {
  transform: translateX(0) !important;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  color: #f8fafc !important;
  text-decoration: none;
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  min-height: 48px;
}

.drawer-nav-item:hover,
.drawer-nav-item.active {
  background: rgba(245, 200, 66, 0.15);
  border-color: var(--gold-border);
  color: var(--gold-primary) !important;
  transform: translateX(4px);
}

.menu-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff !important;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.25s ease;
  cursor: pointer;
  min-height: 38px;
}

@media (min-width: 640px) {
  .menu-trigger-btn {
    padding: 0.55rem 1.15rem;
    font-size: 0.8rem;
    gap: 0.5rem;
  }
}

.menu-trigger-btn:hover {
  background: rgba(245, 200, 66, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary) !important;
}

.menu-burger-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}

@media (min-width: 640px) {
  .menu-burger-bars {
    gap: 4px;
    width: 16px;
  }
}

.menu-burger-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
}

/* Gallery Track */
.gallery-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .gallery-track {
    gap: 1.5rem;
  }
}

.gallery-card {
  flex: 0 0 280px;
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.35s ease;
}

@media (min-width: 640px) {
  .gallery-card { flex: 0 0 340px; }
}

@media (min-width: 1024px) {
  .gallery-card { flex: 0 0 400px; }
}

.gallery-card:hover {
  transform: translateY(-4px);
}

/* Lightbox Modal */
.lightbox-overlay {
  background: rgba(4, 5, 8, 0.96);
  backdrop-filter: blur(25px);
}

/* ==========================================================================
   ELEGANT SLOW-ROTATING GOLDEN BORDER GLOW ON CARD HOVER (OPTION 2)
   ========================================================================== */
@property --glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes rotate-golden-glow {
  0% {
    --glow-angle: 0deg;
  }
  100% {
    --glow-angle: 360deg;
  }
}

/* Card Target Base */
.modern-glass-card,
.glass-panel:not(.hero-image-badge):not(button):not(.rounded-full):not(nav):not(aside):not(.menu-trigger-btn):not(#drawer-font-select):not(.slider-progress-bar),
.logo-item-wrapper,
.gallery-card,
.bento-item-6,
.bento-item-4,
.bento-item-8,
.bento-item-12,
.golden-glow-card {
  position: relative;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Crisp rotating gold border line */
.modern-glass-card::before,
.glass-panel:not(.hero-image-badge):not(button):not(.rounded-full):not(nav):not(aside):not(.menu-trigger-btn):not(#drawer-font-select):not(.slider-progress-bar)::before,
.logo-item-wrapper::before,
.gallery-card::before,
.bento-item-6::before,
.bento-item-4::before,
.bento-item-8::before,
.bento-item-12::before,
.golden-glow-card::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--glow-angle),
    transparent 0%,
    transparent 45%,
    rgba(212, 175, 55, 0.15) 60%,
    rgba(245, 200, 66, 0.8) 78%,
    rgba(255, 250, 220, 1) 90%,
    rgba(245, 200, 66, 0.85) 96%,
    transparent 100%
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.4s ease;
  animation: rotate-golden-glow 4.5s linear infinite;
  animation-play-state: paused;
}

/* Soft radiant ambient glow halo */
.modern-glass-card::after,
.glass-panel:not(.hero-image-badge):not(button):not(.rounded-full):not(nav):not(aside):not(.menu-trigger-btn):not(#drawer-font-select):not(.slider-progress-bar)::after,
.logo-item-wrapper::after,
.gallery-card::after,
.bento-item-6::after,
.bento-item-4::after,
.bento-item-8::after,
.bento-item-12::after,
.golden-glow-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--glow-angle),
    transparent 0%,
    transparent 50%,
    rgba(212, 175, 55, 0.1) 65%,
    rgba(245, 200, 66, 0.45) 80%,
    rgba(255, 240, 160, 0.75) 90%,
    rgba(245, 200, 66, 0.45) 97%,
    transparent 100%
  );
  filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s ease;
  animation: rotate-golden-glow 4.5s linear infinite;
  animation-play-state: paused;
}

/* Trigger on hover */
.modern-glass-card:hover::before,
.glass-panel:not(.hero-image-badge):not(button):not(.rounded-full):not(nav):not(aside):not(.menu-trigger-btn):not(#drawer-font-select):not(.slider-progress-bar):hover::before,
.logo-item-wrapper:hover::before,
.gallery-card:hover::before,
.bento-item-6:hover::before,
.bento-item-4:hover::before,
.bento-item-8:hover::before,
.bento-item-12:hover::before,
.golden-glow-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}

.modern-glass-card:hover::after,
.glass-panel:not(.hero-image-badge):not(button):not(.rounded-full):not(nav):not(aside):not(.menu-trigger-btn):not(#drawer-font-select):not(.slider-progress-bar):hover::after,
.logo-item-wrapper:hover::after,
.gallery-card:hover::after,
.bento-item-6:hover::after,
.bento-item-4:hover::after,
.bento-item-8:hover::after,
.bento-item-12:hover::after,
.golden-glow-card:hover::after {
  opacity: 0.8;
  animation-play-state: running;
}

/* =========================================================================
   ENGAGEMENTS TABLE AUTO-FIT & SCREEN-ADJUST (NO SCROLLBAR)
   ========================================================================= */
.engagements-table-container {
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
}

.engagements-responsive-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

@media (min-width: 768px) {
  .engagements-responsive-table {
    table-layout: fixed;
  }
}

.engagements-responsive-table th,
.engagements-responsive-table td {
  padding: 0.875rem 0.75rem;
  vertical-align: middle;
  word-break: normal;
  overflow-wrap: break-word;
}

@media (min-width: 1024px) {
  .engagements-responsive-table th,
  .engagements-responsive-table td {
    padding: 1rem 1.25rem;
  }
}

/* Mobile Adaptive Card Layout (< 640px) */
@media (max-width: 639px) {
  .engagements-responsive-table,
  .engagements-responsive-table tbody,
  .engagements-responsive-table tr,
  .engagements-responsive-table td {
    display: block;
    width: 100% !important;
  }

  .engagements-responsive-table thead {
    display: none;
  }

  .engagements-responsive-table tr {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .engagements-responsive-table td {
    padding: 0.25rem 0 !important;
    border: none !important;
  }
  
  .engagements-responsive-table td[data-label]::before {
    content: attr(data-label) ": ";
    font-family: ui-monospace, monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f5c842;
    font-weight: 600;
    margin-right: 0.5rem;
  }
  
  .engagements-responsive-table td.mobile-title-cell {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  
  .engagements-responsive-table td.mobile-title-cell::before {
    display: none;
  }
}


/* ===== Hero: subject on the right, text on the left (slides 1-3 only) ===== */
@media (min-width: 768px) {

  /* blurred copy of the slide's own photo = color-matched backdrop */
  .hero-shift::before {
    content: "";
    position: absolute;
    inset: -10%;
    background: var(--hero-bg) center / cover no-repeat;
    filter: blur(70px) saturate(1.15) brightness(.55);
    transform: scale(1.2);
    z-index: 0;
    pointer-events: none;
  }

  /* soft darkening so text stays readable, on top of the blur */
  .hero-shift::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(0,0,0,.55) 0%,
      rgba(0,0,0,.25) 40%,
      transparent     70%
    );
    z-index: 0;
    pointer-events: none;
  }

  .hero-shift .hero-bg-img {
    inset: 0 0 0 auto;
    width: 60%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15% !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%);
    mask-image: linear-gradient(to right, transparent 0%, #000 35%);
    z-index: 1;
  }

  /* the old vignette is replaced by ::after above, on shifted slides only */
  .hero-shift .hero-vignette { display: none; }
}
