/* ============================================
   DEEPFAKE DETECTION — CYBER DARK THEME
   ============================================ */

:root {
  --bg-dark: #050a14;
  --bg-card: #0a1628;
  --bg-card2: #0d1f3c;
  --cyan: #00e5ff;
  --cyan-dim: #00b8d4;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --red: #ff1744;
  --red-dim: #c62828;
  --green: #00e676;
  --green-dim: #00c853;
  --yellow: #ffd600;
  --orange: #ff6d00;
  --text-primary: #e8f4fd;
  --text-secondary: #8bacc8;
  --text-muted: #4a6080;
  --border: rgba(0,229,255,0.15);
  --border-bright: rgba(0,229,255,0.4);
  --glow-cyan: 0 0 20px rgba(0,229,255,0.3);
  --glow-purple: 0 0 20px rgba(124,58,237,0.4);
  --glow-red: 0 0 20px rgba(255,23,68,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* ---- BACKGROUND CANVAS ---- */
#bgCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.4;
}

/* ---- SCANLINES ---- */
.scanlines {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
}

/* ---- PRESENTATION WRAPPER ---- */
.presentation {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ---- SLIDES ---- */
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.slide.exit-left {
  opacity: 0;
  transform: translateX(-60px);
}

.slide-inner {
  width: 92%;
  max-width: 1200px;
  height: 88vh;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

/* ---- SLIDE HEADER ---- */
.slide-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-bright);
  padding-bottom: 14px;
  flex-shrink: 0;
}

.slide-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--cyan);
  background: rgba(0,229,255,0.08);
  border: 1px solid var(--border-bright);
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 2px;
}

.slide-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.part-tag {
  font-size: 13px;
  color: var(--cyan);
  font-family: 'Share Tech Mono', monospace;
  margin-left: 10px;
  opacity: 0.8;
}

/* ============================================
   SLIDE 1 — TITLE SLIDE
   ============================================ */
.title-slide {
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.glitch-wrapper {
  margin-bottom: 30px;
}

.main-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
}

.main-title.accent {
  color: var(--cyan);
  text-shadow: var(--glow-cyan), 0 0 60px rgba(0,229,255,0.2);
}

/* Glitch effect */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.glitch::before {
  color: var(--red);
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translateX(-2px);
  opacity: 0.7;
}
.glitch::after {
  color: var(--cyan);
  animation: glitch2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translateX(2px);
  opacity: 0.7;
}

@keyframes glitch1 {
  0%, 90%, 100% { transform: translateX(0); opacity: 0; }
  92% { transform: translateX(-3px); opacity: 0.7; }
  94% { transform: translateX(3px); opacity: 0.7; }
  96% { transform: translateX(-1px); opacity: 0.7; }
}
@keyframes glitch2 {
  0%, 88%, 100% { transform: translateX(0); opacity: 0; }
  90% { transform: translateX(3px); opacity: 0.7; }
  92% { transform: translateX(-3px); opacity: 0.7; }
  94% { transform: translateX(1px); opacity: 0.7; }
}

.subtitle-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  padding: 5px 14px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 2px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(0,229,255,0.05);
  animation: tagPulse 2s ease-in-out infinite alternate;
}
.tag:nth-child(2) { animation-delay: 0.3s; border-color: var(--purple-light); color: var(--purple-light); }
.tag:nth-child(3) { animation-delay: 0.6s; border-color: var(--green); color: var(--green); }
.tag:nth-child(4) { animation-delay: 0.9s; border-color: var(--yellow); color: var(--yellow); }

@keyframes tagPulse {
  from { box-shadow: none; }
  to { box-shadow: 0 0 12px currentColor; }
}

.title-meta {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  align-items: center;
}

.mono {
  font-family: 'Share Tech Mono', monospace;
  color: var(--cyan);
  font-size: 12px;
}

.pulse-ring {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.1);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 3s ease-out infinite;
  pointer-events: none;
}
.pulse-ring::before, .pulse-ring::after {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.06);
  animation: pulseRing 3s ease-out infinite 1s;
}
.pulse-ring::after { inset: -80px; animation-delay: 2s; }

@keyframes pulseRing {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* ============================================
   SLIDE 2 — TABLE OF CONTENTS
   ============================================ */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex: 1;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  transition: all 0.3s;
  animation: slideInLeft 0.4s ease both;
  animation-delay: calc(var(--i) * 0.06s);
  cursor: default;
}

