/* Local Vazirmatn (variable) */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/vazirmatn-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/vazirmatn-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --ink: #0b1220;
  --muted: rgba(11, 18, 32, 0.72);
  --paper: #f7f8fb;
  --paper-2: #eef2f8;
  --grid: rgba(11, 18, 32, 0.06);

  --accent: #0ea5a4; /* teal */
  --accent-2: #f59e0b; /* amber */
  --danger: #ef4444;
  --ok: #22c55e;

  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(11, 18, 32, 0.12);
  --shadow: 0 30px 70px rgba(11, 18, 32, 0.18);

  --radius: 28px;

  /* reveal theme variables */
  --r-main-font: "Vazirmatn", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --r-heading-font: "Vazirmatn", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --r-main-color: var(--ink);
  --r-background-color: var(--paper);
  --r-link-color: var(--accent);
  --r-link-color-hover: #14b8a6;
  --r-selection-background-color: rgba(14, 165, 164, 0.25);
  --r-heading-text-transform: none;
  --r-heading-letter-spacing: -0.01em;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 700px at 78% 12%, rgba(14, 165, 164, 0.18), transparent 55%),
    radial-gradient(900px 700px at 16% 86%, rgba(245, 158, 11, 0.14), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, var(--paper) 70%, var(--paper-2) 100%);
  color: var(--ink);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle technical grid over the whole viewport */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.7;
  mask-image: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.9), transparent 70%);
}

.reveal {
  font-family: var(--r-main-font);
}

.reveal-viewport {
  background: transparent;
}

.reveal .slides {
  text-align: right;
}

.reveal a {
  text-decoration: none;
}

.reveal ::selection {
  background: var(--r-selection-background-color);
}

/* Make fragments feel more premium */
.reveal .slides section .fragment {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  filter: blur(3px);
  transition:
    opacity 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal .slides section .fragment.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: none;
}

/* Slide surface */
.idss-slide {
  --accent: #0ea5a4;
  --accent-2: #f59e0b;
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(900px 600px at 80% 18%, rgba(14, 165, 164, 0.22), transparent 60%),
    radial-gradient(700px 520px at 18% 84%, rgba(245, 158, 11, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.18));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 18, 32, 0.08);
}

.idss-slide[data-scheme="soc"] {
  --accent: #ef4444;
  --accent-2: #f97316;
  background:
    radial-gradient(900px 600px at 80% 18%, rgba(239, 68, 68, 0.20), transparent 60%),
    radial-gradient(700px 520px at 18% 84%, rgba(249, 115, 22, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.18));
}

.idss-slide[data-scheme="tech"] {
  --accent: #0284c7;
  --accent-2: #22c55e;
  background:
    radial-gradient(900px 600px at 78% 22%, rgba(2, 132, 199, 0.20), transparent 62%),
    radial-gradient(700px 520px at 16% 84%, rgba(34, 197, 94, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.18));
}

.idss-slide[data-scheme="ai"] {
  --accent: #0f766e;
  --accent-2: #a3e635;
  background:
    radial-gradient(900px 600px at 76% 18%, rgba(15, 118, 110, 0.22), transparent 60%),
    radial-gradient(700px 520px at 18% 84%, rgba(163, 230, 53, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.18));
}

.idss-slide[data-scheme="infra"] {
  --accent: #1d4ed8;
  --accent-2: #f59e0b;
  background:
    radial-gradient(900px 600px at 78% 18%, rgba(29, 78, 216, 0.18), transparent 60%),
    radial-gradient(700px 520px at 18% 84%, rgba(245, 158, 11, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.18));
}

.idss-slide::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(12px 12px at 20% 30%, rgba(11, 18, 32, 0.14), transparent 55%),
    radial-gradient(10px 10px at 70% 60%, rgba(11, 18, 32, 0.12), transparent 55%),
    radial-gradient(8px 8px at 85% 25%, rgba(11, 18, 32, 0.10), transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}

