/* ============================================================
   LUMORA HERO SECTION (SCENE 2)
   Adapted from React/Tailwind to Vanilla CSS
   ============================================================ */

/* --- Scene 2 Reset --- */
.scene-2 {
  position: relative;
  width: 100vw;
  height: 100vh; /* It is fullscreen hero section per prompt */
  background: black;
  overflow: hidden;
  font-family: 'Instrument Serif', serif;
  display: block; /* Override previous flex layout */
  padding: 0;
}

/* --- Background Video Layer --- */
.lumora-bg-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  will-change: transform; /* For parallax */
}

.lumora-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
  transform: scale(1.08); /* Scales up the video to push watermarks off-screen */
}

.lumora-video.active {
  opacity: 1;
}

/* --- PNG Overlay with Train-Bob --- */
.lumora-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  animation: trainBob 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes trainBob {
  0%, 100% {
    transform: translateY(0) scale(1.03);
  }
  50% {
    transform: translateY(-6px) scale(1.03);
  }
}

/* --- Liquid Glass Effect --- */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- Content Layer Layout --- */
.lumora-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: white;
  transition: color 700ms ease-in-out;
}

.lumora-content.dark-mode,
.lumora-app-content.dark-mode {
  color: #182C41;
}

.lumora-app-bg-video {
  opacity: 0;
}

.lumora-bg-wrapper.transitions-enabled .lumora-app-bg-video {
  transition: opacity 1000ms ease-in-out;
}

.lumora-app-bg-video.active {
  opacity: 1;
}

/* --- Navigation --- */
.lumora-nav {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 32px;
  width: max-content;
  gap: 120px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.lumora-nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.lumora-nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.lumora-nav-links a:hover {
  color: white;
}

.lumora-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 500;
  color: white;
  font-family: 'Inter', system-ui, sans-serif;
}
.lumora-logo svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.lumora-nav-pill {
  display: flex;
  align-items: center;
  border-radius: 50px;
  padding: 6px 6px 6px 24px;
  gap: 24px;
}

.lumora-nav-pill a {
  color: rgba(255, 255, 255, 0.9);
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s;
}

.lumora-nav-pill a:hover {
  color: white;
}

.lumora-btn-solid {
  background: white;
  color: black;
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.lumora-btn-solid:hover {
  transform: scale(1.05);
}

.lumora-hamburger {
  width: 48px;
  height: 48px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  position: relative;
  z-index: 60; /* Above mobile menu */
}

.lumora-hamburger svg {
  position: absolute;
  transition: transform 300ms ease, opacity 300ms ease;
}

.lumora-hamburger #iconMenu {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.lumora-hamburger #iconMenu.hidden {
  opacity: 0;
  transform: rotate(90deg) scale(0.75);
}

.lumora-hamburger #iconClose {
  opacity: 0;
  transform: rotate(-90deg) scale(0.75);
}

.lumora-hamburger #iconClose.active {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* --- Mobile Menu --- */
.lumora-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.lumora-mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.lumora-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-link {
  font-family: 'Instrument Serif', serif;
  font-size: 3rem;
  color: white;
  text-decoration: none;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1), opacity 500ms ease;
}

.lumora-mobile-menu.open .mobile-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-btn {
  transform: scale(0.9);
  opacity: 0;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1) 300ms, opacity 500ms ease 300ms;
}

.lumora-mobile-menu.open .mobile-btn {
  transform: scale(1);
  opacity: 1;
}

/* --- Hero Center --- */
.lumora-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.lumora-badge {
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 32px;
}

.lumora-heading {
  font-size: clamp(2.25rem, 6vw, 5.5rem);
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 24px;
  font-weight: 400;
}

.lumora-subtext {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.lumora-input-pill {
  display: flex;
  border-radius: 50px;
  padding: 6px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 60px;
}

.lumora-input-pill input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font-family: system-ui, sans-serif;
  padding: 0 20px;
}

.lumora-input-pill input::placeholder {
  color: inherit;
  opacity: 0.7;
}

/* --- Video Switcher --- */
.lumora-switcher {
  display: flex;
  gap: 24px;
  font-family: system-ui, sans-serif;
  font-size: 1.1rem; /* Increased size to look bolder */
}

.lumora-switcher-btn {
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.5;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: opacity 0.3s, border-color 0.3s;
}

.lumora-switcher-btn:hover {
  opacity: 0.8;
}

.lumora-switcher-btn.active {
  opacity: 1;
  border-bottom-color: currentColor;
}

}

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: flex; }
  
  .lumora-nav { padding: 20px; }
  .lumora-input-pill { max-width: 320px; }
  
  .lumora-stats {
    flex-wrap: wrap;
    gap: 12px;
  }
  .lumora-stats .divider {
    display: none;
  }
}
