/* ============================================
   HOW LLMs WORK — Presentation Styles
   Dark theme, responsive, fullscreen-ready
   ============================================ */

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

:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #111638;
  --bg-card: #161b40;
  --text-primary: #ffffff;
  --text-secondary: #b0b8d0;
  --text-dim: #6b7394;
  --accent-cyan: #00d4ff;
  --accent-orange: #ff6b35;
  --accent-green: #00e676;
  --accent-pink: #ff4081;
  --accent-purple: #b388ff;
  --accent-yellow: #ffd740;
  --accent-red: #ff5252;
  --font-heading: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  --slide-padding: clamp(30px, 5vw, 80px);
  --transition-speed: 0.5s;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

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

/* --- Presentation Container --- */
.presentation {
  width: 100vw; height: 100vh;
  position: relative;
  overflow: hidden;
}

/* --- Slide Base --- */
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: var(--slide-padding);
  background: var(--bg-primary);
  overflow: hidden;
}

.slide.active {
  display: flex;
}

/* Slide layouts */
.slide.layout-center {
  align-items: center;
  text-align: center;
}

.slide.layout-center .slide-content {
  max-width: 1100px;
}

.slide.layout-split {
  flex-direction: row;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
}

.slide.layout-split .slide-text {
  flex: 1;
  min-width: 0;
}

.slide.layout-split .slide-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.slide-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* --- Typography --- */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: clamp(12px, 2vw, 24px);
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: clamp(10px, 1.5vw, 20px);
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: clamp(8px, 1.2vw, 16px);
}

p, li {
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: clamp(6px, 1vw, 14px);
}

.subtitle {
  font-size: clamp(18px, 2vw, 30px);
  color: var(--text-dim);
  font-weight: 300;
}

.small-text {
  font-size: clamp(14px, 1.5vw, 22px);
  color: var(--text-dim);
}

.label {
  font-size: clamp(12px, 1.2vw, 18px);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: clamp(4px, 0.5vw, 8px);
}

/* Accent text colors */
.text-cyan { color: var(--accent-cyan); }
.text-orange { color: var(--accent-orange); }
.text-green { color: var(--accent-green); }
.text-pink { color: var(--accent-pink); }
.text-purple { color: var(--accent-purple); }
.text-yellow { color: var(--accent-yellow); }

/* --- Quotes --- */
blockquote {
  position: relative;
  border: none;
  padding: clamp(20px, 3vw, 40px) clamp(24px, 3.5vw, 48px);
  margin: clamp(14px, 2vw, 28px) 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(179, 136, 255, 0.06) 100%);
  border-radius: 12px;
  border-left: none;
}

blockquote::before {
  content: '\201C';
  position: absolute;
  top: clamp(4px, 0.8vw, 10px);
  left: clamp(10px, 1.5vw, 20px);
  font-size: clamp(40px, 4vw, 64px);
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--accent-cyan);
  opacity: 0.4;
  line-height: 1;
}

blockquote p {
  font-style: italic;
  font-size: clamp(18px, 2vw, 30px);
  color: var(--text-primary);
  margin-bottom: 8px;
}

blockquote cite, blockquote .attribution {
  font-size: clamp(14px, 1.4vw, 22px);
  color: var(--accent-cyan);
  font-style: normal;
  font-weight: 500;
  opacity: 0.8;
}

/* --- Lists --- */
ul, ol {
  list-style: none;
  padding: 0;
}

li {
  position: relative;
  padding-left: clamp(20px, 2.5vw, 36px);
}

li::before {
  content: '';
  position: absolute;
  left: 0;
  top: clamp(8px, 1vw, 14px);
  width: clamp(6px, 0.8vw, 10px);
  height: clamp(6px, 0.8vw, 10px);
  background: var(--accent-cyan);
  border-radius: 50%;
}

li.bullet-orange::before { background: var(--accent-orange); }
li.bullet-green::before { background: var(--accent-green); }
li.bullet-pink::before { background: var(--accent-pink); }
li.bullet-purple::before { background: var(--accent-purple); }
li.bullet-yellow::before { background: var(--accent-yellow); }

/* --- Animation Steps --- */
.anim-step {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
  pointer-events: none;
}

.anim-step.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* SVG animation steps - no transform needed */
svg .anim-step {
  transform: none;
}

svg .anim-step.visible {
  transform: none;
}

/* --- SVG Diagrams --- */
.diagram-container {
  width: 100%;
  max-width: 900px;
  margin: clamp(10px, 2vw, 24px) auto;
}

.diagram-container svg {
  width: 100%;
  height: auto;
  display: block;
}

.diagram-container.large {
  max-width: 1100px;
}

.diagram-container.small {
  max-width: 600px;
}

/* --- Cards & Boxes --- */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: clamp(16px, 2vw, 28px);
}

.card-row {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  flex-wrap: wrap;
}

.card-row .card {
  flex: 1;
  min-width: 200px;
}

.highlight-box {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  padding: clamp(12px, 1.5vw, 20px);
  margin: clamp(6px, 1vw, 12px) 0;
}

