/* ==========================================================================
   JyotOS AAI Showcase — Presentation Runtime & Stylesheet
   Modern Glassmorphism, Neon Cyberpunk & AI Reactive Themes, GPU Optimized
   ========================================================================== */

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg-primary: #070a13;
  --bg-secondary: #0d1527;
  --bg-card: rgba(18, 27, 47, 0.75);
  --bg-card-hover: rgba(28, 42, 72, 0.9);
  --bg-glass: rgba(13, 21, 39, 0.8);
  --border-glass: rgba(255, 255, 255, 0.12);
  
  /* Default: Cyber Neon Orange / Amber Core */
  --neon-primary: #ff6600;
  --neon-secondary: #ffaa00;
  --neon-accent: #ff3300;
  --border-glow: rgba(255, 102, 0, 0.45);
  --neon-glow-shadow: 0 0 25px rgba(255, 102, 0, 0.35);
  --neon-conic-gradient: conic-gradient(from var(--border-angle), #ff3300, #ff8800, #ffcc00, #ff3300);

  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-indigo: #6366f1;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, var(--neon-secondary) 100%);
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px var(--border-glow);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Neon Theme: Quantum Cyber Cyan */
[data-neon-theme="cyan"] {
  --neon-primary: #00f0ff;
  --neon-secondary: #38bdf8;
  --neon-accent: #3b82f6;
  --border-glow: rgba(0, 240, 255, 0.45);
  --neon-glow-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
  --neon-conic-gradient: conic-gradient(from var(--border-angle), #0077ff, #00f0ff, #38bdf8, #0077ff);
  --text-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #00f0ff 100%);
}

/* Neon Theme: Synthwave Purple / Magenta */
[data-neon-theme="purple"] {
  --neon-primary: #d946ef;
  --neon-secondary: #c084fc;
  --neon-accent: #ec4899;
  --border-glow: rgba(217, 70, 239, 0.45);
  --neon-glow-shadow: 0 0 25px rgba(217, 70, 239, 0.35);
  --neon-conic-gradient: conic-gradient(from var(--border-angle), #9333ea, #d946ef, #f43f5e, #9333ea);
  --text-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #d946ef 100%);
}

/* Neon Theme: Emerald Matrix Green */
[data-neon-theme="emerald"] {
  --neon-primary: #10b981;
  --neon-secondary: #34d399;
  --neon-accent: #059669;
  --border-glow: rgba(16, 185, 129, 0.45);
  --neon-glow-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
  --neon-conic-gradient: conic-gradient(from var(--border-angle), #047857, #10b981, #6ee7b7, #047857);
  --text-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #34d399 100%);
}

/* Neon Theme: Cyber Orange / Amber Core */
[data-neon-theme="orange"] {
  --neon-primary: #ff6600;
  --neon-secondary: #ffaa00;
  --neon-accent: #ff3300;
  --border-glow: rgba(255, 102, 0, 0.45);
  --neon-glow-shadow: 0 0 25px rgba(255, 102, 0, 0.35);
  --neon-conic-gradient: conic-gradient(from var(--border-angle), #ff3300, #ff8800, #ffcc00, #ff3300);
  --text-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #ffaa00 100%);
}

/* Minimal Luxe Light Theme */
[data-neon-theme="light"],
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #eef2f6;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(0, 0, 0, 0.08);
  --neon-primary: #ea580c;
  --neon-secondary: #f97316;
  --neon-accent: #c2410c;
  --border-glow: rgba(234, 88, 12, 0.35);
  --neon-glow-shadow: 0 0 20px rgba(234, 88, 12, 0.2);
  --neon-conic-gradient: conic-gradient(from var(--border-angle), #ea580c, #f97316, #fb923c, #ea580c);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #ea580c 100%);
  --shadow-card: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* Particle Canvas Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

/* Ambient Radial Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.glow-1 {
  top: -10%;
  left: -5%;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}
.glow-2 {
  bottom: -10%;
  right: -5%;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
}

/* App Container */
#presentation-app {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

/* ==========================================================================
   Header HUD
   ========================================================================== */
.presentation-header {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 20;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  padding: 3px;
}

.brand-info h1 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dropdown & Theme Selector styling */
.theme-selector-wrapper,
.audience-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-selector-wrapper:hover,
.audience-selector:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 12px var(--border-glow);
}

.theme-selector-wrapper select,
.audience-selector select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.theme-selector-wrapper select option,
.audience-selector select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Ask AI Sparkle Button */
.btn-ai-sparkle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.2), rgba(255, 170, 0, 0.3));
  border: 1px solid var(--neon-primary);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px var(--border-glow);
  transition: all var(--transition-fast);
}

.btn-ai-sparkle:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 25px var(--neon-primary);
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.4), rgba(255, 170, 0, 0.5));
}

.ai-sparkle-icon {
  font-size: 1rem;
  animation: sparkleRotate 3s infinite linear;
}

@keyframes sparkleRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.ai-pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--neon-secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-secondary);
  animation: pulseDot 1.5s infinite ease-in-out;
}

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

/* Icon Buttons */
.btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}
.btn-icon.active {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: white;
  border-color: transparent;
}

/* ==========================================================================
   Presentation Viewport (16:9 Container)
   ========================================================================== */
.presentation-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  overflow: hidden;
  position: relative;
}

.slide-canvas {
  width: 100%;
  max-width: 1360px;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 150px);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Slide Content Container */
.slide-content-wrapper {
  flex: 1;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  position: relative;
}

/* Slide Animations */
.slide-animate-in {
  animation: slideFadeScaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideFadeScaleIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Staggered Children Animations */
.stagger-item {
  opacity: 0;
  animation: itemFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.stagger-item:nth-child(1) { animation-delay: 0.08s; }
.stagger-item:nth-child(2) { animation-delay: 0.16s; }
.stagger-item:nth-child(3) { animation-delay: 0.24s; }
.stagger-item:nth-child(4) { animation-delay: 0.32s; }
.stagger-item:nth-child(5) { animation-delay: 0.40s; }
.stagger-item:nth-child(6) { animation-delay: 0.48s; }

@keyframes itemFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide Header & Titles */
.slide-header {
  margin-bottom: 24px;
}
.slide-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.slide-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.slide-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 400;
}

/* ==========================================================================
   Slide Layout Components
   ========================================================================== */

/* Hero Layout (Slide 1) */
.hero-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}
.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}
.hero-logo {
  height: 75px;
  width: auto;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.95);
  padding: 6px;
  box-shadow: var(--shadow-glow);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 950px;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 18px 0 32px;
  line-height: 1.6;
}
.hero-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1050px;
}
.hero-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}
.hero-stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}
.hero-stat-card .icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.hero-stat-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.hero-stat-card .val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

/* 2-Column Grid Layout */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
}

/* 3-Column / 4-Column Card Grids */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  flex: 1;
}
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  flex: 1;
}

/* Presentation Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}
.glass-card.highlight {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}
.card-icon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-icon {
  font-size: 1.8rem;
}
.card-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-weight: 600;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}
.card-list {
  list-style: none;
  margin-top: 10px;
}
.card-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.card-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}
.card-list li strong {
  color: var(--text-primary);
}

/* Stat Counters (Slide 8) */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.stat-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-glow);
}
.stat-box .icon {
  font-size: 2rem;
  margin-bottom: 6px;
}
.stat-box .counter-val {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  margin: 6px 0;
}
.stat-box .counter-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.stat-box .counter-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Table Style (Slide 6, 7) */
.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
}
.custom-table th {
  background: rgba(15, 23, 42, 0.9);
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--border-glass);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.custom-table td {
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.custom-table tr:last-child td {
  border-bottom: none;
}
.custom-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

/* Principal Profile Feature (Slide 4) */
.principal-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}
.principal-img {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}
.principal-details h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
}
.principal-details .role {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 3px 0 6px;
}
.principal-details .qual {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.principal-details .quote {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 8px;
  border-left: 2px solid var(--accent-blue);
  padding-left: 10px;
}

/* Image Thumbnails & Showcase Media */
.image-strip {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}
.image-strip-item {
  flex: 1;
  height: 130px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-glass);
  transition: transform var(--transition-fast);
}
.image-strip-item:hover {
  transform: scale(1.03);
  border-color: var(--border-glow);
}

/* ==========================================================================
   Footer Controls HUD
   ========================================================================== */
.presentation-footer {
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glass);
  z-index: 20;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slide-counter {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.slide-counter .total {
  color: var(--text-muted);
  font-weight: 500;
}

.source-trace-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  border-radius: var(--radius-sm);
  font-family: monospace;
}

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

.nav-btn {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.nav-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}
.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Autoplay Ticker Button */
.autoplay-btn {
  position: relative;
  overflow: hidden;
}
.autoplay-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-cyan);
  transition: width 0.1s linear;
}

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

.keyboard-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.keycap {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Overall Slide Progress Bar at Top */
.presentation-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-indigo));
  width: 0%;
  z-index: 100;
  transition: width var(--transition-normal);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* ==========================================================================
   Modals & Drawers (Overview Grid, Speaker Notes, Help)
   ========================================================================== */