.toc-item:hover {
  background: var(--bg-card2);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateX(4px);
}

.toc-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--cyan);
  min-width: 28px;
}

.toc-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.toc-bar {
  width: 30px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   SLIDE 3 — INTRODUCTION
   ============================================ */
.intro-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  flex: 1;
  overflow: hidden;
}

.intro-text-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.3s;
}
.highlight-box:hover { border-color: var(--red); box-shadow: var(--glow-red); }
.highlight-box.blue { border-left-color: var(--cyan); }
.highlight-box.blue:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.highlight-box.green { border-left-color: var(--green); }
.highlight-box.green:hover { border-color: var(--green); box-shadow: 0 0 20px rgba(0,230,118,0.3); }

.hb-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }

.highlight-box p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.highlight-box p strong { color: var(--text-primary); }

/* Face scan animation */
.intro-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.face-scan-anim {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.face-box {
  width: 180px; height: 180px;
  border: 2px solid var(--red);
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,23,68,0.05);
  box-shadow: var(--glow-red);
  overflow: hidden;
}

.scan-line {
  position: absolute;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: scanDown 2s linear infinite;
  box-shadow: 0 0 10px var(--red);
}

@keyframes scanDown {
  0% { top: 0; }
  100% { top: 100%; }
}

.corner {
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--red);
  border-style: solid;
}
.corner.tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.corner.tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.corner.br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }

.face-icon { font-size: 60px; opacity: 0.6; }

.face-label {
  position: absolute;
  bottom: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 2px 8px;
  border-radius: 2px;
}
.fake-label { background: var(--red); color: white; }

.detection-stats { width: 180px; }

.stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.stat-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 2px;
  animation: fillBar 1.5s ease both;
}
.stat-fill.red { background: var(--red); }

@keyframes fillBar {
  from { width: 0 !important; }
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.badge.real { background: rgba(0,230,118,0.15); color: var(--green); border: 1px solid var(--green); }
.badge.fake { background: rgba(255,23,68,0.15); color: var(--red); border: 1px solid var(--red); }

/* ============================================
   CYBER TABLE
   ============================================ */
.tools-table-wrap, .comparison-wrap {
  flex: 1;
  overflow: auto;
}

.cyber-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cyber-table thead tr {
  background: linear-gradient(90deg, rgba(0,229,255,0.15), rgba(124,58,237,0.15));
  border-bottom: 2px solid var(--cyan);
}

.cyber-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cyber-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}

.cyber-table tbody tr:hover {
  background: rgba(0,229,255,0.04);
}

.cyber-table td {
  padding: 12px 16px;
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.5;
}

.tool-name {
  font-weight: 700;
  color: var(--cyan);
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
}

.small { font-size: 11px; }

/* ============================================
   LITERATURE SURVEY
   ============================================ */
.lit-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
}

.lit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--purple);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s;
}
.lit-card:hover { box-shadow: var(--glow-purple); border-color: var(--purple-light); }

.lit-ref {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--purple-light);
  letter-spacing: 2px;
}

.lit-method {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.lit-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
}
.lit-card p strong { color: var(--text-primary); }

.lit-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lit-tags span {
  font-size: 10px;
  padding: 2px 8px;
  border: 1px solid rgba(124,58,237,0.4);
  color: var(--purple-light);
  border-radius: 2px;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 1px;
}

.survey-note {
  background: rgba(0,229,255,0.05);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 4px;
  flex-shrink: 0;
}

/* ============================================
   PROBLEM STATEMENT
   ============================================ */
.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
  overflow: hidden;
}

.problem-left, .problem-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
  flex: 1;
}

.problem-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.pc-icon { font-size: 24px; margin-bottom: 8px; }

.problem-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.problem-card p strong { color: var(--text-primary); }

.io-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.io-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.io-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(0,229,255,0.1);
  color: var(--cyan);
  border-radius: 2px;
  min-width: 60px;
  text-align: center;
  letter-spacing: 1px;
}

.io-val { color: var(--text-secondary); }

.io-arrow {
  text-align: center;
  color: var(--cyan);
  font-size: 18px;
  padding-left: 30px;
}

.formula-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--yellow);
  border-radius: 6px;
  padding: 18px;
}

.formula-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  color: var(--yellow);
  margin-bottom: 10px;
}

.formula-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.formula-box {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,214,0,0.2);
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.formula-line {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  color: var(--yellow);
  line-height: 1.8;
}
.formula-line.indent { padding-left: 20px; }

