/**
 * OBM STUDIO - AURORA LUXURY DESIGN SYSTEM v2.0
 * Full storytelling homepage with scroll-reveal, section variance, themes
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,600&display=swap');

:root {
  --bg-primary: #020407;
  --bg-surface: #070d18;
  --glass-bg: rgba(7, 13, 24, 0.65);
  --glass-border: rgba(255, 255, 255, 0.09);

  /* ── Dynamic theme variables (set by theme.js) ── */
  --theme-accent:    #00d2ff;
  --theme-accent2:   #3a7bd5;
  --theme-accentRGB: 0,210,255;

  /* ── Static palette ── */
  --cyan: var(--theme-accent);     /* follows theme */
  --blue: #3a7bd5;
  --purple: #a78bfa;
  --gold: #ffb703;
  --amber: #fb8500;
  --rose: #f43f5e;
  --emerald: #10b981;

  /* ── Gradients (primary one follows theme) ── */
  --grad-cyan: linear-gradient(135deg, var(--theme-accent) 0%, var(--theme-accent2) 60%, #7f00ff 100%);
  --grad-gold: linear-gradient(135deg, #ffe57f 0%, #ffb703 50%, #fb8500 100%);
  --grad-aurora: linear-gradient(135deg, var(--theme-accent) 0%, #a78bfa 50%, #ffb703 100%);
  --grad-story: linear-gradient(135deg, #f43f5e 0%, #a78bfa 50%, var(--theme-accent) 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(var(--theme-accentRGB),0.4) 0%, rgba(167,139,250,0.2) 50%, rgba(255,183,3,0.3) 100%);

  --r-sm: 10px; --r-md: 18px; --r-lg: 30px; --r-full: 9999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-primary);
  color: #f8fafc;
  line-height: 1.7;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 { font-family: 'Outfit', sans-serif; letter-spacing: -0.02em; line-height: 1.15; }
.serif { font-family: 'Cormorant Garamond', serif; }

/* ═══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
═══════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal="left"] { transform: translateX(-60px) translateY(0); }
[data-reveal="right"] { transform: translateX(60px) translateY(0); }
[data-reveal="scale"] { transform: scale(0.88) translateY(20px); }
[data-reveal="blur"] { opacity: 0; filter: blur(12px); transform: translateY(30px); }
[data-reveal].revealed {
  opacity: 1;
  transform: translate(0,0) scale(1);
  filter: none;
}

/* ═══════════════════════════════════════
   ANIMATED AURORA MESH
═══════════════════════════════════════ */
.aurora-mesh {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.aurora-blob-1 {
  top: -15%; left: 10%; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,210,255,0.18) 0%, rgba(58,123,213,0.06) 50%, transparent 70%);
  animation: blob1 22s ease-in-out infinite alternate;
}
.aurora-blob-2 {
  top: 20%; right: -12%; width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(167,139,250,0.15) 0%, rgba(127,0,255,0.05) 50%, transparent 70%);
  animation: blob2 28s ease-in-out infinite alternate;
}
.aurora-blob-3 {
  bottom: 10%; left: 0%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,183,3,0.12) 0%, rgba(244,63,94,0.04) 50%, transparent 70%);
  animation: blob3 18s ease-in-out infinite alternate;
}
.aurora-blob-4 {
  top: 60%; left: 30%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
  animation: blob1 32s ease-in-out infinite alternate-reverse;
}

@keyframes blob1 { 0%{transform:translate(0,0) scale(1)} 50%{transform:translate(60px,50px) scale(1.12)} 100%{transform:translate(-40px,-30px) scale(0.92)} }
@keyframes blob2 { 0%{transform:translate(0,0)} 50%{transform:translate(-50px,60px) scale(1.1)} 100%{transform:translate(30px,-40px)} }
@keyframes blob3 { 0%{transform:translate(0,0) scale(1)} 50%{transform:translate(50px,-40px) scale(1.08)} 100%{transform:translate(-30px,30px) scale(0.98)} }

