/* ==========================================================================
   CSS DESIGN SYSTEM — FROM DATA TO DIET PRESENTATION
   Theme: Academic Light-Mode Glassmorphism (Projector & High-Readability Optimized)
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-canvas: #F4F7F5;
  --primary-green: #16A34A;
  --dark-green: #15803D;
  --deep-forest: #14532D;
  --light-green: #DCFCE7;
  --accent-glow: rgba(22, 163, 74, 0.22);
  --accent-border: rgba(22, 163, 74, 0.4);

  /* Neutrals & Text */
  --text-primary: #0F1713;
  --text-secondary: #4B554F;
  --text-muted: #78857C;

  /* Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-bg-hover: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-border-subtle: rgba(22, 163, 74, 0.16);
  --glass-blur: blur(20px);
  --glass-shadow: 0 16px 40px -10px rgba(15, 60, 30, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  --glass-shadow-hover: 0 20px 48px -10px rgba(22, 163, 74, 0.18), 0 4px 16px rgba(0, 0, 0, 0.04);

  /* Status Colors */
  --status-green: #16A34A;
  --status-yellow: #D97706;
  --status-red: #DC2626;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-accent: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-slide: 600ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-ui: 250ms ease;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   AMBIENT BACKGROUND EFFECTS
   ========================================================================== */

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

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.65;
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(220, 252, 231, 0.9) 0%, rgba(22, 163, 74, 0.1) 70%, transparent 100%);
  top: -120px;
  left: -80px;
}

.orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(240, 253, 244, 0.95) 0%, rgba(22, 163, 74, 0.08) 65%, transparent 100%);
  bottom: -150px;
  right: -100px;
  animation-duration: 26s;
  animation-delay: -5s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.06) 0%, transparent 70%);
  top: 40%;
  left: 45%;
  animation-duration: 18s;
  animation-delay: -10s;
}

.bg-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(22, 163, 74, 0.14) 1.2px, transparent 1.2px);
  background-size: 36px 36px;
  opacity: 0.5;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -25px) scale(1.06); }
  100% { transform: translate(-25px, 35px) scale(0.95); }
}

/* ==========================================================================
   GLASSMORPHISM BASE CLASS
   ========================================================================== */

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition-ui), box-shadow var(--transition-ui), background-color var(--transition-ui);
}

.glass-panel:hover {
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-hover);
}

/* ==========================================================================
   TOP PRESENTATION HEADER
   ========================================================================== */

.presentation-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  pointer-events: auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topic-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dark-green);
  background: var(--light-green);
  padding: 4px 12px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.header-divider {
  color: var(--text-muted);
  font-size: 14px;
}

.header-topic {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.key-hint {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.kbd-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--text-primary);
  font-weight: 700;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition-ui);
}

.icon-btn:hover {
  background: #ffffff;
  color: var(--primary-green);
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.15);
}

/* ==========================================================================
   VIEWPORT & SLIDE ARCHITECTURE
   ========================================================================== */

.slides-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97) translateY(12px);
  transition: opacity var(--transition-slide), transform var(--transition-slide), visibility var(--transition-slide);
  pointer-events: none;
}

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

.slide.exiting {
  opacity: 0;
  transform: scale(1.02) translateY(-12px);
  transition: opacity 400ms ease, transform 400ms ease;
}

/* Safe Area Inner Container */
.slide-safe-area {
  width: 92%;
  max-width: 1360px;
  height: calc(100vh - 120px);
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Reusable Header & Badges */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary-green);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.slide-heading {
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
}

.slide-header {
  margin-bottom: 16px;
}

/* Staggered Entrance Animations */
.slide.active .anim-stagger {
  animation: slideFadeUp 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--order, 1) * 85ms);
}

@keyframes slideFadeUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   SLIDE 01: THE PROBLEM
   ========================================================================== */

.slide-1-layout {
  text-align: left;
  justify-content: space-between;
  padding: 30px 0 15px 0;
}

