/* ============================================================
   NEXUS — Gaming UI Portfolio  |  style.css
   Cyberpunk / Esports Dark UI
   ============================================================ */

/* ── Variables ── */
:root {
  --neon-blue:    #00f0ff;
  --neon-pink:    #ff2d78;
  --neon-purple:  #bf5fff;
  --neon-green:   #39ff14;

  --bg-deep:      #03040a;
  --bg-dark:      #070c17;
  --bg-panel:     rgba(5, 12, 28, 0.72);

  --glass-bg:     rgba(8, 16, 36, 0.65);
  --glass-border: rgba(0, 240, 255, 0.12);
  --glass-blur:   blur(18px);

  --text-primary:   #e8f0ff;
  --text-secondary: #7a8baa;
  --text-muted:     #3a4a62;

  --sidebar-w:    96px;
  --header-h:     64px;

  --ease-cinematic: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-smooth:    cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --ambient-color: #00f0ff;
  --ambient-alt:   #bf5fff;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Rajdhani', 'Inter', sans-serif;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: var(--bg-deep);
}

/* ── Ambient Background ── */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: background 1.4s var(--ease-smooth), box-shadow 1.4s var(--ease-smooth);
  background: radial-gradient(ellipse at 50% 100%, rgba(0,240,255,0.06) 0%, transparent 70%),
              radial-gradient(ellipse at 20% 0%, rgba(191,95,255,0.05) 0%, transparent 60%),
              var(--bg-deep);
}

.ambient-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(60px);
  opacity: 0.5;
}

/* Dynamic edge glow */
.ambient-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(var(--am-r,0),var(--am-g,240),var(--am-b,255),.18) 0%, transparent 18%),
    linear-gradient(to left,   rgba(var(--am-r,0),var(--am-g,240),var(--am-b,255),.12) 0%, transparent 18%),
    linear-gradient(to bottom, rgba(var(--am-r,0),var(--am-g,240),var(--am-b,255),.08) 0%, transparent 20%),
    linear-gradient(to top,    rgba(var(--am-r,0),var(--am-g,240),var(--am-b,255),.14) 0%, transparent 22%);
  transition: background 1.4s var(--ease-smooth);
  pointer-events: none;
}

/* ── Particle Canvas ── */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
}

/* ── Glitch Overlay ── */
.glitch-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.03) 2px,
    rgba(0, 240, 255, 0.03) 4px
  );
  transition: opacity 0.08s;
}
.glitch-overlay.active {
  animation: glitchPulse 0.45s steps(2) forwards;
}
@keyframes glitchPulse {
  0%   { opacity: 0; }
  10%  { opacity: 0.85; transform: translateX(-4px) skewX(-1deg); }
  20%  { opacity: 0.3;  transform: translateX(4px)  skewX(2deg);  }
  30%  { opacity: 0.9;  transform: translateX(-2px) skewX(-0.5deg); }
  50%  { opacity: 0.5;  transform: translateX(2px)  skewX(1deg);  }
  70%  { opacity: 0.7;  transform: translateX(-3px) scaleX(1.01); }
  90%  { opacity: 0.2;  transform: translateX(0);   }
  100% { opacity: 0;   transform: translateX(0);   }
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 500;
  display: flex;
  align-items: center;
  padding: 0 24px 0 calc(var(--sidebar-w) + 20px);
  background: linear-gradient(to bottom, rgba(3,4,10,0.9) 0%, transparent 100%);
  backdrop-filter: blur(2px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
}

.logo-text {
  font-family: var(--font-primary, 'Orbitron', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: opacity 0.3s, text-shadow 0.3s;
  user-select: none;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
}
.logo-text:hover {
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.65), 0 0 28px rgba(191, 95, 255, 0.3);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.slide-counter {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
#current-slide-num {
  color: var(--neon-blue);
  font-weight: 700;
  text-shadow: 0 0 12px var(--neon-blue);
  transition: all 0.3s;
}
.slide-counter .divider { color: var(--text-muted); }

/* ── Mobile Menu Button ── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neon-blue);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--neon-blue);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Sidebar — floating panel below header ── */
.sidebar {
  position: fixed;
  top: 74px;                             /* 64px header + 10px gap = below logo */
  left: 10px;
  bottom: 10px;
  width: var(--sidebar-w);
  height: auto;
  z-index: 400;
  display: flex;
  align-items: stretch;
  transition: transform 0.5s var(--ease-cinematic);
  /* Drop shadow for floating card effect */
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.55));
}

