/* ===================== YMOON – ULTRA PREMIUM GLASS THEME ===================== */
.ymoon-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
  user-select: none;
  font-family: 'Outfit', sans-serif;
  isolation: isolate;
}

/* Overlays */
.ymoon-stage-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 60;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  pointer-events: none;
}
.ymoon-stage-overlay.stage-active { opacity: 1; }

.ymoon-bloom-effect {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: #fff;
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.ymoon-bloom-effect.bloom-active { opacity: 1; }

/* Slideshow Structure */
.ymoon-main-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.ymoon-main-container.visible { opacity: 1; }

.ymoon-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
}
.ymoon-slide.active { opacity: 1; }

.ymoon-bg-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 6s cubic-bezier(0.1, 0, 0.1, 1);
}
.ymoon-slide.active .ymoon-bg-img { transform: scale(1); }

/* Typography - Cinematic Blur Fade */
.ymoon-text-layer {
  position: relative;
  z-index: 20;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}
.ymoon-text-content {
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
              filter 1.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  filter: blur(30px);
  transform: scale(1.08);
}
.ymoon-text-content.text-active { opacity: 1; filter: blur(0); transform: scale(1); }

.ymoon-title {
  font-weight: 200;
  font-size: clamp(3rem, 12vw, 9.5rem);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.05em;
  transition: letter-spacing 2.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.text-active .ymoon-title { letter-spacing: 0.15em; }

.ymoon-decorative-line {
  height: 1px;
  margin: 25px auto;
  width: 0;
  opacity: 0.2;
  transition: width 2s ease-out 0.6s;
}
.text-active .ymoon-decorative-line { width: clamp(120px, 35vw, 450px); }

.ymoon-sub {
  font-size: clamp(0.75rem, 1.8vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-top: 20px;
  opacity: 0;
  transition: opacity 1s ease 0.8s, transform 1s ease 0.8s;
  transform: translateY(15px);
}
.text-active .ymoon-sub { opacity: 0.6; transform: translateY(0); }

/* Button Group */
.ymoon-cta-group {
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.show-cta .ymoon-cta-group { opacity: 1; pointer-events: auto; transform: translateY(0); }

.ymoon-btn {
  padding: 16px 35px;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.5s ease;
}

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}

.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

.ymoon-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255,255,255,0.3);
}

/* Indicators */
.ymoon-indicators {
  position: absolute;
  bottom: 8%;
  display: flex;
  gap: 12px;
  z-index: 30;
}
.ymoon-dot {
  width: 45px;
  height: 1px;
  background: currentColor;
  opacity: 0.15;
  position: relative;
  overflow: hidden;
}
.ymoon-progress {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}
.dot-active .ymoon-progress { transform: scaleX(1); transition: transform 4.8s linear; }

/* Colors */
.theme-black { color: #000; }
.theme-black .ymoon-decorative-line { background: #000; }
.theme-white { color: #fff; }
.theme-white .ymoon-decorative-line { background: #fff; }

.ymoon-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 15vw rgba(0,0,0,0.6);
  z-index: 40;
}

/* Watch animation */
.watch-hand-sec { transform-origin: 50% 50%; animation: ymoonClock 60s linear infinite; }
@keyframes ymoonClock { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .ymoon-cta-group { flex-direction: column; align-items: center; gap: 15px; }
    .ymoon-btn { width: 80%; text-align: center; }
}















/* Start Screen Styles */
.ymoon-start-screen {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.ymoon-start-screen.screen-active {
  opacity: 1;
  pointer-events: auto;
}

.ymoon-start-content {
  text-align: center;
}

/* Update this specific block to match your image */
.ymoon-main-start-btn {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6); /* Thin clean border */
  color: #fff;
  padding: 18px 60px; /* Pill-shaped proportions */
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.35em; /* Clean, airy spacing from the image */
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 100px; /* This creates the pill shape */
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* The soft white glow effect from the image */
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15); 
}

.ymoon-main-start-btn:hover {
  border-color: #fff;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.3); /* Stronger glow on hover */
  transform: scale(1.03);
}

/* Optional: Keep the internal breathing glow you had before */
.btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 75%);
  animation: ymoonPulse 4s infinite ease-in-out;
}

.ymoon-start-hint {
  margin-top: 25px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

@keyframes ymoonPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* Ensure smooth reset */
#ymoon-main-container { transition: opacity 1.5s ease; }