:root {
  --bg-dark: #000000;
  --bg-gradient: linear-gradient(to right, rgb(45,43,183) 0%, rgb(33,31,148) 10%, rgb(20,19,113) 20%, rgb(9,8,80) 30%, rgb(6,6,57) 40%, rgb(4,3,34) 50%, rgb(1,1,11) 60%, rgb(0,0,0) 70%, rgb(0,0,0) 100%);
  --accent-cyan: #0ea5e9;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  --accent-green: #10b981;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --glass-bg: rgba(21, 26, 48, 0.6);
  --glass-border: rgba(14, 165, 233, 0.3);
  --glass-glow: 0 0 20px rgba(14, 165, 233, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.header-group {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Global Top Banner */
.top-banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: 145px; /* Increased by 45% */
  object-fit: cover;
  clip-path: inset(2px 0 2px 0); /* Shave off the baked-in white/gray borders from the image */
  margin-bottom: -2px;
  margin-top: -2px;
}

/* Global Logo */
.nexusnode-logo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 2rem;
  height: 150px; /* Increased by 30% */
  z-index: 1001;
  opacity: 0.9;
}

#presentation-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 8rem 4rem 4rem 4rem; /* Added top padding so banner doesn't cover text */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s;
  background: var(--bg-gradient);
  display: flex;
  flex-direction: column;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

/* Slide with Image Backgrounds */
.slide.bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Shift Slide 4 and Slide 15 backgrounds down so the banner doesn't cover their top elements */
#slide-4, #slide-15 {
  background-position: center top 60px;
}

/* Ensure Slide 7 (the tool) is shifted down below the banner and fits nicely */
#slide-7 {
  background: #e6edf5 url('assets/Original presentation images/Nexusnode Capital Transmission Diagnostic.png') no-repeat !important;
  background-size: 95% auto !important;
  background-position: center top 110px !important;
}
#slide-7::before {
  display: none !important;
}

.slide.bg-image::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(7, 11, 25, 0.4); /* Darken bg images slightly for text readability */
  z-index: 0;
}

.slide-content, .slide-header {
  position: relative;
  z-index: 1;
}

.slide-content {
  margin-top: 3rem;
  flex-grow: 1;
}

/* Typography */
.title-massive {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.25rem;
  line-height: 1.6;
}

.text-gradient {
  background: linear-gradient(90deg, #fff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

/* UI Cards / PPTX Panels */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-glow);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.glass-card.highlight {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
}

/* Blockquotes */
blockquote {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 6px solid var(--accent-cyan);
  padding: 2rem;
  border-radius: 8px;
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 2rem;
  box-shadow: var(--glass-glow);
}
blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--accent-cyan);
  font-style: normal;
  font-weight: bold;
}

/* Layout Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

/* Charts & Interactive Elements */
.chart-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 300px;
  padding: 1rem 0;
}

.bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 80px;
  border-radius: 8px 8px 0 0;
  transition: height 0.5s ease-out;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.bar-label {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.bar-value {
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Pulse Sliders */
.slider-group {
  margin-bottom: 1.5rem;
}
.slider-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 1.2rem;
}
input[type=range] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  outline: none;
  -webkit-appearance: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Matrix */
.matrix-container {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  grid-template-rows: 60px 1fr 1fr;
  gap: 1rem;
  height: 100%;
  padding: 2rem;
}
.matrix-label-top {
  grid-column: 2 / 4;
  grid-row: 1;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  font-weight: bold;
  color: var(--text-secondary);
  text-align: center;
}
.matrix-label-side {
  grid-column: 1;
  grid-row: 2 / 4;
  display: flex;
  flex-direction: row; /* row follows inline axis which is vertical in vertical-rl */
  justify-content: space-around;
  align-items: center;
  font-weight: bold;
  color: var(--text-secondary);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
}
.matrix-quadrant {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  transition: all 0.3s ease;
}
.matrix-quadrant h3 {
  color: var(--accent-cyan);
}
.matrix-quadrant.active {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: inset 0 0 30px rgba(14, 165, 233, 0.2);
}

/* Blueprint Timeline */
.blueprint-milestone {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}
.milestone-day {
  background: var(--accent-cyan);
  color: #000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-right: 1.5rem;
  box-shadow: 0 0 15px var(--accent-cyan);
}

/* Controls */
#controls {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 100;
}
.btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}
.btn:hover { background: rgba(255,255,255,0.2); }
.btn-primary {
  background: var(--accent-blue);
  border-color: var(--accent-cyan);
}
.btn-primary:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
}
#slide-counter {
  position: fixed;
  bottom: 2.5rem;
  left: 2rem;
  font-weight: bold;
  color: var(--text-secondary);
  z-index: 100;
}
#progress-container {
  position: fixed;
  bottom: 0; left: 0; width: 100%; height: 4px;
  background: rgba(255,255,255,0.1);
  z-index: 100;
}
#progress-bar {
  height: 100%;
  background: var(--accent-cyan);
  width: 6%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Live Pulse Animation */
.live-pulse {
  width: 12px; height: 12px;
  background: var(--accent-red);
  border-radius: 50%;
  margin-right: 1rem;
  animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