/* ═══════════════════════════════════════
   FLOATING PILL NAV
═══════════════════════════════════════ */
.floating-nav-container {
  position: fixed; top: 18px; left: 0; right: 0;
  z-index: 999; display: flex; justify-content: center; padding: 0 16px;
}

.floating-nav-pill {
  width: 100%; max-width: 1380px;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid transparent;
  background-image: linear-gradient(rgba(4,7,14,0.85),rgba(4,7,14,0.85)), var(--gradient-card-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: var(--r-full);
  padding: 8px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: all 0.35s var(--ease);
}
.floating-nav-pill:hover {
  box-shadow: 0 22px 55px rgba(0,0,0,0.8), 0 0 40px rgba(0,210,255,0.18);
}

/* ═══════════════════════════════════════
   ICON-FIRST HOVER EXPAND NAV LINKS
═══════════════════════════════════════ */
/* ═══════════════════════════════════════
   ICON-FIRST HOVER EXPAND NAV LINKS
═══════════════════════════════════════ */
.nav-link {
  width: 36px; height: 36px;
  padding: 0; border-radius: var(--r-full);
  white-space: nowrap !important;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer; position: relative; overflow: hidden;
  flex-shrink: 0; color: #94a3b8;
}

.nav-link i, .nav-link svg {
  width: 16px; height: 16px; flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-link .nav-label {
  display: inline-block;
  max-width: 0; opacity: 0; transform: translateX(-8px);
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, transform 0.35s ease, margin-left 0.35s ease;
  white-space: nowrap; pointer-events: none; font-weight: 700;
  margin-left: 0; font-size: 0.825rem;
}

/* Hover OR Active state expands label smoothly into a full pill! */
.nav-link:hover .nav-label,
.nav-link.active .nav-label {
  max-width: 140px; opacity: 1; transform: translateX(0);
  margin-left: 6px;
}

.nav-link:hover,
.nav-link.active {
  width: auto;
  padding: 0 14px;
  height: 36px;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link:hover i, .nav-link:hover svg {
  transform: scale(1.1); color: #ffffff;
}

.nav-link.active {
  color: var(--theme-accent, #00d2ff);
  background: rgba(var(--theme-accentRGB, 0, 210, 255), 0.15);
  border-color: rgba(var(--theme-accentRGB, 0, 210, 255), 0.35);
  box-shadow: 0 0 20px rgba(var(--theme-accentRGB, 0, 210, 255), 0.25);
}

.nav-link.active i, .nav-link.active svg {
  color: var(--theme-accent, #00d2ff);
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-cyan);
  color: #020407; font-weight: 800; font-size: 0.825rem;
  padding: 10px 22px; border-radius: var(--r-full); border: none;
  cursor: pointer; text-decoration: none; position: relative; overflow: hidden;
  white-space: nowrap !important; flex-shrink: 0;
  box-shadow: 0 4px 28px rgba(0,210,255,0.35);
  transition: all 0.35s var(--ease);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 40px rgba(0,210,255,0.55); }
.btn-primary:hover::after { opacity: 1; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  color: #f8fafc; font-weight: 600; font-size: 0.9rem;
  padding: 14px 30px; border-radius: var(--r-full);
  border: 1px solid transparent;
  background-image: linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0.05)), var(--gradient-card-border);
  background-origin: border-box; background-clip: padding-box, border-box;
  cursor: pointer; text-decoration: none; backdrop-filter: blur(12px);
  transition: all 0.35s var(--ease);
}
.btn-ghost:hover { background-image: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1)), var(--grad-cyan); color: #fff; transform: translateY(-2px); }

.btn-gold {
  background: var(--grad-gold);
  color: #020407;
  box-shadow: 0 4px 28px rgba(255,183,3,0.35);
}
.btn-gold:hover { box-shadow: 0 10px 40px rgba(255,183,3,0.55); }

/* ═══════════════════════════════════════
   GLASS CARDS (GRADIENT BORDER)
═══════════════════════════════════════ */
.glass-card {
  position: relative;
  background: rgba(7,13,24,0.65);
  backdrop-filter: blur(24px);
  border: 1px solid transparent;
  background-image: linear-gradient(rgba(7,13,24,0.7),rgba(7,13,24,0.7)), var(--gradient-card-border);
  background-origin: border-box; background-clip: padding-box, border-box;
  border-radius: var(--r-lg);
  transition: all 0.45s var(--ease);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.glass-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 130px;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
.glass-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 22px 55px rgba(0,0,0,0.6), 0 0 35px rgba(0,210,255,0.18); }

/* ═══════════════════════════════════════
   TEXT GRADIENTS
═══════════════════════════════════════ */
.grad-cyan { background: var(--grad-cyan); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 25px rgba(0,210,255,0.35)); }
.grad-gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 25px rgba(255,183,3,0.35)); }
.grad-aurora { background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.grad-story { background: var(--grad-story); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ═══════════════════════════════════════
   BADGES
═══════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: var(--r-full);
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em;
}
.badge-cyan { background: rgba(0,210,255,0.1); border: 1px solid rgba(0,210,255,0.3); color: var(--cyan); box-shadow: 0 0 18px rgba(0,210,255,0.15); }
.badge-gold { background: rgba(255,183,3,0.1); border: 1px solid rgba(255,183,3,0.3); color: var(--gold); box-shadow: 0 0 18px rgba(255,183,3,0.15); }
.badge-purple { background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.3); color: var(--purple); box-shadow: 0 0 18px rgba(167,139,250,0.15); }
.badge-rose { background: rgba(244,63,94,0.1); border: 1px solid rgba(244,63,94,0.3); color: var(--rose); box-shadow: 0 0 18px rgba(244,63,94,0.15); }

