/* ==========================================
   COLOR SYSTEM & ROOT VARIABLES
   ========================================== */
:root {
  --bg-dark: #050508;
  --bg-surface: #0e0e14;
  --bg-glass: rgba(14, 14, 20, 0.75);
  --border-color: rgba(255, 255, 255, 0.12);
  --text-main: #ffffff;
  --text-muted: #9a9ab0;
  
  --accent-color: #ff5522;
  --accent-secondary: #ff0055;
  --accent-hover: #e04415;
  --accent-glow: rgba(255, 85, 34, 0.5);
  
  --wave-rgb-1: 255, 85, 34;
  --wave-rgb-2: 255, 0, 85;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="vibrant"] {
  --bg-dark: #08030b;
  --bg-surface: #140818;
  --bg-glass: rgba(20, 8, 24, 0.75);
  --border-color: rgba(255, 42, 141, 0.2);
  
  --accent-color: #ff2a8d;
  --accent-secondary: #9d00ff;
  --accent-hover: #d91c72;
  --accent-glow: rgba(255, 42, 141, 0.5);
  
  --wave-rgb-1: 255, 42, 141;
  --wave-rgb-2: 157, 0, 255;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.6s var(--transition-smooth);
}

/* Background Canvas Waves */
#waveCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ==========================================
   ADVANCED ORBITAL PRELOADER
   ========================================== */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #030305;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s var(--transition-smooth), visibility 0.8s;
}

.loader-container {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.ring-1 {
  width: 90px;
  height: 90px;
  border-top-color: var(--accent-color);
  animation: spinRing 1.2s infinite linear;
}
.ring-2 {
  width: 65px;
  height: 65px;
  border-right-color: var(--accent-secondary);
  animation: spinRing 0.9s infinite reverse linear;
}

.ring-3 {
  width: 40px;
  height: 40px;
  border-bottom-color: #fff;
  animation: spinRing 0.6s infinite linear;
}

.core-glow {
  width: 16px;
  height: 16px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-color);
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-text {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.loader-subtext {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================
   NAVIGATION BAR & GLASS EFFECT
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s var(--transition-smooth);
}

header.scrolled {
  padding: 16px 60px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span { color: var(--accent-color); }

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.desktop-nav ul li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s;
  cursor: pointer;
  position: relative;
}

.desktop-nav ul li a:hover,
.desktop-nav ul li a.active {
  color: var(--text-main);
}

.desktop-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s var(--transition-smooth);
}

.desktop-nav ul li a:hover::after,
.desktop-nav ul li a.active::after {
  width: 100%;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle, .hamburger-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.hamburger-btn { display: none; }

.theme-toggle:hover, .hamburger-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: scale(1.08);
}

/* Glowing Interactive Buttons */
.btn-glow {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.35s var(--transition-smooth);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-glow span { position: relative; z-index: 2; }

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-glow:hover::before { left: 100%; }

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--accent-glow);
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 280px; height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 2000;
  padding: 80px 30px 30px;
  display: flex;
  flex-direction: column;
  transition: right 0.4s var(--transition-smooth);
}

.mobile-drawer.active { right: 0; }

.drawer-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
}

.mobile-drawer ul { list-style: none; }
.mobile-drawer ul li { margin-bottom: 24px; }
.mobile-drawer ul li a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

/* ==========================================
   HERO CONTENT & GRID LAYOUT
   ========================================== */
.hero-wrapper {
  padding: 140px 60px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-color);
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, #ffffff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  padding: 16px 36px;
  font-size: 14px;
}

.experts-card {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  padding: 8px 20px 8px 12px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.experts-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.avatar-stack { display: flex; }

.avatar-stack img {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
  margin-left: -10px;
}

.avatar-stack img:first-child { margin-left: 0; }

.experts-card span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Dynamic Gallery Cards */
.hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 230px 230px;
  gap: 16px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
}

.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth);
}

.gallery-card:hover img { transform: scale(1.08); }

.card-top-wide { grid-column: 1 / span 2; border-radius: 36px 36px 12px 36px; }
.card-bottom-left { border-radius: 120px 12px 36px 36px; }
.card-bottom-right { border-radius: 12px 36px 36px 36px; }

/* Play Video Button Badge */
.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 15px 35px var(--accent-glow);
  cursor: pointer;
  transition: transform 0.3s var(--transition-smooth);
  z-index: 10;
}

.play-badge:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

.play-badge i { font-size: 22px; margin-bottom: 4px; }
.play-badge span { font-size: 10px; font-weight: 800; letter-spacing: 1px; }

/* Partner Marquee */
.brand-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  opacity: 0.6;
}

.brand-item { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 800; }

/* ==========================================
   MODERN LIGHTBOX VIDEO PLAYER
   ========================================== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(3, 3, 7, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 3000;
  display: flex;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--transition-smooth);
  padding: 20px;
}

.modal-backdrop.active { opacity: 1; pointer-events: auto; }

.modal-video-box {
  width: 100%; max-width: 960px;
  background: #000000;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-glow);
  transform: scale(0.92);
  transition: transform 0.4s var(--transition-smooth);
}

.modal-backdrop.active .modal-video-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  color: #ffffff;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 20;
  transition: all 0.3s var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--accent-color);
  transform: rotate(90deg) scale(1.1);
  border-color: var(--accent-color);
}

.custom-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
}

.modal-video-element, .modal-iframe-element {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  outline: none;
}

/* Custom Sleek Video Controls */
.video-custom-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-video-wrapper:hover .video-custom-controls {
  opacity: 1;
}

.ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  padding: 4px;
}

.ctrl-btn:hover {
  color: var(--accent-color);
  transform: scale(1.15);
}

.vid-progress-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.vid-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
  border-radius: 4px;
  transition: width 0.1s linear;
}

.vid-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.vid-volume-slider {
  width: 60px;
  accent-color: var(--accent-color);
  cursor: pointer;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================== */
@media (max-width: 992px) {
  header, header.scrolled { padding: 16px 24px; }
  .desktop-nav { display: none; }
  .hamburger-btn { display: flex; }
  .hero-wrapper { padding: 110px 24px 40px; }
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 38px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .experts-card { justify-content: center; }
  .brand-bar { flex-wrap: wrap; gap: 20px; text-align: center; }
  
  .video-custom-controls {
    padding: 10px 12px;
    gap: 8px;
    opacity: 1; /* Always visible on mobile */
  }
  .vid-volume-slider { display: none; }
}