:root {
  /* Positronic Palette */
  --bg-body: #0a0f1e;
  --bg-surface: #0f1419;
  --bg-surface-soft: #0f1520;
  --bg-elevated: #141929;

  --accent: #B1E74F; /* Positronic Lime */
  --accent-soft: rgba(177, 231, 79, 0.18);
  --accent-muted: rgba(177, 231, 79, 0.08);

  --text-primary: #f9fafb;
  --text-secondary: #cbd5f5;
  --text-muted: #9ca3af;

  --border-subtle: rgba(148, 163, 184, 0.18);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; color: var(--text-primary); }
h3 { font-size: 1.5rem; color: var(--accent); margin-bottom: 0.5rem; }

p { color: var(--text-secondary); max-width: 60ch; }

/* Navigation Dots */
.navigation-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-muted);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--accent);
  opacity: 1;
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--accent-soft);
}

/* Scrollytelling Sections */
.slide {
  min-height: 100vh;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide.visible .content {
  opacity: 1;
  transform: translateY(0);
}

/* Layouts */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
/* New Paradigm (Merged) */
.paradigm-comparison {
  display: flex;
  gap: 4rem;
  align-items: center;
  justify-content: center;
}

.paradigm-side {
  flex: 1;
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.paradigm-side.old { opacity: 0.7; }
.paradigm-side.new {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-muted);
}

.comparison-arrow {
  font-size: 3rem;
  color: var(--accent);
}

/* Paper Slides */
.paper-slide {
  background: radial-gradient(circle at center, var(--bg-elevated), var(--bg-body));
}

.paper-content {
  display: grid;
  grid-template-columns: 1fr 2.5fr; /* Much more space for Visual */
  gap: 2rem;
  align-items: center;
  height: 80vh; /* Force height to maximize vertical space too */
}

.paper-visual {
  /* Removed box styling */
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  overflow: visible; /* changed from hidden to visible */
}

.paper-graphic {
  font-size: 4rem; /* Placeholder icon size */
  margin-bottom: 1rem;
}

/* ... (other styles) ... */

.paper-image {
  max-width: 100%;
  max-height: 75vh; /* Slightly increased */
  width: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5); /* Kept shadow for depth, removed box */
  margin-bottom: 0;
  object-fit: contain;
  background: transparent; /* Removed white bg */
  padding: 0; /* Removed padding */
}

.key-idea-box {
  background: rgba(177, 231, 79, 0.05); /* Very subtle lime */
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin-top: 2rem;
  border-radius: 0 8px 8px 0;
}

.key-idea-box h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

/* Input Space Placeholder */
.data-placeholder-box {
  border: 2px dashed var(--border-subtle);
  border-radius: 12px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  color: var(--text-muted);
  flex-direction: column;
  gap: 1rem;
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .paradigm-comparison, .paper-content {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
}

.centered-layout {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* Specific Slide Styles */

/* Title Slide */
.title-slide {
  background: radial-gradient(circle at top right, var(--accent-soft), transparent 60%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.25rem;
  margin-top: 1rem;
  color: var(--text-primary);
}

.speaker-info {
  margin-top: 3rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  color: var(--text-secondary);
}

.hero-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--border-subtle);
}

/* Headers */
header { margin-bottom: 2rem; }
.slide-subtitle { color: var(--accent); font-size: 1.125rem; }

/* Cards & Timeline */
.timeline {
  border-left: 2px solid var(--border-subtle);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--bg-body);
  border: 2px solid var(--text-muted);
  border-radius: 50%;
}

.timeline-item.highlight::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.card {
  background: var(--bg-elevated);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-soft);
}

.highlight-card {
  border-color: var(--accent);
  background: linear-gradient(145deg, var(--bg-elevated), var(--accent-muted));
}

/* Math blocks */
.math-block {
  font-size: 2rem;
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  text-align: center;
  font-family: var(--font-mono);
}

/* Architecture Landscape */
.architecture-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.arch-item {
  background: var(--bg-surface-soft);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--border-subtle);
}

.arch-item.highlight-border {
  border-left-color: var(--accent);
}

.badge {
  display: inline-block;
  background: var(--accent-muted);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
  border: 1px solid var(--accent-soft);
}

/* Process Flow (Zero Shot) */
.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: 12px;
  width: 250px;
  text-align: center;
}

.step.negative { border-top: 4px solid #f87171; }
.step.reality { border-top: 4px solid #fbbf24; }
.step.solution { border-top: 4px solid var(--accent); }

.arrow { font-size: 2rem; color: var(--text-muted); }
.stat {
  display: block;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

/* Specific adjustment for Slide 6 (Input Space) Image */
#input-space .hero-image {
  max-height: 45vh;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Interactive Video Card Styles */
.video-thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  background: black;
  display: block; /* Ensure it works as a block link */
}

.video-thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.9;
}

.video-thumbnail-container:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  z-index: 2;
}

.video-thumbnail-container:hover .play-overlay {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px rgba(177, 231, 79, 0.4);
}

.play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent white;
  margin-left: 6px; /* Optical adjustment */
  transition: border-color 0.3s ease;
}

