/* ============================================================================
   custom.css — SDD Presentation — "Oceanic Precision" Brand Theme
   Autor: Glaucia Lemos (@glaucia_lemos86)
   Fonts: Bebas Neue (display h1/h2) · Exo 2 (h3/h4) · DM Sans (body) · JetBrains Mono (code)
   Palette: Bioluminescent Teal · Copilot Violet · Coral Energy · Gold
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Exo+2:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

/* ============================================================================
   CSS Variables — Brand Palette "Oceanic Precision"
   ============================================================================ */
:root {
  /* Backgrounds — deep ocean layers */
  --bg-primary:    #04091b;
  --bg-secondary:  #09102a;
  --bg-tertiary:   #0f1c3e;
  --bg-card:       rgba(9, 16, 42, 0.92);

  /* Text */
  --text-primary:  #edf2ff;
  --text-secondary:#7a8fb5;
  --text-muted:    #384e72;

  /* Brand Accents */
  --accent-green:  #00ddb3;   /* bioluminescent teal — PRIMARY */
  --accent-blue:   #38c8fa;   /* sky cyan — links & info */
  --accent-purple: #9277ff;   /* Copilot violet */
  --accent-orange: #ff7849;   /* coral energy */
  --accent-red:    #ff5c7a;   /* errors */
  --accent-gold:   #ffcd47;   /* warm gold highlight */

  /* Borders */
  --border-glow:   rgba(0, 221, 179, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* Gradients */
  --gradient-main:   linear-gradient(135deg, #00ddb3 0%, #38c8fa 100%);
  --gradient-purple: linear-gradient(135deg, #9277ff 0%, #38c8fa 100%);
  --gradient-warm:   linear-gradient(135deg, #ff5c7a 0%, #ff7849 100%);
  --gradient-gold:   linear-gradient(135deg, #ffcd47 0%, #ff7849 100%);
  --gradient-mesh:   radial-gradient(ellipse 80% 60% at 0% 0%, rgba(124,92,252,0.07) 0%, transparent 60%),
                     radial-gradient(ellipse 60% 50% at 100% 100%, rgba(56,200,250,0.06) 0%, transparent 55%),
                     radial-gradient(ellipse 50% 40% at 40% 60%, rgba(0,221,179,0.03) 0%, transparent 65%);

  /* Shadows */
  --shadow-glow: 0 0 28px rgba(0,221,179,0.18), 0 0 60px rgba(0,221,179,0.07);
  --shadow-violet: 0 0 28px rgba(146,119,255,0.22), 0 0 55px rgba(146,119,255,0.08);
  --shadow-card: 0 6px 36px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);

  /* Radii */
  --radius:    14px;
  --radius-sm:  8px;
  --radius-lg: 22px;

  /* GitHub Copilot */
  --accent-copilot:       #7c5cfc;
  --accent-copilot-light: #b8a4ff;
  --gradient-copilot-border: linear-gradient(135deg, #00ddb3, #b8a4ff, #38c8fa);
}

/* ============================================================================
   Reveal.js Root Overrides
   ============================================================================ */
html, body {
  background: #030508;
  background-image: var(--gradient-mesh);
  background-attachment: fixed;
  min-height: 100%;
}

.reveal.reveal-hidden {
  visibility: hidden;
}

.language-switcher {
  position: fixed;
  top: 1.1em;
  right: 1.1em;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 0.45em;
  background: rgba(9, 16, 42, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.35em 0.4em 0.35em 0.55em;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.language-switcher-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.54em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.language-switcher-options {
  display: flex;
  align-items: center;
  gap: 0.25em;
}

.language-switcher-option {
  cursor: pointer;
  min-width: 2.45em;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(10, 20, 46, 0.9);
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58em;
  letter-spacing: 0.04em;
  padding: 0.38em 0.55em;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.language-switcher-option:hover,
.language-switcher-option:focus-visible {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  transform: translateY(-1px);
  outline: none;
}

.language-switcher-option.is-active {
  border-color: var(--accent-green);
  background: rgba(0, 221, 179, 0.14);
  color: var(--accent-green);
  box-shadow: 0 0 0 0.13em rgba(0, 221, 179, 0.16);
}

.language-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.2em;
  background:
    radial-gradient(ellipse 55% 45% at 20% 25%, rgba(56, 200, 250, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 78% 70%, rgba(0, 221, 179, 0.09) 0%, transparent 65%),
    rgba(2, 6, 18, 0.95);
}

.language-gate-hidden {
  display: none;
}

.language-gate-card {
  width: min(34em, 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  padding: 1.25em;
  text-align: center;
}

.language-gate-kicker {
  margin: 0;
  font-size: 0.62em;
  color: var(--accent-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-gate-title {
  margin: 0.24em 0 0.16em;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25em;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.language-gate-subtitle {
  margin: 0;
  font-size: 0.72em;
  color: var(--text-secondary);
}

.language-options {
  margin-top: 0.85em;
  display: grid;
  gap: 0.4em;
}

.language-option {
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(10, 20, 46, 0.9);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72em;
  padding: 0.58em 0.7em;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.language-option:hover,
.language-option:focus-visible {
  border-color: var(--accent-green);
  transform: translateY(-1px);
  box-shadow: 0 0 0 0.14em rgba(0, 221, 179, 0.18);
  outline: none;
}

.language-gate-note {
  margin-top: 0.75em;
  font-size: 0.62em;
  color: var(--text-muted);
}

.reveal-viewport {
  background: transparent !important;
  background-image: none !important;
  position: relative;
  z-index: 1;
}

.reveal {
  position: relative;
  z-index: 1;
}

.reveal {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.55rem;
  color: var(--text-primary);
}

/* ============================================================================
   Typography
   ============================================================================ */
.reveal h1, .reveal h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: none;
  color: var(--text-primary);
}

.reveal h3, .reveal h4 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
  color: var(--text-primary);
}

.reveal h1 {
  font-size: 2.6em;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reveal h2 {
  font-size: 1.65em;
  margin-bottom: 0.55em;
}

.reveal h2 .accent {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reveal h3 {
  font-size: 1.12em;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 0.4em;
  letter-spacing: 0.02em;
}

.reveal p {
  color: var(--text-secondary);
  line-height: 1.74;
  font-weight: 400;
}

.reveal strong { color: var(--text-primary); font-weight: 600; }
.reveal em     { color: var(--accent-green); font-style: normal; font-weight: 500; }
.reveal a      { color: var(--accent-blue); text-decoration: none; transition: color 0.2s; }
.reveal a:hover{ color: var(--accent-green); text-decoration: underline; }

/* ============================================================================
   Code
   ============================================================================ */
.reveal pre {
  background: rgba(6, 12, 30, 0.96) !important;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-green) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.04);
  margin: 0.7em auto;
  width: 100%;
  font-size: 0.72em;
}

.reveal pre code {
  font-family: 'JetBrains Mono', monospace !important;
  background: transparent !important;
  padding: 1.1em 1.4em;
  line-height: 1.68;
  max-height: 320px;
  color: #a9b7d0 !important;
}

.reveal code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0,221,179,0.08);
  color: var(--accent-green);
  padding: 0.12em 0.45em;
  border-radius: 5px;
  font-size: 0.82em;
  border: 1px solid rgba(0,221,179,0.15);
}

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

.reveal ul li {
  padding: 0.3em 0 0.3em 1.9em;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.52;
}

.reveal ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-size: 0.65em;
  top: 0.62em;
}

.reveal ul li strong { color: var(--text-primary); }

.reveal ol {
  counter-reset: item;
  list-style: none;
  padding: 0;
}

.reveal ol li {
  counter-increment: item;
  padding: 0.32em 0 0.32em 2.6em;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.52;
}

.reveal ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  width: 1.8em;
  height: 1.8em;
  background: var(--gradient-main);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68em;
  font-weight: 700;
  top: 0.37em;
}

/* ============================================================================
   Tables
   ============================================================================ */
.reveal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.7em 0;
  font-size: 0.72em;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.reveal table thead tr {
  background: var(--gradient-main);
}

.reveal table thead th {
  color: var(--bg-primary) !important;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  padding: 0.78em 1em;
  text-align: left;
  border: none !important;
  font-size: 0.86em;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.reveal table tbody tr {
  background: rgba(9,16,42,0.88);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s;
}

.reveal table tbody tr:nth-child(even) { background: rgba(15,28,62,0.6); }
.reveal table tbody tr:hover { background: rgba(0,221,179,0.04); }

.reveal table tbody td {
  padding: 0.68em 1em;
  color: var(--text-secondary);
  border: none !important;
  vertical-align: middle;
}

.reveal table.table-compact thead th { padding: 0.4em 0.75em !important; }
.reveal table.table-compact tbody td { padding: 0.32em 0.75em !important; }
.reveal table.table-compact             { margin: 0.2em 0 !important; }

/* ============================================================================
   Progress & Controls
   ============================================================================ */
.reveal .controls {
  color: var(--accent-green) !important;
  z-index: 100 !important;
  position: fixed !important;
}

.reveal .controls .controls-arrow {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.reveal .progress { height: 2px; background: rgba(0,221,179,0.1); }
.reveal .progress span {
  background: var(--gradient-main) !important;
  box-shadow: 0 0 10px rgba(0,221,179,0.4), 0 0 24px rgba(0,221,179,0.2);
}

.reveal .slide-number {
  background: rgba(9,16,42,0.9) !important;
  color: var(--text-muted) !important;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 11px;
  font-size: 0.65em;
  backdrop-filter: blur(12px);
}

/* ============================================================================
   Card Components
   ============================================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 1.3em 1.4em;
  text-align: left;
  transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,221,179,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: rgba(0,221,179,0.45);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  transform: translateY(-4px);
}

.card:hover::before { opacity: 1; }

.card-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.9em; }
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9em; }
.card-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.9em; }

.card h3 {
  color: var(--text-primary) !important;
  font-size: 0.88em !important;
  margin: 0.3em 0 0.5em 0 !important;
  letter-spacing: -0.01em !important;
}
.card p { font-size: 0.72em; margin: 0; line-height: 1.55; color: var(--text-secondary); }
.card-icon { font-size: 1.7em; display: block; margin-bottom: 0.25em; }

/* ============================================================================
   Tags / Badges
   ============================================================================ */
.tag {
  display: inline-block;
  background: rgba(0,221,179,0.08);
  border: 1px solid rgba(0,221,179,0.28);
  color: var(--accent-green);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6em;
  padding: 0.3em 0.85em;
  border-radius: 20px;
  margin: 0.18em;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: all 0.22s;
}
.tag:hover {
  background: rgba(0,221,179,0.15);
  box-shadow: 0 0 10px rgba(0,221,179,0.25);
}
.tag.blue   { background: rgba(56,200,250,0.08); border-color: rgba(56,200,250,0.28); color: var(--accent-blue); }
.tag.purple { background: rgba(146,119,255,0.1); border-color: rgba(146,119,255,0.3); color: var(--accent-purple); }
.tag.orange { background: rgba(255,120,73,0.1); border-color: rgba(255,120,73,0.3); color: var(--accent-orange); }
.tag.red    { background: rgba(255,92,122,0.1); border-color: rgba(255,92,122,0.3); color: var(--accent-red); }
.tag.green  { background: rgba(0,221,179,0.08); border-color: rgba(0,221,179,0.28); color: var(--accent-green); }
.tag.pink   { background: rgba(255,120,73,0.10); border-color: rgba(255,120,73,0.30); color: var(--accent-orange); }

/* ============================================================================
   Highlight / Callout Boxes
   ============================================================================ */
.highlight-box {
  background: linear-gradient(135deg, rgba(0,221,179,0.06), rgba(56,200,250,0.04));
  border-left: 3px solid var(--accent-green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9em 1.4em;
  margin: 0.7em 0;
  font-size: 0.82em;
  color: var(--text-primary);
  line-height: 1.68;
  box-shadow: inset 0 0 0 1px rgba(0,221,179,0.06);
}
.highlight-box.blue   { background: linear-gradient(135deg,rgba(56,200,250,0.06),rgba(146,119,255,0.04)); border-left-color: var(--accent-blue); box-shadow: inset 0 0 0 1px rgba(56,200,250,0.05); }
.highlight-box.purple { background: linear-gradient(135deg,rgba(146,119,255,0.07),rgba(56,200,250,0.04)); border-left-color: var(--accent-purple); box-shadow: inset 0 0 0 1px rgba(146,119,255,0.06); }
.highlight-box.orange { background: linear-gradient(135deg,rgba(255,120,73,0.07),rgba(255,92,122,0.04)); border-left-color: var(--accent-orange); box-shadow: inset 0 0 0 1px rgba(255,120,73,0.05); }

.definition {
  background: linear-gradient(135deg, rgba(9,16,42,0.9), rgba(15,28,62,0.8));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 1.1em 1.6em 1.1em 2.8em;
  margin: 0.7em 0;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(0,221,179,0.06);
}
.definition::before {
  content: '"';
  position: absolute;
  top: -0.15em; left: 0.4em;
  font-size: 3.8em;
  color: var(--accent-green);
  opacity: 0.18;
  font-family: Georgia, serif;
  line-height: 1;
}
.definition p {
  font-size: 0.88em !important;
  color: var(--text-primary) !important;
  font-style: italic;
  line-height: 1.68;
  margin: 0 !important;
}

/* ============================================================================
   Layouts
   ============================================================================ */
.two-cols       { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8em; align-items: start; }
.two-cols-60    { display: grid; grid-template-columns: 60% 40%; gap: 1.8em; align-items: start; }
.two-cols-65    { display: grid; grid-template-columns: 65% 35%; gap: 1.8em; align-items: start; }

.section-header {
  display: flex; align-items: center; gap: 0.55em;
  margin-bottom: 0.25em;
  padding-left: 0.7em;
  border-left: 2px solid var(--accent-green);
}
.section-icon   { font-size: 0.78em; }
.section-label  {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.52em;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.75;
  font-weight: 500;
}

/* ============================================================================
   Step Indicator
   ============================================================================ */
.step-indicator { display: flex; align-items: center; gap: 0.55em; margin-bottom: 0.7em; }
.step-number {
  background: var(--gradient-main);
  color: var(--bg-primary);
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.88em;
  width: 2.2em; height: 2.2em;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(0,221,179,0.3);
}
.step-label {
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 0.78em;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================================
   Gradient / Utility
   ============================================================================ */
.gradient-text        { background: var(--gradient-main);   -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.gradient-text-purple { background: var(--gradient-purple); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.gradient-text-warm   { background: var(--gradient-warm);   -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.gradient-text-gold   { background: var(--gradient-gold);   -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

.neon-text { color: var(--accent-green); text-shadow: 0 0 14px rgba(0,221,179,0.6), 0 0 30px rgba(0,221,179,0.25); }

.text-green  { color: var(--accent-green)  !important; }
.text-blue   { color: var(--accent-blue)   !important; }
.text-purple { color: var(--accent-purple) !important; }
.text-orange { color: var(--accent-orange) !important; }
.text-red    { color: var(--accent-red)    !important; }
.text-muted  { color: var(--text-muted)    !important; }
.text-copilot-light { color: var(--accent-copilot-light) !important; }
.small       { font-size: 0.75em !important; }
.xsmall      { font-size: 0.65em !important; }

.slide-nav-hint {
  font-size: 0.5em;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.8em;
}

.two-cols--wide-start {
  align-items: start;
  gap: 2em;
}

.callout-compact {
  margin-top: 0.6em;
  font-size: 0.78em;
}

.card--center-compact {
  text-align: center;
  padding: 0.6em;
}

.card--pad-md {
  padding: 0.9em 1em;
}

.card--pad-sm {
  padding: 0.65em 0.9em;
}
.divider { height: 2px; background: var(--gradient-main); border:none; border-radius:2px; margin:0.7em 0; width:70px; opacity:0.5; }

/* ============================================================================
   Icon List / Checklist
   ============================================================================ */
.icon-list { list-style:none; padding:0; margin:0; }
.icon-list li { display:flex; align-items:flex-start; gap:0.7em; padding:0.38em 0; color:var(--text-secondary); font-size:0.83em; }
.icon-list li::before { display:none; }
.icon-list .icon { font-size:1.15em; flex-shrink:0; min-width:1.4em; }

.checklist { list-style:none; padding:0; margin:0; }
.checklist li {
  display:flex; align-items:flex-start; gap:0.7em;
  padding:0.38em 0;
  color:var(--text-secondary); font-size:0.82em; line-height:1.48;
}
.checklist li::before {
  content:'○'; color:var(--text-muted); font-size:0.95em; flex-shrink:0;
  position:static !important; background:none !important;
  width:auto !important; height:auto !important; border-radius:0 !important;
}
.checklist li.check::before { content:'✓'; color:var(--accent-green) !important; }
.checklist li.cross::before { content:'✗'; color:var(--accent-red) !important; }

/* ============================================================================
   Mermaid Diagrams
   ============================================================================ */
.mermaid {
  background: transparent !important;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
}
.mermaid svg { width: 100%; max-width: 100%; height: auto; }

/* ============================================================================
   Context Architecture Diagram  (.ctx-arch)
   Hub-and-spoke: 4 inputs → AI Agent → 3 outputs
   ============================================================================ */
.ctx-arch {
  display: grid;
  grid-template-columns: 1fr 3em 7.5em 3em 1fr;
  align-items: stretch;
  width: 100%;
  max-width: 820px;
  margin: 0.5em auto 0;
}

/* --- input/output columns --- */
.ctx-inputs,
.ctx-outputs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.38em;
}

/* --- input nodes --- */
.ctx-input-node {
  display: flex;
  align-items: center;
  gap: 0.55em;
  background: color-mix(in srgb, var(--clr) 7%, rgba(4,9,27,0.93));
  border: 1px solid color-mix(in srgb, var(--clr) 28%, transparent);
  border-left: 3px solid var(--clr);
  border-radius: 0.42em;
  padding: 0.34em 0.65em;
  font-size: 0.72em;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.ctx-input-node:hover {
  transform: translateX(5px);
  box-shadow: -4px 0 16px color-mix(in srgb, var(--clr) 32%, transparent);
}
.ctx-inp-icon {
  color: var(--clr);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}
.ctx-inp-text { display: flex; flex-direction: column; gap: 0.04em; line-height: 1; }
.ctx-inp-text strong { color: var(--clr); font-size: 1em; line-height: 1.25; display: block; }
.ctx-inp-text small   { color: var(--text-muted, #8892b0); font-size: 0.78em; line-height: 1.2; display: block; }

/* --- beam connectors (polygon triangles) --- */
.ctx-beam {
  min-height: 100%;
}
.ctx-beam-l {
  background: linear-gradient(to right,
    rgba(0,221,179,0.03) 0%,
    rgba(0,221,179,0.16) 100%);
  clip-path: polygon(0 3%, 0 97%, 100% 50%);
}
.ctx-beam-r {
  background: linear-gradient(to right,
    rgba(0,221,179,0.16) 0%,
    rgba(0,221,179,0.03) 100%);
  clip-path: polygon(0 50%, 100% 3%, 100% 97%);
}

/* --- center (AI Agent) node --- */
.ctx-center-node {
  align-self: center;
  position: relative;
  width: 7.5em;
  height: 7.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ctx-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ctx-ring-1 {
  inset: 0;
  border: 1.5px solid rgba(0,221,179,0.45);
  animation: ctx-ring-pulse 2.8s ease-in-out infinite;
}
.ctx-ring-2 {
  inset: -0.7em;
  border: 1px solid rgba(0,221,179,0.14);
  animation: ctx-ring-pulse 2.8s ease-in-out infinite 0.95s;
}
@keyframes ctx-ring-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}
.ctx-core {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 36%,
    rgba(0,221,179,0.2) 0%,
    rgba(4,9,27,0.98) 65%);
  border: 2px solid var(--accent-green);
  box-shadow:
    0 0 24px rgba(0,221,179,0.28),
    0 0 50px rgba(0,221,179,0.09),
    inset 0 0 18px rgba(0,221,179,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
  font-size: 0.64em;
  text-align: center;
  z-index: 1;
}
.ctx-core i      { color: var(--accent-green); margin-bottom: 0.12em; }
.ctx-core strong { color: #edf2ff; font-size: 1em; line-height: 1.15; display: block; }
.ctx-core small  { color: var(--text-muted, #8892b0); font-size: 0.82em; line-height: 1; display: block; }

/* --- output nodes --- */
.ctx-output-node {
  display: flex;
  align-items: center;
  gap: 0.52em;
  background: rgba(0,221,179,0.07);
  border: 1px solid rgba(0,221,179,0.26);
  border-right: 3px solid var(--accent-green);
  border-radius: 0.42em;
  padding: 0.42em 0.68em;
  font-size: 0.78em;
  color: #edf2ff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.ctx-output-node:hover {
  transform: translateX(-5px);
  box-shadow: 4px 0 16px rgba(0,221,179,0.24);
}
.ctx-output-node i { color: var(--accent-green); flex-shrink: 0; }

/* ============================================================================
   Compact Vertical Pipeline  (.ctx-pipeline)
   Linear step flow for two-column layouts
   ============================================================================ */
.ctx-pipeline {
  display: flex;
  flex-direction: column;
  font-size: 0.8em;
}
.ctx-pipe-step {
  display: flex;
  align-items: center;
  gap: 0.65em;
}
.ctx-pipe-dot {
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 12%, rgba(4,9,27,0.92));
  border: 2px solid var(--c);
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 22%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c);
  flex-shrink: 0;
}
.ctx-pipe-body {
  display: flex;
  flex-direction: column;
  gap: 0.06em;
}
.ctx-pipe-body strong { color: #edf2ff; font-size: 0.92em; line-height: 1.25; }
.ctx-pipe-body small  { color: var(--text-muted, #8892b0); font-size: 0.8em; }
.ctx-pipe-connector {
  width: 2px;
  height: 1.6em;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.05) 100%);
  margin-left: calc(1.15em - 1px); /* align under dot center */
  flex-shrink: 0;
}

/* ============================================================================
   SDD Pipeline Flow
   ============================================================================ */
.sdd-pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.1em 0 0.5em;
  font-size: 0.82em;
  position: relative;
}

.sdd-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45em;
  flex-shrink: 0;
  max-width: 6.5em;
}

.sdd-circle {
  width: 3.3em; height: 3.3em;
  border-radius: 50%;
  border: 2px solid var(--accent-green);
  background: rgba(0,221,179,0.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-green);
  box-shadow: 0 0 18px rgba(0,221,179,0.2);
  animation: sdd-pulse-green 3s ease-in-out infinite;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.sdd-circle:hover { transform: scale(1.07); }
.sdd-circle svg.lucide { width: 1.35em; height: 1.35em; color: inherit; }

.sdd-circle--init   { border-color: var(--accent-blue);   background: rgba(56,200,250,0.07);   color: var(--accent-blue);   box-shadow: 0 0 18px rgba(56,200,250,0.2);   animation-name: sdd-pulse-blue; }
.sdd-circle--human  { border-color: var(--accent-gold);   background: rgba(255,205,71,0.1);    color: var(--accent-gold);   box-shadow: 0 0 28px rgba(255,205,71,0.3);   animation-name: sdd-pulse-gold;  width: 3.9em; height: 3.9em; }
.sdd-circle--deploy { border-color: var(--accent-purple); background: rgba(146,119,255,0.07);  color: var(--accent-purple); box-shadow: 0 0 18px rgba(146,119,255,0.2); animation-name: sdd-pulse-purple; }

.sdd-step-label { text-align: center; }
.sdd-step-label strong {
  display: block;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 0.72em;
  color: var(--text-primary);
  line-height: 1.3;
}
.sdd-step-label code {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6em;
  color: var(--accent-green);
  margin-top: 0.15em;
  opacity: 0.85;
}
.sdd-step--init   .sdd-step-label code { color: var(--accent-blue); }
.sdd-step--human  .sdd-step-label code { color: var(--accent-gold); }
.sdd-step--deploy .sdd-step-label code { color: var(--accent-purple); }

.sdd-loop-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.52em;
  color: var(--accent-gold);
  opacity: 0.8;
  margin-top: -0.1em;
  text-align: center;
}

/* HitL badge — overlaps top-right of each circle */
.sdd-circle-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.sdd-hitl-badge {
  position: absolute;
  top: -0.25em;
  right: -0.35em;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 1.5px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255,205,71,0.55);
  animation: sdd-pulse-gold 2.5s ease-in-out infinite;
}
.sdd-hitl-badge svg.lucide {
  width: 0.7em;
  height: 0.7em;
  color: var(--bg-primary);
}

.sdd-hitl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55em;
  color: var(--accent-gold);
  opacity: 0.72;
  margin-top: 0.1em;
  letter-spacing: 0.04em;
}
.sdd-hitl svg.lucide { width: 0.9em; height: 0.9em; color: inherit; }

/* Connectors */
.sdd-connector {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 0.2em;
  margin-top: 1.6em;
  min-width: 1.5em;
}

.sdd-line {
  width: 100%;
  height: 2px;
  position: relative;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,221,179,0.65) 0px, rgba(0,221,179,0.65) 5px,
    transparent 5px, transparent 9px
  );
  background-size: 9px 2px;
  animation: sdd-flow 0.65s linear infinite;
}
.sdd-line::after {
  content: '';
  position: absolute;
  right: -5px; top: -4px;
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid rgba(0,221,179,0.7);
}

.sdd-line--gold {
  background: repeating-linear-gradient(
    90deg,
    rgba(255,205,71,0.65) 0px, rgba(255,205,71,0.65) 5px,
    transparent 5px, transparent 9px
  );
  background-size: 9px 2px;
}
.sdd-line--gold::after  { border-left-color: rgba(255,205,71,0.75); }

.sdd-line--purple {
  background: repeating-linear-gradient(
    90deg,
    rgba(146,119,255,0.65) 0px, rgba(146,119,255,0.65) 5px,
    transparent 5px, transparent 9px
  );
  background-size: 9px 2px;
}
.sdd-line--purple::after { border-left-color: rgba(146,119,255,0.75); }

@keyframes sdd-flow {
  from { background-position: 0 0; }
  to   { background-position: 9px 0; }
}
@keyframes sdd-pulse-green  { 0%,100%{box-shadow:0 0 16px rgba(0,221,179,0.2);}  50%{box-shadow:0 0 32px rgba(0,221,179,0.5);}  }
@keyframes sdd-pulse-blue   { 0%,100%{box-shadow:0 0 16px rgba(56,200,250,0.2);} 50%{box-shadow:0 0 32px rgba(56,200,250,0.5);}  }
@keyframes sdd-pulse-gold   { 0%,100%{box-shadow:0 0 22px rgba(255,205,71,0.3);} 50%{box-shadow:0 0 42px rgba(255,205,71,0.65);} }
@keyframes sdd-pulse-purple { 0%,100%{box-shadow:0 0 16px rgba(146,119,255,0.2);}50%{box-shadow:0 0 32px rgba(146,119,255,0.5);} }

/* ============================================================================
   SLIDE: CAPA
   ============================================================================ */
#capa {
  position: relative;
}

#capa::before,
#capa::after {
  content: none;
}

.slide-capa {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 100%; text-align: center; position: relative; z-index: 2;
}

/* Hero orbs — ambient bioluminescent glow */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(0,221,179,0.11) 0%, transparent 68%);
  top: -180px; left: -140px;
  animation: orb-drift 14s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(124,92,252,0.15) 0%, transparent 68%);
  bottom: -100px; right: -100px;
  animation: orb-drift 11s ease-in-out infinite alternate-reverse;
}
@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(32px, 20px) scale(1.05); }
}

/* Eyebrow label */
.capa-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: rgba(124,92,252,0.1);
  border: 1px solid rgba(184,164,255,0.25);
  border-radius: 50px;
  color: var(--accent-copilot-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56em;
  padding: 0.4em 1.15em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1em;
  backdrop-filter: blur(8px);
}

.capa-mission-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.85em;
  padding: 0.34em 0.95em;
  border-radius: 999px;
  border: 1px solid rgba(255, 205, 71, 0.58);
  background: linear-gradient(90deg, rgba(41, 29, 6, 0.72), rgba(22, 17, 10, 0.72));
  color: rgba(255, 227, 163, 0.96);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 0 0.62em rgba(255, 205, 71, 0.24),
    inset 0 0 0.35em rgba(255, 205, 71, 0.14);
  animation: capa-chip-glow 2.4s ease-in-out infinite alternate;
}

.capa-mission-chip-icon svg.lucide {
  width: 0.95em;
  height: 0.95em;
  color: rgba(255, 218, 128, 0.96);
}

@keyframes capa-chip-glow {
  from {
    box-shadow:
      0 0 0.52em rgba(255, 205, 71, 0.22),
      inset 0 0 0.3em rgba(255, 205, 71, 0.12);
  }
  to {
    box-shadow:
      0 0 0.88em rgba(255, 205, 71, 0.34),
      inset 0 0 0.42em rgba(255, 205, 71, 0.2);
  }
}

.capa-title {
  font-size: 2.5em !important;
  margin-bottom: 0.15em !important;
  line-height: 1.0 !important;
  letter-spacing: 0.08em !important;
}

.capa-tagline-main {
  font-size: 0.93em;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 0.3em;
  line-height: 1.65;
}

/* GitHub Copilot animated badge */
.copilot-badge {
  display: inline-flex; align-items: center; gap: 0.6em;
  border-radius: 50px;
  padding: 0.58em 1.55em;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.88em;
  color: var(--text-primary);
  margin: 0.5em 0 0.3em 0;
  background: linear-gradient(135deg, rgba(124,92,252,0.18), rgba(56,200,250,0.12));
  border: 1px solid rgba(184,164,255,0.35);
  animation: copilot-pulse 3.5s ease-in-out infinite;
  backdrop-filter: blur(10px);
}
.copilot-badge .copilot-icon {
  font-size: 1.12em;
  color: var(--accent-copilot-light);
  filter: drop-shadow(0 0 7px rgba(184,164,255,0.75));
}
@keyframes copilot-pulse {
  0%, 100% { box-shadow: 0 0 22px rgba(124,92,252,0.18), 0 0 50px rgba(124,92,252,0.06); }
  50%       { box-shadow: 0 0 42px rgba(124,92,252,0.38), 0 0 85px rgba(124,92,252,0.14); }
}

.capa-divider {
  width: 55px; height: 2px;
  background: var(--gradient-copilot-border);
  border-radius: 2px;
  margin: 0.9em auto 0 auto;
  opacity: 0.6;
}

.capa-desc {
  color: var(--text-secondary) !important; font-size: 0.78em !important;
  max-width: 560px; margin: 0.75em auto 0 !important; line-height: 1.78 !important;
}

.author-badge {
  display: inline-flex; align-items: center; gap: 0.8em;
  background: rgba(9,16,42,0.85);
  border: 1px solid var(--border-glow);
  border-radius: 50px; padding: 0.45em 1.2em; margin-top: 1.2em;
  font-size: 0.75em;
  transition: all 0.3s;
  backdrop-filter: blur(12px);
}
.author-badge:hover { box-shadow: var(--shadow-glow); border-color: rgba(0,221,179,0.45); }

.author-avatar {
  width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--gradient-main);
  display: flex; align-items: center; justify-content: center;
  color: var(--bg-primary); font-size: 1.12em;
  box-shadow: 0 0 14px rgba(0,221,179,0.35);
}
.author-name   { color: var(--text-primary); font-weight: 700; font-family: 'Exo 2', sans-serif; letter-spacing: 0.01em; }
.author-handle { color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: 0.8em; }
.capa-tags     { margin-top: 1.1em; display: flex; gap: 0.5em; justify-content: center; flex-wrap: wrap; }

.particles { position: absolute; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:-1; overflow:hidden; }
.particle {
  position: absolute; border-radius: 50%; background: var(--accent-green); opacity: 0;
  animation: float-particle var(--dur, 9s) var(--del, 0s) infinite linear;
}
@keyframes float-particle {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-80px) translateX(var(--dx, 0px)); opacity: 0; }
}

/* ============================================================================
   SLIDE: SUMÁRIO
   ============================================================================ */
.sumario-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.52em;
  margin-top: 0.62em;
}
.sumario-card {
  background: rgba(9,16,42,0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.86em 0.58em;
  text-align: center; text-decoration: none; display: block; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
.sumario-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.sumario-card:hover {
  border-color: rgba(0,221,179,0.35);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
  background: rgba(0,221,179,0.04);
}
.sumario-card:hover::after { transform: scaleX(1); }
.sumario-card .icon  { font-size: 1.38em; display: block; margin-bottom: 0.18em; }
.sumario-card .title { font-family: 'Bebas Neue', sans-serif; font-size: 0.59em; font-weight: 400; color: var(--text-primary); line-height: 1.16; letter-spacing: 0.03em; }
.sumario-card .num   { font-family: 'JetBrains Mono', monospace; font-size: 0.5em; color: var(--text-muted); margin-top: 0.2em; }

/* ============================================================================
   SLIDE: QUIZ / Q&A
   ============================================================================ */
.quiz-wrapper { max-width: 680px; margin: 0 auto; text-align: left; }
.quiz-question {
  font-family: 'Exo 2', sans-serif; font-size: 0.9em; font-weight: 700;
  color: var(--text-primary); margin-bottom: 0.58em;
  padding-bottom: 0.38em; border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.01em;
}
.quiz-options { list-style: none; padding: 0; margin: 0; }
.quiz-options li {
  display: flex; align-items: center; gap: 0.8em;
  padding: 0.56em 0.86em;
  background: rgba(9,16,42,0.8);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  margin-bottom: 0.34em; cursor: pointer; transition: all 0.22s;
  color: var(--text-secondary) !important; font-size: 0.76em; line-height: 1.26;
  backdrop-filter: blur(8px);
}
.quiz-options li > :not(.quiz-letter) {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.quiz-options li::before { display: none !important; }
.quiz-options li:hover   { border-color: rgba(56,200,250,0.38); background: rgba(56,200,250,0.05); }
.quiz-options li.correct { border-color: var(--accent-green) !important; background: rgba(0,221,179,0.08) !important; color: var(--accent-green) !important; }
.quiz-options li.wrong   { border-color: var(--accent-red) !important; background: rgba(255,92,122,0.08) !important; color: var(--accent-red) !important; text-decoration: line-through; }
.quiz-letter {
  background: var(--bg-tertiary); border: 1px solid var(--border-subtle);
  border-radius: 5px; width: 1.65em; height: 1.65em;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 0.8em; font-weight: 600;
  color: var(--text-secondary); flex-shrink: 0;
}
.quiz-feedback { margin-top: 0.5em; padding: 0.5em 0.86em; border-radius: var(--radius-sm); font-size: 0.69em; display: none; }
.quiz-feedback.show    { display: block; }
.quiz-feedback.correct { background: rgba(0,221,179,0.08); border: 1px solid rgba(0,221,179,0.35); color: var(--accent-green); }
.quiz-feedback.wrong   { background: rgba(255,92,122,0.08); border: 1px solid rgba(255,92,122,0.35); color: var(--accent-red); }
.quiz-nav  { display: flex; justify-content: space-between; align-items: center; margin-top: 0.95em; }
.quiz-score { font-family: 'JetBrains Mono', monospace; color: var(--text-muted); font-size: 0.68em; }
.quiz-btn {
  background: var(--gradient-main); color: var(--bg-primary); border: none;
  border-radius: var(--radius-sm); padding: 0.5em 1.2em;
  font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: 0.66em;
  cursor: pointer; transition: all 0.22s; text-transform: uppercase; letter-spacing: 0.07em;
}
.quiz-btn:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,221,179,0.3); }
.quiz-btn.purple { background: var(--gradient-purple); }

/* ============================================================================
   SLIDE: REFERENCES
   ============================================================================ */
.refs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65em; text-align: left; }
.refs-category {
  background: rgba(9,16,42,0.8);
  border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 0.62em 0.78em;
  backdrop-filter: blur(10px);
  transition: border-color 0.25s;
}
.refs-category:hover { border-color: rgba(0,221,179,0.2); }
.refs-category h4 {
  font-family: 'Exo 2', sans-serif; font-size: 0.62em; font-weight: 700;
  color: var(--accent-green); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.42em; padding-bottom: 0.3em; border-bottom: 1px solid var(--border-glow);
}
.refs-category ul { list-style: none; padding: 0; margin: 0; }
.refs-category ul li { padding: 0.08em 0; font-size: 0.55em; line-height: 1.18; color: var(--text-muted); }
.refs-category ul li::before { display: none; }
.refs-category ul li a { color: var(--accent-blue); text-decoration: none; transition: color 0.2s; }
.refs-category ul li a:hover { color: var(--accent-green); }

/* ============================================================================
   SLIDE: CONCLUSION
   ============================================================================ */
.conclusion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85em; margin: 0.9em 0; }
.conclusion-item {
  display: flex; align-items: flex-start; gap: 0.7em;
  padding: 0.8em;
  background: rgba(9,16,42,0.8);
  border-radius: var(--radius-sm); border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  transition: all 0.28s;
}
.conclusion-item:hover {
  border-color: rgba(0,221,179,0.25);
  background: rgba(0,221,179,0.03);
}
.conclusion-item .icon { font-size: 1.3em; flex-shrink: 0; }
.conclusion-item p { font-size: 0.7em !important; margin: 0 !important; line-height: 1.45 !important; }
.conclusion-cta {
  background: linear-gradient(135deg, rgba(0,221,179,0.07), rgba(56,200,250,0.06));
  border: 1px solid rgba(0,221,179,0.35);
  border-radius: var(--radius-lg);
  padding: 1.3em 2em; margin-top: 0.9em; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 0 40px rgba(0,221,179,0.06);
}
.conclusion-cta::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,221,179,0.5), transparent);
}
.conclusion-cta p   { font-family: 'Bebas Neue', sans-serif; font-size: 1em !important; font-weight: 400; color: var(--text-primary) !important; margin: 0 !important; letter-spacing: 0.08em; }
.conclusion-cta .sub { font-size: 0.67em !important; color: var(--text-muted) !important; font-family: 'DM Sans', sans-serif !important; font-weight: 400 !important; margin-top: 0.3em !important; }