.sidebar-inner {
  width: 100%;
  background: rgba(8, 16, 36, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  /* All-side border — floating card look */
  border: 1px solid rgba(0,240,255,0.18);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 16px 0;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(0,240,255,0.05),
    0 4px 24px rgba(0,0,0,0.6);
  transition: border-color 1.4s var(--ease-smooth), box-shadow 1.4s var(--ease-smooth), background 1.4s var(--ease-smooth);
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  width: 100%;
  padding: 0 12px;
}
.sidebar-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 7px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.sidebar-line {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  box-shadow: 0 0 6px var(--neon-blue);
}

.sidebar-thumbs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  padding: 0 8px;
  overflow-y: auto;
  scrollbar-width: none;
  flex: 1;
  min-height: 0;
}
.sidebar-thumbs::-webkit-scrollbar { display: none; }

/* ── Thumbnail Item ── */
.thumb-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s var(--ease-smooth);
  flex-shrink: 0;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transform: scale(1.05);
  transition: opacity 0.3s, transform 0.3s;
  display: block;
}

.thumb-item:hover img { opacity: 0.75; transform: scale(1.1); }
.thumb-item.active img { opacity: 0.9; }

.thumb-item .thumb-num {
  position: absolute;
  bottom: 3px;
  right: 5px;
  font-family: 'Orbitron', sans-serif;
  font-size: 7px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
}

.thumb-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  border: 1.5px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.thumb-item.active::after {
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0,240,255,0.5), inset 0 0 10px rgba(0,240,255,0.08);
}
.thumb-item:hover::after {
  border-color: rgba(0,240,255,0.3);
}

/* Active side indicator */
.thumb-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--neon-blue);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px var(--neon-blue);
  z-index: 2;
}

/* ── Main Slider ── */
.slider-container {
  position: fixed;
  top: 0;
  /* Leave space for floating sidebar (width + 10px gap + 10px margin) */
  left: calc(var(--sidebar-w) + 20px);
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 10;
}

/* ── Slide ── */
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Padding: below header + 14px gap on top, 20px on other sides */
  padding: calc(var(--header-h) + 14px) 20px 20px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: opacity 0s;
}

/* Frame auto-sizes to match image aspect ratio — no cropping */
.slide-frame {
  position: relative;
  flex-shrink: 1;
  min-width: 0;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-dark);
  box-shadow: 0 0 0 1px rgba(0,240,255,0.08),
              0 24px 80px rgba(0,0,0,0.7);
  transition: box-shadow 0.8s var(--ease-smooth);
}
.slide.active .slide-frame {
  box-shadow: 0 0 0 1px rgba(0,240,255,0.2),
              0 0 40px rgba(0,240,255,0.06),
              0 24px 80px rgba(0,0,0,0.7);
}

.slide.entering  { pointer-events: none; }
.slide.active    { opacity: 1; pointer-events: all; z-index: 2; }
.slide.prev      { z-index: 1; }

/* Slide image — displays at natural aspect ratio, no cropping */
.slide-img {
  display: block;
  width: auto;
  height: auto;
  /* Constrain to available area while preserving ratio */
  max-width: 100%;
  max-height: calc(100vh - var(--header-h) - 34px);
  object-fit: contain;
  position: relative;
  z-index: 0;
}

/* Slide dark overlay — lightened so full image shows through */
.slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,    rgba(3,4,10,0.55) 0%, rgba(3,4,10,0.1) 30%, transparent 55%),
    linear-gradient(to right,  rgba(3,4,10,0.35) 0%, transparent 45%),
    linear-gradient(to bottom, rgba(3,4,10,0.2)  0%, transparent 30%);
  z-index: 1;
  pointer-events: none;
}

/* Slide vignette */
.slide-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(3,4,10,0.5);
  pointer-events: none;
  z-index: 2;
}

