/* ==========================================================================
   PERFECT ECOTECH — CINEMATIC SCROLL HERO STYLES
   Pure CSS architecture: Pinned Canvas/Image Layer, Scroll Pacing, Typography
   ========================================================================== */

/* Hero Container: 320vh scroll track to give crisp, cinematic scrub control without dead scroll */
.cinematic-hero-section {
  position: relative;
  width: 100%;
  height: 320vh;
  background-color: #030712;
  box-sizing: border-box;
}

/* Pinned Viewport Stage: Locks to screen while user scrolls through 480vh */
.cinematic-hero-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, #0d1b2a 0%, #030712 100%);
  z-index: 10;
}

/* Background Render Surface: Hardware-accelerated canvas */
.cinematic-canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.cinematic-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translateZ(0);
}

/* Cinematic Atmospheric Vignette & Contrast Control */
.cinematic-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at 50% 50%, rgba(3, 7, 18, 0.15) 0%, rgba(3, 7, 18, 0.72) 80%, rgba(3, 7, 18, 0.92) 100%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.75) 0%, rgba(3, 7, 18, 0.1) 25%, rgba(3, 7, 18, 0.3) 75%, rgba(3, 7, 18, 0.95) 100%);
}

/* Navigation overlay adjustment when header sits on cinematic hero */
.site-header.hero-transparent {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(3, 7, 18, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.site-header.hero-transparent .nav-link {
  color: #E2E8F0;
}

.site-header.hero-transparent .nav-link:hover,
.site-header.hero-transparent .nav-link.active {
  color: #38BDF8;
}

.site-header.hero-transparent .brand-name {
  color: #FFFFFF;
}

/* Minimalist Vertical Progress Indicator */
.cinematic-progress-bar {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3.5rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  pointer-events: auto;
}

.progress-node {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  text-align: left;
  outline: none;
  transition: opacity 0.3s ease;
  opacity: 0.38;
}

.progress-node.active {
  opacity: 1;
}

.node-bullet {
  width: 6px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

.progress-node.active .node-bullet {
  height: 48px;
  background: #38BDF8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}

.progress-node[data-target-scene="02"].active .node-bullet {
  background: #4ADE80;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.6);
}

.progress-node[data-target-scene="03"].active .node-bullet {
  background: #FB923C;
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.6);
}

.progress-node[data-target-scene="04"].active .node-bullet {
  background: #38BDF8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}

.node-info {
  display: flex;
  flex-direction: column;
}

.node-number {
  font-size: 0.7rem;
  font-family: var(--font-family);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
}

.node-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}

/* Subtle Scroll Prompt at Bottom */
.cinematic-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.75;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.cinematic-scroll-cue.faded {
  opacity: 0;
}

.scroll-text {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background: #FFFFFF;
  border-radius: 999px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  60% { transform: translate(-50%, 12px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* Scene Narrative Overlay Elements */
.cinematic-content-stage {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.cinematic-scene-content {
  position: absolute;
  left: clamp(2rem, 8vw, 8rem);
  max-width: 680px;
  width: calc(100% - clamp(4rem, 16vw, 16rem));
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.cinematic-scene-content.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Eyebrows & Badges */
.scene-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scene-eyebrow-water {
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(8, 121, 201, 0.18);
}

.scene-eyebrow-solar {
  color: #4ADE80;
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(53, 168, 83, 0.18);
}

.scene-eyebrow-power {
  color: #FB923C;
  border-color: rgba(251, 146, 60, 0.3);
  background: rgba(245, 124, 0, 0.18);
}

.scene-eyebrow-intro,
.scene-eyebrow-convergence {
  color: #FFFFFF;
}

/* Scene Typography */
.scene-headline {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.scene-headline .highlight-water {
  color: #38BDF8;
  display: inline-block;
}

.scene-headline .highlight-solar {
  color: #4ADE80;
  display: inline-block;
}

.scene-headline .highlight-power {
  color: #FB923C;
  display: inline-block;
}

.scene-description {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(241, 245, 249, 0.9);
  margin: 0 0 1.75rem 0;
  max-width: 580px;
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* Sub-pills for categories (RO, WTP, STP...) */
.scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.scene-tag-pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Scene Actions */
.scene-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-cinematic-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  background: #38BDF8;
  color: #030712;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-cinematic-primary:hover {
  background: #7DD3FC;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.5);
}

.btn-cinematic-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-cinematic-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Scene 04 Convergence Centered Layout */
.cinematic-scene-content.scene-convergence {
  left: 50%;
  transform: translate(-50%, 24px) scale(0.98);
  text-align: center;
  max-width: 820px;
}

.cinematic-scene-content.scene-convergence.active {
  transform: translate(-50%, 0) scale(1);
}

.cinematic-scene-content.scene-convergence .scene-description {
  margin-left: auto;
  margin-right: auto;
}

.cinematic-scene-content.scene-convergence .scene-actions {
  justify-content: center;
}

/* Mobile & Tablet Adaptations */
@media (max-width: 768px) {
  .cinematic-progress-bar {
    right: 1rem;
    gap: 0.85rem;
  }
  
  .node-label {
    display: none; /* Keep minimal bullets on mobile */
  }

  .node-bullet {
    width: 4px;
    height: 20px;
  }

  .progress-node.active .node-bullet {
    height: 36px;
  }

  .cinematic-scene-content {
    left: 1.5rem;
    width: calc(100% - 4.5rem);
  }

  .scene-headline {
    font-size: 1.85rem;
  }

  .scene-description {
    font-size: 0.9375rem;
  }

  .scene-tags {
    gap: 0.4rem;
  }

  .scene-tag-pill {
    padding: 3px 8px;
    font-size: 0.6875rem;
  }

  .scene-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-cinematic-primary,
  .btn-cinematic-secondary {
    width: 100%;
    text-align: center;
  }
}