/* ═══════════════════════════════════════
   SECTION DIVIDERS & VISUAL VARIANCE
═══════════════════════════════════════ */
.section-hero { min-height: 100vh; display: flex; align-items: center; position: relative; z-index: 10; }
.section-story {
  position: relative; z-index: 10;
  background: linear-gradient(180deg, transparent 0%, rgba(15,5,40,0.6) 30%, rgba(40,10,15,0.5) 70%, transparent 100%);
}
.section-services {
  position: relative; z-index: 10;
  background: linear-gradient(180deg, transparent 0%, rgba(0,20,40,0.7) 50%, transparent 100%);
}
.section-awards {
  position: relative; z-index: 10;
  background: linear-gradient(135deg, rgba(255,183,3,0.05) 0%, rgba(167,139,250,0.03) 50%, rgba(0,210,255,0.04) 100%);
  border-top: 1px solid rgba(255,183,3,0.15);
  border-bottom: 1px solid rgba(0,210,255,0.15);
}
.section-portfolio {
  position: relative; z-index: 10;
  background: linear-gradient(180deg, transparent 0%, rgba(5,0,20,0.65) 50%, transparent 100%);
}
.section-cta {
  position: relative; z-index: 10;
  background: linear-gradient(135deg, rgba(0,210,255,0.08) 0%, rgba(167,139,250,0.06) 50%, rgba(255,183,3,0.05) 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Story Timeline */
.story-line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(167,139,250,0.5) 20%, rgba(0,210,255,0.5) 80%, transparent);
  transform: translateX(-50%);
}
.story-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad-aurora);
  box-shadow: 0 0 20px rgba(167,139,250,0.6);
  flex-shrink: 0;
}

