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

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Invisible scroll container that creates scrollable height */
#scroll-container {
  width: 100%;
  pointer-events: none;
}

/* Container for all video sections */
#sections-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Individual video section */
.video-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Video element */
.video-section video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Dark overlay for better text readability */
.video-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* Overlays container */
.overlays-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

/* Individual text overlay */
.text-overlay {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  padding: 0 20px;
}

.text-overlay.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Position variants */
.text-overlay.position-top {
  top: 15%;
}

.text-overlay.position-center {
  top: 50%;
  transform: translateY(-50%);
}

.text-overlay.position-center.visible {
  transform: translateY(-50%);
}

.text-overlay.position-bottom {
  bottom: 15%;
}

/* Text style variants */
.text-overlay.title-large {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-overlay.title-medium {
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-overlay.subtitle {
  font-size: clamp(1rem, 3vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-overlay.body-text {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Progress indicator */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.8) 100%);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Section indicator dots */
#section-indicators {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

.section-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.section-dot.active {
  background: white;
  transform: scale(1.3);
}

/* Scroll hint animation */
.scroll-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  color: white;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

.scroll-hint::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  margin: 10px auto 0;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Hide scroll hint after initial scroll */
.scroll-hint.hidden {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* Loading screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.9;
  margin-bottom: 20px;
}

.loading-bar-container {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: white;
  transition: width 0.1s ease-out;
}

.loading-progress {
  font-size: 0.875rem;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}