/* ============================================================================
   Back to Summary Button
   ============================================================================ */
.back-to-summary-btn {
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 1000;
  background: rgba(9, 16, 42, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.back-to-summary-btn:hover {
  background: rgba(0, 221, 179, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 221, 179, 0.2);
}

.back-to-summary-btn svg.lucide {
  width: 1.4em;
  height: 1.4em;
}

/* ============================================================================
   Section Pages
   ============================================================================ */
.section-page-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  position: relative;
  z-index: 2;
}

/* Animated Background Orbs for Section Pages */
.section-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.present .section-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--orb-color, rgba(0,221,179,0.15)) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: section-orb-drift 12s ease-in-out infinite alternate, fade-in 1s ease forwards;
}

.present .section-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--orb-color, rgba(56,200,250,0.15)) 0%, transparent 70%);
  bottom: -50px; right: -50px;
  animation: section-orb-drift 10s ease-in-out infinite alternate-reverse, fade-in 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes section-orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.1); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.section-page-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6em;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
}
.present .section-page-label {
  animation: fade-up 0.6s ease forwards;
  opacity: 0.75; /* fallback if animation fails, but forwards keeps it at 1, wait, fade-up goes to opacity 1 */
}

.section-page-title {
  font-size: 4em !important;
  margin: 0 !important;
  line-height: 1.0 !important;
  font-family: 'Bebas Neue', sans-serif !important;
  letter-spacing: 0.06em !important;
  opacity: 0;
}
.present .section-page-title {
  animation: fade-up 0.8s ease forwards;
  animation-delay: 0.1s;
}

