html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}
/* 🌌 Ambient Capsule Video Page */
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at center, #000 0%, #0a0a0a 80%, #000 100%);
  font-family: 'Oswald', sans-serif;
  overflow-x: hidden;
  color: #FFFFCE;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body {
  overflow-y: scroll; /* ✅ keeps scroll functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* 🌠 Lens Flare Overlay */
#lensFlare {
  position: fixed;
  inset: 0;
  background-image: url('images/landing/bh2.png');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

/* 🧱 Capsule Stage Viewport */
.capsule-stage-section {
  flex: 1;
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  z-index: 1;
  display: flex;
  justify-content: center;
}
/* 🚂 Capsule Track */
.capsule-stage-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: flex-start; /* Let JS handle centering via transform */
}

/* Capsule Rail */
.capsule-stage {
  display: flex;
  width: max-content; /* ✅ Allows horizontal shifting */
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

/* 🌟 Capsule Container */
.capsule-container {
  flex: 0 0 640px;
  width: 640px;
  margin-right: 80px;
  
  background-color: #0f0f0f;
  border-radius: 24px;
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.05);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* ✅ Vertically center content */
  gap: 32px;
  box-sizing: border-box;
  opacity: 0.3;
  filter: brightness(0.6) blur(1px);
  transition: opacity 0.6s ease, filter 0.6s ease;
  pointer-events: none;
  min-height: calc(100vh - 160px); /* ✅ Match viewport height minus padding */
}

.capsule-container.active {
  opacity: 1;
  filter: brightness(1) blur(0px);
  pointer-events: auto;
}

/* 🎬 Capsule Video */
.capsuleVideo {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

/* 📝 Capsule Header */
.capsuleHeader {
  font-size: 2.5rem;
  color: #FFFFCE;
  text-shadow: 0 0 10px rgba(255, 150, 255, 0.6);
  letter-spacing: 0.2em;
  margin: 0;
  padding-bottom: 1rem;
}

/* ✨ Twinkle Description */
.twinkle-span {
  font-size: 1rem;
  line-height: 1.7;
  color: #EAE6DA;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  max-width: 640px;
}

.twinkle-span p {
  margin-bottom: 1.2rem;
}

.twinkle {
  display: inline-block;
  color: #FFE6C0;
  text-shadow: 0 0 6px rgba(255, 180, 100, 0.5), 0 0 12px rgba(255, 160, 80, 0.3);
  animation: twinkleBob 6s infinite ease-in-out;
  transform-origin: center;
  opacity: 1;
  font-size: inherit;
}

@keyframes twinkleBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-2px); }
}
.glass-button-inline-panel {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
  padding: 6px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: #FFFFCE;
  text-align: center;
  text-decoration: none;
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  overflow: visible;
  z-index: 10;
  cursor: pointer;
}

.glass-button-inline-panel::before,
.glass-button-inline-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transition: opacity 0.3s ease, border-radius 0.3s ease;
}

.glass-button-inline-panel::before {
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 28px;
  border: 2px solid #C65F2D;
  opacity: 0;
  z-index: 2;
}

.glass-button-inline-panel::after {
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 36px;
  border: 2px solid rgba(198, 95, 45, 0.2);
  opacity: 0;
  z-index: 1;
}

.glass-button-inline-panel:hover {
  border-radius: 24px;
  transform: scale(1.05);
  box-shadow: 0 0 40px #C65F2D;
  color: #FFB47D;
  border-color: rgba(255, 255, 255, 0.15);
}

.glass-button-inline-panel:hover::before {
  opacity: 1;
  border-radius: 28px;
}

.glass-button-inline-panel:hover::after {
  opacity: 1;
  border-radius: 36px;
}

/* 🧩 Navigation Buttons */
#prevCapsule,
#nextCapsule {
  position: absolute;
  top: 50%;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: #FFFFCE;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 180, 100, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  z-index: 10;
}

#prevCapsule { left: 20px; }
#nextCapsule { right: 20px; }
.capsule-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  transform: translateY(-50%);
  z-index: 10;
}

.capsule-nav-button {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: #FFFFCE;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 180, 100, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 10;
}

.capsule-nav-button::before,
.capsule-nav-button::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transition: opacity 0.3s ease, border-radius 0.3s ease;
}

.capsule-nav-button::before {
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 28px;
  border: 2px solid #C65F2D;
  opacity: 0;
  z-index: 2;
}

.capsule-nav-button::after {
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 36px;
  border: 2px solid rgba(198, 95, 45, 0.2);
  opacity: 0;
  z-index: 1;
}

.capsule-nav-button:hover {
  filter: brightness(1.3);
  text-shadow: 0 0 12px rgba(255, 180, 255, 0.6), 0 0 24px rgba(255, 180, 255, 0.4);
  box-shadow: 0 0 40px #C65F2D;
  border-radius: 24px;
  transform: translateY(-2px);
}

.capsule-nav-button:hover::before {
  opacity: 1;
  border-radius: 28px;
}

.capsule-nav-button:hover::after {
  opacity: 1;
  border-radius: 36px;
}

/* 🧩 Footer Fix */
.cosmic-footer {
  text-align: center;
  padding: 24px;
  font-size: 90%;
  color: #FFB47D;
  background: radial-gradient(circle at center, #000000 0%, #0a0a0a 80%, #000 100%);
  border-top: 1px solid rgba(255, 180, 100, 0.2);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1.2px;
  text-shadow: 0 0 6px rgba(255, 120, 60, 0.3);
  margin-top: auto;
  position: relative;
  z-index: 10;
}
.back-to-universe-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}
