/* Custom Stylesheet for Dragon Lab MIMO Presentation - Streamlined Header & Balanced Vertical Spacing */

:root {
  --navy: #0B2E4A;
  --navy-dark: #061928;
  --navy-light: #15456E;
  --navy-gradient: linear-gradient(135deg, #0B2E4A 0%, #15456E 100%);
  
  --orange: #F37021;
  --orange-light: #FFF4ED;
  --orange-hover: #D95A0D;
  --orange-gradient: linear-gradient(135deg, #F37021 0%, #FF8C42 100%);
  
  --green: #1E9E5A;
  --green-light: #EBF9F1;
  --green-gradient: linear-gradient(135deg, #1E9E5A 0%, #29C472 100%);
  
  --red: #B42318;
  --red-light: #FEF3F2;
  --red-gradient: linear-gradient(135deg, #B42318 0%, #E53935 100%);
  
  --gray-dark: #1D2939;
  --gray: #475467;
  --gray-light: #F2F4F7;
  --border: #D0D5DD;
  --bg: #F4F7FA;
  --white: #FFFFFF;

  --shadow-sm: 0 4px 10px rgba(11, 46, 74, 0.05);
  --shadow-md: 0 8px 22px rgba(11, 46, 74, 0.08);
  --shadow-lg: 0 14px 36px rgba(11, 46, 74, 0.14);

  --font-main: 'Be Vietnam Pro', 'Inter', system-ui, -apple-system, sans-serif;
}

/* Base Reveal Reset & Typography */
.reveal {
  font-family: var(--font-main);
  color: var(--navy);
  background-color: var(--bg);
  font-size: 28px;
}

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

.reveal section {
  background: var(--bg);
  padding: 22px 48px 36px 48px !important;
  box-sizing: border-box;
  height: 100% !important;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

/* STREAMLINED COMPACT HEADER - Unified Top Row */
.slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(11, 46, 74, 0.12);
  width: 100%;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--navy);
  background: rgba(11, 46, 74, 0.08);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(11, 46, 74, 0.18);
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--orange);
  background: var(--orange-light);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(243, 112, 33, 0.35);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.slide-logo-container {
  background: var(--white);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.slide-logo {
  height: 44px !important;
  width: auto;
  object-fit: contain;
}

.slide-footer {
  position: absolute;
  bottom: 8px;
  left: 48px;
  right: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray);
  border-top: 1.5px solid var(--border);
  padding-top: 6px;
  z-index: 10;
  background: var(--bg);
}

.footer-line {
  height: 4px;
  background: var(--orange-gradient);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Headings - Larger, Crisp & Modern */
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: var(--font-main);
  color: var(--navy);
  font-weight: 800;
  line-height: 1.28;
  margin: 0;
  text-transform: none;
}

.reveal h1 { font-size: 2.4rem; letter-spacing: -0.5px; }
.reveal h2 { font-size: 1.65rem; letter-spacing: -0.3px; color: var(--navy); font-weight: 900; margin-bottom: 10px; }
.reveal h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.reveal h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }

.subtitle {
  font-size: 1.0rem;
  color: var(--gray-dark);
  font-weight: 600;
  margin-top: 2px;
  margin-bottom: 8px;
}

.text-accent { color: var(--orange); }
.text-navy { color: var(--navy); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--gray); }

.gradient-text {
  background: var(--orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Main Content Area - Generous Height & Balanced Vertical Flex */
.slide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between !important;
  gap: 12px;
  overflow: hidden;
  padding-bottom: 30px;
  min-height: 0;
}

/* Cards & Containers */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(11, 46, 74, 0.15);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 46, 74, 0.25);
}

.card-navy {
  background: var(--navy-gradient) !important;
  color: var(--white) !important;
  border-color: var(--navy-dark) !important;
}
.card-navy::before { background: var(--orange) !important; }
.card-navy h3, .card-navy h4, .card-navy p, .card-navy span, .card-navy div, .card-navy ul, .card-navy ul li, .card-navy ul li strong { 
  color: #FFFFFF !important; 
  -webkit-text-fill-color: #FFFFFF !important;
}

.card-orange {
  background: var(--orange-light);
  border-color: rgba(243, 112, 33, 0.35);
}
.card-orange::before { background: var(--orange); }

.card-green {
  background: var(--green-light);
  border-color: rgba(30, 158, 90, 0.35);
}
.card-green::before { background: var(--green); }

.card-red {
  background: var(--red-light);
  border-color: rgba(180, 35, 24, 0.35);
}
.card-red::before { background: var(--red); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
  align-items: stretch;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  flex: 1;
  align-items: stretch;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  flex: 1;
  align-items: stretch;
}

.grid-2 > *, .grid-3 > *, .grid-4 > * {
  min-width: 0;
  box-sizing: border-box;
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.badge-green {
  background: var(--green-light);
  color: var(--green);
  border: 1.5px solid rgba(30, 158, 90, 0.35);
}

.badge-red {
  background: var(--red-light);
  color: var(--red);
  border: 1.5px solid rgba(180, 35, 24, 0.35);
}

.badge-orange {
  background: var(--orange-light);
  color: var(--orange);
  border: 1.5px solid rgba(243, 112, 33, 0.35);
}

.badge-navy {
  background: rgba(11, 46, 74, 0.1);
  color: var(--navy);
  border: 1.5px solid rgba(11, 46, 74, 0.2);
}

/* Key Message Banner */
.key-message {
  background: var(--navy-gradient);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 14px;
  border-left: 6px solid var(--orange);
  box-shadow: var(--shadow-md);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 14px;
}
.key-message i {
  font-size: 1.6rem;
  color: var(--orange);
  flex-shrink: 0;
}

/* COVER SLIDE (SLIDE 1) STYLING */
.cover-slide {
  padding: 32px 50px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.cover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cover-logo-box {
  background: var(--white);
  padding: 8px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}

.cover-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.cover-hero-card {
  background: var(--white);
  border: 2px solid rgba(11, 46, 74, 0.12);
  border-radius: 20px;
  padding: 30px 38px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin: 12px 0;
}

.cover-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: var(--orange-gradient);
}

.company-tag {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cover-main-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 14px;
}

.cover-target-desc {
  font-size: 1.05rem;
  color: var(--gray-dark);
  line-height: 1.45;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1.5px solid var(--gray-light);
}

.cover-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 16px;
  margin-top: 8px;
}

