/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles — Presentation
   ========================================================================== */

:root {
  --accent:  #6C63FF;
  --accent2: #FF6584;
  --accent3: #43D9AD;
  --critical: #FF4D4D;
  --card-bg:     rgba(255,255,255,0.06);
  --card-border: rgba(108,99,255,0.35);
}

/* ── BASE ── */
.reveal { font-family: 'Inter', sans-serif; font-size: 36px; }
.reveal h1, .reveal h2, .reveal h3 { font-family: 'Inter', sans-serif; letter-spacing: -0.02em; }
.reveal section { padding: 0 !important; box-sizing: border-box; }

/* ── SLIDE 1 ── */
.slide-title .title-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: #fff; font-size: 0.42em; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3em 1em; border-radius: 50px; margin-bottom: 0.4em;
}
.slide-title h1 {
  font-size: 1.6em !important; font-weight: 900; line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin: 0 !important;
}
.slide-title .subtitle {
  font-size: 0.55em; color: rgba(255,255,255,0.55); margin-top: 0.6em; font-weight: 300;
}

/* ── SECTION LABELS ── */
.section-label {
  display: inline-block; font-size: 0.37em; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25em 0.8em; border-radius: 4px; margin-bottom: 0.3em;
}
.sl-problem  { background: rgba(255,77,77,0.2);   color: var(--critical); border: 1px solid rgba(255,77,77,0.4); }
.sl-solution { background: rgba(67,217,173,0.15); color: var(--accent3);  border: 1px solid rgba(67,217,173,0.4); }
.sl-demo     { background: rgba(108,99,255,0.2);  color: #a29dff;         border: 1px solid rgba(108,99,255,0.4); }
.sl-end      { background: rgba(67,217,173,0.15); color: var(--accent3);  border: 1px solid rgba(67,217,173,0.4); }

/* ── SLIDE HEADING ── */
.reveal .slide-heading {
  font-size: 1.05em !important; font-weight: 800;
  margin-bottom: 0.35em !important; color: #fff;
}

/* ── PROBLEM CARDS ── */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; margin-top: 0.3em; }
.problem-card {
  background: rgba(255,77,77,0.08); border: 1px solid rgba(255,77,77,0.3);
  border-radius: 10px; padding: 0.6em 0.8em; text-align: left;
}
.problem-card .icon { font-size: 1.1em; margin-bottom: 0.2em; display: block; }
.problem-card h4    { font-size: 0.56em; font-weight: 700; color: var(--accent2); margin: 0 0 0.2em; }
.problem-card p     { font-size: 0.44em; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.45; }

/* ── SOLUTION LIST ── */
.solution-list { list-style: none; padding: 0; margin: 0.3em 0 0; display: grid; gap: 0.38em; text-align: left; }
.solution-list li {
  display: flex; align-items: flex-start; gap: 0.6em;
  background: rgba(67,217,173,0.07); border: 1px solid rgba(67,217,173,0.25);
  border-radius: 8px; padding: 0.45em 0.8em; font-size: 0.5em;
}
.solution-list li .check  { color: var(--accent3); font-size: 1.2em; margin-top: 0.05em; min-width: 1.1em; }
.solution-list li strong  { color: var(--accent3); display: block; margin-bottom: 0.06em; }
.solution-list li span    { color: rgba(255,255,255,0.65); line-height: 1.4; }

/* ── SECURITY GRID ── */
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45em; margin-top: 0.35em; }
.sev-card { border-radius: 8px; padding: 0.55em 0.75em; text-align: left; }
.sev-card.critical { background: rgba(255,77,77,0.1);  border: 1px solid rgba(255,77,77,0.4); }
.sev-card.high     { background: rgba(255,150,51,0.1); border: 1px solid rgba(255,150,51,0.4); }
.sev-card.medium   { background: rgba(247,201,72,0.1); border: 1px solid rgba(247,201,72,0.4); }
.sev-card.low      { background: rgba(67,217,173,0.1); border: 1px solid rgba(67,217,173,0.4); }
.sev-card .sev-badge {
  font-size: 0.38em; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.18em 0.6em;
  border-radius: 4px; display: inline-block; margin-bottom: 0.35em;
}
.sev-card.critical .sev-badge { background: rgba(255,77,77,0.3);  color: #ff6b6b; }
.sev-card.high     .sev-badge { background: rgba(255,150,51,0.3); color: #ffaa5e; }
.sev-card.medium   .sev-badge { background: rgba(247,201,72,0.3); color: #f7d868; }
.sev-card.low      .sev-badge { background: rgba(67,217,173,0.3); color: var(--accent3); }
.sev-card ul { list-style: none; padding: 0; margin: 0; }
.sev-card ul li {
  font-size: 0.43em; color: rgba(255,255,255,0.75);
  padding: 0.15em 0; display: flex; align-items: flex-start; gap: 0.4em;
}
.sev-card ul li::before { content: "›"; opacity: 0.7; }

/* ── ARCHITECTURE ── */
.arch-container {
  background: rgba(0,0,0,0.35); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 0.65em 0.9em; text-align: left;
}
.arch-row { display: flex; align-items: center; gap: 0.5em; margin: 0.28em 0; font-size: 0.46em; }
.arch-box {
  background: rgba(108,99,255,0.2); border: 1px solid rgba(108,99,255,0.5);
  border-radius: 7px; padding: 0.35em 0.65em;
  color: #c5c0ff; font-weight: 600; white-space: nowrap;
}
.arch-box.worker { background: rgba(67,217,173,0.15); border-color: rgba(67,217,173,0.45); color: var(--accent3); }
.arch-box.queue  { background: rgba(255,165,0,0.15);  border-color: rgba(255,165,0,0.4);   color: #ffd369; }
.arch-box.fcm    { background: rgba(255,101,132,0.15); border-color: rgba(255,101,132,0.4); color: #ff8fa3; }
.arch-arrow { color: rgba(255,255,255,0.5); font-size: 1.1em; }

/* ── TASK FLOW ── */
.task-flow { display: grid; gap: 0.38em; margin-top: 0.3em; text-align: left; }
.task-row  { display: flex; align-items: center; gap: 0.4em; font-size: 0.47em; }
.task-box {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 7px; padding: 0.35em 0.65em;
  color: #c5c0ff; white-space: nowrap;
}
.task-box.parallel      { background: rgba(67,217,173,0.1);  border-color: rgba(67,217,173,0.4); color: var(--accent3); }
.task-box.critical-path { background: rgba(108,99,255,0.2); border-color: var(--accent); color: #a29dff; }
.flow-arrow { color: rgba(255,255,255,0.4); font-size: 1.1em; }

/* ── DEMO NOTE ── */
.demo-note {
  background: rgba(108,99,255,0.12); border: 1px dashed rgba(108,99,255,0.5);
  border-radius: 8px; padding: 0.55em 0.9em; margin-top: 0.4em;
  font-size: 0.46em; color: rgba(255,255,255,0.65); text-align: left;
}
.demo-note strong { color: #a29dff; }

/* ── CHIPS ── */
.agent-chips { display: flex; flex-wrap: wrap; gap: 0.4em; justify-content: center; margin-top: 0.5em; }
.chip {
  font-size: 0.43em;
  background: rgba(108,99,255,0.18); border: 1px solid rgba(108,99,255,0.45);
  border-radius: 50px; padding: 0.28em 0.75em;
  color: #c5c0ff; font-family: 'JetBrains Mono', monospace;
}
.chip.green { background: rgba(67,217,173,0.12); border-color: rgba(67,217,173,0.4); color: var(--accent3); }

/* ── TWO-COL ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75em; align-items: start; }

/* ── CONCLUSION ── */
.conclusion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; margin-top: 0.3em; }
.conc-card {
  background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.35);
  border-radius: 10px; padding: 0.6em 0.8em; text-align: left;
}
.conc-card h4  { font-size: 0.52em; font-weight: 700; color: var(--accent3); margin: 0 0 0.3em; }
.conc-card p   { font-size: 0.42em; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.5; }
.conc-card .ci { font-size: 1.1em; margin-bottom: 0.2em; display: block; }
.takeaway-row { display: flex; gap: 0.6em; margin-top: 0.45em; justify-content: center; flex-wrap: wrap; }
.takeaway-pill {
  font-size: 0.43em; font-weight: 600;
  background: linear-gradient(135deg, rgba(108,99,255,0.3), rgba(67,217,173,0.2));
  border: 1px solid rgba(108,99,255,0.5); border-radius: 50px;
  padding: 0.35em 0.9em; color: #e0deff;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