.formula-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.binary-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
}

.bv-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bv-icon { font-size: 28px; }
.bv-label { font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 700; }
.bv-val { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--text-muted); }

.real-item .bv-label { color: var(--green); }
.fake-item .bv-label { color: var(--red); }

.bv-divider {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  color: var(--text-muted);
  padding: 0 10px;
}

/* ============================================
   METHODOLOGY OVERVIEW
   ============================================ */
.method-overview {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.method-intro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.method-intro p {
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
}
.method-intro p strong { color: var(--text-primary); }

.df-types {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.df-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.dt-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dt-dot.red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.dt-dot.orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.dt-dot.yellow { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }

.arch-pipeline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  flex: 1;
}

.pipeline-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.pipeline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pipe-step {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 12px;
  text-align: center;
  min-width: 100px;
  transition: all 0.3s;
}
.pipe-step:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }

.highlight-step {
  border-color: var(--cyan);
  background: rgba(0,229,255,0.08);
  box-shadow: var(--glow-cyan);
}

.ps-icon { font-size: 24px; margin-bottom: 6px; }

.ps-label {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 600;
}

.ps-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-top: 3px;
}

.pipe-arrow {
  color: var(--cyan);
  font-size: 20px;
  opacity: 0.6;
  flex-shrink: 0;
}

/* ============================================
   TECH STACK
   ============================================ */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 2px 1.4fr;
  gap: 24px;
  flex: 1;
  overflow: hidden;
}

.tech-divider {
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  opacity: 0.3;
}

.tech-col-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 1px;
}

.tc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.tc-dot.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.tc-dot.purple { background: var(--purple-light); box-shadow: 0 0 8px var(--purple-light); }

.method-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.method-item:hover { border-color: var(--cyan); color: var(--text-primary); }

.mi-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  min-width: 24px;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
}

.tech-table tr {
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}
.tech-table tr:hover { background: rgba(0,229,255,0.03); }

.tt-cat {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Share Tech Mono', monospace;
  width: 55%;
}

.tt-val {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--cyan);
  font-weight: 600;
}

/* ============================================
   ALGORITHM
   ============================================ */
.algo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
  overflow: hidden;
}

.algo-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.algo-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  animation: slideInLeft 0.3s ease both;
  animation-delay: calc(var(--i) * 0.05s);
  transition: all 0.2s;
}
.algo-step:hover { border-color: var(--cyan); color: var(--text-primary); }

.end-step { border-color: var(--green); color: var(--green); }

.as-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  min-width: 24px;
}

.highlight-word {
  color: var(--cyan);
  font-weight: 700;
}

/* Code block */
.code-block {
  background: #0a0f1a;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.cb-header {
  background: #111827;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.cb-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.cb-dot.red { background: #ff5f57; }
.cb-dot.yellow { background: #febc2e; }
.cb-dot.green { background: #28c840; }

.cb-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}

.cb-code {
  padding: 20px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
  color: #a8b2c1;
  white-space: pre;
  overflow: auto;
}

.cb-code .kw { color: #c792ea; }
.cb-code .str { color: #c3e88d; }
.cb-code .num { color: #f78c6c; }
.cb-code .comment { color: #546e7a; font-style: italic; }

/* ============================================
   FLOWCHART
   ============================================ */
.flowchart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.fc-node {
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  min-width: 260px;
  line-height: 1.4;
}

.fc-sub {
  font-size: 11px;
  font-family: 'Share Tech Mono', monospace;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.start-node, .end-node {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  border-radius: 30px;
  padding: 10px 30px;
  min-width: 120px;
}

.process-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.process-node:hover { border-color: var(--cyan); color: var(--text-primary); }

.model-node {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.4);
  color: var(--purple-light);
}

.decision-node {
  background: rgba(255,214,0,0.08);
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  transform: rotate(0deg);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  padding: 20px 40px;
  min-width: 200px;
}

.eval-node {
  background: rgba(0,229,255,0.05);
  border: 1px solid var(--border-bright);
  color: var(--text-secondary);
}

.real-node {
  background: rgba(0,230,118,0.1);
  border: 1px solid var(--green);
  color: var(--green);
  min-width: 100px;
  padding: 10px 20px;
}

.fake-node {
  background: rgba(255,23,68,0.1);
  border: 1px solid var(--red);
  color: var(--red);
  min-width: 100px;
  padding: 10px 20px;
}

.fc-arrow {
  color: var(--cyan);
  font-size: 18px;
  opacity: 0.7;
  line-height: 1;
}

.fc-branch {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  justify-content: center;
}

.fc-branch-left, .fc-branch-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.left-arrow, .right-arrow {
  font-size: 22px;
  color: var(--cyan);
}

/* ============================================
   RESULT
   ============================================ */
.result-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  height: 100%;
}

.rc-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.rc-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.rc-bar-label {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 60px;
  font-family: 'Share Tech Mono', monospace;
}

.rc-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.rc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  border-radius: 4px;
  animation: fillBar 1.5s ease both;
  box-shadow: 0 0 8px var(--cyan);
}
.rc-bar-fill.accent {
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  box-shadow: 0 0 12px var(--cyan);
}

.rc-bar-val {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--cyan);
  min-width: 36px;
  text-align: right;
}

.result-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}
.metric-card:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }

.metric-val {
  font-family: 'Orbitron', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.2;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 1px;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-table .acc-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acc-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  border-radius: 3px;
  animation: fillBar 1.5s ease both;
}

.acc-bar.our {
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  box-shadow: 0 0 8px var(--cyan);
}

.highlight-row {
  background: rgba(0,229,255,0.04) !important;
  border-left: 3px solid var(--cyan) !important;
}

.model-name {
  font-weight: 700;
  color: var(--text-primary);
}
.our-model { color: var(--cyan); }

.status-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 1px;
}
.status-badge.baseline { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }
.status-badge.ours { background: rgba(0,229,255,0.1); color: var(--cyan); border: 1px solid var(--cyan); }
.status-badge.compare { background: rgba(124,58,237,0.1); color: var(--purple-light); border: 1px solid rgba(124,58,237,0.4); }