.hero-title-group {
  margin-top: 5px;
}

.main-title {
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--text-primary);
}

.title-accent {
  color: var(--primary-green);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 960px;
  line-height: 1.35;
}

.hero-statement {
  margin: 14px 0;
}

.statement-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border-left: 5px solid var(--primary-green);
}

.statement-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-green);
  box-shadow: 0 0 12px var(--primary-green);
}

.statement-card p {
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  font-weight: 600;
  color: var(--text-primary);
}

/* Key Dimensions Pillars (Health, Education, Ability to Work) */
.key-dimensions-wrapper {
  margin: 10px 0 16px 0;
}

.dimensions-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dimension-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
}

.dim-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.dim-health {
  background: rgba(220, 252, 231, 0.85);
  color: var(--primary-green);
}

.dim-edu {
  background: rgba(219, 234, 254, 0.85);
  color: #2563EB;
}

.dim-work {
  background: rgba(254, 243, 199, 0.85);
  color: #D97706;
}

.dim-content {
  display: flex;
  flex-direction: column;
}

.dim-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.dim-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 2px 0 3px 0;
}

.dim-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.slide-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(22, 163, 74, 0.2);
  font-family: var(--font-accent);
  font-size: 13px;
  color: var(--text-muted);
}

.meta-tag, .meta-presenter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-presenter {
  font-weight: 700;
  color: var(--text-secondary);
}

/* ==========================================================================
   SLIDE 02: WHAT AFFECTS NUTRITION?
   ========================================================================== */

.slide-2-layout {
  justify-content: space-between;
  padding: 15px 0;
}

.network-constellation {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px 0;
}

.network-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.net-link {
  stroke-dashoffset: 0;
  animation: dashLink 14s linear infinite;
}

@keyframes dashLink {
  to { stroke-dashoffset: 100; }
}

/* Center Core Card */
.center-core-card {
  position: relative;
  z-index: 10;
  padding: 30px 42px;
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 2.5px solid rgba(22, 163, 74, 0.45);
  box-shadow: 0 20px 50px -10px rgba(22, 163, 74, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hub-icon-badge {
  font-size: 26px;
  color: var(--primary-green);
  margin-bottom: 6px;
}

.core-pulse-ring {
  position: absolute;
  inset: -12px;
  border-radius: 40px;
  border: 2px solid rgba(22, 163, 74, 0.35);
  animation: ringPulse 3s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes ringPulse {
  0% { transform: scale(0.96); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 0.15; }
  100% { transform: scale(0.96); opacity: 0.9; }
}

.core-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary-green);
  margin-bottom: 4px;
}

.core-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.15;
}

.core-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

/* Six Factor Cards Arranged Organically */
.factor-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.06);
}

.factor-icon-wrap {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(220, 252, 231, 0.7);
  color: var(--dark-green);
  border-radius: 12px;
}

.factor-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

/* Organic Orbital Positions */
.factor-pos-1 { top: 25px; left: 8%; }
.factor-pos-2 { top: 8px; left: 41%; }
.factor-pos-3 { top: 25px; right: 8%; }
.factor-pos-4 { bottom: 25px; left: 8%; }
.factor-pos-5 { bottom: 8px; left: 41%; }
.factor-pos-6 { bottom: 25px; right: 8%; }

/* Gentle Floating Oscillations */
.anim-float-1 { animation: floatSoft1 7s ease-in-out infinite alternate; }
.anim-float-2 { animation: floatSoft2 8s ease-in-out infinite alternate; }
.anim-float-3 { animation: floatSoft3 6.5s ease-in-out infinite alternate; }

@keyframes floatSoft1 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

@keyframes floatSoft2 {
  0% { transform: translateY(-6px); }
  100% { transform: translateY(6px); }
}

@keyframes floatSoft3 {
  0% { transform: translateY(5px); }
  100% { transform: translateY(-7px); }
}