.slide-surface {
  position: absolute;
  inset: 16px;
  border-radius: calc(var(--radius) - 10px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(11, 18, 32, 0.10);
  box-shadow:
    0 18px 40px rgba(11, 18, 32, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px 72px 112px;
  box-sizing: border-box;
  isolation: isolate; /* keep watermark behind content */
}

.watermark {
  position: absolute;
  inset-block-start: -92px;
  inset-inline-start: -92px;
  width: 460px;
  height: 460px;
  opacity: 0.10;
  transform: rotate(8deg);
  pointer-events: none;
  z-index: 0;
}

.slide-surface > :not(.watermark) {
  position: relative;
  z-index: 1;
}

.slide-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand .brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand .brand__name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand .brand__meta {
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
}

.client img {
  width: 36px;
  height: 36px;
  opacity: 0.9;
}

.slide-body {
  display: flex;
  flex-direction: row-reverse;
  gap: 44px;
  align-items: stretch;
  min-height: 0;
}

.slide-text {
  flex: 1 1 62%;
  min-width: 0;
}

.slide-visual {
  flex: 0 0 36%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-visual .ill {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 16px 26px rgba(11, 18, 32, 0.10));
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 164, 0.10);
  border: 1px solid rgba(14, 165, 164, 0.22);
  color: rgba(11, 18, 32, 0.86);
  font-weight: 700;
  font-size: 15px;
}

.kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), var(--accent));
  box-shadow: 0 0 0 4px rgba(14, 165, 164, 0.12);
}

.idss-slide[data-scheme="soc"] .kicker {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.22);
}

.idss-slide[data-scheme="tech"] .kicker {
  background: rgba(2, 132, 199, 0.10);
  border-color: rgba(2, 132, 199, 0.22);
}

.idss-slide[data-scheme="ai"] .kicker {
  background: rgba(15, 118, 110, 0.10);
  border-color: rgba(15, 118, 110, 0.22);
}

.idss-slide[data-scheme="infra"] .kicker {
  background: rgba(29, 78, 216, 0.10);
  border-color: rgba(29, 78, 216, 0.22);
}

.slide-text h1 {
  font-size: 64px;
  line-height: 1.12;
  margin: 18px 0 0;
  letter-spacing: -0.02em;
}

.slide-text h2 {
  font-size: 46px;
  line-height: 1.18;
  margin: 18px 0 0;
  letter-spacing: -0.02em;
}

.slide-text .subtitle {
  margin-top: 14px;
  font-size: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.bullets {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-right: 22px;
  margin: 10px 0;
  font-size: 22px;
  line-height: 1.75;
  color: rgba(11, 18, 32, 0.86);
}

.bullets li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), var(--accent));
  box-shadow: 0 0 0 6px rgba(14, 165, 164, 0.12);
}

.subgrid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 14px;
}

.card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(11, 18, 32, 0.10);
  padding: 14px 16px;
  box-shadow: 0 10px 22px rgba(11, 18, 32, 0.06);
}

.card .card__label {
  font-size: 14px;
  color: rgba(11, 18, 32, 0.62);
  letter-spacing: 0.02em;
}

.card .card__value {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.card .card__value small {
  font-size: 16px;
  font-weight: 750;
  color: rgba(11, 18, 32, 0.62);
}

.callouts {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.callout {
  border-radius: 18px;
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.74);
  padding: 16px 18px;
}

.callout h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.callout p {
  margin: 10px 0 0;
  font-size: 16px;
  color: rgba(11, 18, 32, 0.74);
  line-height: 1.7;
}

.chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.68);
  color: rgba(11, 18, 32, 0.80);
}

.chip--accent {
  border-color: rgba(14, 165, 164, 0.22);
  background: rgba(14, 165, 164, 0.08);
}

.btnrow {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 900;
  font-size: 16px;
  color: rgba(11, 18, 32, 0.86);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.92);
}

