/* ============================================
   SUSTAINABLE SKYSCRAPERS — DESIGN SYSTEM
   Palette: Chlorophyll + Editorial
   Fonts: Bricolage Grotesque + Spline Sans
   ============================================ */

:root {
  --green-electric: #B8F369;
  --green-forest: #2D6A1E;
  --green-deep: #0A1F02;
  --green-mist: #F0FFF0;
  --green-mid: #4A9E2F;
  --white: #FAFAFA;
  --off-white: #F0EDE8;
  --dark: #0A0A0A;
  --dark-mid: #1A1A1A;
  --gray: #888;
  --blue-deep: #0A1A2F;
  --earth: #2C1A0A;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Spline Sans', sans-serif;

  --slide-transition: 0.75s cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--dark);
  font-family: var(--font-body);
  cursor: default;
  user-select: none;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-electric), var(--green-mid));
  z-index: 1000;
  transition: width 0.6s var(--ease-out);
  box-shadow: 0 0 12px var(--green-electric);
}

/* ============================================
   SLIDE COUNTER
   ============================================ */
.slide-counter {
  position: fixed;
  top: 28px;
  right: 32px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  mix-blend-mode: normal;
}

#currentSlide {
  color: var(--green-electric);
  font-size: 16px;
  font-weight: 800;
}

.counter-divider {
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  display: inline-block;
}

.counter-total {
  color: rgba(255,255,255,0.4);
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */
.nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(184, 243, 105, 0.3);
  background: rgba(10, 31, 2, 0.6);
  backdrop-filter: blur(12px);
  color: var(--green-electric);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
}

.nav-btn svg {
  width: 20px;
  height: 20px;
}

.nav-btn:hover {
  background: rgba(184, 243, 105, 0.15);
  border-color: var(--green-electric);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(184, 243, 105, 0.3);
}

.nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.nav-prev { left: 24px; }
.nav-next { right: 24px; }

.nav-btn.disabled {
  opacity: 0.2;
  pointer-events: none;
}

/* ============================================
   SLIDE DOTS
   ============================================ */
.slide-dots {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.dot.active {
  background: var(--green-electric);
  width: 24px;
  border-radius: 3px;
  box-shadow: 0 0 8px var(--green-electric);
}

.dot:hover:not(.active) {
  background: rgba(255,255,255,0.6);
  transform: scale(1.3);
}

/* ============================================
   KEYBOARD HINT
   ============================================ */
.keyboard-hint {
  position: fixed;
  bottom: 28px;
  right: 32px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  transition: opacity 0.5s ease;
}

.keyboard-hint svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.keyboard-hint.hidden {
  opacity: 0;
}

/* ============================================
   SLIDES CONTAINER
   ============================================ */
.slides-container {
  width: 100%;
  height: 100vh;
  position: relative;
}

/* ============================================
   INDIVIDUAL SLIDES
   ============================================ */
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity var(--slide-transition), transform var(--slide-transition);
  pointer-events: none;
}

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

.slide.exit-left {
  opacity: 0;
  transform: translateX(-8%);
  pointer-events: none;
}

.slide.exit-right {
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
}

/* ============================================
   BACKGROUND IMAGES & OVERLAYS
   ============================================ */
.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.slide.active .bg-image {
  transform: scale(1);
}

.bg-overlay {
  position: absolute;
  inset: 0;
}

.overlay-dark { background: linear-gradient(135deg, rgba(10,31,2,0.85) 0%, rgba(10,10,10,0.6) 100%); }
.overlay-dark-heavy { background: linear-gradient(135deg, rgba(10,10,10,0.88) 0%, rgba(10,31,2,0.5) 100%); }
.overlay-light { background: linear-gradient(135deg, rgba(240,255,240,0.15) 0%, rgba(10,10,10,0.75) 100%); }
.overlay-green { background: linear-gradient(180deg, rgba(10,31,2,0.4) 0%, rgba(10,31,2,0.92) 100%); }
.overlay-blue { background: linear-gradient(135deg, rgba(10,26,47,0.85) 0%, rgba(10,31,2,0.6) 100%); }
.overlay-earth { background: linear-gradient(180deg, rgba(44,26,10,0.4) 0%, rgba(10,10,10,0.92) 100%); }

/* ============================================
   SLIDE CONTENT LAYOUTS
   ============================================ */
.slide-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  padding: 80px 80px 80px 80px;
}

/* Cover layout */
.content-cover {
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 100px;
}

/* Split layout (left panel) */
.content-split {
  flex-direction: row;
  align-items: center;
}