/* Bottom Question Card */
.question-card-wrapper {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.question-glass-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 36px;
  max-width: 1050px;
  width: 100%;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(22, 163, 74, 0.35);
  box-shadow: 0 14px 35px -8px rgba(22, 163, 74, 0.18);
}

.question-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--light-green);
  color: var(--primary-green);
  font-size: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.question-text {
  font-size: clamp(1.15rem, 1.45vw, 1.4rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.highlight-green {
  color: var(--dark-green);
  font-weight: 800;
  background: rgba(220, 252, 231, 0.65);
  padding: 3px 8px;
  border-radius: 8px;
}

/* ==========================================================================
   SLIDE 03: FROM DATA TO PREDICTION (Vertical Data Boxes & Aligned Lines)
   ========================================================================== */

.slide-3-layout {
  justify-content: space-between;
  padding: 10px 0;
}

/* Source Cards Row */
.source-cards-row {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.source-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.source-acronym {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--dark-green);
  background: var(--light-green);
  padding: 4px 10px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.source-desc {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Pipeline Flow Container: Symmetrical 3 Columns */
.pipeline-flow-container {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr 290px;
  align-items: center;
  gap: 40px;
  margin: auto 0;
  min-height: 420px;
}

/* Dynamic SVG overlay for lines connecting vertical boxes */
.pipeline-connector-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.stream-line {
  animation: streamFlow 14s linear infinite;
}

@keyframes streamFlow {
  to { stroke-dashoffset: -100; }
}

.column-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.col-indicator {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-green);
  background: var(--light-green);
  padding: 3px 8px;
  border-radius: 5px;
}

.col-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

/* Left: Vertical Data Boxes */
.pipe-left {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

.data-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.data-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-ui);
}

.data-chip:hover {
  border-color: var(--primary-green);
  transform: translateX(4px);
}

.chip-icon {
  font-size: 14px;
  color: var(--primary-green);
  width: 18px;
  text-align: center;
}

/* Center: Robotic Brain Machine Learning Card */
.pipe-center {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
}

.robotic-brain-card {
  position: relative;
  padding: 24px 26px;
  max-width: 380px;
  width: 100%;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(22, 163, 74, 0.45);
  box-shadow: 0 20px 50px -10px rgba(22, 163, 74, 0.28);
  text-align: center;
  overflow: hidden;
}

/* Robotic Hologram Brain Animation */
.brain-pulse-ring {
  position: absolute;
  inset: -15px;
  border-radius: 36px;
  border: 1.5px dashed rgba(22, 163, 74, 0.4);
  animation: cyberPulse 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes cyberPulse {
  0% { transform: scale(0.97); opacity: 0.5; }
  100% { transform: scale(1.03); opacity: 1; border-color: rgba(34, 197, 94, 0.7); }
}

.brain-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(22, 163, 74, 0.8), transparent);
  animation: brainScan 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes brainScan {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.brain-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.brain-core-icon {
  font-size: 38px;
  color: var(--primary-green);
  animation: brainBeat 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(22, 163, 74, 0.35));
}

@keyframes brainBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.synapse-nodes {
  position: absolute;
  inset: 0;
}

.synapse {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: synapseFlicker 1.8s infinite alternate;
}

.s1 { top: -2px; left: 10px; }
.s2 { top: 14px; right: -4px; animation-delay: 0.6s; }
.s3 { bottom: 0px; left: 2px; animation-delay: 1.2s; }

@keyframes synapseFlicker {
  0% { opacity: 0.2; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.3); }
}

.ml-header {
  margin-bottom: 14px;
}

.ml-chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--dark-green);
  background: var(--light-green);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 4px;
}

.ml-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.model-pills {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}

.model-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(245, 248, 246, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
}

.pill-fa {
  font-size: 15px;
  color: var(--text-muted);
}

.highlight-pill {
  background: rgba(220, 252, 231, 0.85);
  border-color: rgba(22, 163, 74, 0.45);
}

.highlight-pill .pill-fa {
  color: var(--primary-green);
}

