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

html, body {
  overflow-x: hidden;
}

#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Outer wrappers – GSAP animates scale + opacity on these */
#sky, #cloud-back, #cloud-front {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

#cloud-back, #cloud-front {
  inset: -10%;
}

#sky { z-index: 0; }
#cloud-back { z-index: 1; }
#cloud-front { z-index: 2; }

/* Inner <img> elements – mouse parallax via CSS vars */
#sky-inner, #cloud-back-inner, #cloud-front-inner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  will-change: transform;
}

#cloud-back-inner {
  object-position: center top;
}

#cloud-front-inner {
  object-position: center bottom;
}

/* Hero text overlay */
#hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  will-change: transform, opacity;
}

#hero-text h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(42px, 10vw, 96px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 12px;
}

.hero-sub {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

#explore-btn {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 14px 36px;
  cursor: pointer;
  letter-spacing: 0.06em;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25), inset 0 0 15px rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.3s, background 0.3s;
}

#explore-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.08);
}

#sky-fade {
  position: absolute;
  inset: 0;
  background: #dce4ec;
  opacity: 0;
  z-index: 5;
  will-change: opacity;
  pointer-events: none;
}

#intro-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  z-index: 10;
  text-align: center;
  max-width: 1200px;
  width: 90%;
  opacity: 0;
  pointer-events: none;
}

#intro-text p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 3.5vw, 34px);
  color: #3a4a58;
  line-height: 1.6;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #3a4a58 50%, rgba(58, 74, 88, 0.4) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#intro-text p:last-child {
  margin-bottom: 0;
}

#intro-text-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  max-width: 1200px;
  width: 90%;
  opacity: 0;
  pointer-events: none;
}

#intro-text-2 p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 3.5vw, 34px);
  color: #3a4a58;
  line-height: 1.6;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #3a4a58 50%, rgba(58, 74, 88, 0.4) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#intro-text-2 p:last-child {
  margin-bottom: 0;
}

#dots-canvas {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}

/* Scroll hint */
#scroll-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

#scroll-hint.visible {
  opacity: 1;
}

.scroll-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

#scroll-hint.dark .scroll-dot {
  background: #3a4a58;
}

.scroll-dot:nth-child(1) { animation: scrollBounce 1.4s ease-in-out infinite; }
.scroll-dot:nth-child(2) { animation: scrollBounce 1.4s ease-in-out 0.15s infinite; }
.scroll-dot:nth-child(3) { animation: scrollBounce 1.4s ease-in-out 0.3s infinite; }

@keyframes scrollBounce {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* Audio toggle button */
#audio-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2), inset 0 0 12px rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.3s, background 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#audio-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.35), inset 0 0 16px rgba(255, 255, 255, 0.06);
}

/* Dark variant for light backgrounds */
#audio-btn.dark {
  border-color: rgba(58, 74, 88, 0.4);
  box-shadow: 0 0 12px rgba(58, 74, 88, 0.1);
}

#audio-btn.dark:hover {
  background: rgba(58, 74, 88, 0.06);
  box-shadow: 0 0 20px rgba(58, 74, 88, 0.15);
}

#audio-btn.dark .bar {
  stroke: #3a4a58;
}

#audio-wave .bar {
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Animated wave when audio is on */
#audio-btn.playing .bar:nth-child(1) { animation: wave 0.8s ease-in-out infinite; }
#audio-btn.playing .bar:nth-child(2) { animation: wave 0.8s ease-in-out 0.1s infinite; }
#audio-btn.playing .bar:nth-child(3) { animation: wave 0.8s ease-in-out 0.2s infinite; }
#audio-btn.playing .bar:nth-child(4) { animation: wave 0.8s ease-in-out 0.3s infinite; }
#audio-btn.playing .bar:nth-child(5) { animation: wave 0.8s ease-in-out 0.15s infinite; }

@keyframes wave {
  0%, 100% { y1: 6; y2: 10; }
  50% { y1: 1; y2: 15; }
}

#content {
  background: #dce4ec;
  min-height: 100vh;
}