/* Slide color gradient accent */
.slide-accent {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease-smooth);
  pointer-events: none;
  z-index: 3;
}
.slide.active .slide-accent { opacity: 1; }

/* Slide Scan lines — applied to the frame box */
.slide-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 3;
}

/* Slide Content */
.slide-content {
  position: relative;
  z-index: 4;
  max-width: 680px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s var(--ease-cinematic) 0.2s,
              opacity 0.8s var(--ease-cinematic) 0.2s;
}
.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 3px;
  backdrop-filter: blur(10px);
}
.slide-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue);
  animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(0.6); }
}

.slide-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 0 40px rgba(0,240,255,0.3), 0 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 18px;
}

.slide-title span {
  background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px var(--neon-blue));
}

.slide-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}

.slide-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--neon-blue);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 0 20px rgba(0,240,255,0.4), 0 4px 15px rgba(0,0,0,0.3);
}
.btn-primary::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.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  box-shadow: 0 0 35px rgba(0,240,255,0.65), 0 0 60px rgba(0,240,255,0.25), 0 4px 20px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0,240,255,0.2);
  transform: translateY(-2px);
}

/* ── Slide Number Badge ── */
.slide-number-badge {
  position: absolute;
  top: 80px;
  right: 50px;
  font-family: 'Orbitron', sans-serif;
  font-size: 120px;
  font-weight: 900;
  letter-spacing: -5px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,240,255,0.08);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 3;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.9s var(--ease-cinematic) 0.35s,
              opacity 0.9s var(--ease-cinematic) 0.35s;
}
.slide.active .slide-number-badge {
  transform: translateY(0);
  opacity: 1;
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-track {
  width: 2px;
  height: 120px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.scroll-thumb {
  width: 100%;
  background: var(--neon-blue);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-blue);
  transition: top 0.5s var(--ease-smooth), height 0.3s;
  position: absolute;
  top: 0;
  height: 30%;
}

.scroll-arrows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scroll-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s;
}
.scroll-btn:hover {
  color: var(--neon-blue);
  border-color: rgba(0,240,255,0.4);
  box-shadow: 0 0 12px rgba(0,240,255,0.2);
}
.scroll-btn svg { width: 14px; height: 14px; }

/* ── Progress Bar ── */
.progress-bar-container {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.06);
  z-index: 300;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  box-shadow: 0 0 8px var(--neon-blue);
  transition: width 0.5s var(--ease-smooth);
  width: 0%;
}

/* ── Slide Enter Animations ── */
@keyframes slideFromBottom {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes slideFromTop {
  from { transform: translateY(-18px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* ── Neon Scan Line Animation ── */
@keyframes scanLine {
  0%   { top: -2px; }
  100% { top: 100%; }
}
.slide.active .slide-frame::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  top: -2px;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,0.6), transparent);
  z-index: 10;
  animation: scanLine 2s var(--ease-smooth) 0.3s 1 forwards;
  pointer-events: none;
}

/* ── Mobile Sidebar Overlay ── */
.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 350;
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Floating Neon Orbs ── */
.neon-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite;
  opacity: 0.25;
}
.neon-orb-1 {
  width: 400px; height: 400px;
  background: var(--neon-blue);
  top: -100px; right: 10%;
  animation-delay: 0s;
}
.neon-orb-2 {
  width: 350px; height: 350px;
  background: var(--neon-purple);
  bottom: -80px; left: 15%;
  animation-delay: -6s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%     { transform: translate(30px, -20px) scale(1.05); }
  66%     { transform: translate(-20px, 15px) scale(0.95); }
}

/* ── Loading State ── */
.slide-bg.loading {
  background-color: var(--bg-dark);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    width: 220px;
    transform: translateX(-100%);
    z-index: 600;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .mobile-menu-btn { display: flex; }
  .mobile-sidebar-overlay { display: block; }

  .site-header {
    padding: 0 20px;
  }

  .slider-container {
    left: 0;
  }

  .progress-bar-container {
    left: 0;
  }

  .slide {
    padding: 60px 28px 100px 28px;
  }

  .slide-title {
    font-size: clamp(28px, 7vw, 52px);
  }

  .slide-number-badge {
    font-size: 80px;
    top: 70px;
    right: 20px;
  }

  .scroll-indicator {
    right: 12px;
  }
}