.highlight-pill .model-name {
  color: var(--dark-green);
  font-weight: 800;
}

.ml-tagline {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
  font-weight: 500;
}

/* Right: Prediction Cards */
.pipe-right {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

.prediction-cards-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.outcome-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
}

.status-icon-green {
  font-size: 24px;
  color: var(--status-green);
}

.status-icon-yellow {
  font-size: 24px;
  color: var(--status-yellow);
}

.status-icon-red {
  font-size: 24px;
  color: var(--status-red);
}

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

.outcome-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.outcome-note {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.outcome-green {
  border-left: 5px solid var(--status-green);
  background: rgba(240, 253, 244, 0.9);
}

.outcome-yellow {
  border-left: 5px solid var(--status-yellow);
  background: rgba(254, 252, 232, 0.9);
}

.outcome-red {
  border-left: 5px solid var(--status-red);
  background: rgba(254, 242, 242, 0.9);
}

/* ==========================================================================
   SLIDE 04: WHY IT MATTERS (Fixed Zero-Overlap Poverty-Nutrition Cycle)
   ========================================================================== */

.slide-4-layout {
  justify-content: space-between;
  padding: 10px 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin: auto 0;
}

.impact-col {
  display: flex;
  flex-direction: column;
}

.col-subheading {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.center-sub {
  justify-content: center;
  color: var(--primary-green);
}

/* Left: Vertical Chain */
.vertical-chain {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  border-radius: 22px;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
}

.chain-step {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
}

.step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--light-green);
  color: var(--dark-green);
  font-size: 14px;
  border-radius: 8px;
  flex-shrink: 0;
}

.step-text {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.highlight-step {
  background: rgba(220, 252, 231, 0.75);
  border-color: rgba(22, 163, 74, 0.45);
}

.highlight-step .step-text {
  color: var(--deep-forest);
}

.chain-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary-green);
  animation: pulseArrowDown 1.8s ease-in-out infinite alternate;
}

@keyframes pulseArrowDown {
  0% { transform: translateY(-3px); opacity: 0.6; }
  100% { transform: translateY(3px); opacity: 1; }
}

/* User's Exact Requested Support Box */
.targeted-support-message {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(240, 253, 244, 0.95);
  border: 1.5px solid rgba(22, 163, 74, 0.35);
  box-shadow: 0 8px 22px -6px rgba(22, 163, 74, 0.15);
  margin-top: 4px;
}

.support-icon-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-green);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.support-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark-green);
  line-height: 1.35;
}

/* Centerpiece: The Poverty-Nutrition Cycle (Zero Overlap Guaranteed) */
.cycle-centerpiece {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(22, 163, 74, 0.35);
  box-shadow: 0 20px 50px -10px rgba(22, 163, 74, 0.2);
}

.cycle-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.orbit-container {
  position: relative;
  width: 460px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orbit-arc {
  animation: dashOrbit 14s linear infinite;
}

@keyframes dashOrbit {
  to { stroke-dashoffset: 100; }
}

/* Central Hub: Unobstructed & Centered */
.cycle-inner-hub {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px dashed var(--primary-green);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.18);
}

.hub-spin-icon {
  font-size: 16px;
  color: var(--primary-green);
  margin-bottom: 2px;
  animation: spinIcon 10s linear infinite;
}

@keyframes spinIcon {
  to { transform: rotate(360deg); }
}

.cycle-inner-hub span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.cycle-inner-hub strong {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--dark-green);
  font-weight: 800;
}

/* 4 Quadrant Cycle Nodes with Guaranteed Zero Overlap */
.cycle-node {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(22, 163, 74, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  white-space: nowrap;
}

.cycle-node-icon {
  font-size: 14px;
  color: var(--primary-green);
}

.cnode-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

/* TOP CARD: Low Income */
.node-top {
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
}

/* BOTTOM CARD: Poor Health */
.node-bottom {
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
}

/* LEFT CARD: Lower Productivity (Pushed outward to left with 30px clear gap from center hub) */
.node-left {
  right: calc(50% + 78px);
  top: 50%;
  transform: translateY(-50%);
}

/* RIGHT CARD: Poor Nutrition (Pushed outward to right with 30px clear gap from center hub) */
.node-right {
  left: calc(50% + 78px);
  top: 50%;
  transform: translateY(-50%);
}

/* Right: ML Limitations */
.limitations-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
}

