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

/* ── CSS Variables ── */
:root {
  --background-color: #000;
  --primary-color: #2E81DB;
  --primary-glow: rgba(46, 129, 219, 0.3);
  --text-color: #f0f0f0;
  --muted-color: #999;
  --heading-font: 'Inter', system-ui, sans-serif;
  --body-font: 'Inter', system-ui, sans-serif;
  --h1-size: 84pt;
  --h2-size: 64pt;
  --h3-size: 44pt;
  --text-size: 36pt;

  /* Semantic text */
  --text-high: rgba(255, 255, 255, 0.9);
  --text-medium: rgba(255, 255, 255, 0.85);
  --text-body: rgba(255, 255, 255, 0.75);
  --text-soft: rgba(255, 255, 255, 0.7);
  --text-faint: rgba(255, 255, 255, 0.5);
  --heading-strong: #fff;

  /* Surfaces */
  --surface-card: rgba(255, 255, 255, 0.04);
  --surface-card-border: rgba(255, 255, 255, 0.08);
  --surface-divider: rgba(255, 255, 255, 0.12);
  --surface-subtle: rgba(255, 255, 255, 0.03);

  /* Accent surfaces */
  --accent-bg: rgba(46, 129, 219, 0.08);
  --accent-bg-subtle: rgba(46, 129, 219, 0.06);
  --accent-border: rgba(46, 129, 219, 0.3);
  --accent-border-light: rgba(46, 129, 219, 0.25);
  --accent-icon-bg: rgba(46, 129, 219, 0.12);
  --accent-shadow: rgba(46, 129, 219, 0.1);

  /* Reveal.js overrides */
  --r-background-color: #000;
  --r-main-color: #f0f0f0;
  --r-heading-color: #fff;
  --r-heading-text-transform: none;
  --r-main-font: 'Inter', system-ui, sans-serif;
  --r-heading-font: 'Inter', system-ui, sans-serif;
  --r-main-font-size: 36pt;
  --r-heading-line-height: 1.2;
}

/* ── Light Theme ── */
[data-theme="light"] {
  --background-color: #f8f9fb;
  --primary-glow: rgba(46, 129, 219, 0.2);
  --text-color: #1a1a2e;
  --muted-color: #6b7280;
  --r-background-color: #f8f9fb;
  --r-main-color: #1a1a2e;
  --r-heading-color: #111827;

  --text-high: rgba(0, 0, 0, 0.87);
  --text-medium: rgba(0, 0, 0, 0.78);
  --text-body: rgba(0, 0, 0, 0.65);
  --text-soft: rgba(0, 0, 0, 0.55);
  --text-faint: rgba(0, 0, 0, 0.4);
  --heading-strong: #111827;

  --surface-card: rgba(0, 0, 0, 0.03);
  --surface-card-border: rgba(0, 0, 0, 0.08);
  --surface-divider: rgba(0, 0, 0, 0.1);
  --surface-subtle: rgba(0, 0, 0, 0.02);

  --accent-bg: rgba(46, 129, 219, 0.06);
  --accent-bg-subtle: rgba(46, 129, 219, 0.04);
  --accent-border: rgba(46, 129, 219, 0.2);
  --accent-border-light: rgba(46, 129, 219, 0.18);
  --accent-icon-bg: rgba(46, 129, 219, 0.1);
  --accent-shadow: rgba(46, 129, 219, 0.08);
}

[data-theme="light"] .reveal-viewport {
  background-color: var(--r-background-color);
}

/* ── Base Typography ── */
.reveal {
  font-family: var(--body-font);
  font-size: var(--text-size);
  color: var(--text-color);
}

.reveal h1 {
  font-size: var(--h1-size);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}

.reveal h2 {
  font-size: var(--h2-size);
  font-weight: 700;
  margin-bottom: 0.6em;
}

.reveal h3 {
  font-size: var(--h3-size);
  font-weight: 600;
  margin-bottom: 0.4em;
}

.reveal p,
.reveal li {
  font-size: var(--text-size);
  line-height: 1.5;
}

