/* ==========================================================================
   VisionSign — Smart Digital Signage & Media Display Platform
   Master Presentation Design System & Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-deep: #050B14;
  --bg-dark: #07111F;
  --bg-surface: #0B1424;
  --bg-surface-elevated: #111C33;
  --bg-glass: rgba(11, 20, 36, 0.74);
  --bg-glass-strong: rgba(16, 27, 48, 0.90);
  --bg-card-hover: rgba(26, 42, 74, 0.60);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(38, 132, 255, 0.45);

  /* Brand Accents */
  --brand-blue: #2684FF;
  --brand-blue-glow: rgba(38, 132, 255, 0.35);
  --brand-cyan: #20D6D2;
  --brand-cyan-glow: rgba(32, 214, 210, 0.35);
  --brand-purple: #8067FF;
  --brand-purple-glow: rgba(128, 103, 255, 0.35);
  --brand-gold: #F59E0B;
  --brand-emerald: #10B981;
  --brand-crimson: #EF4444;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-arabic-display: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Text Colors */
  --text-pure: #FFFFFF;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Shadows & Elevation */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 52px rgba(0, 0, 0, 0.60);
  --shadow-glow: 0 0 35px var(--brand-blue-glow);
  --shadow-cyan-glow: 0 0 35px var(--brand-cyan-glow);

  /* Animation Timings */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;
}

/* --------------------------------------------------------------------------
   2. Base & Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.55;
  user-select: none;
}

body.rtl {
  direction: rtl;
  font-family: var(--font-arabic);
  letter-spacing: normal !important;
}

body.rtl * {
  letter-spacing: normal !important;
}

body.rtl .brand-title,
body.rtl .slide-title,
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4 {
  letter-spacing: normal !important;
  line-height: 1.35;
}

body.rtl .slide-subtitle,
body.rtl p,
body.rtl li {
  line-height: 1.65;
}

/* Background Animated Canvas / Ambience */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.65;
}

.ambient-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.light-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-blue {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--brand-blue) 0%, transparent 70%);
  top: -150px;
  left: -150px;
}

.orb-cyan {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--brand-cyan) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation-duration: 22s;
}

.orb-purple {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--brand-purple) 0%, transparent 70%);
  top: 40%;
  left: 60%;
  animation-duration: 26s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Grid Line Pattern */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 90%);
}

/* --------------------------------------------------------------------------
   3. Presentation Container & Slide Deck
   -------------------------------------------------------------------------- */
.presentation-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.presentation-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(70px, 8.8vh, 88px) clamp(22px, 4vw, 56px) clamp(65px, 8.2vh, 80px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.98) translateY(14px);
  transition: opacity 450ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 450ms;
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(38, 132, 255, 0.25) transparent;
}

.slide::-webkit-scrollbar {
  width: 5px;
}

.slide::-webkit-scrollbar-thumb {
  background: rgba(38, 132, 255, 0.3);
  border-radius: 999px;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
  z-index: 20;
}

.slide.prev {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.975) translateY(-20px);
}

.slide.next {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.975) translateY(20px);
}

/* Slide Content Flex layout */
.slide-inner {
  width: 100%;
  max-width: 1680px;
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* --------------------------------------------------------------------------
   4. Slide Typography & Headers
   -------------------------------------------------------------------------- */
.slide-header {
  margin-bottom: 24px;
  position: relative;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(38, 132, 255, 0.12);
  border: 1px solid rgba(38, 132, 255, 0.3);
  color: var(--brand-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.badge-tag.gold {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--brand-gold);
}

.badge-tag.emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--brand-emerald);
}

.badge-tag.crimson {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--brand-crimson);
}

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-pure);
  margin-bottom: 8px;
}

body.rtl .slide-title {
  font-family: var(--font-arabic);
}