.limitations-header {
  margin-bottom: 18px;
}

.warn-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #B45309;
  background: #FEF3C7;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.limitations-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.limitations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.limit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.limit-bullet {
  color: #9CA3AF;
  font-size: 14px;
  font-weight: 800;
  margin-top: 2px;
}

.limit-text {
  display: flex;
  flex-direction: column;
}

.limit-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.limit-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Strongest Highlight */
.key-limitation {
  background: rgba(254, 242, 242, 0.9);
  border: 1.5px solid rgba(220, 38, 38, 0.4);
  box-shadow: 0 10px 24px -6px rgba(220, 38, 38, 0.18);
}

.strong-highlight {
  color: var(--status-red);
  font-size: 15.5px;
}

.limit-star {
  color: var(--status-red);
  font-size: 16px;
  margin-top: 2px;
}

/* ==========================================================================
   SLIDE 05: CONCLUSION (Refined & Minimalist)
   ========================================================================== */

.slide-5-layout {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.conclusion-main-card {
  max-width: 980px;
  padding: 42px 54px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(22, 163, 74, 0.35);
  box-shadow: 0 24px 60px -12px rgba(22, 163, 74, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.conclusion-icon-aura {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--light-green);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 25px rgba(22, 163, 74, 0.35);
}

.conclusion-statement {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  font-style: italic;
  max-width: 860px;
}

.thank-you-block {
  margin-top: 15px;
}

.thank-you-heading {
  font-size: clamp(4rem, 7.5vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 0.95;
}

.presenter-credit {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.presenter-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark-green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.presenter-tag {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ==========================================================================
   BOTTOM NAVIGATION CONTROLS & PROGRESS BAR
   ========================================================================== */

.presentation-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
}

/* Bottom Progress Track */
.progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(22, 163, 74, 0.12);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #16A34A, #22C55E);
  transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(22, 163, 74, 0.6);
}

/* Glass Controls Dock */
.controls-dock {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 22px;
  border-radius: 100px;
  pointer-events: auto;
  margin-bottom: 10px;
}

.nav-control-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-ui);
}

.nav-control-btn:hover:not(:disabled) {
  background: #ffffff;
  color: var(--primary-green);
  border-color: var(--primary-green);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.2);
  transform: translateY(-1px);
}

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

.slide-counter-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  padding: 0 8px;
}

.current-slide {
  color: var(--primary-green);
}

.counter-sep {
  color: var(--text-muted);
}

.total-slides {
  color: var(--text-secondary);
}

/* Interaction Ripple Feedback */
.interaction-ripple {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleAnim 450ms cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

.ripple-next {
  border: 2px solid rgba(22, 163, 74, 0.7);
  background: rgba(220, 252, 231, 0.35);
}

.ripple-prev {
  border: 2px solid rgba(217, 119, 6, 0.7);
  background: rgba(254, 243, 199, 0.35);
}

@keyframes rippleAnim {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS (Laptops & Projectors)
   ========================================================================== */

@media (max-height: 840px) {
  .slide-safe-area {
    height: calc(100vh - 100px);
  }
  .network-constellation {
    height: 370px;
  }
  .orbit-container {
    width: 420px;
    height: 400px;
  }
  .robotic-brain-card {
    padding: 20px 20px;
  }
  .main-title {
    font-size: 3.8rem;
  }
  .data-chip {
    padding: 6px 14px;
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .pipeline-flow-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .impact-grid {
    grid-template-columns: 1fr;
  }
  .dimensions-grid {
    grid-template-columns: 1fr;
  }
}
