/* ========================================
   SLIDER STYLES
   ======================================== */

.slider-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.slider-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.03) 0px,
      transparent 1px,
      transparent 2px,
      rgba(0,0,0,0.03) 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.03) 0px,
      transparent 1px,
      transparent 2px,
      rgba(0,0,0,0.03) 3px
    ),
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 75%, #000 100%);
  pointer-events: none;
  z-index: 10;
  opacity: 0.95;
  background-blend-mode: multiply;
}


.webgl-canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

/* WebGL effect overlay that extends into next section */
.webgl-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

.webgl-overlay canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Current slide number at middle left */
.slide-number {
  position: absolute;
  top: 50%;
  left: var(--spacing-md);
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  z-index: 10;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Total slides at middle right */
.slide-total {
  position: absolute;
  top: 50%;
  right: var(--spacing-md);
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  z-index: 10;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.slides-navigation {
  position: absolute;
  bottom: calc(var(--spacing-md) + 20px);
  left: var(--spacing-md);
  right: var(--spacing-md);
  display: flex;
  gap: 0;
  z-index: 20;
  pointer-events: all;
}

.slide-nav-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: var(--spacing-sm);
  flex: 1;
  border: none;
  background: none;
}

.slide-progress-line {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 8px;
  border-radius: 1px;
  overflow: hidden;
}

.slide-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.1s ease, opacity 0.3s ease;
  border-radius: 1px;
}

.slide-nav-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  font-weight: 600;
  transition: color 0.3s ease;
}

.slide-nav-item.active .slide-nav-title {
  color: var(--color-text);
}

/* Header Logo (Top Left) */
.header-logo {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.logo-image {
  max-height: 60px;
  width: auto;
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.header-logo .help-text {
  position: static;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: left;
}

/* Hamburger Menu (Top Right) - Emphatic Style with Thin Lines - 25% smaller */
.hamburger {
  position: fixed;
  top: 1.3rem;
  right: 20px;
  z-index: 9999;
  padding: 11.25px;
  display: inline-block;
  cursor: pointer;
  transition-property: opacity, filter, background-color;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible;
  transform: scale(0.75);
}

.hamburger:hover {
  opacity: 0.7;
}

/* Sound Toggle Button */
.sound-toggle {
  position: fixed;
  top: calc(1.3rem + 30px + 8px);
  right: 39px;
  z-index: 9999;
  width: 12px;
  height: 12px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.sound-toggle:hover {
  opacity: 0.7;
}

.sound-toggle .sound-icon {
  display: none;
  width: 12px;
  height: 12px;
}

.sound-toggle .sound-off {
  display: block;
}

.sound-toggle.playing .sound-on {
  display: block;
}

.sound-toggle.playing .sound-off {
  display: none;
}

/* Sound toggle turns black when menu is open */
body.menu-open .sound-toggle {
  color: #000;
}

.hamburger.is-active:hover {
  opacity: 0.7;
}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
  background-color: #fff;
}

.hamburger-box {
  width: 30px;
  height: 20px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -1px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 1px;
  background-color: #fff;
  border-radius: 2px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

/* Emphatic Animation */
.hamburger--emphatic {
  overflow: hidden;
}

.hamburger--emphatic .hamburger-inner {
  transition: background-color 0.125s 0s ease-out;
}

.hamburger--emphatic .hamburger-inner::before {
  left: 0;
  top: -8px;
  transition: transform 0.125s 0.175s cubic-bezier(0.075, 0.82, 0.165, 1),
              top 0.05s 0.125s linear,
              left 0.125s ease-out;
}

.hamburger--emphatic .hamburger-inner::after {
  top: 8px;
  right: 0;
  transition: transform 0.125s 0.175s cubic-bezier(0.075, 0.82, 0.165, 1),
              top 0.05s 0.125s linear,
              right 0.125s ease-out;
}

.hamburger--emphatic.is-active .hamburger-inner {
  transition-delay: 0s;
  transition-timing-function: ease-out;
  background-color: transparent !important;
}

.hamburger--emphatic.is-active .hamburger-inner::before {
  left: -60px;
  top: -60px;
  transform: translate3d(60px, 60px, 0) rotate(45deg);
  transition: left 0.125s ease-out,
              top 0.05s 0.125s linear,
              transform 0.125s 0.175s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.hamburger--emphatic.is-active .hamburger-inner::after {
  right: -60px;
  top: -60px;
  transform: translate3d(-60px, 60px, 0) rotate(-45deg);
  transition: right 0.125s ease-out,
              top 0.05s 0.125s linear,
              transform 0.125s 0.175s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* Header Content (Center Left) */
.header-content {
  position: absolute;
  top: 50%;
  left: 120px;
  transform: translateY(-50%);
  z-index: 15;
  max-width: 600px;
}

.header-title {
  font-family: var(--font-mono);
  text-transform: lowercase;
  line-height: 1.2;
  margin: 0 0 20px 0;
  letter-spacing: 1px;
}

.header-subtitle {
  line-height: 1.6;
  font-family: var(--font-mono);
  margin-bottom: 36px;
  color: #ffffff;
}

/* Glass Effect Button */
.glass-button {
  display: inline-block;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.glass-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: perspective(500px) rotateY(5deg) scale(1.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-button:hover::before {
  left: 100%;
}

/* Tweakpane Styling */
.tp-dfwv {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 1000 !important;
  max-width: 320px !important;
  background: rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
}

.tp-dfwv .tp-btnv_b {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-family: var(--font-mono) !important;
  border-radius: 4px !important;
}

.tp-dfwv .tp-btnv_b:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 1024px) {
  .header-content {
    left: 80px;
    max-width: 340px;
  }
}

@media (max-width: 600px) {
  .slides-navigation {
    bottom: var(--spacing-sm);
    left: var(--spacing-sm);
    right: var(--spacing-sm);
  }

  .slide-nav-item {
    padding: 0.75rem;
  }

  .help-text {
    display: none;
  }

  .slide-number {
    left: var(--spacing-sm);
  }

  .slide-total {
    right: var(--spacing-sm);
  }

  .tp-dfwv {
    top: 10px !important;
    right: 10px !important;
    max-width: 280px !important;
  }
}

@media (max-width: 600px) {
  .slides-navigation {
    bottom: calc(var(--spacing-sm) + 30px);
  }
}

/* Preloader styles */
.slider-wrapper {
  opacity: 0;
  transition: opacity 1.5s ease-in;
  pointer-events: none;
}

.slider-wrapper.loaded {
  opacity: 1;
  pointer-events: auto;
}

/* Content sections with parallax */
.site-content {
  position: relative;
  z-index: 2;
  background: #000;
  min-height: 100vh;
}

.parallax-section {
  position: relative;
  padding: 120px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-section .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.parallax-section.dark-section {
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, #0a0a0a 100%);
  color: #fff;
}

.parallax-section.intro-section {
  background: #000;
  padding-top: 80px;
}

.parallax-section.feature-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

.parallax-section h2 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.parallax-section p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  margin-bottom: 16px;
  opacity: 0.9;
}

/* Video element for video textures */
.slider-video-hidden {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