.section-page-desc {
  color: var(--text-muted);
  font-size: 0.9em !important;
  max-width: 600px;
  margin: 0 !important;
  opacity: 0;
}
.present .section-page-desc {
  animation: fade-up 1s ease forwards;
  animation-delay: 0.2s;
}

.section-page-icon {
  font-size: 3.5em;
  margin-top: 0.5em;
  opacity: 0;
}
.present .section-page-icon {
  animation: fade-up 1.2s ease forwards;
  animation-delay: 0.3s;
}

.section-page-icon svg.lucide {
  animation: icon-glow 4s ease-in-out infinite;
}

@keyframes icon-glow {
  0%, 100% { filter: drop-shadow(0 0 10px currentColor); opacity: 0.35; transform: scale(1); }
  50%      { filter: drop-shadow(0 0 25px currentColor); opacity: 0.6; transform: scale(1.05); }
}

/* ============================================================================
   Section Pages — Cosmic Background Effects (Stars & Comets)
   Animações injetadas via WAAPI em createSectionCosmics() no custom.js
   ============================================================================ */
.section-cosmos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Streaks de cometa — posição e gradiente via JS */
.section-cosmos .comet {
  position: absolute;
  height: 1.5px;
  left: 110%;
  border-radius: 1px;
  opacity: 0;
  will-change: transform, opacity;
}