.btn--primary {
  border-color: rgba(14, 165, 164, 0.30);
  background: linear-gradient(180deg, rgba(14, 165, 164, 0.16), rgba(14, 165, 164, 0.08));
}

.btn--danger {
  border-color: rgba(239, 68, 68, 0.30);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.14), rgba(239, 68, 68, 0.06));
}

.slide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(11, 18, 32, 0.56);
  font-size: 14px;
}

.slide-footer a {
  color: rgba(11, 18, 32, 0.70);
  font-weight: 850;
}

.slide-footer a:hover {
  color: var(--accent);
}

/* Timeline (fixed, not scaled) */
.deck-timeline {
  position: fixed;
  inset-inline: 18px;
  bottom: 12px;
  z-index: 30;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 18, 32, 0.12);
  box-shadow: 0 16px 34px rgba(11, 18, 32, 0.14);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 12px;
  direction: rtl;
}

.deck-timeline__label {
  font-weight: 900;
  font-size: 13px;
  color: rgba(11, 18, 32, 0.70);
  white-space: nowrap;
}

.deck-timeline__track {
  position: relative;
  flex: 1 1 auto;
  height: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deck-timeline__line {
  position: absolute;
  inset-inline: 6px;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: rgba(11, 18, 32, 0.10);
  border-radius: 999px;
  overflow: hidden;
}

.deck-timeline__line::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: calc(var(--progress, 0) * 100%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

.deck-timeline__dots {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-inline: 6px;
}

.deck-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(11, 18, 32, 0.22);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px rgba(11, 18, 32, 0.08);
  cursor: pointer;
  position: relative;
  padding: 0;
}

.deck-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.10);
  transform: scale(0.6);
  transition: transform 180ms ease, background 180ms ease;
}

.deck-dot:hover::after {
  transform: scale(0.85);
  background: rgba(11, 18, 32, 0.18);
}

.deck-dot.is-active {
  border-color: rgba(14, 165, 164, 0.55);
}

.deck-dot.is-active::after {
  transform: scale(1);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), var(--accent));
}

.deck-dot.is-done {
  border-color: rgba(14, 165, 164, 0.40);
  background: rgba(14, 165, 164, 0.08);
}

/* Compact tooltip */
.deck-dot[data-title]::before {
  content: attr(data-title);
  position: absolute;
  bottom: 160%;
  right: 50%;
  transform: translateX(50%);
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(11, 18, 32, 0.88);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.deck-dot:hover::before {
  opacity: 1;
  transform: translateX(50%) translateY(-2px);
}

.deck-timeline__hint {
  font-size: 12px;
  color: rgba(11, 18, 32, 0.56);
  white-space: nowrap;
}

/* Embed modal */
.embed-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(6px);
}

.embed-modal.is-open {
  display: flex;
}

.embed-modal__panel {
  width: min(1280px, 96vw);
  height: min(760px, 86vh);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.embed-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.10);
  background:
    radial-gradient(700px 220px at 90% 20%, rgba(14, 165, 164, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
}

.embed-modal__title {
  font-weight: 900;
  font-size: 14px;
  color: rgba(11, 18, 32, 0.80);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.embed-modal__title code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(11, 18, 32, 0.06);
  color: rgba(11, 18, 32, 0.72);
  direction: ltr;
}

.embed-modal__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.embed-modal__hint {
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(11, 18, 32, 0.68);
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

.embed-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* Responsiveness */
@media (max-width: 900px) {
  .slide-surface {
    inset: 10px;
    padding: 46px 42px 128px;
  }

  .watermark {
    width: 360px;
    height: 360px;
    inset-block-start: -76px;
    inset-inline-start: -76px;
  }

  .slide-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .slide-body {
    flex-direction: column;
    gap: 22px;
  }

  .slide-visual {
    flex: 0 0 auto;
  }

  .slide-text h1 {
    font-size: 44px;
  }

  .slide-text h2 {
    font-size: 34px;
  }

  .bullets li {
    font-size: 18px;
  }

  .deck-timeline__hint {
    display: none;
  }
}