/* ============================================
   FUTURE WORK
   ============================================ */
.future-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex: 1;
  overflow: hidden;
}

.future-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  animation: slideInLeft 0.4s ease both;
  animation-delay: calc(var(--i) * 0.07s);
}
.future-card:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); transform: translateY(-3px); }

.future-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.fc-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.fc-icon { font-size: 24px; margin-bottom: 8px; }

.future-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.future-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   CONCLUSION
   ============================================ */
.conclusion-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  flex: 1;
  overflow: hidden;
}

.conclusion-blocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.conc-block {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
  transition: all 0.3s;
}
.conc-block:hover { border-color: var(--cyan); }

.cb-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: rgba(0,229,255,0.15);
  flex-shrink: 0;
  line-height: 1;
}

.cb-content h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.cb-content p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.cb-content p strong { color: var(--text-primary); }

/* Impact ring */
.conclusion-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact-ring {
  position: relative;
  width: 220px; height: 220px;
}

.ir-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.ir-icon { font-size: 32px; }
.ir-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: var(--cyan);
  line-height: 1.3;
  margin-top: 4px;
}

.ir-orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  transform-origin: 0 0;
  transform: rotate(var(--angle));
  animation: orbitSpin 12s linear infinite;
}

.ir-orbit span {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(calc(-1 * var(--angle)));
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--cyan);
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

@keyframes orbitSpin {
  from { transform: rotate(var(--angle)); }
  to { transform: rotate(calc(var(--angle) + 360deg)); }
}

/* ============================================
   REFERENCES
   ============================================ */
.ref-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
}

.ref-item {
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
}
.ref-item:hover { border-color: var(--cyan); }

.ref-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--cyan);
  min-width: 30px;
  flex-shrink: 0;
}

.ref-item p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.ref-item p em { color: var(--text-primary); font-style: italic; }

/* Thank you */
.thank-you {
  text-align: center;
  padding: 20px 0 10px;
  flex-shrink: 0;
}

.ty-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  margin: 10px 0;
}

.ty-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 4px;
}

.ty-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 2px;
  margin-top: 6px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-controls {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 100;
  background: rgba(5,10,20,0.9);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 10px 24px;
  backdrop-filter: blur(10px);
}

.nav-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--cyan);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.nav-btn:hover { background: rgba(0,229,255,0.1); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.slide-counter {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  color: var(--text-secondary);
  min-width: 60px;
  text-align: center;
}

#currentSlide { color: var(--cyan); font-weight: 700; }

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.05);
  z-index: 100;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.4s ease;
  box-shadow: 0 0 10px var(--cyan);
}

/* Slide dots */
.slide-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: scale(1.4);
}
.dot:hover { background: var(--cyan); }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }