/* Reset + flexible full-viewport layout */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&display=swap");

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

html,
body {
  height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

/* Background video: pinned behind everything, stretched to always
   fill the viewport on any screen size or orientation. */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover; /* fills the screen, crops edges instead of letterboxing */
  z-index: -1;
}

/* Content layer above the video */
.overlay {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  padding: 2rem;
  background: rgba(0, 0, 0, 0.25); /* slight darkening so text stays readable */
}

.overlay h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

.overlay p {
  /* Half the previous size, positioned lower-center over the video */
  font-size: clamp(0.5rem, 1.25vw, 0.75rem);
  color: #6b7280; /* gray */
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
}

/* Sound toggle button: centered on screen.
   Muted state (default): neon green with subtle pulse glow.
   Unmuted state (.sound-on): neutral, no glow. */
/* Glassmorphism sound toggle: frosted glass that adapts to the video behind it */
#sound-toggle {
  position: fixed;
  bottom: 0.75rem; /* lowered toward bottom */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff; /* pure white text & icon */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

#sound-toggle:hover {
  background: rgba(255, 255, 255, 0.32);
}
