/* ==========================================================================
   T06: MIDNIGHT STARGAZER & CONSTELLATIONS STYLESHEET
   ========================================================================== */
:root {
  --bg-deep: #050814;
  --bg-card: rgba(13, 20, 44, 0.75);
  --cyan-glow: #38bdf8;
  --indigo-glow: #818cf8;
  --gold-star: #fde047;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --border-glow: rgba(56, 189, 248, 0.25);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

#star-canvas {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}

#confetti-canvas {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 100; pointer-events: none;
}

/* Floating Audio Bar */
.audio-bar {
  position: fixed;
  top: 1.25rem; right: 1.25rem;
  z-index: 90;
  display: flex; gap: 0.75rem;
}
.audio-btn {
  background: rgba(13, 20, 44, 0.85);
  border: 1px solid var(--border-glow);
  color: var(--cyan-glow);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 0.5rem;
  transition: all 0.3s ease;
}
.audio-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* Passcode Screen */
.passcode-modal {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0d1430 0%, #050814 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.passcode-modal.unlocked {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.stargazer-dial {
  background: rgba(13, 20, 44, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(5, 8, 20, 0.8), 0 0 40px rgba(56, 189, 248, 0.2);
}
.astrolabe-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: floatOrb 4s ease-in-out infinite;
}
@keyframes floatOrb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.dial-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan-glow);
  margin-bottom: 0.5rem;
}
.dial-sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.pin-display {
  display: flex; justify-content: center; gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.pin-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-glow);
  background: transparent;
  transition: all 0.2s ease;
}
.pin-dot.filled {
  background: var(--cyan-glow);
  box-shadow: 0 0 10px var(--cyan-glow);
}
.keypad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; max-width: 280px; margin: 0 auto;
}
.key-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.3rem; font-weight: 700;
  border-radius: 14px;
  padding: 0.85rem 0;
  cursor: pointer;
  transition: all 0.2s;
}
.key-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--cyan-glow);
}
.hint-text {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: #64748b;
}

/* Main Site Content */
.main-content {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}
.stellar-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan-glow);
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-title span {
  background: linear-gradient(135deg, #ffffff 10%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

/* Constellation Interactive Interactive Map */
.constellation-section {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 2.5rem;
  margin: 3rem 0;
  backdrop-filter: blur(20px);
}
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan-glow);
  margin-bottom: 0.5rem;
}
.constellation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.star-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 18px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.star-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan-glow);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}
.star-card::before {
  content: '✦';
  position: absolute;
  top: 1rem; right: 1rem;
  color: var(--gold-star);
  font-size: 1.2rem;
}
.star-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.star-era {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cyan-glow);
  letter-spacing: 1px;
}
.star-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.3rem 0 0.75rem;
}
.star-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Stargazer Silk Letter */
.scroll-letter {
  background: radial-gradient(circle at top, #141b36 0%, #0d1224 100%);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 28px;
  padding: 3.5rem 2.5rem;
  margin: 4rem 0;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.scroll-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.scroll-date {
  color: var(--cyan-glow);
  font-size: 0.9rem; font-weight: 700;
}
.scroll-salutation {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
}
.scroll-body p {
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.scroll-postscript {
  margin-top: 2rem;
  padding: 1.25rem;
  background: rgba(56, 189, 248, 0.1);
  border-left: 4px solid var(--cyan-glow);
  border-radius: 12px;
  font-style: italic;
  color: #cbd5e1;
}
.scroll-signature {
  margin-top: 2.5rem;
  text-align: right;
}
.signature-signoff {
  color: var(--text-dim);
  font-size: 0.95rem;
}
.signature-author {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: var(--cyan-glow);
  margin-top: 0.25rem;
}

/* Apology Section */
.late-apology-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}
.apology-badge {
  display: inline-block;
  background: #f59e0b;
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.apology-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fef08a;
  margin-bottom: 0.75rem;
}

/* Cosmic Birthday Cake */
.cake-section {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  margin: 3rem 0;
}
.cake-stage {
  margin: 2rem auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.candles-row {
  display: flex; gap: 1.5rem;
  margin-bottom: 0.5rem;
}
.candle {
  width: 12px; height: 45px;
  background: linear-gradient(to bottom, #38bdf8, #818cf8);
  border-radius: 6px;
  position: relative;
}
.flame {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 22px;
  background: radial-gradient(circle, #fff 20%, #fde047 60%, #f97316 100%);
  border-radius: 50% 50% 20% 20%;
  animation: flicker 0.8s infinite alternate;
  box-shadow: 0 0 15px #fde047, 0 0 25px #f97316;
  transition: opacity 0.4s ease;
}
@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(1.15) rotate(2deg); }
}
.candle.blown .flame {
  opacity: 0;
}
.cake-tier {
  width: 180px; height: 75px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--cyan-glow);
  border-radius: 16px 16px 8px 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}
.blow-btn {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #050814;
  font-size: 1rem; font-weight: 800;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
  transition: all 0.3s;
}
.blow-btn:hover {
  transform: scale(1.05);
}

/* Contact CTAs */
.action-footer {
  text-align: center;
  padding: 3rem 0;
}
.cta-buttons {
  display: flex; justify-content: center; gap: 1.25rem;
  flex-wrap: wrap; margin-top: 1.5rem;
}
.btn-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.8rem;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-whatsapp {
  background: #25d366; color: #fff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}
.btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  box-shadow: 0 10px 25px rgba(220, 39, 67, 0.3);
}
.btn-cta:hover { transform: translateY(-3px); }

@media (max-width: 640px) {
  .hero-title { font-size: 2.2rem; }
  .scroll-letter { padding: 2rem 1.25rem; }
  .scroll-body p { font-size: 1rem; }
}