.highlight-box.orange {
  background: rgba(255, 107, 53, 0.08);
  border-color: rgba(255, 107, 53, 0.25);
}

.highlight-box.green {
  background: rgba(0, 230, 118, 0.08);
  border-color: rgba(0, 230, 118, 0.25);
}

.highlight-box.pink {
  background: rgba(255, 64, 129, 0.08);
  border-color: rgba(255, 64, 129, 0.25);
}

.highlight-box.purple {
  background: rgba(179, 136, 255, 0.08);
  border-color: rgba(179, 136, 255, 0.25);
}

/* --- Code --- */
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(0, 212, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--accent-cyan);
}

.formula {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2vw, 30px);
  color: var(--accent-cyan);
  text-align: center;
  padding: clamp(8px, 1vw, 16px);
  background: rgba(0, 212, 255, 0.05);
  border-radius: 8px;
  margin: clamp(8px, 1.2vw, 16px) 0;
}

/* --- Table --- */
.slide-table {
  width: 100%;
  border-collapse: collapse;
  margin: clamp(10px, 1.5vw, 20px) 0;
}

.slide-table th, .slide-table td {
  padding: clamp(8px, 1vw, 16px) clamp(12px, 1.5vw, 20px);
  text-align: left;
  font-size: clamp(16px, 1.8vw, 26px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.slide-table th {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 22px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.slide-table td {
  color: var(--text-secondary);
}

/* --- Progress Bar --- */
.progress-bar {
  position: fixed;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
  z-index: 100;
}

/* --- Slide Counter --- */
.slide-counter {
  position: fixed;
  bottom: clamp(8px, 1.2vw, 16px);
  right: clamp(12px, 2vw, 24px);
  font-size: clamp(12px, 1.2vw, 18px);
  color: var(--text-dim);
  font-family: var(--font-mono);
  z-index: 100;
}

/* --- Step Indicator --- */
.step-indicator {
  position: fixed;
  bottom: clamp(8px, 1.2vw, 16px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 100;
}

.step-indicator .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.3s ease;
}

.step-indicator .dot.active {
  background: var(--accent-cyan);
}

/* --- Title Slide Special --- */
.slide.title-slide {
  background: radial-gradient(ellipse at 50% 50%, #111638 0%, #0a0e27 70%);
}

.title-slide h1 {
  font-size: clamp(40px, 6vw, 84px);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Section Transition Slides --- */
.slide.section-transition {
  background: radial-gradient(ellipse at 50% 50%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

.section-transition h2 {
  font-size: clamp(32px, 4.5vw, 64px);
}

/* --- Emphasis / Key Insight --- */
.key-insight {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 1.2vw, 16px);
  padding: clamp(10px, 1.5vw, 20px);
  background: rgba(0, 212, 255, 0.06);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 8px 8px 0;
  margin: clamp(8px, 1.2vw, 16px) 0;
}

.key-insight p {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0;
}

/* --- Citation --- */
.citation {
  font-size: clamp(11px, 1.1vw, 16px);
  color: var(--text-dim);
  font-style: italic;
  margin-top: clamp(4px, 0.6vw, 8px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .slide.layout-split {
    flex-direction: column;
  }
  .slide.layout-split .slide-visual {
    max-height: 50vh;
  }
}

@media (max-width: 768px) {
  :root {
    --slide-padding: 20px;
  }
}

/* --- Fullscreen --- */
.presentation:-webkit-full-screen { width: 100vw; height: 100vh; }
.presentation:-moz-full-screen { width: 100vw; height: 100vh; }
.presentation:fullscreen { width: 100vw; height: 100vh; }

/* --- Navigation hint (shown briefly on load) --- */
.nav-hint {
  position: fixed;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 200;
  transition: opacity 1s ease;
}

.nav-hint.hidden { opacity: 0; pointer-events: none; }

/* --- Gradient text utility --- */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Inline examples --- */
.example-row {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  flex-wrap: wrap;
  margin: clamp(8px, 1.2vw, 16px) 0;
}

.example-box {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  border-radius: 8px;
  padding: clamp(10px, 1.5vw, 20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.example-box .example-label {
  font-size: clamp(11px, 1.1vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
}

.example-box p {
  font-size: clamp(16px, 1.8vw, 26px);
  color: var(--text-primary);
  margin-bottom: 0;
}

/* --- Two-column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 36px);
  align-items: start;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: clamp(24px, 3vw, 40px);
}

.timeline::before {
  content: '';
  position: absolute;
  left: clamp(8px, 1vw, 14px);
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(0, 212, 255, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: clamp(10px, 1.5vw, 20px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(clamp(8px, 1vw, 14px) - clamp(24px, 3vw, 40px) - 4px);
  top: clamp(6px, 0.8vw, 10px);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 2px solid var(--bg-primary);
}

.timeline-item .year {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.5vw, 22px);
  color: var(--accent-cyan);
  font-weight: 600;
}

.timeline-item .event {
  font-size: clamp(16px, 1.8vw, 26px);
  color: var(--text-secondary);
}

/* --- Number highlight --- */
.big-number {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}