/* Overview Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.modal-overlay.open {
  display: flex;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.overview-modal-content {
  width: 100%;
  max-width: 1200px;
  max-height: 85vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
}
.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-close-btn:hover {
  color: var(--text-primary);
}

.overview-grid-container {
  padding: 28px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.overview-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}
.overview-card.current {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
  background: rgba(6, 182, 212, 0.12);
}
.overview-card-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.overview-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.overview-card-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Speaker Notes Drawer */
.notes-drawer {
  position: fixed;
  bottom: 64px;
  right: 24px;
  width: 380px;
  max-height: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  z-index: 90;
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.notes-drawer.open {
  display: flex;
  animation: slideFadeScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.notes-header {
  padding: 12px 18px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.notes-body {
  padding: 18px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Help Modal */
.help-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 24px;
}
.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .slide-title { font-size: 1.8rem; }
  .hero-title { font-size: 2.3rem; }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Rotating Neon Circular Borders & AI Glowing Effects (@property --border-angle)
   ========================================================================== */

@keyframes rotateNeonBorder {
  0% {
    --border-angle: 0deg;
  }
  100% {
    --border-angle: 360deg;
  }
}

/* Neon Orbiting Circular Border Card */
.neon-border-orbit {
  position: relative;
  border-radius: var(--radius-lg);
  background: 
    linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box, 
    var(--neon-conic-gradient) border-box;
  border: 2px solid transparent;
  animation: rotateNeonBorder 4s linear infinite;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

/* Glowing Neon Halo Behind Card */
.neon-border-orbit::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--neon-conic-gradient);
  animation: rotateNeonBorder 4s linear infinite;
  z-index: -1;
  filter: blur(14px);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.neon-border-orbit:hover::before {
  opacity: 0.9;
  filter: blur(18px);
}

/* Active Highlight Cards with Circular Moving Neon Glow */
.hero-card.featured,
.feature-card:hover,
.curriculum-card:hover,
.placement-stat:hover,
.pillar-card:hover {
  border-color: transparent !important;
  background: 
    linear-gradient(var(--bg-card-hover), var(--bg-card-hover)) padding-box, 
    var(--neon-conic-gradient) border-box !important;
  border: 2px solid transparent !important;
  animation: rotateNeonBorder 3s linear infinite;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8), 0 0 20px var(--border-glow);
  transform: translateY(-4px) scale(1.01);
}

/* Neon Text Glow & Badges */
.neon-text-glow {
  color: #fff;
  text-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-secondary);
}

.hero-badge,
.section-badge,
.pillar-badge {
  background: 
    linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box, 
    var(--neon-conic-gradient) border-box;
  border: 1.5px solid transparent;
  animation: rotateNeonBorder 5s linear infinite;
  box-shadow: 0 0 15px var(--border-glow);
}

/* 3D Holographic Card Tilt Effect */
.tilt-card {
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ==========================================================================
   Ask JyotOS AI Interactive Modal Styles
   ========================================================================== */
.ai-modal-content {
  width: 90%;
  max-width: 820px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 88vh;
  overflow-y: auto;
}

.ai-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 14px;
}

.ai-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-modal-title h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ai-chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ai-quick-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-quick-prompts span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chip-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ai-chip-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 12px var(--border-glow);
}

.ai-query-box {
  display: flex;
  gap: 10px;
  background: var(--bg-card);
  padding: 6px 6px 6px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.ai-query-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.ai-query-box input::placeholder {
  color: var(--text-muted);
}

.btn-ai-submit {
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-ai-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px var(--neon-primary);
}

.ai-response-container {
  background: rgba(10, 16, 30, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 140px;
}

.ai-response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.ai-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neon-secondary);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background: var(--neon-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-secondary);
  animation: pulseDot 1.2s infinite;
}

.ai-metrics-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.ai-response-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-primary);
  min-height: 70px;
}

.ai-placeholder-msg {
  color: var(--text-muted);
  font-style: italic;
}

.ai-typing-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--neon-primary);
  margin-left: 4px;
  vertical-align: middle;
  animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.ai-action-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.btn-ai-action {
  background: var(--bg-card);
  border: 1px solid var(--neon-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-ai-action:hover {
  background: var(--neon-primary);
  box-shadow: 0 0 15px var(--neon-primary);
}

/* ==========================================================================
   GPU Performance & Eco Mode Optimization Styles
   ========================================================================== */
.eco-mode .ambient-glow {
  display: none !important;
}

.eco-mode #particle-canvas {
  opacity: 0.25 !important;
}

.eco-mode .presentation-header,
.eco-mode .presentation-footer,
.eco-mode .notes-drawer,
.eco-mode .modal-overlay {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--bg-secondary) !important;
}

.eco-mode .neon-border-orbit::before {
  display: none !important;
}

.eco-mode .neon-border-orbit {
  animation: none !important;
  border: 2px solid var(--neon-primary) !important;
  background: var(--bg-secondary) !important;
}

.eco-mode .hero-card.featured,
.eco-mode .feature-card:hover,
.eco-mode .curriculum-card:hover,
.eco-mode .placement-stat:hover,
.eco-mode .pillar-card:hover {
  animation: none !important;
  border-color: var(--neon-primary) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
}