@media (max-width: 600px) {
  .slide {
    padding: 60px 20px 110px 20px;
    align-items: flex-end;
  }
  .slide-content { max-width: 100%; }
  .slide-title { font-size: clamp(24px, 8vw, 40px); }
  .slide-desc { font-size: 14px; }
  .btn-primary, .btn-ghost { padding: 12px 22px; font-size: 10px; }
  .slide-number-badge { display: none; }
  .scroll-indicator { display: none; }
}



/* ── Mobile: slide-frame center align ── */
@media (max-width: 900px) {
  .slide {
    justify-content: center;
    align-items: center;
  }
  .slide-frame {
    margin: 0 auto;
  }
}

/* ── Video Slide ── */
.slide-frame--video {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,240,255,0.08), 0 24px 80px rgba(0,0,0,0.7);
  transition: box-shadow 0.8s var(--ease-smooth);
  width: 100%;
  max-width: calc((100vh - var(--header-h) - 34px) * (16 / 9));
  max-height: calc(100vh - var(--header-h) - 34px);
  aspect-ratio: 16 / 9;
}
.slide.active .slide-frame--video {
  box-shadow: 0 0 0 1px rgba(0,240,255,0.2), 0 0 40px rgba(0,240,255,0.06), 0 24px 80px rgba(0,0,0,0.7);
}
.video-embed-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}
.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* ── Thumbnail: play overlay for video thumbs ── */
.thumb-item.thumb-video {
  position: relative;
}
.thumb-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.38);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}
.thumb-play-icon svg {
  filter: drop-shadow(0 0 4px rgba(255,60,120,0.8));
}

/* ── CTA Slide (Final Slide) ── */
.slide-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Override image-slide padding to use full area */
  padding: 0;
}

/* CTA frame: fills available area with pure dark background */
.slide-cta .slide-frame {
  position: absolute;
  top: calc(var(--header-h) + 14px);
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0,240,255,0.04) 0%, rgba(3,4,10,1) 65%),
    rgba(3,4,10,1);
}

.cta-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.9s var(--ease-cinematic) 0.2s,
              opacity 0.9s var(--ease-cinematic) 0.2s;
}
.slide.active .cta-content {
  transform: translateY(0);
  opacity: 1;
}

.cta-logo-ring {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.cta-logo-ring::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,240,255,0.25);
  animation: ringPulse 3s ease-in-out infinite;
}
.cta-logo-ring::after {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(191,95,255,0.15);
  animation: ringPulse 3s ease-in-out infinite 0.8s;
}
@keyframes ringPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(1.04); }
}
.cta-logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0,240,255,0.4)) drop-shadow(0 0 40px rgba(191,95,255,0.2));
}

.cta-eyebrow {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
}

.cta-headline {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(30px, 4.5vw, 60px);
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text-primary);
  text-shadow: 0 0 50px rgba(0,240,255,0.2), 0 2px 8px rgba(0,0,0,0.8);
}
.cta-headline span {
  background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px var(--neon-blue));
}

.cta-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  box-shadow: 0 0 8px var(--neon-blue);
  margin: 4px auto;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  line-height: 1.6;
  max-width: 460px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--neon-blue);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 0 24px rgba(0,240,255,0.45), 0 6px 20px rgba(0,0,0,0.35);
}
.btn-cta-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.5s;
}
.btn-cta-primary:hover::before { left: 100%; }
.btn-cta-primary:hover {
  box-shadow: 0 0 40px rgba(0,240,255,0.7), 0 0 70px rgba(0,240,255,0.25), 0 6px 24px rgba(0,0,0,0.5);
  transform: translateY(-3px);
}

.btn-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--neon-purple);
  background: rgba(191,95,255,0.08);
  border: 1px solid rgba(191,95,255,0.35);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
  backdrop-filter: blur(10px);
}
.btn-cta-ghost:hover {
  background: rgba(191,95,255,0.15);
  border-color: var(--neon-purple);
  color: #fff;
  box-shadow: 0 0 20px rgba(191,95,255,0.35);
  transform: translateY(-3px);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0,240,255,0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,240,255,0.6);
}