/* Micro estrelas tintilantes */
.section-cosmos .sp-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  opacity: 0;
  will-change: opacity, transform;
}

.section-cosmos .sp-star.lg {
  width: 3px;
  height: 3px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

/* ============================================================================
   Demo section — Lightsaber accent
   ============================================================================ */
#demo-talk-code {
  position: relative;
}

#demo-talk-code::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 48%, rgba(255, 44, 44, 0.16), rgba(255, 44, 44, 0.08) 36%, rgba(4, 9, 27, 0) 72%),
    radial-gradient(ellipse 60% 45% at 26% 62%, rgba(214, 0, 0, 0.14), rgba(4, 9, 27, 0) 72%);
  transition: opacity 0.35s ease;
}

#demo-talk-code.demo-hum-on::before {
  opacity: 1;
  animation: demo-reactive-bg 1.9s ease-in-out infinite alternate;
}

#demo-talk-code.demo-duel-mode::before {
  background:
    radial-gradient(ellipse 95% 72% at 50% 48%, rgba(124, 92, 252, 0.2), rgba(56, 200, 250, 0.13) 40%, rgba(4, 9, 27, 0) 74%),
    radial-gradient(ellipse 58% 42% at 24% 62%, rgba(146, 119, 255, 0.16), rgba(4, 9, 27, 0) 72%);
  animation: demo-reactive-bg-duel 1.35s ease-in-out infinite alternate;
}

#demo-talk-code .section-page-container {
  position: relative;
  z-index: 3;
}