.slide-subtitle {
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 820px;
  line-height: 1.5;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #FFFFFF 20%, #2684FF 60%, #20D6D2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #FFFFFF 30%, #20D6D2 80%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #FFFBEB 20%, #F59E0B 70%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   5. Glassmorphism Cards & Panels
   -------------------------------------------------------------------------- */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-fast) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(38, 132, 255, 0.15);
}

.glass-panel-elevated {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
}

/* Glowing Top Accent on Cards */
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(38, 132, 255, 0.6), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.glass-panel:hover::before {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   6. Navigation HUD — Header (Top)
   -------------------------------------------------------------------------- */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(5, 11, 20, 0.95) 0%, rgba(5, 11, 20, 0.4) 75%, transparent 100%);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--brand-blue-glow);
}

.brand-icon-box svg {
  width: 22px;
  height: 22px;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1px 6px;
  border-radius: 999px;
  text-transform: uppercase;
}

.live-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Center Slide Title & Index Pill */
.header-center-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 27, 48, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 6px 18px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.current-slide-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-cyan);
}

.header-slide-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-pure);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(16, 27, 48, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.hud-btn:hover {
  background: rgba(38, 132, 255, 0.15);
  border-color: var(--brand-blue);
  color: var(--text-pure);
  box-shadow: 0 0 14px rgba(38, 132, 255, 0.2);
}

.hud-btn.icon-only {
  width: 38px;
  padding: 0;
}

.hud-btn svg {
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------------
   7. Navigation HUD — Footer (Bottom Controls & Progress)
   -------------------------------------------------------------------------- */
.nav-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(0deg, rgba(5, 11, 20, 0.95) 0%, rgba(5, 11, 20, 0.4) 75%, transparent 100%);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.footer-nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 27, 48, 0.85);
  border: 1px solid var(--border-glass);
  color: var(--text-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-spring);
  box-shadow: var(--shadow-sm);
}

.nav-arrow-btn:hover:not(:disabled) {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--brand-blue-glow);
}

.nav-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nav-arrow-btn svg {
  width: 20px;
  height: 20px;
}

/* Slide Progress Track & Bar */
.progress-container {
  flex: 1;
  max-width: 600px;
  margin: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  width: 5.55%;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  border-radius: 999px;
  box-shadow: 0 0 10px var(--brand-cyan);
  transition: width var(--duration-normal) var(--ease-spring);
}

.progress-dots {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.progress-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all var(--duration-fast);
  cursor: pointer;
}

.progress-dot.active {
  background: var(--brand-cyan);
  box-shadow: 0 0 8px var(--brand-cyan);
  transform: scale(1.4);
}

/* Autoplay & Help Controls */
.footer-secondary-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.autoplay-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 27, 48, 0.85);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.autoplay-pill:hover, .autoplay-pill.active {
  background: rgba(32, 214, 210, 0.15);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

.autoplay-pill.active {
  box-shadow: 0 0 16px var(--brand-cyan-glow);
}

.autoplay-icon svg {
  width: 14px;
  height: 14px;
}

.autoplay-countdown-circle {
  width: 16px;
  height: 16px;
  position: relative;
}

.autoplay-countdown-circle svg {
  transform: rotate(-90deg);
}

/* --------------------------------------------------------------------------
   8. Specific Slide Compositions
   -------------------------------------------------------------------------- */

/* Slide 01: Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4vw;
  align-items: center;
  height: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tagline-quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  font-weight: 700;
  color: var(--brand-cyan);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

body.rtl .hero-tagline-quote {
  font-family: var(--font-arabic);
}

.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-blue), #1D4ED8);
  color: var(--text-pure);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 25px var(--brand-blue-glow);
  transition: all var(--duration-fast) var(--ease-spring);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 35px rgba(38, 132, 255, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  background: rgba(16, 27, 48, 0.8);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-secondary:hover {
  background: rgba(38, 132, 255, 0.12);
  border-color: var(--brand-blue);
  color: var(--text-pure);
}

body.rtl .btn-primary,
body.rtl .btn-secondary,
body.rtl .hud-btn {
  font-family: var(--font-arabic);
}

.hero-features-ribbon {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.ribbon-item svg {
  color: var(--brand-cyan);
}

.hero-mockup-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.hero-mockup-frame {
  width: 100%;
  max-width: 780px;
  border-radius: 20px;
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(4deg);
  transition: transform 0.6s var(--ease-spring);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 50px rgba(38, 132, 255, 0.25);
  border: 1px solid rgba(38, 132, 255, 0.3);
}

.hero-mockup-frame:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.hero-mockup-frame img, .hero-mockup-frame svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Slide 02: Challenge (Before vs After) */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5vw;
  margin-top: 10px;
}