.cover-meta-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.meta-icon {
  font-size: 1.5rem;
  color: var(--orange);
  background: var(--orange-light);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.meta-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gray);
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 2px;
}

/* Versus Comparison (Slide 3 & 8) */
.versus-container {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: stretch;
  gap: 16px;
}

.versus-divider {
  width: 56px;
  height: 56px;
  background: var(--navy-gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: var(--shadow-lg);
  margin: auto;
  border: 3px solid var(--white);
  flex-shrink: 0;
}

/* Funnel Visual (Slide 4 & Backup 1) */
.funnel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.funnel-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 14px;
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 8px;
}

.funnel-tier-1 { width: 100%; background: linear-gradient(90deg, #3A5B85, #4B6B94); }
.funnel-tier-2 { width: 88%; background: linear-gradient(90deg, #244773, #2E5280); }
.funnel-tier-3 { width: 76%; background: linear-gradient(90deg, #12335A, #183C66); }
.funnel-tier-4 { width: 64%; background: var(--orange-gradient); border: 2px solid var(--white); }

/* Control Pipeline Flow (Slide 5) */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.pipeline-node {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.pipeline-node.node-ok { border-color: var(--green); background: var(--green-light); color: var(--navy); }
.pipeline-node.node-stop { border-color: var(--red); background: var(--red-light); color: var(--red); }
.pipeline-node i { font-size: 1.25rem; }

/* Map Geofence (Slide 6) */
.map-visual {
  background: linear-gradient(135deg, #EBF3FA 0%, #D8E8F8 100%);
  border: 2px dashed #A3C7EB;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}

.map-zone {
  background: rgba(30, 158, 90, 0.18);
  border: 2px solid var(--green);
  border-radius: 14px;
  padding: 14px;
}

.map-zone-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.map-points {
  display: flex;
  gap: 10px;
}

.map-chip {
  background: var(--white);
  border: 1.5px solid var(--green);
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.map-out-of-zone {
  background: rgba(180, 35, 24, 0.12);
  border: 2px solid var(--red);
  border-radius: 14px;
  padding: 14px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* System Boundary (Slide 7) */
.boundary-box {
  border: 2px dashed var(--navy);
  border-radius: 16px;
  padding: 20px;
  background: rgba(11, 46, 74, 0.03);
  position: relative;
}

.boundary-label {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--navy-gradient);
  color: var(--white);
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Liquidity Flow & Balance Scale (Slide 9) */
.liquidity-container {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  gap: 16px;
  align-items: center;
}

.scale-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scale-icon {
  font-size: 2.5rem;
  color: var(--orange);
  margin-bottom: 6px;
}

/* Wallet Flow (Slide 10) */
.wallet-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: var(--shadow-md);
}

.wallet-card {
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  min-width: 120px;
}

.wallet-card.master {
  background: var(--navy-gradient);
  color: var(--white);
  border-color: var(--navy-dark);
}
.wallet-card.master h4, .wallet-card.master p { color: var(--white); }

/* Slide 11 Order Countdown Mockup */
.order-mockup {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  margin: 0 auto;
}

.timer-box {
  background: #FFF4ED;
  border: 2px solid var(--orange);
  border-radius: 14px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
}

.timer-digits {
  font-family: monospace;
  font-size: 2rem;
  font-weight: 900;
  color: var(--orange);
}

/* Horizontal Timeline (Slide 13) */
.timeline-horizontal {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 18px 0;
  padding-top: 18px;
}

.timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border);
  z-index: 1;
}

.timeline-point {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 19%;
  text-align: center;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  margin-bottom: 8px;
}

.timeline-point.active .timeline-dot {
  background: var(--orange);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy);
}

.timeline-desc {
  font-size: 0.75rem;
  color: var(--gray-dark);
  margin-top: 4px;
  line-height: 1.35;
}

/* List Formatting - High Contrast & Crisp */
.reveal ul {
  margin: 0;
  padding-left: 20px;
  font-size: 1.05rem;
  color: var(--navy);
}

.reveal ul li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.reveal ul li strong {
  color: var(--navy);
  font-weight: 800;
}

.list-icon {
  list-style: none;
  padding-left: 0 !important;
}

.list-icon li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.list-icon li i {
  margin-top: 3px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Slide Drawer Navigation Button */
#slide-nav-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  background: var(--navy-gradient);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

#slide-nav-btn:hover {
  transform: scale(1.1);
  background: var(--orange-gradient);
}

#slide-drawer {
  position: fixed;
  top: 0;
  left: -380px;
  width: 360px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 99999;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
}

#slide-drawer.open {
  left: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-light);
}

.drawer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease;
}

.drawer-item:hover {
  background: var(--orange-light);
  color: var(--orange);
}

.drawer-item.active {
  background: var(--navy-gradient);
  color: var(--white);
}

/* Print PDF Overrides */
@media print {
  .slide-header { border-bottom: 2px solid var(--navy); }
  #slide-nav-btn, #slide-drawer { display: none !important; }
  .reveal section {
    page-break-after: always !important;
    height: 100vh !important;
  }
}