#demo-talk-code .section-page-desc::after {
  content: '';
  display: block;
  margin-top: 0.55em;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.52em;
  letter-spacing: 0.06em;
  color: rgba(255, 122, 122, 0.86);
  opacity: 0;
  transition: opacity 0.25s ease;
}

#demo-talk-code.demo-audio-locked .section-page-desc::after {
  content: 'Clique no lightsaber para ativar o hum';
  opacity: 0.95;
}

#demo-talk-code.demo-audio-ready .section-page-desc::after {
  content: 'Som real do lightsaber: ON (clique para desligar)';
  color: rgba(255, 154, 154, 0.72);
  opacity: 0.62;
}

#demo-talk-code.demo-audio-ready.demo-hum-muted .section-page-desc::after {
  content: 'Som real do lightsaber: OFF (clique para ligar)';
  color: rgba(255, 180, 180, 0.85);
  opacity: 0.88;
}

#demo-talk-code .section-page-title {
  background: linear-gradient(92deg, #ffe2e2 0%, #ff7a7a 38%, #d60000 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 0 0.3em rgba(214, 0, 0, 0.42));
}

#demo-talk-code .section-page-label,
#demo-talk-code .section-page-title,
#demo-talk-code .section-page-desc,
#demo-talk-code .demo-lightsaber-three,
#demo-talk-code .demo-lightsaber,
#demo-talk-code .section-page-icon {
  opacity: 0;
}

#demo-talk-code.present .section-page-label {
  animation: demo-fade-up 0.45s ease forwards;
}

#demo-talk-code.present .section-page-title {
  animation:
    demo-fade-up 0.6s ease 0.08s forwards,
    demo-sith-title-glow 2.6s ease-in-out 0.9s infinite alternate;
}

#demo-talk-code.present .section-page-desc {
  animation: demo-fade-up 0.55s ease 0.18s forwards;
}

#demo-talk-code .demo-lightsaber-three {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

#demo-talk-code.demo-duel-mode .demo-lightsaber-three::after {
  content: 'Unlimited Context Power';
  position: absolute;
  top: 1.25em;
  right: 1.5em;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.42em;
  letter-spacing: 0.1em;
  color: rgba(186, 198, 255, 0.96);
  text-shadow:
    0 0 0.55em rgba(124, 92, 252, 0.72),
    0 0 0.98em rgba(56, 200, 250, 0.52);
}

#demo-talk-code .demo-lightsaber-three-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

#demo-talk-code.demo-three-ready .demo-lightsaber-three-canvas {
  background: transparent;
}

#demo-talk-code.demo-duel-mode .demo-lightsaber-three-canvas {
  background: transparent;
}

#demo-talk-code .demo-lightsaber-three-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#demo-talk-code.demo-three-ready .demo-lightsaber-three-canvas canvas {
  background: transparent !important;
  mix-blend-mode: normal;
  filter: none;
}

#demo-talk-code.demo-three-ready.demo-duel-mode .demo-lightsaber-three-canvas canvas {
  filter: none;
}

#demo-talk-code .demo-lightsaber-toggle-btn {
  position: relative;
  z-index: 4;
  margin-top: 0.42em;
  padding: 0.3em 0.78em;
  border-radius: 0.5em;
  border: 1px solid rgba(255, 122, 122, 0.62);
  background: rgba(38, 10, 10, 0.68);
  color: rgba(255, 225, 225, 0.96);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.52em;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

#demo-talk-code .demo-lightsaber-toggle-btn:hover {
  transform: translateY(-0.03em);
}

#demo-talk-code .demo-lightsaber-toggle-btn[aria-pressed='true'] {
  background: rgba(70, 12, 12, 0.82);
  box-shadow:
    0 0 0.65em rgba(255, 78, 78, 0.38),
    inset 0 0 0.42em rgba(255, 92, 92, 0.22);
}

#demo-talk-code .demo-easter-hint {
  position: relative;
  z-index: 4;
  margin: 0.34em 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.42em;
  letter-spacing: 0.06em;
  color: rgba(255, 188, 188, 0.8);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

#demo-talk-code.demo-easter-nudge .demo-easter-hint {
  color: rgba(255, 216, 168, 0.94);
  text-shadow: 0 0 0.55em rgba(255, 186, 118, 0.58);
}

#demo-talk-code.demo-duel-mode .demo-lightsaber-toggle-btn {
  border-color: rgba(166, 146, 255, 0.72);
  background: rgba(25, 18, 52, 0.78);
  color: rgba(230, 236, 255, 0.96);
}

#demo-talk-code.demo-duel-mode .demo-lightsaber-toggle-btn[aria-pressed='true'] {
  box-shadow:
    0 0 0.72em rgba(124, 92, 252, 0.55),
    inset 0 0 0.42em rgba(56, 200, 250, 0.2);
}

#demo-talk-code:not(.demo-three-ready) .demo-lightsaber-three {
  display: none;
}

#demo-talk-code.demo-three-ready .demo-lightsaber {
  display: none;
}

#demo-talk-code .demo-lightsaber {
  position: relative;
  width: min(26em, 76vw);
  height: 1.4em;
  margin-top: 0.45em;
  margin-bottom: 0.15em;
  opacity: 0;
  cursor: pointer;
}

#demo-talk-code .demo-lightsaber-hilt {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5.05em;
  height: 0.62em;
  border-radius: 0.32em;
  background: linear-gradient(90deg, rgba(45,55,76,1) 0%, rgba(139,152,182,1) 48%, rgba(44,53,73,1) 100%);
  border: 1px solid rgba(189, 202, 226, 0.34);
  box-shadow:
    0 0.1em 0.45em rgba(0, 0, 0, 0.45),
    inset 0 0.05em 0.18em rgba(255, 255, 255, 0.18);
}

#demo-talk-code .demo-lightsaber-hilt::before,
#demo-talk-code .demo-lightsaber-hilt::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 0.26em;
}

#demo-talk-code .demo-lightsaber-hilt::before {
  left: 0.65em;
  width: 2.5em;
  height: 0.82em;
  border-radius: 0.35em;
  background: repeating-linear-gradient(
    90deg,
    rgba(26, 34, 48, 0.95) 0,
    rgba(26, 34, 48, 0.95) 0.14em,
    rgba(126, 140, 170, 0.98) 0.14em,
    rgba(126, 140, 170, 0.98) 0.24em
  );
  border: 1px solid rgba(180, 197, 225, 0.24);
}

#demo-talk-code .demo-lightsaber-hilt::after {
  right: -0.42em;
  width: 0.46em;
  height: 0.78em;
  border-radius: 0.28em;
  background: rgba(255, 84, 84, 0.92);
  box-shadow: 0 0 0.6em rgba(214, 0, 0, 0.72);
}

#demo-talk-code .demo-lightsaber-blade {
  position: absolute;
  left: 4.65em;
  top: 50%;
  height: 0.24em;
  width: 0;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,232,232,1) 16%, rgba(255,91,91,0.95) 45%, rgba(214,0,0,0.92) 100%);
  box-shadow:
    0 0 0.24em rgba(255,255,255,0.84),
    0 0 0.62em rgba(255,84,84,0.62),
    0 0 1.1em rgba(214,0,0,0.42),
    0 0 1.62em rgba(214,0,0,0.16);
  transform-origin: left center;
  transition: box-shadow 0.22s ease, filter 0.22s ease;
}

#demo-talk-code .demo-lightsaber-blade::before,
#demo-talk-code .demo-lightsaber-blade::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: 999px;
}

#demo-talk-code .demo-lightsaber-blade::before {
  top: 50%;
  height: 0.1em;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,255,255,0.82), rgba(216,251,255,0.68));
  opacity: 0.92;
}

#demo-talk-code .demo-lightsaber-blade::after {
  top: -0.1em;
  height: 0.44em;
  background: linear-gradient(90deg, rgba(255,160,160,0.28), rgba(255,64,64,0.2), rgba(214,0,0,0.12));
  filter: blur(1.9px);
  opacity: 0.7;
}

#demo-talk-code .demo-lightsaber-spark {
  position: absolute;
  left: 4.66em;
  top: 50%;
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  opacity: 0;
}

#demo-talk-code.present .demo-lightsaber {
  animation:
    demo-fade-up 0.45s ease 0.32s forwards,
    demo-lightsaber-drift 3.8s ease-in-out 1.1s infinite alternate;
}

#demo-talk-code.present .demo-lightsaber-three {
  animation: fade-in 0.45s ease 0.3s forwards;
}

#demo-talk-code.present.demo-hum-on .demo-lightsaber-blade {
  animation:
    demo-lightsaber-ignite 0.65s cubic-bezier(0.2, 0.9, 0.1, 1) forwards,
    demo-hum-on-surge 0.32s ease-out 1,
    demo-lightsaber-hum-pulse 0.55s ease-in-out 0.1s infinite alternate;
}

#demo-talk-code.demo-hum-on .demo-lightsaber-hilt::after {
  box-shadow:
    0 0 0.75em rgba(214, 0, 0, 0.82),
    0 0 1.15em rgba(255, 84, 84, 0.56);
}

#demo-talk-code.demo-duel-mode .demo-lightsaber-hilt::after {
  background: rgba(124, 92, 252, 0.95);
  box-shadow:
    0 0 0.86em rgba(124, 92, 252, 0.86),
    0 0 1.25em rgba(56, 200, 250, 0.56);
}

#demo-talk-code.present .demo-lightsaber-spark:nth-child(3) {
  animation: demo-lightsaber-spark-a 0.55s ease-out 0.12s 1;
}

#demo-talk-code.present .demo-lightsaber-spark:nth-child(4) {
  animation: demo-lightsaber-spark-b 0.62s ease-out 0.2s 1;
}

#demo-talk-code.present .section-page-icon {
  animation: demo-fade-up 0.58s ease 0.46s forwards;
}

#demo-talk-code .demo-ignite-shake {
  animation: demo-ignite-shake 0.18s ease-out 1;
}

@keyframes demo-lightsaber-reveal {
  from { opacity: 0; transform: translateY(0.22em); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes demo-fade-up {
  from { opacity: 0; transform: translateY(0.22em); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes demo-lightsaber-ignite {
  0% { width: 0; opacity: 0; }
  20% { opacity: 1; }
  100% { width: calc(100% - 4.3em); opacity: 1; }
}

@keyframes demo-lightsaber-pulse {
  from {
    box-shadow:
      0 0 0.26em rgba(255,255,255,0.84),
      0 0 0.66em rgba(255,84,84,0.64),
      0 0 1.16em rgba(214,0,0,0.44),
      0 0 1.72em rgba(214,0,0,0.18);
  }
  to {
    box-shadow:
      0 0 0.36em rgba(255,255,255,0.92),
      0 0 0.92em rgba(255,74,74,0.78),
      0 0 1.54em rgba(214,0,0,0.56),
      0 0 2.2em rgba(214,0,0,0.25);
  }
}

@keyframes demo-lightsaber-hum-pulse {
  from {
    filter: saturate(1.05);
    box-shadow:
      0 0 0.5em rgba(255,255,255,0.98),
      0 0 1.32em rgba(255,84,84,0.98),
      0 0 2.22em rgba(214,0,0,0.82),
      0 0 3.1em rgba(214,0,0,0.4);
  }
  to {
    filter: saturate(1.35);
    box-shadow:
      0 0 0.88em rgba(255,255,255,1),
      0 0 2em rgba(255,74,74,1),
      0 0 3em rgba(214,0,0,0.95),
      0 0 3.9em rgba(214,0,0,0.58);
  }
}

@keyframes demo-hum-on-surge {
  0% {
    filter: brightness(1);
    box-shadow:
      0 0 0.26em rgba(255,255,255,0.86),
      0 0 0.7em rgba(255,84,84,0.66),
      0 0 1.2em rgba(214,0,0,0.48),
      0 0 1.8em rgba(214,0,0,0.2);
  }
  60% {
    filter: brightness(1.22);
    box-shadow:
      0 0 0.92em rgba(255,255,255,1),
      0 0 2.08em rgba(255,74,74,1),
      0 0 3.08em rgba(214,0,0,0.96),
      0 0 3.96em rgba(214,0,0,0.62);
  }
  100% {
    filter: brightness(1.12);
    box-shadow:
      0 0 0.68em rgba(255,255,255,1),
      0 0 1.62em rgba(255,84,84,0.98),
      0 0 2.46em rgba(214,0,0,0.86),
      0 0 3.32em rgba(214,0,0,0.5);
  }
}

@keyframes demo-lightsaber-spark-a {
  0% { transform: translate(0, -50%) scale(0.5); opacity: 0; }
  40% { opacity: 0.95; }
  100% { transform: translate(0.9em, -1.05em) scale(0.2); opacity: 0; }
}

@keyframes demo-lightsaber-spark-b {
  0% { transform: translate(0, -50%) scale(0.5); opacity: 0; }
  40% { opacity: 0.85; }
  100% { transform: translate(1.1em, 0.35em) scale(0.2); opacity: 0; }
}

@keyframes demo-sith-title-glow {
  from { filter: drop-shadow(0 0 0.3em rgba(214, 0, 0, 0.42)); }
  to { filter: drop-shadow(0 0 0.52em rgba(214, 0, 0, 0.72)); }
}

@keyframes demo-lightsaber-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-0.06em); }
}

@keyframes demo-reactive-bg {
  from {
    filter: saturate(1);
    opacity: 0.82;
  }
  to {
    filter: saturate(1.12);
    opacity: 1;
  }
}

@keyframes demo-reactive-bg-duel {
  from {
    filter: saturate(1.06) hue-rotate(0deg);
    opacity: 0.88;
  }
  to {
    filter: saturate(1.24) hue-rotate(8deg);
    opacity: 1;
  }
}


@keyframes demo-ignite-shake {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-0.07em, 0, 0); }
  45% { transform: translate3d(0.08em, 0, 0); }
  70% { transform: translate3d(-0.04em, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@media (max-width: 768px) {
  #demo-talk-code .demo-lightsaber {
    width: min(22em, 86vw);
    height: 1.3em;
  }
}

/* ============================================================================
   Animations
   ============================================================================ */
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 12px rgba(0,221,179,0.2); }
  50%      { box-shadow: 0 0 32px rgba(0,221,179,0.52), 0 0 65px rgba(0,221,179,0.18); }
}
@keyframes fade-up {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.glow-anim { animation: glow-pulse 3s ease-in-out infinite; }
.reveal .fragment.visible { animation: fade-up 0.4s ease forwards; }

/* ============================================================================
   Timeline Grid — horizontal timeline with mid-row connector
   ============================================================================ */
.timeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65em;
  margin-top: 0.7em;
}
.timeline-grid::after {
  content: '';
  position: absolute;
  left: 3%;
  right: 3%;
  top: calc(50% - 0.75px);
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(0,221,179,0.3) 20%, rgba(56,200,250,0.3) 50%, rgba(124,92,252,0.3) 80%, transparent);
  pointer-events: none;
  z-index: 0;
}
.timeline-grid .card { position: relative; z-index: 1; }

/* ============================================================================
   Copilot Timeline — vertical line with year markers
   ============================================================================ */
.copilot-timeline {
  position: relative;
  margin-top: 0.55em;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.38em;
  height: 12.6em;
}

.copilot-timeline::before {
  content: '';
  position: absolute;
  left: 1.2%;
  right: 1.2%;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(0,221,179,0.45) 0%,
    rgba(56,200,250,0.35) 50%,
    rgba(146,119,255,0.35) 100%
  );
  z-index: 0;
}

.copilot-timeline-item {
  position: relative;
  min-width: 0;
  z-index: 1;
}

.copilot-timeline-dot {
  position: absolute;
  left: 50%;
  top: calc(50% - 0.31em);
  transform: translateX(-50%);
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--accent-green);
  border: 2px solid rgba(4,9,27,0.95);
  box-shadow: 0 0 0 2px rgba(0,221,179,0.2), 0 0 14px rgba(0,221,179,0.25);
}

.copilot-timeline-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8.4em;
  background: rgba(9,16,42,0.75);
  border: 1px solid rgba(0,221,179,0.24);
  border-radius: 0.55em;
  padding: 0.32em 0.5em;
  text-align: left;
}

.copilot-timeline-connector {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, rgba(0,221,179,0.45), rgba(56,200,250,0.25));
  border-radius: 2px;
}

.copilot-timeline-item.top .copilot-timeline-content {
  top: 0;
}

.copilot-timeline-item.top .copilot-timeline-connector {
  top: calc(50% - 2.15em);
  height: 1.85em;
}

.copilot-timeline-item.bottom .copilot-timeline-content {
  bottom: 0;
}

.copilot-timeline-item.bottom .copilot-timeline-connector {
  top: calc(50% + 0.32em);
  height: 1.85em;
}

.copilot-timeline-date {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.88em;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  line-height: 1;
  margin-bottom: 0.08em;
}

.copilot-timeline-content p {
  margin: 0;
  font-size: 0.54em;
  line-height: 1.3;
  color: var(--text-secondary);
}

.copilot-timeline-item-cli .copilot-timeline-dot {
  background: var(--accent-copilot-light);
  box-shadow: 0 0 0 2px rgba(184,164,255,0.22), 0 0 14px rgba(124,92,252,0.3);
}

.copilot-timeline-item-cli .copilot-timeline-content {
  border-color: rgba(124,92,252,0.42);
  box-shadow: inset 0 0 0 1px rgba(124,92,252,0.1);
}

.copilot-timeline-item-cli .copilot-timeline-date {
  color: var(--accent-copilot-light);
}

@media (max-width: 768px) {
  .copilot-timeline {
    display: block;
    height: auto;
    padding-left: 1.5em;
  }

  .copilot-timeline::before {
    top: 0.2em;
    bottom: 0.2em;
    left: 0.62em;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(0,221,179,0.45), rgba(56,200,250,0.35), rgba(146,119,255,0.35));
  }

  .copilot-timeline-item {
    margin: 0 0 0.45em 0;
  }

  .copilot-timeline-content {
    position: static;
    width: auto;
    transform: none;
  }

  .copilot-timeline-dot {
    left: -0.9em;
    top: 0.4em;
    transform: none;
  }

  .copilot-timeline-connector {
    display: none;
  }
}

/* ============================================================================
   Scrollable content helper
   ============================================================================ */
.scrollable {
  overflow-y: auto; max-height: 58vh; padding-right: 0.4em;
}
.scrollable::-webkit-scrollbar { width: 3px; }
.scrollable::-webkit-scrollbar-track { background: var(--bg-secondary); }
.scrollable::-webkit-scrollbar-thumb { background: var(--accent-green); border-radius: 2px; opacity: 0.6; }

/* ============================================================================
   SLIDE: SOBRE MIM — base container
   ============================================================================ */
#sobre-mim {
  position: relative;
}

#sobre-mim .section-header {
  position: relative;
  z-index: 2;
}

/* ============================================================================
   SLIDE: THE END
   ============================================================================ */

#the-end .section-page-container {
  position: relative;
  z-index: 3;
}

#the-end .the-end-audio-portal {
  margin-top: 0.72em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32em;
  opacity: 0;
  isolation: isolate;
}

#the-end.present .the-end-audio-portal {
  animation: end-audio-fade-up 0.55s ease 0.26s forwards;
}

#the-end .the-end-audio-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.48em;
  border-radius: 999px;
  border: 1px solid rgba(163, 228, 255, 0.6);
  background: linear-gradient(90deg, rgba(7, 34, 52, 0.86), rgba(10, 22, 46, 0.86));
  color: rgba(224, 247, 255, 0.98);
  padding: 0.34em 0.92em;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.52em;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

#the-end .the-end-audio-trigger:hover {
  transform: translateY(-0.03em);
}

#the-end .the-end-audio-trigger-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(56,200,250,0.2) 0%, rgba(0,221,179,0.1) 35%, transparent 72%);
  opacity: 0.46;
  filter: blur(7px);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 56%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 56%, rgba(0,0,0,0) 100%);
}

#the-end .the-end-audio-trigger-icon,
#the-end .the-end-audio-trigger-text {
  position: relative;
  z-index: 1;
}

#the-end .the-end-audio-trigger-icon svg.lucide {
  width: 0.95em;
  height: 0.95em;
}

#the-end .the-end-audio-hint {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.45em;
  letter-spacing: 0.06em;
  color: rgba(192, 223, 233, 0.92);
}

#the-end.the-end-audio-on .the-end-audio-trigger {
  border-color: rgba(0, 221, 179, 0.88);
  box-shadow:
    0 0 0.62em rgba(0, 221, 179, 0.36),
    inset 0 0 0.5em rgba(56, 200, 250, 0.24);
}

#the-end.the-end-audio-on .the-end-audio-trigger-halo {
  animation: end-audio-halo-pulse 1.4s ease-in-out infinite alternate;
}

#the-end.the-end-audio-on .the-end-audio-hint {
  color: rgba(191, 255, 229, 0.96);
}

#the-end.the-end-hyperdrive-nudge .the-end-audio-hint {
  color: rgba(255, 228, 172, 0.98);
  text-shadow: 0 0 0.65em rgba(255, 204, 122, 0.54);
}

#the-end.the-end-hyperdrive .the-end-audio-portal::after {
  content: 'Hyperdrive Unlocked';
  display: block;
  margin-top: 0.18em;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.4em;
  letter-spacing: 0.12em;
  color: rgba(208, 220, 255, 0.96);
  text-shadow:
    0 0 0.62em rgba(124, 92, 252, 0.72),
    0 0 1em rgba(56, 200, 250, 0.5);
}

#the-end.the-end-hyperdrive .the-end-audio-trigger {
  border-color: rgba(164, 144, 255, 0.9);
  box-shadow:
    0 0 0.82em rgba(124, 92, 252, 0.52),
    0 0 1.38em rgba(56, 200, 250, 0.28),
    inset 0 0 0.45em rgba(146, 119, 255, 0.3);
}

#the-end.the-end-hyperdrive .the-end-audio-trigger-halo {
  background: radial-gradient(circle, rgba(124,92,252,0.26) 0%, rgba(56,200,250,0.2) 42%, transparent 78%);
  animation: end-audio-hyperdrive-halo 0.8s ease-in-out infinite alternate;
}

#the-end.the-end-hyperdrive::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(124, 92, 252, 0.2) 0%, transparent 35%),
    radial-gradient(circle at 80% 26%, rgba(56, 200, 250, 0.2) 0%, transparent 36%),
    radial-gradient(circle at 52% 82%, rgba(146, 119, 255, 0.18) 0%, transparent 42%);
  animation: end-bg-wave-hyperdrive 5.5s ease-in-out infinite alternate;
}

#the-end.the-end-hyperdrive::after {
  opacity: 0.18;
  animation: end-stars-hyperdrive 1.8s linear infinite;
}

#the-end.the-end-hyperdrive-exit::before,
#the-end.the-end-hyperdrive-exit::after,
#the-end.the-end-hyperdrive-exit .the-end-audio-trigger-halo,
#the-end.the-end-hyperdrive-exit .the-end-audio-portal::after {
  animation: end-hyperdrive-fadeout 1s ease-out forwards !important;
}

#the-end::before {
  content: '';
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 221, 179, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 80% 26%, rgba(56, 200, 250, 0.11) 0%, transparent 36%),
    radial-gradient(circle at 52% 82%, rgba(146, 119, 255, 0.1) 0%, transparent 42%);
  pointer-events: none;
  z-index: 0;
  animation: end-bg-wave 34s ease-in-out infinite alternate;
}

#the-end::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0.85px, transparent 1px);
  background-size: 48px 48px;
  background-position: 0 0;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  animation: end-stars-drift 46s linear infinite;
}

@keyframes end-bg-wave {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-0.35%, 0.35%, 0) scale(1.01); }
  100% { transform: translate3d(0.35%, -0.3%, 0) scale(1.005); }
}

@keyframes end-stars-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

@keyframes end-audio-fade-up {
  from {
    opacity: 0;
    transform: translateY(0.24em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes end-audio-halo-pulse {
  from {
    opacity: 0.48;
    transform: scale(0.95);
  }
  to {
    opacity: 0.86;
    transform: scale(1.08);
  }
}

@keyframes end-audio-hyperdrive-halo {
  from {
    opacity: 0.56;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes end-bg-wave-hyperdrive {
  0% { transform: translate3d(0, 0, 0) scale(1); filter: hue-rotate(0deg) saturate(1.06); }
  100% { transform: translate3d(0.4%, -0.42%, 0) scale(1.02); filter: hue-rotate(8deg) saturate(1.28); }
}

@keyframes end-stars-hyperdrive {
  0% { transform: translateY(0); opacity: 0.12; }
  100% { transform: translateY(-28px); opacity: 0.24; }
}

@keyframes end-hyperdrive-fadeout {
  from { opacity: 1; filter: saturate(1.2); }
  to { opacity: 0.2; filter: saturate(1); }
}



/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 768px) {
  .card-grid-3, .card-grid-2, .two-cols, .two-cols-60, .two-cols-65,
  .refs-grid, .conclusion-grid { grid-template-columns: 1fr !important; }
  .sumario-grid { display: grid !important; grid-template-columns: 1fr !important; }
  .reveal h1 { font-size: 1.7em; }
  .reveal h2 { font-size: 1.3em; }
  .reveal table { font-size: 0.62em; }
}

/* ============================================================================
   Lucide Icons — Professional SVG Icon System
   ============================================================================ */

/* Base — all Lucide SVGs created from <i data-lucide="..."> */
svg.lucide {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Section header breadcrumb icons */
.section-icon svg.lucide {
  width: 1em;
  height: 1em;
  color: var(--accent-green);
}

/* Large card icons */
.card-icon svg.lucide {
  width: 1.75em;
  height: 1.75em;
  display: block;
  margin-bottom: 0.3em;
  color: var(--accent-green);
}

/* Sumário navigation cards */
.sumario-card .icon svg.lucide {
  width: 1.65em;
  height: 1.65em;
  display: block;
  margin: 0 auto 0.28em auto;
  color: var(--accent-green);
}

/* Icon list items (7-column layouts) */
.icon-list .icon svg.lucide {
  width: 1.2em;
  height: 1.2em;
  color: var(--accent-green);
}

/* Conclusion grid icons */
.conclusion-item .icon svg.lucide {
  width: 1.35em;
  height: 1.35em;
  color: var(--accent-green);
}

/* Author avatar icon */
.author-avatar svg.lucide {
  width: 1.3em;
  height: 1.3em;
  color: var(--bg-primary);
}

/* Copilot badge icon */
.copilot-icon svg.lucide {
  width: 1.05em;
  height: 1.05em;
  color: var(--accent-copilot-light);
}

/* Reference category h4 icons */
.refs-category h4 svg.lucide {
  width: 0.85em;
  height: 0.85em;
  vertical-align: text-top;
  margin-right: 0.3em;
  color: var(--accent-green);
}

/* Table header icons */
.reveal table thead th svg.lucide {
  width: 0.85em;
  height: 0.85em;
  vertical-align: text-top;
  margin-right: 0.25em;
}

/* Table body cell icons */
.reveal table tbody td svg.lucide {
  width: 0.9em;
  height: 0.9em;
  vertical-align: text-bottom;
  margin-right: 0.2em;
  color: var(--accent-green);
}

/* Card h3 inline icons (DO/DON'T) */
.card h3 svg.lucide {
  width: 0.85em;
  height: 0.85em;
  vertical-align: text-top;
  color: inherit;
}

/* Inline card-icon-inline div (for centre-aligned hero icons in cards) */
.card-icon-inline svg.lucide {
  width: 1em;
  height: 1em;
  display: block;
  margin: 0 auto 0.25em auto;
  color: var(--accent-green);
}

/* ============================================================================
   Lists — override for base Reveal styles
   ============================================================================ */
.reveal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reveal ul li {
  padding: 0.32em 0 0.32em 1.9em;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.55;
}

.reveal ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-size: 0.62em;
  top: 0.64em;
}

.reveal ul li strong { color: var(--text-primary); }

.reveal ol {
  counter-reset: item;
  list-style: none;
  padding: 0;
}

.reveal ol li {
  counter-increment: item;
  padding: 0.32em 0 0.32em 2.6em;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.55;
}

.reveal ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  width: 1.8em;
  height: 1.8em;
  background: var(--gradient-main);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68em;
  font-weight: 800;
  top: 0.37em;
  font-family: 'Exo 2', sans-serif;
}

/* ============================================================================
   STARFIELD BACKGROUND — ambient deep space
   Design principle: "you feel the motion, you never think about it"
   ============================================================================ */

/* ── Nebula ─────────────────────────────────────────────────────────────────
   Translate-only drift keeps motion sub-perceptual.
   Opacity oscillates slowly — the "breathing universe" effect.
   -------------------------------------------------------------------------- */
.nebula {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 38% at 12% 18%, rgba(124, 92, 252, 0.10) 0%, transparent 58%),
    radial-gradient(ellipse 42% 32% at 90% 82%, rgba(56,  200, 250, 0.08) 0%, transparent 58%),
    radial-gradient(ellipse 65% 48% at 52% 52%, rgba(0,  221, 179, 0.04) 0%, transparent 72%),
    radial-gradient(ellipse 32% 24% at 74% 12%, rgba(255, 100, 140, 0.03) 0%, transparent 52%);
  animation: nebula-drift 65s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes nebula-drift {
  0%   { transform: translate(  0px,  0px); opacity: 0.80; }
  30%  { transform: translate( 11px,  7px); opacity: 0.95; }
  60%  { transform: translate( -7px, 14px); opacity: 0.84; }
  100% { transform: translate(  9px, -5px); opacity: 1.00; }
}

/* ── Star container ──────────────────────────────────────────────────────── */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Three parallax depth layers — each drifts as a whole; no per-star movement */
.stars-far {
  position: absolute;
  inset: -5%;
  animation: layer-far 90s ease-in-out infinite alternate;
  will-change: transform;
}

.stars-mid {
  position: absolute;
  inset: -5%;
  animation: layer-mid 65s ease-in-out infinite alternate;
  will-change: transform;
}

.stars-near {
  position: absolute;
  inset: -5%;
  animation: layer-near 48s ease-in-out infinite alternate;
  will-change: transform;
}

/* ── Individual star base ────────────────────────────────────────────────── */
.star {
  position: absolute;
  border-radius: 50%;
  animation: twinkle var(--star-dur, 6s) var(--star-del, 0s) infinite ease-in-out;
}

.star-sm   { width: 1px; height: 1px; background: rgba(255, 255, 255, 0.75); }
.star-md   { width: 2px; height: 2px; background: rgba(230, 242, 255, 0.85); }
.star-lg   {
  width: 3px; height: 3px;
  background: white;
  box-shadow: 0 0 4px 1px rgba(200, 225, 255, 0.45);
}

/* XL — hero stars, gentle breathe only */
.star-xl {
  width: 4px; height: 4px;
  background: white;
  animation: star-breathe var(--star-dur, 5s) var(--star-del, 0s) infinite ease-in-out !important;
}

/* Color tints — scattered for realism (real starfields have colour) */
.star-warm   { background: rgba(255, 218, 165, 0.85) !important; }
.star-cool   { background: rgba(175, 215, 255, 0.85) !important; }
.star-violet { background: rgba(210, 185, 255, 0.78) !important; }

/* ── Shooting star ───────────────────────────────────────────────────────── */
.shooting-star {
  position: absolute;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 8%,
    rgba(255, 255, 255, 0.68) 62%,
    rgba(200, 228, 255, 0.48) 100%
  );
  transform-origin: right center;
  animation: shoot var(--shoot-dur, 2.2s) var(--shoot-del, 28s) infinite linear;
  pointer-events: none;
}

/* ============================================================================
   @keyframes
   ============================================================================ */

/* Twinkle: narrow opacity band — never blinks out, never blazes */
@keyframes twinkle {
  0%, 100% { opacity: var(--star-base, 0.20); }
  40%      { opacity: calc(var(--star-base, 0.20) * 0.65); }
  70%      { opacity: var(--star-max, 0.68);  }
}

/* Parallax layers: tiny displacement, very long cycles — depth without noise */
@keyframes layer-far {
  0%   { transform: translate(  0px,  0px); }
  50%  { transform: translate(  5px,  3px); }
  100% { transform: translate( -3px,  7px); }
}

@keyframes layer-mid {
  0%   { transform: translate(  0px,  0px); }
  40%  { transform: translate( -7px,  4px); }
  100% { transform: translate(  4px, -5px); }
}

@keyframes layer-near {
  0%   { transform: translate(  0px,  0px); }
  60%  { transform: translate(  8px, -6px); }
  100% { transform: translate( -5px,  8px); }
}

/* XL star breathe: gentle scale (1.0 → 1.3) + soft glow */
@keyframes star-breathe {
  0%, 100% {
    opacity: 0.48;
    transform: scale(1.0);
    box-shadow: 0 0 5px 1px rgba(200, 228, 255, 0.45);
  }
  50% {
    opacity: 0.88;
    transform: scale(1.28);
    box-shadow: 0 0 10px 3px rgba(200, 228, 255, 0.72);
  }
}

/* Shooting star: rare, streaks fast, soft fade */
@keyframes shoot {
  0%, 5% { opacity: 0; width: 0;   transform: rotate(var(--angle, -26deg)) translateX(0); }
  8%      { opacity: 0.80; width: 38px; }
  22%     { opacity: 0.65; width: var(--shoot-len, 145px); }
  35%     {
    opacity: 0;
    width: var(--shoot-len, 145px);
    transform: rotate(var(--angle, -26deg)) translateX(var(--shoot-dist, 580px));
  }
  100%    {
    opacity: 0; width: 0;
    transform: rotate(var(--angle, -26deg)) translateX(var(--shoot-dist, 580px));
  }
}

/* ============================================================================
   SOBRE MIM — Modern single-surface layout
   ============================================================================ */
#sobre-mim .sm-modern {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0.2em auto 0;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1.2em;
  align-items: center;
}

#sobre-mim .sm-modern-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55em;
}

