@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ===========================================
   THE EVOLUTION OF THE HARNESS - REVEAL.JS THEME
   IIT Gandhinagar · Agentic Engineering
   =========================================== */

:root {
  --background-color: #080c18;
  --section-divider-bg: #04070f;

  /* Typography */
  --heading-font: "Space Grotesk", sans-serif;
  --body-font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --code-font: "IBM Plex Mono", monospace;
  --base-font-size: 32px;
  --text-size: 16pt;
  --h1-size: 44pt;
  --h2-size: 28pt;
  --h3-size: 19pt;
  --footnote-size: 9.5pt;

  /* Color Palette */
  --primary-color: #38bdf8;     /* Cyan / Tool / API */
  --secondary-color: #fbbf24;   /* Amber / Warning / Key insight */
  --agent-color: #f472b6;       /* Pink / Agent & Subagents */
  --good-color: #4ade80;        /* Emerald / Success / Test Passed */
  --purple-color: #a78bfa;      /* Violet / Lifecycle Hooks */
  --text-color: #f1f5f9;
  --muted-color: #94a3b8;
  --line-color: #1e293b;
  --card-bg: rgba(15, 23, 42, 0.88);

  /* Layout */
  --slide-padding: 56px;
  --slide-padding-top: 36px;
  --content-gap: 20px;
  --box-radius: 12px;
}

/* Base Reveal Override */
.reveal {
  font-family: var(--body-font);
  font-size: var(--base-font-size);
  color: var(--text-color);
}

.reveal strong, .reveal b {
  font-weight: 700;
  color: #fff;
}

.reveal em {
  color: var(--secondary-color);
  font-style: italic;
}

.reveal-viewport {
  background:
    radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.12), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(244, 114, 182, 0.10), transparent 26%),
    radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.05), transparent 45%),
    var(--background-color);
}

.reveal-viewport.is-section-divider .slide-background.present {
  background-color: var(--section-divider-bg) !important;
}

/* Headings */
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: var(--heading-font);
  text-transform: none;
  color: var(--text-color);
  font-weight: 600;
  line-height: 1.2;
}

.reveal h1 { font-size: var(--h1-size); letter-spacing: -0.03em; }
.reveal h2 { font-size: var(--h2-size); margin-bottom: 0; }
.reveal h3 { font-size: var(--h3-size); margin-bottom: 8px; }

.reveal p, .reveal li, .reveal td, .reveal th, .reveal blockquote {
  font-size: var(--text-size);
  color: var(--text-color);
  line-height: 1.45;
}

/* Slide Layout */
.reveal .slides section {
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  padding: var(--slide-padding-top) var(--slide-padding) var(--slide-padding) var(--slide-padding) !important;
  box-sizing: border-box;
  text-align: left;
}

.reveal .slides section.stack {
  padding: 0 !important;
}

.reveal .slides section > .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: var(--content-gap);
  text-align: left;
  min-height: 0;
}

.reveal .slides section:not(.section-divider)::after {
  content: '';
  position: absolute;
  left: var(--slide-padding);
  right: var(--slide-padding);
  bottom: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-color), transparent 40%, var(--agent-color));
  opacity: 0.3;
}

.reveal .slides section > h2 {
  flex-shrink: 0;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-color);
}

.reveal .slides section > h2::before {
  content: '// ';
  color: var(--primary-color);
  font-family: var(--code-font);
  font-weight: 500;
}

/* Footnote */
.reveal .slides section > .footnote {
  position: absolute;
  bottom: 10px;
  left: var(--slide-padding);
  right: var(--slide-padding);
  font-size: var(--footnote-size);
  color: var(--muted-color);
  font-family: var(--code-font);
}