/* Service Icon Banners */
.svc-banner {
  height: 160px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  border-radius: calc(var(--r-lg) - 2px) calc(var(--r-lg) - 2px) 0 0;
}
.svc-banner-cyan { background: radial-gradient(circle at 50% 50%, rgba(0,210,255,0.22) 0%, rgba(58,123,213,0.08) 50%, rgba(7,13,24,0.95) 90%); }
.svc-banner-purple { background: radial-gradient(circle at 50% 50%, rgba(167,139,250,0.22) 0%, rgba(127,0,255,0.08) 50%, rgba(7,13,24,0.95) 90%); }
.svc-banner-gold { background: radial-gradient(circle at 50% 50%, rgba(255,183,3,0.22) 0%, rgba(251,133,0,0.08) 50%, rgba(7,13,24,0.95) 90%); }
.svc-banner-rose { background: radial-gradient(circle at 50% 50%, rgba(244,63,94,0.22) 0%, rgba(180,0,80,0.08) 50%, rgba(7,13,24,0.95) 90%); }
.svc-banner-emerald { background: radial-gradient(circle at 50% 50%, rgba(16,185,129,0.22) 0%, rgba(0,120,80,0.08) 50%, rgba(7,13,24,0.95) 90%); }

/* Award Card */
.award-card {
  background: rgba(7,13,24,0.5);
  border: 1px solid rgba(255,183,3,0.2);
  border-radius: var(--r-md);
  padding: 24px;
  text-align: center;
  transition: all 0.35s var(--ease);
}
.award-card:hover {
  border-color: rgba(255,183,3,0.5);
  box-shadow: 0 0 30px rgba(255,183,3,0.2);
  transform: translateY(-4px);
}

/* Counter Glow Stat */
.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

/* ═══════════════════════════════════════
   HERO COUNTER ANIMATION
═══════════════════════════════════════ */
@keyframes countUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.count-up { animation: countUp 0.8s var(--ease) forwards; }