#sobre-mim .sm-modern-photo-ring {
  width: 9.8em;
  height: 9.8em;
  border-radius: 50%;
  padding: 0.13em;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, rgba(0,221,179,0.95), rgba(56,200,250,0.8), rgba(146,119,255,0.75));
  box-shadow: 0 0 24px rgba(0,221,179,0.26), 0 0 46px rgba(56,200,250,0.18);
}

#sobre-mim .sm-modern-photo {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
  display: block;
  object-fit: cover !important;
  object-position: center 24% !important;
  transform: scale(1.28);
  transform-origin: center center;
}

#sobre-mim .sm-modern-kpis {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35em;
}

#sobre-mim .sm-modern-content h2 {
  margin-bottom: 0.06em !important;
  line-height: 1 !important;
  font-size: 2.15em !important;
}

#sobre-mim .sm-modern-lead {
  font-size: 0.79em;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0 0 0.45em 0;
}

#sobre-mim .sm-modern-pills .tag {
  font-size: 0.64em;
}

#sobre-mim .sm-modern-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  margin-bottom: 0.45em;
  justify-content: center;
}

#sobre-mim .sm-modern-highlights .highlight-box {
  margin: 0 0 0.54em 0;
  padding: 0.68em 0.9em;
  border-color: rgba(56,200,250,0.35);
  background: rgba(9,16,42,0.55);
}

#sobre-mim .sm-modern-highlights .highlight-box p {
  margin: 0;
  font-size: 0.84em;
  line-height: 1.46;
}

#sobre-mim .sm-modern-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42em;
  justify-content: center;
  margin-top: 0.55em;
}

#sobre-mim .sm-modern-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42em;
  justify-content: center;
}

#sobre-mim .sm-modern-link {
  display: inline-flex;
  align-items: center;
  gap: 0.36em;
  padding: 0.34em 0.74em;
  border-radius: 999px;
  border: 1px solid rgba(56,200,250,0.34);
  background: linear-gradient(140deg, rgba(9,16,42,0.78), rgba(9,16,42,0.54));
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.68em;
  font-weight: 600;
  transition: all 0.2s ease;
}

#sobre-mim .sm-modern-link:hover {
  color: var(--accent-green) !important;
  border-color: rgba(0,221,179,0.4);
  background: rgba(0,221,179,0.08);
  transform: translateY(-1px);
}

#sobre-mim .sm-modern-link--project {
  border-color: rgba(0,221,179,0.38);
  background: linear-gradient(140deg, rgba(0,221,179,0.12), rgba(56,200,250,0.1));
  color: #b7fff2 !important;
}

#sobre-mim .sm-modern-link--project:hover {
  color: #d6fff7 !important;
  border-color: rgba(0,221,179,0.62);
  background: linear-gradient(140deg, rgba(0,221,179,0.2), rgba(56,200,250,0.16));
}

#sobre-mim .sm-modern-link--social {
  border-color: rgba(146,119,255,0.36);
  background: linear-gradient(140deg, rgba(146,119,255,0.14), rgba(9,16,42,0.58));
  color: #ddd8ff !important;
}

#sobre-mim .sm-modern-link--social:hover {
  color: #f0ecff !important;
  border-color: rgba(184,164,255,0.62);
  background: linear-gradient(140deg, rgba(146,119,255,0.24), rgba(56,200,250,0.14));
}

/* Social brand hover accents */
#sobre-mim .sm-modern-links a[href*="linkedin.com"]:hover {
  color: #e7f3ff !important;
  border-color: rgba(10,102,194,0.82);
  background: linear-gradient(140deg, rgba(10,102,194,0.24), rgba(9,16,42,0.62));
}

#sobre-mim .sm-modern-links a[href*="x.com"]:hover {
  color: #eef5ff !important;
  border-color: rgba(107,168,255,0.82);
  background: linear-gradient(140deg, rgba(88,101,242,0.2), rgba(9,16,42,0.62));
}

#sobre-mim .sm-modern-links a[href*="youtube.com"]:hover {
  color: #ffeaea !important;
  border-color: rgba(255,59,59,0.84);
  background: linear-gradient(140deg, rgba(255,59,59,0.22), rgba(9,16,42,0.62));
}

#sobre-mim .sm-modern-links a[href$="github.com/glaucia86"]:hover {
  color: #f2f2f2 !important;
  border-color: rgba(154,160,166,0.8);
  background: linear-gradient(140deg, rgba(154,160,166,0.18), rgba(9,16,42,0.62));
}

#sobre-mim .sm-modern-links a[href*="instagram.com"]:hover {
  color: #ffe9f2 !important;
  border-color: rgba(225,48,108,0.82);
  background: linear-gradient(140deg, rgba(225,48,108,0.21), rgba(9,16,42,0.62));
}

#sobre-mim .sm-modern-link svg.lucide {
  width: 1em;
  height: 1em;
}

@media (max-width: 900px) {
  #sobre-mim .sm-modern {
    grid-template-columns: 1fr;
    gap: 0.75em;
    margin-top: 0;
    text-align: center;
  }

  #sobre-mim .sm-modern-pills,
  #sobre-mim .sm-modern-links {
    justify-content: center;
  }
}

/* Remove rectangular overlay and re-center content on #sobre-mim */
#sobre-mim::before,
#sobre-mim::after {
  content: none !important;
}

#sobre-mim .sm-modern {
  margin-top: 1.0em;
}

/* Move #sobre-mim visual FX to Reveal background layer (full slide) */
#sobre-mim .particles,
#sobre-mim .hero-orb {
  display: none !important;
}

.reveal .slides > section#sobre-mim {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reveal .backgrounds .slide-background.bg-sobre-mim .slide-background-content {
  position: relative;
  overflow: hidden;
}

.reveal .backgrounds .slide-background.bg-sobre-mim .slide-background-content::before {
  content: '';
  position: absolute;
  inset: -12% -8%;
  background:
    radial-gradient(circle at 18% 24%, rgba(0, 221, 179, 0.16) 0%, transparent 36%),
    radial-gradient(circle at 82% 22%, rgba(56, 200, 250, 0.13) 0%, transparent 36%),
    radial-gradient(circle at 64% 82%, rgba(146, 119, 255, 0.11) 0%, transparent 44%);
  filter: blur(2px);
  z-index: 0;
  animation: sm-bg-screen-drift 32s ease-in-out infinite alternate;
}

.reveal .backgrounds .slide-background.bg-sobre-mim .slide-background-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(56, 200, 250, 0.18) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.07;
  z-index: 1;
  animation: sm-bg-screen-stars 62s linear infinite;
}

.reveal .backgrounds .slide-background.bg-sobre-mim .slide-background-content .sm-bg-cosmos {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.reveal .backgrounds .slide-background.bg-sobre-mim .slide-background-content .sm-bg-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 8px rgba(255,255,255,0.38);
}

.reveal .backgrounds .slide-background.bg-sobre-mim .slide-background-content .sm-bg-star.lg {
  width: 3px;
  height: 3px;
  background: rgba(56,200,250,0.96);
  box-shadow: 0 0 12px rgba(56,200,250,0.52);
}

.reveal .backgrounds .slide-background.bg-sobre-mim .slide-background-content .sm-bg-comet {
  position: absolute;
  left: 110%;
  height: 1.5px;
  border-radius: 2px;
  opacity: 0;
}

@keyframes sm-bg-screen-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-0.5%, 0.45%, 0) scale(1.01); }
  100% { transform: translate3d(0.45%, -0.4%, 0) scale(1.006); }
}

@keyframes sm-bg-screen-stars {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .nebula,
  .starfield,
  .section-cosmos,
  .reveal .backgrounds .slide-background.bg-sobre-mim .slide-background-content .sm-bg-cosmos,
  #particles,
  #particles-the-end {
    display: none !important;
  }

  .particle,
  .starfield .star,
  .starfield .shooting-star,
  .section-cosmos .comet,
  .section-cosmos .sp-star,
  .reveal .backgrounds .slide-background.bg-sobre-mim .slide-background-content::before,
  .reveal .backgrounds .slide-background.bg-sobre-mim .slide-background-content::after,
  .reveal .backgrounds .slide-background.bg-sobre-mim .slide-background-content .sm-bg-star,
  .reveal .backgrounds .slide-background.bg-sobre-mim .slide-background-content .sm-bg-comet {
    animation: none !important;
    transition: none !important;
  }
}

body.lite-mode .nebula,
body.lite-mode .starfield,
body.lite-mode .section-cosmos,
body.lite-mode #particles,
body.lite-mode #particles-the-end,
body.lite-mode .sm-bg-cosmos {
  display: none !important;
}

body.lite-mode #demo-talk-code .demo-lightsaber-three-canvas {
  display: none !important;
}