.reveal .slides section > .footnote a {
  color: var(--muted-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Section Dividers */
.reveal .slides section.section-divider {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  background:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
}

.reveal .slides section.section-divider h1 {
  font-size: 50pt;
  text-align: center;
  max-width: 1100px;
  margin: 0;
}

.reveal .slides section.section-divider .kicker,
.reveal .kicker {
  margin: 0 0 12px 0;
  color: var(--secondary-color);
  font-family: var(--code-font);
  font-size: 11.5pt;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reveal .slides section.section-divider .subtitle {
  max-width: 920px;
  margin: 16px 0 0 0;
  color: var(--muted-color);
  font-size: 21pt;
}

.reveal .slides section.section-divider .course {
  margin-top: 30px;
  color: var(--primary-color);
  font-family: var(--code-font);
  font-size: 11.5pt;
}

/* Lists */
.reveal ul {
  list-style: none;
  padding-left: 0;
  margin: 10px 0;
}

.reveal ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.reveal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--primary-color);
  border-radius: 50%;
}

.reveal ul ul li::before {
  background: var(--muted-color);
  width: 5px;
  height: 5px;
}

/* Code & Pre Blocks */
.reveal code, .reveal pre {
  font-family: var(--code-font);
}

.reveal pre {
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  box-sizing: border-box;
  background: #030712;
  border: 1px solid #1e293b;
  border-radius: var(--box-radius);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.reveal pre code {
  max-height: none;
  padding: 0;
  color: #e2e8f0;
  font-size: 12.5pt;
  line-height: 1.42;
}

/* Split Columns */
.reveal .split {
  display: grid;
  gap: 20px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.reveal .split.even { grid-template-columns: 1fr 1fr; }
.reveal .split.three { grid-template-columns: 1fr 1fr 1fr; }
.reveal .split.four { grid-template-columns: 1fr 1fr 1fr 1fr; }
.reveal .split.left-heavy { grid-template-columns: 1.3fr 1fr; }
.reveal .split.right-heavy { grid-template-columns: 1fr 1.3fr; }

/* Cards & Containers */
.reveal .card {
  padding: 18px 20px;
  border: 1px solid var(--line-color);
  border-radius: var(--box-radius);
  background: var(--card-bg);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.reveal .card h3 {
  margin: 0 0 10px 0;
  color: var(--primary-color);
  font-size: 16.5pt;
}

.reveal .card p:last-child { margin-bottom: 0; }

.reveal .card.cyan { border-color: rgba(56, 189, 248, 0.45); }
.reveal .card.amber { border-color: rgba(251, 191, 36, 0.45); }
.reveal .card.amber h3 { color: var(--secondary-color); }
.reveal .card.magenta { border-color: rgba(244, 114, 182, 0.45); }
.reveal .card.magenta h3 { color: var(--agent-color); }
.reveal .card.green { border-color: rgba(74, 222, 128, 0.45); }
.reveal .card.green h3 { color: var(--good-color); }
.reveal .card.purple { border-color: rgba(167, 139, 250, 0.45); }
.reveal .card.purple h3 { color: var(--purple-color); }

/* Badges & Pills */
.reveal .pill {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 4px 6px 0;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 999px;
  color: var(--primary-color);
  background: rgba(56, 189, 248, 0.08);
  font-family: var(--code-font);
  font-size: 9.5pt;
}

.reveal .pill.amber {
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--secondary-color);
  background: rgba(251, 191, 36, 0.08);
}

.reveal .pill.pink {
  border-color: rgba(244, 114, 182, 0.4);
  color: var(--agent-color);
  background: rgba(244, 114, 182, 0.08);
}

.reveal .pill.green {
  border-color: rgba(74, 222, 128, 0.4);
  color: var(--good-color);
  background: rgba(74, 222, 128, 0.08);
}

.reveal .pill.purple {
  border-color: rgba(167, 139, 250, 0.4);
  color: var(--purple-color);
  background: rgba(167, 139, 250, 0.08);
}

/* Artifact Frame for Evidence/Images */
.reveal .artifact-frame {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 14px;
  background: #020617;
  box-shadow: 0 18px 45px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reveal .artifact-frame img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  max-height: none;
}

/* Blockquotes */
.reveal blockquote {
  border-left: 4px solid var(--secondary-color);
  padding: 14px 20px;
  margin: 12px 0;
  font-style: normal;
  background: rgba(251, 191, 36, 0.06);
  border-radius: 0 8px 8px 0;
  box-shadow: none;
  width: 100%;
  max-width: none;
}

.reveal blockquote p {
  font-size: 15pt;
  color: #fef08a;
  margin: 0;
}

/* Tables */
.reveal table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line-color);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
}

.reveal table th {
  padding: 10px 14px;
  color: var(--primary-color);
  background: rgba(56, 189, 248, 0.1);
  border-bottom: 1px solid var(--line-color);
  font-family: var(--code-font);
  font-size: 11pt;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reveal table td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  font-size: 12pt;
  line-height: 1.35;
}

.reveal table tr:last-child td { border-bottom: 0; }

/* Mermaid Container */
.reveal .mermaid {
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  font-family: var(--code-font);
  font-size: 10pt;
}

.reveal .mermaid svg {
  max-width: 100% !important;
  max-height: 100% !important;
}

/* Product screenshots used to ground feature terminology in a familiar UI. */
.reveal .feature-screenshot {
  display: block;
  width: 100%;
  height: 142px;
  margin: 10px 0 8px;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  background: #030712;
}

.reveal .compact-card p {
  margin: 0;
  font-size: 16pt;
}

/* Timeline & Steps */
.reveal .step-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.reveal .step-item {
  position: relative;
  padding: 14px 12px;
  border: 1px solid var(--line-color);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
}

.reveal .step-item .num {
  font-family: var(--code-font);
  font-size: 10pt;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.reveal .step-item h4 {
  font-size: 13pt;
  margin: 0 0 6px 0;
  color: #fff;
}

.reveal .step-item p {
  font-size: 10.5pt;
  color: var(--muted-color);
  margin: 0;
  line-height: 1.3;
}

/* Highlight Tokens */
.reveal .tok-kw { color: #f472b6; font-weight: 600; }
.reveal .tok-fn { color: #38bdf8; }
.reveal .tok-str { color: #4ade80; }
.reveal .tok-num { color: #fbbf24; }
.reveal .tok-com { color: #64748b; font-style: italic; }
.reveal .tok-type { color: #a78bfa; }
