/* ===== INTRO SCENE CINEMATIC - Bitcoin Pixie (Final Responsive + Title & Clouds Layer Fix) ===== */

#intro-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 9999;
  background: linear-gradient(to bottom, #8ecae6 0%, #edf6f9 60%, #fff 100%);
  transition: opacity 1.8s ease-out;
  animation: introFadeIn 2s ease-out;
}

@keyframes introFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 🌤️ LANGIT */
.intro-sky {
  position: absolute;
  inset: 0;
  background: url("assets/intro/sky.webp") no-repeat center top / cover;
  z-index: 1;
  transition: transform 12s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ☁️ AWAN MELAYANG */
.intro-clouds {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  height: 50%;
  background: url("assets/intro/clouds.webp") repeat-x center top / 35% auto;
  opacity: 0.6;
  filter: blur(2px);
  animation: cloudMove 90s linear infinite;
  z-index: 4;
}

@keyframes cloudMove {
  0% { background-position-x: 0; }
  100% { background-position-x: -800px; }
}

/* 🌄 GUNUNG */
.intro-mountain {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: url("assets/intro/mountain.webp") no-repeat center bottom / contain;
  filter: brightness(0.85) contrast(1.1);
  opacity: 0;
  transform: translateY(60%) scale(1.05);
  transition: transform 12s cubic-bezier(0.4, 0, 0.2, 1), opacity 4s ease;
  z-index: 2;
}

/* 🌫️ KABUT */
.intro-fog {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 60%, transparent 100%);
  filter: blur(25px);
  opacity: 0.5;
  animation: fogFloat 10s ease-in-out infinite;
  z-index: 5;
}

@keyframes fogFloat {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-10px); opacity: 0.7; }
}

/* 🌳 FOREGROUND */
.intro-foreground {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: url("assets/intro/foreground.webp") no-repeat center bottom / contain;
  opacity: 0.9;
  filter: brightness(0.3);
  z-index: 6;
}

/* 🌞 CAHAYA MATAHARI */
.intro-sun {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255,255,200,0.6) 0%, rgba(255,230,150,0.25) 50%, transparent 100%);
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.7;
  animation: sunPulse 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes sunPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.05); }
}

/* 🖋️ TITLE */
#intro-layer h1 {
  position: absolute;
  top: 35%;
  width: 100%;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  color: rgba(255, 245, 200, 0.9);
  text-shadow:
    0 0 10px rgba(255, 240, 200, 0.8),
    0 0 25px rgba(255, 230, 150, 0.6),
    0 0 40px rgba(255, 220, 120, 0.5);
  opacity: 0;
  z-index: 3;
  transition: opacity 3s ease, transform 3s ease;
}

/* 🌈 BUTTON */
.intro-btn {
  padding: 14px 48px;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #fff8e1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 40px;
  text-shadow: 0 0 10px rgba(255, 245, 200, 0.7);
  box-shadow: 0 0 15px rgba(255, 240, 180, 0.2);
  cursor: pointer;
  opacity: 0;
  z-index: 8;
  backdrop-filter: blur(6px);
  animation: buttonFadeIn 1.5s ease forwards 7.5s;
  transition: all 0.4s ease;
  min-width: 320px;
  text-align: center;
  white-space: nowrap;
}

.intro-btn:hover {
  box-shadow: 0 0 25px rgba(255, 255, 200, 0.7);
  transform: scale(1.05);
}

/* ✨ GLOW */
@keyframes buttonGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 245, 200, 0.2); }
  50% { box-shadow: 0 0 25px rgba(255, 245, 200, 0.5); }
}

.intro-btn.glow {
  animation: buttonGlow 3.5s ease-in-out infinite;
}

/* ✨ RESPONSIVE FIXES */
@media (max-width: 768px) and (orientation: portrait) {
  #intro-layer h1 {
    font-size: 2rem;
    top: 30%;
  }

  .intro-btn {
    font-size: 1rem;
    padding: 12px 36px;
    min-width: 260px;
  }
}