/* ── Text Utilities ── */
.text-lg { font-size: 38pt; }
.text-xl { font-size: 42pt; }
.text-2xl { font-size: 48pt; }
.text-3xl { font-size: 54pt; }
.text-muted { color: var(--muted-color); }
.text-primary { color: var(--primary-color); }
.text-white { color: var(--heading-strong); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.text-high    { color: var(--text-high); }
.text-medium  { color: var(--text-medium); }
.text-body    { color: var(--text-body); }
.text-soft    { color: var(--text-soft); }
.text-faint   { color: var(--text-faint); }

/* ── Layout Utilities ── */
.slide-content {
  text-align: left;
  padding: 40pt 80pt;
  width: 100%;
  box-sizing: border-box;
}

.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40pt;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30pt;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24pt;
}

.grid-2x2 .icon-circle {
  width: 60pt;
  height: 60pt;
  font-size: 28pt;
  margin-bottom: 14pt;
}

.grid-2x2 .dark-box {
  padding: 22pt 24pt;
}

.grid-2x2 .dark-box h3 {
  font-size: 34pt;
  margin-bottom: 8pt;
}

.grid-2x2 .dark-box p {
  font-size: 30pt;
}

/* ── Dark Box Component ── */
.dark-box {
  background: var(--surface-card);
  border: 1px solid var(--surface-card-border);
  border-radius: 12px;
  padding: 30pt 28pt;
}

.dark-box.accent-top {
  border-top: 3px solid var(--primary-color);
}

/* ── Callout Component ── */
.callout {
  background: var(--accent-bg);
  border-left: 5px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  padding: 28pt 32pt;
  margin-top: 28pt;
}

.callout p {
  margin: 0;
}

/* ── Icon Circle ── */
.icon-circle {
  width: 80pt;
  height: 80pt;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #1a5fa0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20pt;
  font-size: 36pt;
  color: #fff;
}

/* ── Stat Card ── */
.stat-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-card-border);
  border-top: 3px solid var(--primary-color);
  border-radius: 12px;
  padding: 32pt 24pt;
  text-align: center;
}

.stat-card .stat-icon {
  width: 76pt;
  height: 76pt;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #1a5fa0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20pt;
  font-size: 34pt;
  color: #fff;
}

.stat-card .stat-number {
  font-size: 68pt;
  font-weight: 800;
  color: var(--heading-strong);
  line-height: 1.1;
  margin-bottom: 10pt;
}

.stat-card .stat-label {
  font-size: var(--text-size);
  color: var(--muted-color);
  line-height: 1.3;
}

/* ── Big Number Highlight ── */
.big-number-box {
  background: var(--accent-bg-subtle);
  border: 2px solid var(--accent-border);
  border-radius: 16px;
  padding: 32pt;
  text-align: center;
  box-shadow: 0 0 40px var(--accent-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.big-number-box .number {
  font-size: 110pt;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.big-number-box .label {
  font-size: 36pt;
  color: var(--muted-color);
  margin-top: 10pt;
}

/* ── Custom Bullets ── */
.custom-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-bullets li {
  position: relative;
  padding-left: 36pt;
  margin-bottom: 20pt;
  font-size: var(--text-size);
  color: var(--text-medium);
}

.custom-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12pt;
  height: 12pt;
  background: var(--primary-color);
  border-radius: 3px;
}

/* ── Value Row (Icon + Text) ── */
.value-row {
  display: flex;
  align-items: center;
  gap: 24pt;
  margin-bottom: 24pt;
}

.value-row .value-icon {
  width: 68pt;
  height: 68pt;
  min-width: 68pt;
  border-radius: 50%;
  background: var(--accent-icon-bg);
  border: 1px solid var(--accent-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30pt;
  color: var(--primary-color);
}

.value-row .value-text {
  flex: 1;
}

.value-row .value-text strong {
  color: var(--heading-strong);
  font-weight: 700;
}

.value-row .value-text span {
  color: var(--text-soft);
}

/* ── Quote Slide ── */
.quote-mark {
  font-size: 130pt;
  color: var(--primary-color);
  font-weight: 800;
  line-height: 0.6;
  margin-bottom: 24pt;
  opacity: 0.6;
}

.quote-text {
  font-size: 44pt;
  font-style: italic;
  color: var(--text-high);
  line-height: 1.6;
  max-width: 100%;
}

.quote-text .highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--surface-divider);
  margin: 28pt 0;
}

/* ── Mission Quote ── */
.mission-quote {
  background: var(--surface-subtle);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  padding: 28pt 32pt;
}

.mission-quote p {
  margin: 0;
  font-size: var(--text-size);
}

/* ── Card Internal Spacing ── */
.dark-box h3 {
  font-size: 38pt;
  font-weight: 700;
  color: var(--heading-strong);
  margin: 0 0 12pt 0;
}

.dark-box p {
  font-size: var(--text-size);
  color: var(--text-soft);
  margin: 0;
  line-height: 1.5;
}

/* ── Slide Text (responsive) ── */
.slide-text {
  font-size: var(--text-size);
}

.stat-sublabel {
  font-size: 30pt;
}

/* ── Slide-specific ── */

/* Intro slide name */
.intro-name {
  font-size: 100pt;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--heading-strong);
  margin-bottom: 20pt;
}