.content-left {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-left-light {
  background: rgba(240,255,240,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(184,243,105,0.15);
  border-radius: 4px;
  padding: 40px;
}

/* Right panel layout */
.content-right {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}

.content-panel {
  max-width: 480px;
  padding: 48px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-dark {
  background: rgba(10,31,2,0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(184,243,105,0.2);
}

.panel-light {
  background: rgba(240,255,240,0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(45,106,30,0.3);
}

/* Bottom panel layout */
.content-bottom {
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.bottom-panel {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
}

/* Center layout */
.content-center {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.center-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.tag-line {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green-electric);
  margin-bottom: 8px;
}

.cover-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 800;
  line-height: 0.95;
  color: var(--white);
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.accent-line {
  color: var(--green-electric);
  -webkit-text-stroke: 0px;
}

.cover-subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 32px;
}

.cover-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
}

.meta-dot {
  color: var(--green-electric);
}

.slide-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-electric);
}

.slide-label-dark {
  color: var(--green-forest);
}

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
}

.slide-title em {
  font-style: italic;
  color: var(--green-electric);
  font-weight: 600;
}

.slide-title-dark {
  color: var(--green-deep);
}

.slide-title-dark em {
  color: var(--green-forest);
}

.title-large {
  font-size: clamp(40px, 5vw, 72px);
}

.slide-body {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
}

.slide-body-dark {
  color: rgba(10,31,2,0.8);
}

.body-centered {
  text-align: center;
  max-width: 640px;
}

/* ============================================
   STATS
   ============================================ */
.stat-row {
  display: flex;
  gap: 32px;
  margin-top: 8px;
}

.stat-row-dark .stat-label {
  color: rgba(10,31,2,0.6);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  color: var(--green-electric);
  line-height: 1;
}

.stat-num-green {
  color: var(--green-forest);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-label-dark {
  color: rgba(10,31,2,0.6);
}

/* ============================================
   FEATURE LIST
   ============================================ */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-list-dark li {
  color: rgba(10,31,2,0.8);
}

.bullet-icon {
  color: var(--green-electric);
  font-size: 8px;
  flex-shrink: 0;
}

.bullet-green {
  color: var(--green-forest);
}

/* ============================================
   TAG CLOUD
   ============================================ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 2px;
  background: rgba(184,243,105,0.15);
  border: 1px solid rgba(184,243,105,0.35);
  color: var(--green-electric);
}

/* ============================================
   MATERIALS GRID
   ============================================ */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.material-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: rgba(184,243,105,0.08);
  border: 1px solid rgba(184,243,105,0.2);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

.mat-icon {
  font-size: 24px;
}

/* ============================================
   FUTURE STATS
   ============================================ */
.future-stats {
  display: flex;
  gap: 48px;
  margin-top: 16px;
  justify-content: center;
}

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

.fstat-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--green-electric);
  line-height: 1;
}

.fstat-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  max-width: 120px;
}

/* ============================================
   CTA BUTTONS
   ============================================ */
.cta-buttons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.cta-btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  border: none;
}

.cta-primary {
  background: var(--green-electric);
  color: var(--green-deep);
}

.cta-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,243,105,0.4);
}

.cta-secondary {
  background: transparent;
  color: var(--green-electric);
  border: 1.5px solid rgba(184,243,105,0.5);
}

.cta-secondary:hover {
  background: rgba(184,243,105,0.1);
  border-color: var(--green-electric);
  transform: translateY(-2px);
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */

/* Large background slide number */
.slide-number-bg {
  position: absolute;
  bottom: -20px;
  right: -10px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(160px, 22vw, 280px);
  font-weight: 800;
  color: rgba(184,243,105,0.04);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
  user-select: none;
}

.slide-number-light {
  color: rgba(45,106,30,0.08);
}

/* Accent bars */
.accent-bar {
  position: absolute;
  z-index: 5;
  background: linear-gradient(180deg, var(--green-electric), transparent);
  pointer-events: none;
}

.accent-bar-right {
  top: 0;
  right: 0;
  width: 3px;
  height: 60%;
}

.accent-bar-left {
  top: 20%;
  left: 0;
  width: 3px;
  height: 60%;
}

.accent-bar-top {
  top: 0;
  left: 10%;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green-electric), transparent);
}

.accent-bar-diagonal {
  top: 0;
  right: 80px;
  width: 3px;
  height: 40%;
  transform: rotate(15deg);
  transform-origin: top center;
}

/* ============================================
   SLIDE ENTRANCE ANIMATIONS
   ============================================ */
.slide.active .slide-label,
.slide.active .tag-line {
  animation: fadeSlideUp 0.6s var(--ease-out) 0.2s both;
}

.slide.active .slide-title,
.slide.active .cover-title {
  animation: fadeSlideUp 0.7s var(--ease-out) 0.35s both;
}

.slide.active .slide-body,
.slide.active .cover-subtitle {
  animation: fadeSlideUp 0.7s var(--ease-out) 0.5s both;
}

.slide.active .stat-row,
.slide.active .feature-list,
.slide.active .tag-cloud,
.slide.active .materials-grid,
.slide.active .future-stats,
.slide.active .cta-buttons,
.slide.active .cover-meta {
  animation: fadeSlideUp 0.7s var(--ease-out) 0.65s both;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .slide-content {
    padding: 60px 24px 80px;
  }

  .content-right {
    justify-content: flex-start;
  }

  .content-panel {
    max-width: 100%;
    padding: 28px;
  }

  .content-left {
    max-width: 100%;
  }

  .future-stats {
    gap: 24px;
  }

  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-prev { left: 12px; }
  .nav-next { right: 12px; }

  .keyboard-hint { display: none; }

  .slide-counter {
    top: 16px;
    right: 16px;
  }
}