.compare-card {
  padding: 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
}

.compare-card.before {
  background: rgba(30, 15, 20, 0.7);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.compare-card.after {
  background: rgba(10, 30, 35, 0.75);
  border: 1px solid rgba(32, 214, 210, 0.4);
  box-shadow: 0 0 40px rgba(32, 214, 210, 0.15);
}

.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-title {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.before .item-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.after .item-icon {
  background: rgba(32, 214, 210, 0.15);
  color: #20D6D2;
}

.item-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 4px;
}

.item-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Slide 03: Architecture Flow Diagram */
.pipeline-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 30px;
}

.pipeline-step {
  padding: 28px 22px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--duration-fast);
  cursor: pointer;
}

.pipeline-step:hover {
  transform: translateY(-6px);
  border-color: var(--brand-blue);
  box-shadow: 0 12px 30px rgba(38, 132, 255, 0.25);
}

.step-num-pill {
  position: absolute;
  top: -12px;
  background: var(--brand-blue);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  box-shadow: 0 0 12px var(--brand-blue-glow);
}

.step-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(38, 132, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand-cyan);
}

.step-icon-circle svg {
  width: 30px;
  height: 30px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.step-specs {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.spec-pill {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--text-muted);
}

/* Connecting arrows between pipeline steps */
.pipeline-step:not(:last-child)::after {
  content: '➔';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-blue);
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 5;
}

body.rtl .pipeline-step:not(:last-child)::after {
  content: '⬅';
  right: auto;
  left: -16px;
}

/* Slide 04: Smart Display Layouts (Interactive A-J switcher) */
.layouts-showcase-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
  margin-top: 10px;
  align-items: center;
}

.layout-presets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
}

body.rtl .layout-presets-list {
  padding-right: 0;
  padding-left: 8px;
}

.layout-preset-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(16, 27, 48, 0.6);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.layout-preset-item:hover, .layout-preset-item.active {
  background: rgba(38, 132, 255, 0.18);
  border-color: var(--brand-blue);
}

.layout-preset-item.active {
  box-shadow: 0 0 16px rgba(38, 132, 255, 0.3);
}

.layout-letter-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-blue);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout-info-text h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-pure);
}

.layout-info-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Interactive Layout Stage Canvas */
.layout-stage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #030712;
  border: 2px solid var(--border-glass);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.screen-wireframe-box {
  width: 100%;
  max-width: 780px;
  aspect-ratio: 16 / 9;
  background: #060B14;
  border: 2px solid #1E293B;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(38, 132, 255, 0.2);
}

.wireframe-zone-1 {
  height: 28px;
  background: #0B132B;
  border-bottom: 1px solid #1E293B;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--brand-blue);
}

.wireframe-zone-2 {
  height: 38px;
  background: #0D1933;
  border-bottom: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
}

.wireframe-zone-3 {
  flex: 1;
  position: relative;
  display: flex;
  background: #040810;
  overflow: hidden;
}

.wireframe-zone-4 {
  height: 30px;
  background: #080E1C;
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--brand-emerald);
}

.wf-tv-stage {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F172A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93C5FD;
  font-weight: bold;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.4s var(--ease-spring);
}

.wf-ad-stage {
  background: linear-gradient(135deg, #065F46 0%, #064E3B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A7F3D0;
  font-weight: bold;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.4s var(--ease-spring);
}

/* Slide 05: Multiple Content Sources */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.source-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--duration-fast);
  position: relative;
}

.source-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-blue);
  box-shadow: 0 15px 35px rgba(38, 132, 255, 0.2);
}

.source-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.source-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.source-card h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 8px;
}

.source-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.source-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.source-specs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.source-specs-list li svg {
  color: var(--brand-cyan);
  width: 14px;
  height: 14px;
}

/* Slide 06: YouTube Experience */
.youtube-deepdive-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3vw;
  align-items: center;
}

.yt-player-preview-card {
  background: #02040A;
  border: 2px solid #1E293B;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.yt-screen-header {
  height: 42px;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.yt-video-canvas {
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at center, #1E1B4B 0%, #030712 90%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.yt-play-btn-pulse {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #EF4444;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
  cursor: pointer;
  animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.yt-hud-controls {
  padding: 14px 18px;
  background: #0B1324;
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Slide 07: Seasonal Themes Ecosystem (12 Presets) */
.themes-grid-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.theme-pill-card {
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.theme-pill-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.theme-color-bar {
  height: 6px;
  border-radius: 999px;
  width: 100%;
}

.theme-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-pure);
}

.theme-cat-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.theme-desc-text {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Slide 08: Ramadan Theme Spotlight */
.ramadan-spotlight-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5vw;
  align-items: center;
}

.ramadan-mockup-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.ramadan-mockup-frame img, .ramadan-mockup-frame svg {
  width: 100%;
  display: block;
}

/* Slide 09: October 6 Victory Spotlight */
.october-spotlight-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5vw;
  align-items: center;
}

.october-mockup-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(220, 38, 38, 0.4);
}

.october-mockup-frame img, .october-mockup-frame svg {
  width: 100%;
  display: block;
}

/* Slide 10: 18-Widget Ecosystem */
.widgets-matrix-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.widget-item-card {
  padding: 16px 12px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: all var(--duration-fast);
  cursor: pointer;
}

.widget-item-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-cyan);
  box-shadow: 0 8px 20px rgba(32, 214, 210, 0.2);
}

.widget-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(38, 132, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
}

.widget-name-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-pure);
}

.widget-category-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Slide 11: Advertising Engine */
.ads-engine-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3vw;
  align-items: center;
}

.ad-features-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ad-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(16, 27, 48, 0.6);
  border: 1px solid var(--border-subtle);
}

.ad-feat-item:hover {
  border-color: var(--brand-blue);
}

/* Slide 12: Smart Scheduling Timeline */
.timeline-card-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px;
  margin-top: 14px;
}

.timeline-hours-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
  margin-top: 24px;
}

.timeline-hour-block {
  padding: 16px;
  border-radius: 14px;
  background: rgba(16, 27, 48, 0.8);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.timeline-hour-block.active {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 20px rgba(32, 214, 210, 0.25);
}

.th-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brand-cyan);
  font-weight: 700;
}

.th-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pure);
}

.th-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Slide 13: Admin Dashboard Mockup */
.admin-slide-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: center;
}

.admin-tabs-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(16, 27, 48, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(38, 132, 255, 0.18);
  border-color: var(--brand-blue);
  color: var(--text-pure);
}

.admin-mockup-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(38, 132, 255, 0.2);
  border: 1px solid rgba(38, 132, 255, 0.3);
}

.admin-mockup-wrap img, .admin-mockup-wrap svg {
  width: 100%;
  display: block;
}

/* Slide 14: 24/7 Display & Reliability */
.reliability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 14px;
}

.rel-card {
  padding: 26px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rel-card:hover {
  border-color: var(--brand-emerald);
}

/* Slide 15: Real World Applications (8 Sectors) */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 14px;
}

.app-card {
  padding: 20px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--duration-fast);
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-blue);
  box-shadow: 0 10px 25px rgba(38, 132, 255, 0.2);
}

.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(38, 132, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--brand-cyan);
}

.app-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
}

.app-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Slide 16: Technology Architecture */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 14px;
}

.tech-group-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.tech-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.tech-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.tech-pill-row .name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-pure);
}

.tech-pill-row .role {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--brand-cyan);
}

/* Slide 17: Why VisionSign? (6 Pillars) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 16px;
}

.pillar-card {
  padding: 24px;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--duration-fast);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-cyan);
  box-shadow: 0 12px 30px rgba(32, 214, 210, 0.2);
}

.pillar-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-pure);
}

.pillar-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Slide 18: Final Climax & Experience */
.final-hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.final-screen-glow-wrap {
  width: 100%;
  max-width: 900px;
  margin: 24px 0;
  position: relative;
}

.final-screen-glow-wrap img, .final-screen-glow-wrap svg {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 60px rgba(38, 132, 255, 0.35);
}

.final-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   9. Slide Overview Sorter Modal
   -------------------------------------------------------------------------- */
.slide-overview-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(20px);
  z-index: 500;
  display: flex;
  flex-direction: column;
  padding: 40px 5vw;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-spring);
}

.slide-overview-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  overflow-y: auto;
  padding-bottom: 30px;
}

.overview-card {
  background: #0B1424;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.overview-card:hover, .overview-card.active {
  border-color: var(--brand-blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(38, 132, 255, 0.3);
}

.overview-card.active {
  border-color: var(--brand-cyan);
}

.overview-thumb-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060B16;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--brand-cyan);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.overview-card-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.overview-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-blue);
  font-weight: 700;
}

.overview-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   10. Keyboard Shortcut Guide Modal
   -------------------------------------------------------------------------- */
.shortcuts-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(16px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--duration-fast);
}

.shortcuts-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.shortcuts-box {
  width: 90%;
  max-width: 520px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

kbd {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-pure);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   11. Responsive Media Queries & Display Scaling
   -------------------------------------------------------------------------- */
@media (max-width: 1440px) {
  .slide { padding: 72px 4vw 65px 4vw; }
  .widgets-matrix-grid { grid-template-columns: repeat(4, 1fr); }
  .overview-grid { grid-template-columns: repeat(4, 1fr); }
  .themes-grid-showcase { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .hero-grid,
  .ramadan-spotlight-container,
  .october-spotlight-container,
  .youtube-deepdive-grid,
  .layouts-showcase-grid,
  .ads-engine-layout,
  .admin-slide-layout {
    grid-template-columns: 1fr;
  }
  .pipeline-diagram,
  .sources-grid,
  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reliability-grid,
  .pillars-grid,
  .tech-stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .widgets-matrix-grid { grid-template-columns: repeat(3, 1fr); }
  .overview-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline-hours-bar { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-header { padding: 0 16px; height: 58px; }
  .nav-footer { padding: 0 16px; height: 56px; }
  .header-slide-name { display: none; }
  .progress-container { margin: 0 10px; }
  .brand-tagline { display: none; }
  .comparison-grid,
  .pipeline-diagram,
  .sources-grid,
  .reliability-grid,
  .applications-grid,
  .pillars-grid,
  .tech-stack-grid {
    grid-template-columns: 1fr;
  }
  .widgets-matrix-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Height-based Scaling (Laptops 1366x768 / 1440x900 & Screen Heights < 860px) */
@media (max-height: 860px) {
  .nav-header { height: 58px; }
  .nav-footer { height: 56px; }
  .slide { padding: 64px clamp(18px, 3.5vw, 44px) 60px; }
  .slide-header { margin-bottom: 14px; }
  .slide-title { font-size: clamp(1.6rem, 2.5vw, 2.4rem); margin-bottom: 4px; }
  .slide-subtitle { font-size: 0.92rem; line-height: 1.45; }
  .badge-tag { padding: 3px 10px; font-size: 0.72rem; margin-bottom: 8px; }
  .pipeline-step { padding: 18px 14px; }
  .step-icon-circle { width: 48px; height: 48px; margin-bottom: 10px; }
  .source-card { padding: 18px 14px; }
  .source-icon { width: 42px; height: 42px; font-size: 1.25rem; }
  .pillar-card { padding: 18px 16px; }
  .app-card { padding: 14px; }
  .rel-card { padding: 18px; }
  .widget-item-card { padding: 12px 8px; }
  .timeline-hour-block { padding: 12px; }
  .compare-card { padding: 22px; }
  .hero-tagline-quote { margin-bottom: 6px; }
  .hero-desc { margin-bottom: 20px; }
  .hero-features-ribbon { margin-top: 20px; padding-top: 16px; }
}

@media (max-height: 720px) {
  .nav-header { height: 52px; }
  .nav-footer { height: 50px; }
  .slide { padding: 56px 20px 52px; }
  .slide-header { margin-bottom: 10px; }
  .slide-title { font-size: 1.7rem; }
  .slide-subtitle { font-size: 0.85rem; }
  .badge-tag { font-size: 0.68rem; margin-bottom: 4px; }
}



/* ==========================================================================
   12. Arabic Font Family Variants & Theme Dynamic FX System
   ========================================================================== */

/* Font Families */
body.font-ibm-plex,
body.font-ibm-plex *:not(code):not(pre):not(.font-mono):not(.overview-num):not(.live-pill):not(kbd) {
  font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
}

body.font-cairo,
body.font-cairo *:not(code):not(pre):not(.font-mono):not(.overview-num):not(.live-pill):not(kbd) {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
}

body.font-droid-kufi,
body.font-droid-kufi *:not(code):not(pre):not(.font-mono):not(.overview-num):not(.live-pill):not(kbd) {
  font-family: 'Droid Arabic Kufi', 'Cairo', sans-serif !important;
}

body.font-droid-naskh,
body.font-droid-naskh *:not(code):not(pre):not(.font-mono):not(.overview-num):not(.live-pill):not(kbd) {
  font-family: 'Droid Arabic Naskh', 'Tajawal', serif !important;
}

body.font-tajawal,
body.font-tajawal *:not(code):not(pre):not(.font-mono):not(.overview-num):not(.live-pill):not(kbd) {
  font-family: 'Tajawal', 'Cairo', sans-serif !important;
}

body.font-amiri,
body.font-amiri *:not(code):not(pre):not(.font-mono):not(.overview-num):not(.live-pill):not(kbd) {
  font-family: 'Amiri', 'Cairo', serif !important;
}

/* Header Dropdowns (Font & Theme Selectors) */
.hud-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 27, 48, 0.75);
  border: 1px solid var(--border-glass);
  padding: 0 10px;
  border-radius: 10px;
  height: 38px;
  transition: all var(--duration-fast);
}

.hud-select-wrap:hover {
  border-color: var(--brand-blue);
  background: rgba(38, 132, 255, 0.15);
}

.hud-select-wrap svg {
  width: 16px;
  height: 16px;
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.hud-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding: 4px 0;
}

.hud-select option {
  background: #0B1424;
  color: #FFFFFF;
}

/* Theme FX Master Layer */
#theme-fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   October 6 Theme FX: Military Jets & Egyptian Flags
   -------------------------------------------------------------------------- */
.jet-fighter-animated {
  position: absolute;
  width: 140px;
  height: 80px;
  z-index: 6;
  filter: drop-shadow(0 0 12px rgba(234, 179, 8, 0.5));
  animation: jetFlight 12s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  will-change: transform, opacity;
}

.jet-fighter-animated.escort {
  width: 100px;
  height: 60px;
  animation-delay: 0.8s;
  animation-duration: 11.5s;
  top: 15% !important;
}

@keyframes jetFlight {
  0% {
    left: -200px;
    top: 8%;
    transform: translateY(0) rotate(8deg) scale(0.85);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100vw + 250px);
    top: 14%;
    transform: translateY(-20px) rotate(4deg) scale(1.05);
    opacity: 0;
  }
}

.egypt-flag-floating {
  position: absolute;
  top: 75px;
  right: 25px;
  width: 120px;
  height: 80px;
  z-index: 5;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
  animation: flagWave 4s ease-in-out infinite alternate;
}

body.rtl .egypt-flag-floating {
  right: auto;
  left: 25px;
}

@keyframes flagWave {
  0% { transform: translateY(0) rotate(-3deg) skewY(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg) skewY(2deg); }
  100% { transform: translateY(4px) rotate(-1deg) skewY(-1deg); }
}

/* --------------------------------------------------------------------------
   Christmas Theme FX: 3D Gift Boxes & Snowfall
   -------------------------------------------------------------------------- */
.gift-box-floating {
  position: absolute;
  z-index: 6;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  animation: floatGift 8s ease-in-out infinite alternate;
}

@keyframes floatGift {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-25px) rotate(12deg) scale(1.05); }
  100% { transform: translateY(15px) rotate(-8deg) scale(0.98); }
}

.snowflake-item {
  position: absolute;
  color: #E0F2FE;
  user-select: none;
  pointer-events: none;
  z-index: 5;
  animation: snowfall linear infinite;
}

@keyframes snowfall {
  0% {
    top: -50px;
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }
  15% { opacity: 0.9; }
  85% { opacity: 0.9; }
  100% {
    top: 105vh;
    transform: translateX(60px) rotate(360deg);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Ramadan Theme FX: Glowing Swinging Lanterns & Crescent
   -------------------------------------------------------------------------- */
.ramadan-lantern-floating {
  position: absolute;
  top: 60px;
  z-index: 6;
  transform-origin: top center;
  animation: swingLantern 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.65));
}

@keyframes swingLantern {
  0% { transform: rotate(-7deg); }
  50% { transform: rotate(5deg); }
  100% { transform: rotate(-4deg); }
}

.crescent-moon-floating {
  position: absolute;
  top: 90px;
  left: 60px;
  z-index: 5;
  animation: floatMoon 7s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 35px rgba(245, 158, 11, 0.7));
}

body.rtl .crescent-moon-floating {
  left: auto;
  right: 60px;
}

@keyframes floatMoon {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.06) translateY(-12px); }
}

/* --------------------------------------------------------------------------
   Mother's Day Theme FX: Falling Rose Petals
   -------------------------------------------------------------------------- */
.rose-petal-item {
  position: absolute;
  user-select: none;
  pointer-events: none;
  z-index: 5;
  animation: petalFall linear infinite;
  filter: drop-shadow(0 4px 10px rgba(236, 72, 153, 0.4));
}

@keyframes petalFall {
  0% {
    top: -40px;
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }
  20% { opacity: 0.85; }
  80% { opacity: 0.85; }
  100% {
    top: 105vh;
    transform: translateX(-50px) rotate(270deg);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   New Year Theme FX: Fireworks & Golden Confetti
   -------------------------------------------------------------------------- */
.firework-burst-item {
  position: absolute;
  z-index: 6;
  user-select: none;
  pointer-events: none;
  animation: fireworkPop 2.8s ease-out infinite;
  transform-origin: center center;
}

@keyframes fireworkPop {
  0% { transform: scale(0.1); opacity: 0; }
  25% { transform: scale(0.65); opacity: 1; }
  60% { transform: scale(1.15); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

.confetti-gold-item {
  position: absolute;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  z-index: 5;
  user-select: none;
  pointer-events: none;
  animation: confettiFall linear infinite;
}

@keyframes confettiFall {
  0% { top: -20px; transform: rotate(0deg) translateX(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 105vh; transform: rotate(720deg) translateX(45px); opacity: 0; }
}

/* Theme Showcase Interactive Toolbar on Slide 07 */
.theme-live-preview-bar {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.theme-live-preview-bar .btn-secondary {
  font-size: 0.82rem;
  padding: 6px 14px;
  background: rgba(16, 27, 48, 0.7);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--duration-fast);
}

.theme-live-preview-bar .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