/* ═══════════════════════════════════════
   HORIZONTAL SCROLLING SECTION
═══════════════════════════════════════ */
.scroll-track {
  display: flex; gap: 24px;
  animation: scrollTrack 30s linear infinite;
  width: max-content;
}
.scroll-track:hover { animation-play-state: paused; }
@keyframes scrollTrack { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ═══════════════════════════════════════
   DYNAMIC THEME SWITCHER (PORTFOLIO PAGE)
═══════════════════════════════════════ */
.theme-switcher-bar {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px; border-radius: var(--r-md);
  backdrop-filter: blur(12px);
}
.theme-dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.theme-dot:hover { transform: scale(1.2); }
.theme-dot.active { border-color: #fff; box-shadow: 0 0 14px currentColor; transform: scale(1.15); }

/* ═══════════════════════════════════════
   MODAL OVERLAY
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(2,4,7,0.88);
  backdrop-filter: blur(24px);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
  background: #070d18;
  border: 1px solid transparent;
  background-image: linear-gradient(#070d18,#070d18), var(--gradient-card-border);
  background-origin: border-box; background-clip: padding-box, border-box;
  border-radius: var(--r-lg); width: 90%; max-width: 460px; padding: 36px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.9), 0 0 50px rgba(0,210,255,0.25);
  transform: scale(0.9); transition: transform 0.35s var(--ease);
}
.modal-overlay.active .modal-box { transform: scale(1); }

/* Toast Engine */
.toast-container {
  position: fixed; z-index: 99999;
  display: flex; flex-direction: column; gap: 12px;
  max-width: 420px; width: calc(100% - 32px);
  pointer-events: none;
}
.toast-pos-top-right { top: 24px; right: 24px; }
.toast-pos-top-left { top: 24px; left: 24px; }
.toast-pos-top-center { top: 24px; left: 50%; transform: translateX(-50%); }
.toast-pos-bottom-right { bottom: 24px; right: 24px; }
.toast-pos-bottom-left { bottom: 24px; left: 24px; }
.toast-pos-bottom-center { bottom: 24px; left: 50%; transform: translateX(-50%); }
.toast-item {
  position: relative; pointer-events: auto; overflow: hidden;
  border-radius: var(--r-md);
  background: rgba(7,13,24,0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 15px 40px rgba(0,0,0,0.7);
  opacity: 0; transform: translateY(20px) scale(0.92);
  transition: all 0.35s var(--ease);
}
.toast-item.toast-show { opacity: 1; transform: translateY(0) scale(1); }
.toast-item.toast-hide { opacity: 0; transform: translateY(-15px) scale(0.95); }
.toast-body { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.toast-icon-box { flex-shrink: 0; }
.toast-content { flex-grow: 1; }
.toast-title { font-family: 'Outfit',sans-serif; font-size: 0.95rem; font-weight: 700; color: #fff; line-height: 1.2; }
.toast-msg { font-size: 0.8rem; color: #94a3b8; margin-top: 3px; line-height: 1.4; }
.toast-close-btn { background: none; border: none; color: #64748b; font-size: 1.4rem; cursor: pointer; padding: 0 4px; }
.toast-close-btn:hover { color: #fff; }
.toast-progress-bar { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; transform-origin: left; animation: toastProg linear forwards; }
@keyframes toastProg { from{transform:scaleX(1)} to{transform:scaleX(0)} }
.toast-theme-sapphire { border-color: rgba(0,210,255,0.4); box-shadow: 0 8px 30px rgba(0,210,255,0.25); }
.toast-theme-sapphire .toast-progress-bar { background: linear-gradient(90deg,#00d2ff,#3a7bd5); }
.toast-theme-gold { border-color: rgba(255,183,3,0.45); box-shadow: 0 8px 30px rgba(255,183,3,0.25); }
.toast-theme-gold .toast-progress-bar { background: linear-gradient(90deg,#ffb703,#fb8500); }
.toast-theme-success { border-color: rgba(52,211,153,0.45); }
.toast-theme-success .toast-progress-bar { background: linear-gradient(90deg,#34d399,#059669); }
.toast-theme-error { border-color: rgba(248,113,113,0.45); }
.toast-theme-error .toast-progress-bar { background: linear-gradient(90deg,#f87171,#dc2626); }
.toast-theme-warning { border-color: rgba(251,191,36,0.45); }
.toast-theme-warning .toast-progress-bar { background: linear-gradient(90deg,#fbbf24,#d97706); }
.toast-theme-purple { border-color: rgba(167,139,250,0.45); box-shadow: 0 8px 30px rgba(167,139,250,0.25); }
.toast-theme-purple .toast-progress-bar { background: linear-gradient(90deg,#a78bfa,#7c3aed); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--theme-accent); }

/* ════════════════════════════════════════
   THEME TRANSITION — smooth across all pages
════════════════════════════════════════ */
body,
.aurora-blob, .aurora-blob-1, .aurora-blob-2, .aurora-blob-3, .aurora-blob-4,
.liquid-blob-1, .liquid-blob-2, .liquid-blob-3 {
  transition: background-color 0.6s ease, background 0.6s ease;
}

/* ── Theme Switcher Pill (shared nav) ── */
.global-theme-switcher {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 8px; border-radius: var(--r-full);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.theme-mode-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(0,0,0,0.35); border-radius: var(--r-full);
  padding: 2px; border: 1px solid rgba(255,255,255,0.08);
}

.mode-toggle-btn {
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.6);
  background: transparent; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  transition: all 0.25s ease; white-space: nowrap;
}
.mode-toggle-btn:hover { color: #ffffff; }
.mode-toggle-btn.active {
  background: var(--theme-accent, #3b82f6); color: #ffffff;
  box-shadow: 0 2px 10px rgba(var(--theme-accentRGB, 59,130,246), 0.4);
}

.theme-color-dots {
  display: flex; align-items: center; gap: 5px;
}

.theme-switcher-dot {
  width: 18px; height: 18px; border-radius: 50%;
  cursor: pointer; border: 2px solid rgba(255,255,255,0.15);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  position: relative; flex-shrink: 0;
}
.theme-switcher-dot:hover { transform: scale(1.2); }
.theme-switcher-dot.ring-2 {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
  transform: scale(1.15);
}

/* ── accent-colored elements that auto-update ── */
.btn-primary { background: var(--grad-cyan); }
.nav-link.active { color: var(--theme-accent); background: rgba(var(--theme-accentRGB),0.1); border-color: rgba(var(--theme-accentRGB),0.25); box-shadow: 0 0 18px rgba(var(--theme-accentRGB),0.2); }
.badge-cyan { color: var(--theme-accent); background: rgba(var(--theme-accentRGB),0.1); border-color: rgba(var(--theme-accentRGB),0.3); box-shadow: 0 0 18px rgba(var(--theme-accentRGB),0.15); }
.grad-cyan { background: var(--grad-cyan); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 25px rgba(var(--theme-accentRGB),0.35)); }

/* ════════════════════════════════════════
   LIGHT THEME OVERRIDES (Pearl White)
════════════════════════════════════════ */
html.theme-light body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* ── Typography & Text Contrast ── */
html.theme-light h1:not(.grad-cyan):not(.grad-gold):not(.grad-aurora):not(.grad-story):not(.text-white-force),
html.theme-light h2:not(.grad-cyan):not(.grad-gold):not(.grad-aurora):not(.grad-story):not(.text-white-force),
html.theme-light h3:not(.grad-cyan):not(.grad-gold):not(.grad-aurora):not(.grad-story):not(.text-white-force),
html.theme-light h4:not(.grad-cyan):not(.grad-gold):not(.grad-aurora):not(.grad-story):not(.text-white-force),
html.theme-light .text-white:not(.btn-primary *):not(.btn-primary):not(.text-white-force) {
  color: #0f172a !important;
}

.text-white-force,
html.theme-light .text-white-force,
html.theme-light #authBtnText,
html.theme-light .btn-primary *,
html.theme-light button[type="submit"] * {
  color: #ffffff !important;
}

html.theme-light p:not(.btn-primary *),
html.theme-light .text-slate-100:not(.btn-primary *),
html.theme-light .text-slate-200:not(.btn-primary *),
html.theme-light .text-slate-300:not(.btn-primary *) {
  color: #334155 !important;
}

html.theme-light .text-slate-400:not(.btn-primary *),
html.theme-light .text-slate-500:not(.btn-primary *) {
  color: #64748b !important;
}

/* ── Logo Text Light Mode Contrast ── */
.nav-logo-text {
  background: linear-gradient(to right, #ffffff 0%, #cbd5e1 50%, var(--theme-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.theme-light .nav-logo-text {
  background: linear-gradient(to right, #0f172a 0%, #334155 50%, var(--theme-accent) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ── Floating Nav Pill ── */
html.theme-light .floating-nav-pill {
  background: rgba(255, 255, 255, 0.92) !important;
  background-image: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), var(--gradient-card-border) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(37, 99, 235, 0.1) !important;
}
html.theme-light .floating-nav-pill .nav-link,
html.theme-light .floating-nav-pill .nav-link .nav-label,
html.theme-light .nav-link .nav-label {
  color: #475569 !important;
  font-weight: 700 !important;
}
html.theme-light .floating-nav-pill .nav-link i,
html.theme-light .floating-nav-pill .nav-link svg {
  color: #475569 !important;
}
html.theme-light .floating-nav-pill .nav-link:hover {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}
html.theme-light .floating-nav-pill .nav-link:hover .nav-label,
html.theme-light .nav-link:hover .nav-label {
  color: #0f172a !important;
  font-weight: 800 !important;
}
html.theme-light .floating-nav-pill .nav-link:hover i,
html.theme-light .floating-nav-pill .nav-link:hover svg,
html.theme-light .nav-link:hover i,
html.theme-light .nav-link:hover svg {
  color: #0f172a !important;
}
html.theme-light .floating-nav-pill .nav-link.active {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(var(--theme-accentRGB), 0.35) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}
html.theme-light .floating-nav-pill .nav-link.active .nav-label,
html.theme-light .nav-link.active .nav-label {
  color: #0f172a !important;
}
html.theme-light .floating-nav-pill .nav-link.active i,
html.theme-light .floating-nav-pill .nav-link.active svg {
  color: var(--theme-accent) !important;
}

html.theme-light .global-theme-switcher {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
html.theme-light .theme-mode-toggle {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
html.theme-light .mode-toggle-btn {
  color: #64748b !important;
}
html.theme-light .mode-toggle-btn.active {
  color: #ffffff !important;
  background: var(--theme-accent) !important;
}

/* ── Glass Cards ── */
html.theme-light .glass-card {
  background: rgba(255, 255, 255, 0.9) !important;
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), var(--gradient-card-border) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06), 0 0 25px rgba(37, 99, 235, 0.05) !important;
}
html.theme-light .glass-card::before {
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 70%) !important;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
html.theme-light .badge {
  background: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
}
html.theme-light .badge-gold {
  color: #b45309 !important;
  border-color: rgba(217, 119, 6, 0.4) !important;
  background: #fffbeb !important;
}
html.theme-light .badge-cyan {
  color: #0369a1 !important;
  border-color: rgba(14, 165, 233, 0.4) !important;
  background: #f0f9ff !important;
}
html.theme-light .badge-purple {
  color: #6d28d9 !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  background: #f5f3ff !important;
}
html.theme-light .badge-rose {
  color: #be123c !important;
  border-color: rgba(244, 63, 94, 0.4) !important;
  background: #fff1f2 !important;
}

/* ── Join Live Event Gate & Stream Light Theme Overrides ── */
html.theme-light .gate-card {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1), 0 0 50px rgba(var(--theme-accentRGB), 0.1) !important;
}
html.theme-light .gate-card h1 {
  color: #0f172a !important;
}
html.theme-light .gate-card p {
  color: #475569 !important;
}
html.theme-light .code-char {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html.theme-light .code-char:focus,
html.theme-light .code-char.filled {
  background: rgba(var(--theme-accentRGB), 0.08) !important;
  border-color: var(--theme-accent) !important;
  color: #0f172a !important;
}
html.theme-light .gate-demo-box {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}
html.theme-light .gate-demo-box p {
  color: #64748b !important;
}
html.theme-light .chat-panel {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}
html.theme-light .chat-header span {
  color: #0f172a !important;
}
html.theme-light .chat-bubble {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}
html.theme-light .chat-bubble .chat-text {
  color: #1e293b !important;
}
html.theme-light .chat-bubble .chat-time {
  color: #64748b !important;
}
html.theme-light .chat-input-bar {
  border-top-color: #e2e8f0 !important;
}
html.theme-light .chat-input {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html.theme-light .chat-input::placeholder {
  color: #94a3b8 !important;
}
html.theme-light .event-info-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}
html.theme-light .event-info-card span.text-white,
html.theme-light .event-info-card p.text-slate-300 {
  color: #0f172a !important;
}
html.theme-light #event-title {
  color: #0f172a !important;
}

/* ── Primary & Active Gradient Buttons — FORCE CRISP WHITE TEXT ── */
html.theme-light .btn-primary,
html.theme-light .btn-primary *,
html.theme-light .filter-btn.active,
html.theme-light .filter-btn.active * {
  color: #ffffff !important;
}

/* ── Ghost Buttons ── */
html.theme-light .btn-ghost {
  color: #0f172a !important;
  background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), var(--gradient-card-border) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
html.theme-light .btn-ghost:hover {
  background-image: linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 1)), var(--grad-cyan) !important;
}

/* ── Sections Visual Variance ── */
html.theme-light .section-story {
  background: linear-gradient(180deg, transparent 0%, rgba(241, 245, 249, 0.9) 30%, rgba(248, 250, 252, 0.9) 70%, transparent 100%) !important;
}
html.theme-light .section-services {
  background: linear-gradient(180deg, transparent 0%, rgba(241, 245, 249, 0.9) 50%, transparent 100%) !important;
}
html.theme-light .section-awards {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(167, 139, 250, 0.04) 100%) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
html.theme-light .section-portfolio {
  background: linear-gradient(180deg, transparent 0%, rgba(241, 245, 249, 0.9) 50%, transparent 100%) !important;
}
html.theme-light .section-cta {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(167, 139, 250, 0.06) 100%) !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

/* ── Service Banner Tops ── */
html.theme-light .svc-banner-cyan { background: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.25) 0%, rgba(255, 255, 255, 0.95) 90%) !important; }
html.theme-light .svc-banner-purple { background: radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.25) 0%, rgba(255, 255, 255, 0.95) 90%) !important; }
html.theme-light .svc-banner-gold { background: radial-gradient(circle at 50% 50%, rgba(255, 183, 3, 0.25) 0%, rgba(255, 255, 255, 0.95) 90%) !important; }
html.theme-light .svc-banner-rose { background: radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.25) 0%, rgba(255, 255, 255, 0.95) 90%) !important; }
html.theme-light .svc-banner-emerald { background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.25) 0%, rgba(255, 255, 255, 0.95) 90%) !important; }

/* ── Award Cards & Marquee ── */
html.theme-light .award-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}
html.theme-light .scroll-track span {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #334155 !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ── Inactive Filter Buttons ── */
html.theme-light .filter-btn:not(.active) {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}
html.theme-light .filter-btn:not(.active):hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* ── Dark Slate Box Overrides (Quote card, option cards, total bar) ── */
html.theme-light [class*="bg-slate-900"],
html.theme-light [class*="bg-slate-950"],
html.theme-light [class*="bg-slate-800"] {
  background-color: rgba(255, 255, 255, 0.9) !important;
  background-image: none !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

html.theme-light [class*="from-amber-950"] {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.08) !important;
}

html.theme-light .text-amber-200\/80,
html.theme-light .text-amber-200\/60,
html.theme-light .text-amber-300 {
  color: #92400e !important;
}

html.theme-light .text-amber-400 {
  color: #d97706 !important;
}

/* ── Modal & Forms ── */
html.theme-light .modal-box {
  background: #ffffff !important;
  background-image: linear-gradient(#ffffff, #ffffff), var(--gradient-card-border) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15) !important;
}
html.theme-light input,
html.theme-light select,
html.theme-light textarea {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
html.theme-light input::placeholder {
  color: #94a3b8 !important;
}

/* ── Footer ── */
html.theme-light footer {
  background-color: #f1f5f9 !important;
  border-top-color: #e2e8f0 !important;
  color: #64748b !important;
}
html.theme-light footer a {
  color: #475569 !important;
}
html.theme-light footer a:hover {
  color: #0f172a !important;
}

/* ── Global Theme Switcher Pill ── */
html.theme-light .global-theme-switcher {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
html.theme-light .global-theme-switcher label {
  color: #64748b !important;
}

/* ── Toast Notifications Light Theme ── */
html.theme-light .toast-item {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12) !important;
}
html.theme-light .toast-title {
  color: #0f172a !important;
}
html.theme-light .toast-msg {
  color: #475569 !important;
}
html.theme-light .toast-close-btn {
  color: #64748b !important;
}
html.theme-light .toast-close-btn:hover {
  color: #0f172a !important;
}

/* ── Chapter & Tab Buttons Light Theme ── */
.chapter-btn-active,
html.theme-light .chapter-btn-active,
html.theme-light .chapter-btn-active * {
  background-color: var(--theme-accent) !important;
  color: #ffffff !important;
}
html.theme-light .chapter-btn:not(.chapter-btn-active) {
  background-color: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}
html.theme-light .chapter-btn:not(.chapter-btn-active):hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

/* ── Responsive Floating Nav Scaling ── */
@media (max-width: 1280px) {
  .floating-nav-pill {
    padding: 6px 14px;
    gap: 8px;
  }
  .nav-link {
    padding: 5px 8px;
    font-size: 0.775rem;
  }
  .global-theme-switcher {
    padding: 3px 6px;
    gap: 3px;
  }
  .theme-switcher-dot {
    width: 16px;
    height: 16px;
  }
  .btn-primary {
    padding: 8px 16px;
    font-size: 0.775rem;
  }
}