.video-thumbnail-container:hover .play-icon {
  border-color: transparent transparent transparent black;
}

.caption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-muted);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-body);
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-soft);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.qr-container {
  margin-top: 3rem;
  text-align: center;
}

.qr-container img {
  width: 200px;
  height: 200px;
  border: 2px solid var(--accent);
  padding: 10px;
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .split-layout, .grid-3, .grid-2, .process-flow, .video-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .navigation-dots { display: none; }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .slide { padding: 3rem 1.5rem; }
}

/* Bio Column (Slide 2) - UPDATED */
.bio-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.bio-left {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-end;
}

.bio-right {
  text-align: left;
}

.bio-photo-large {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.company-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.company-item {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align to right? Or left? Let's check HTML */
  gap: 1.5rem;
  background: var(--bg-surface-soft);
  padding: 1rem 1.5rem;
  border-radius: 50px; /* Pill shape */
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s;
}

.company-item:hover {
  border-color: var(--accent);
  transform: translateX(-10px);
}

.company-logo-small {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: white; /* Ensures visibility for black/color logos on dark theme */
  padding: 4px;
  opacity: 1;
}

.company-text h3 { margin: 0; font-size: 1.1rem; }
.company-text p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* Historical Cards (Slide 3) - Simplification */
.historical-arrow {
  font-size: 2rem;
  color: var(--accent);
  margin: 0;
  flex-shrink: 0;
}

.comparison-box {
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Software 1.0 (Slide 4) - Simplified */
.software-limit-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.styled-list li {
  list-style: none;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.paradox-box {
  background: rgba(255, 68, 68, 0.1);
  border-left: 4px solid #ff4444;
  padding: 1rem;
  margin-top: 2rem;
  color: #ffcccc;
}

/* Data Pyramid (Slide 10) - Refined */
.pyramid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  position: relative;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

/* Perfect Geometry Stack */
/* Concept: Total Width 600px, Total Height 400px.
   Split at Y=120px (30% from top).
   Slope aspect: W=600, H=400.
   At Y=120, Width = 600 * (120/400) = 180px.
*/

.triangle-stack {
  width: 600px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tip-section {
  width: 270px; /* Calculated: 600 * (180/400) */
  height: 180px; /* Increase height */
  background: linear-gradient(135deg, #ff6b6b, #ee4444); /* Red Gradient */
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* Move text to bottom */
  padding-bottom: 0.8rem; /* Spacing from bottom edge */
  margin-bottom: 2px; /* Visual gap */
  position: relative;
  z-index: 2;
}

.base-section {
  width: 600px;
  height: 220px; /* Decrease height (400 - 180) */
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border-top: 2px solid rgba(255,255,255,0.05);
  /*
     Top width = 270px.
     Offset = (600 - 270)/2 = 165px.
     165px / 600px = 0.275 (27.5%)
  */
  clip-path: polygon(27.5% 0%, 72.5% 0%, 100% 100%, 0% 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* keep base centered */
  position: relative;
  z-index: 1;
}

.tip-label, .base-label {
  text-align: center;
  line-height: 1.2;
}

/* Tip Text - Increase Size to match Base */
.tip-label h3 {
  font-size: 1.5rem; /* MATCHING BASE VISUALLY */
  margin: 0 0 0.25rem 0;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.tip-label p {
  font-size: 1rem; /* Increase from 0.75rem */
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

/* Base Text */
.base-label h3 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}
.base-label p {
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-muted);
}

.pyramid-quote {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--accent);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

/* Code Block Styling */
.code-block {
  background: #1e1e1e; /* VS Code Dark background */
  color: #d4d4d4;
  padding: 1.5rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  text-align: left;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  font-size: 1.1rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.keyword { color: #569cd6; font-weight: bold; } /* Blue for if/def */
.function { color: #dcdcaa; } /* Yellow for functions */
.number { color: #b5cea8; } /* Green for numbers */

.paper-image {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  margin-bottom: 0;
  object-fit: contain;
  background: transparent;
  padding: 0;
}

/* Card Accents for Slide 12 */
.card.accent-red { border-top: 4px solid #f87171; }
.card.accent-yellow { border-top: 4px solid #fbbf24; }
.card.accent-green { border-top: 4px solid var(--accent); }

/* Workflow Diagram Styles */
.arrow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.arrow-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-body);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.step.workflow-step {
  background: var(--bg-body); /* Darker than cards */
  border: 1px dashed var(--text-muted); /* Dashed to show it's a process flow */
  padding: 1rem 2rem;
  min-width: 150px;
  border-radius: 100px; /* Pill shape */
  width: auto; /* Allow auto width */
  box-shadow: none; /* remove card shadow */
}

.step.workflow-step h3 {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}

.step.workflow-step p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-muted);
}

.step.workflow-step.highlight-step {
  background: rgba(177, 231, 79, 0.05);
  border: 1px solid var(--accent) !important;
  box-shadow: 0 0 20px var(--accent-muted);
}

.step.workflow-step.highlight-step h3 {
  color: var(--accent);
}