.intro-role {
  font-size: 48pt;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 28pt;
}

.intro-details {
  font-size: 34pt;
  color: var(--muted-color);
  line-height: 1.8;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 32pt;
  margin-top: 28pt;
}

.social-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 28pt;
  display: flex;
  align-items: center;
  gap: 10pt;
  transition: color 0.3s;
}

.social-links > :last-child {
  margin-right: 8pt;
}

.social-links a:hover {
  color: var(--primary-color);
}

.social-links a i {
  font-size: 32pt;
}

/* Remove reveal.js default margins on sections */
.reveal .slides section {
  padding: 40pt 80pt;
  box-sizing: border-box;
  text-align: left;
}

.reveal .slides section.centered-slide {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40pt;
}

/* ── Theme Toggle Button ── */
#theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--surface-card-border);
  background: var(--surface-card);
  color: var(--text-soft);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  backdrop-filter: blur(8px);
}

#theme-toggle:hover {
  background: var(--accent-icon-bg);
  color: var(--primary-color);
  border-color: var(--accent-border-light);
}

#theme-icon-light { display: inline; }
#theme-icon-dark  { display: none; }
[data-theme="light"] #theme-icon-light { display: none; }
[data-theme="light"] #theme-icon-dark  { display: inline; }

/* ── Theme Transitions ── */
.dark-box,
.stat-card,
.big-number-box,
.callout,
.mission-quote,
.value-row .value-icon,
.divider,
.reveal-viewport {
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .reveal-viewport.reveal-scroll .scroll-page section {
    transform: scale(var(--slide-scale)) translate(-50%, -100%) !important;
  }

  :root {
    --h1-size: 110pt;
    --h2-size: 84pt;
    --h3-size: 58pt;
    --text-size: 48pt;
    --r-main-font-size: 48pt;
  }

  .intro-name { font-size: 130pt; }
  .intro-role { font-size: 64pt; }
  .intro-details { font-size: 44pt; }

  .dark-box h3 { font-size: 52pt; }
  .icon-circle { width: 100pt; height: 100pt; font-size: 46pt; }
  .stat-card .stat-icon { width: 96pt; height: 96pt; font-size: 44pt; }
  .stat-card .stat-number { font-size: 88pt; }
  .big-number-box .number { font-size: 140pt; }
  .big-number-box .label { font-size: 48pt; }

  .quote-mark { font-size: 170pt; }
  .quote-text { font-size: 58pt; }

  .value-row .value-icon { width: 88pt; height: 88pt; min-width: 88pt; font-size: 40pt; }

  .grid-2,
  .grid-3,
  .grid-2x2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    gap: 20pt;
  }

  .value-row {
    gap: 16pt;
  }

  .grid-2x2 .icon-circle { width: 100pt; height: 100pt; font-size: 46pt; margin-bottom: 20pt; }
  .grid-2x2 .dark-box { padding: 30pt 28pt; }
  .grid-2x2 .dark-box h3 { font-size: 52pt; }
  .grid-2x2 .dark-box p { font-size: var(--text-size); }

  .stat-sublabel { font-size: 40pt; }
  .callout { padding: 36pt 40pt; }

  .social-links a i { font-size: 72pt; }

  #honest-work-img { max-height: 1000pt !important; }
}
