/* ==========================================================================
   Just for Shikha — style.css
   Theme: lavender · blush pink · cream · soft gold · dark purple
   Mobile-first, premium, glassmorphism.
   ========================================================================== */

/* ---- Color + design tokens (edit palette here) ------------------------- */
:root {
  --lavender: #c8b6ff;
  --blush:    #ffcfe1;
  --cream:    #fff6ec;
  --gold:     #f4d58d;
  --gold-2:   #e9b872;
  --purple-1: #1a1130;
  --purple-2: #2a1a4a;
  --purple-3: #3a2160;

  --text:       #fdf7ff;
  --text-soft:  rgba(253, 247, 255, 0.72);
  --text-faint: rgba(253, 247, 255, 0.5);

  --glass-bg:     rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur:   18px;

  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(200, 182, 255, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(200, 182, 255, 0.25), transparent 60%),
    radial-gradient(1000px 700px at 90% 10%, rgba(255, 207, 225, 0.22), transparent 55%),
    radial-gradient(900px 900px at 50% 110%, rgba(244, 213, 141, 0.14), transparent 60%),
    linear-gradient(160deg, var(--purple-1), var(--purple-2) 55%, var(--purple-3));
  background-attachment: fixed;
}

/* ==========================================================================
   Floating sky (stars + hearts) & confetti
   ========================================================================== */
.sky {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.floaty {
  position: absolute;
  bottom: -40px;
  font-size: 14px;
  opacity: 0;
  animation: rise linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
  will-change: transform, opacity;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 20px)) rotate(360deg); opacity: 0; }
}
.twinkle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.8);
  animation: twinkle ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.15; transform: scale(0.7); }
  to   { opacity: 0.95; transform: scale(1.2); }
}

#confetti {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  width: 100%; height: 100%;
}

/* ==========================================================================
   Screens / flow
   ========================================================================== */
.screen {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.screen.active { display: flex; animation: screenIn 0.7s var(--ease) both; }
.screen.scrollable { align-items: center; justify-content: flex-start; padding-top: 44px; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}

.section-inner { width: 100%; max-width: 620px; margin: 0 auto; }
.center-col { display: flex; flex-direction: column; align-items: center; }

/* ==========================================================================
   Glass cards
   ========================================================================== */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-soft);
}
.center-card {
  max-width: 460px; width: 100%;
  padding: 40px 26px;
  text-align: center;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.eyebrow {
  font-family: 'Dancing Script', cursive;
  font-size: 1.35rem;
  color: var(--blush);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.eyebrow.center { text-align: center; }

.display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}
.heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  line-height: 1.14;
  margin-bottom: 18px;
}
.heading.center, .center { text-align: center; }

.gold-text {
  background: linear-gradient(100deg, var(--gold), #fff2cf 40%, var(--gold-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(244, 213, 141, 0.35));
}

.subtle {
  color: var(--text-soft);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 22px;
}
.subtle.big { font-size: 1.1rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-ghost {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  color: var(--purple-1);
  background: linear-gradient(120deg, var(--lavender), var(--blush) 55%, var(--gold));
  box-shadow: 0 10px 30px rgba(200, 182, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-primary:hover, .btn-ghost:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.05); }
.btn-primary:active, .btn-ghost:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.center-btn { display: block; margin: 30px auto 8px; }

/* ==========================================================================
   Gift box (welcome screen)
   ========================================================================== */
.giftbox {
  position: relative;
  width: 120px; height: 110px;
  margin: 6px auto 26px;
  cursor: pointer;
  animation: floaty 3.4s var(--ease) infinite;
  transition: transform 0.4s var(--ease);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.gift-body {
  position: absolute; bottom: 0; left: 10px;
  width: 100px; height: 74px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--blush), var(--lavender));
  box-shadow: var(--shadow-glow);
}
.gift-lid {
  position: absolute; top: 24px; left: 2px;
  width: 116px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(160deg, #fff, var(--blush));
  transform-origin: center bottom;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
  z-index: 3;
}
.gift-ribbon-v {
  position: absolute; bottom: 0; left: 52px;
  width: 16px; height: 74px;
  background: linear-gradient(var(--gold), var(--gold-2));
  z-index: 2;
}
.gift-bow {
  position: absolute; top: 12px; left: 50%;
  width: 34px; height: 22px;
  transform: translateX(-50%);
  background: var(--gold);
  border-radius: 50% 50% 45% 45%;
  box-shadow: -16px 0 0 -4px var(--gold), 16px 0 0 -4px var(--gold);
  z-index: 4;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
/* Opened state (added by JS) */
.giftbox.open .gift-lid { transform: translateY(-40px) rotate(-16deg); opacity: 0; }
.giftbox.open .gift-bow { transform: translate(-50%, -50px) scale(0.6); opacity: 0; }
.giftbox.open { transform: scale(1.08); }

/* ==========================================================================
   Section 3 — Letter / message
   ========================================================================== */
.letter {
  max-width: 620px; width: 100%;
  padding: 34px 26px 30px;
  margin: 0 auto;
}
.letter-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 4.6vw, 1.4rem);
  line-height: 1.7;
  color: var(--text);
  min-height: 40vh;
}
.letter-body p {
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.letter-body p.show { opacity: 1; transform: none; }
.letter-body p.accent {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5em;
  color: var(--blush);
}
.caret {
  display: inline-block; width: 2px; height: 1.1em;
  background: var(--blush); margin-left: 2px;
  vertical-align: -2px;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   Section 4 — Reason cards
   ========================================================================== */
.reason-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 22px;
}
.reason-card {
  padding: 20px 22px;
  text-align: left;
  display: flex; flex-direction: column;
}
.reason-emoji { font-size: 1.9rem; margin-bottom: 6px; }
.reason-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-size: 1.4rem;
  margin-bottom: 4px;
  color: var(--gold);
}
.reason-card p { color: var(--text-soft); font-weight: 300; line-height: 1.5; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Section 6 — Music card + vinyl
   ========================================================================== */
.music-card { max-width: 400px; width: 100%; padding: 34px 26px; text-align: center; }
.vinyl {
  width: 130px; height: 130px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, #2c2035 0 3px, #221830 3px 6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5), inset 0 0 0 6px rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.vinyl::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.18), transparent 45%);
}
.vinyl-center {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(120deg, var(--lavender), var(--blush) 55%, var(--gold));
  box-shadow: 0 0 0 4px rgba(0,0,0,0.4);
}
.vinyl.spin { animation: spin 3.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hidden YouTube player — audio only, kept off-screen but present in DOM */
#yt-player {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0.001;
  pointer-events: none;
  left: -9999px;
}

/* ==========================================================================
   Section 7.5 — Virtual cake cutting
   ========================================================================== */
.cake-scene {
  position: relative;
  width: 240px; height: 230px;
  margin: 30px auto 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Cake */
.cake {
  position: relative;
  width: 200px;
  z-index: 2;
}
.cake-top {
  width: 200px; height: 34px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff3f7, #ffd9e6);
  box-shadow: inset 0 -6px 10px rgba(214, 140, 170, 0.3);
  position: relative; z-index: 3;
}
.cake-icing {
  width: 200px; height: 26px;
  margin: -16px auto 0;
  border-radius: 0 0 14px 14px;
  background:
    radial-gradient(circle at 12% 0, #fff3f7 12px, transparent 13px),
    radial-gradient(circle at 32% 0, #fff3f7 14px, transparent 15px),
    radial-gradient(circle at 52% 0, #fff3f7 12px, transparent 13px),
    radial-gradient(circle at 72% 0, #fff3f7 14px, transparent 15px),
    radial-gradient(circle at 92% 0, #fff3f7 12px, transparent 13px),
    linear-gradient(#ffe3ee, #ffd0e2);
  position: relative; z-index: 2;
}
.cake-body {
  width: 200px; height: 96px;
  margin: 0 auto;
  border-radius: 8px 8px 12px 12px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 8px, transparent 8px 16px),
    linear-gradient(160deg, #c98bd8, #a86ec9 60%, #8a54b0);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: space-around;
  position: relative; z-index: 1;
}
.deco { font-size: 20px; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3)); }
.cake-plate {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 250px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(#efe6ff, #cbb8e6);
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
  z-index: 1;
}

/* Candles + flames */
.candles {
  position: absolute; top: -46px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 26px;
  z-index: 4;
}
.candle {
  width: 8px; height: 46px;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, #ffd6e8 0 6px, #ff9ec4 6px 12px);
  position: relative;
}
.flame {
  position: absolute; top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 18px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #fff6b0, #ffb038 55%, #ff7a18);
  box-shadow: 0 0 14px 4px rgba(255, 176, 56, 0.7);
  transform-origin: bottom center;
  animation: flicker 0.5s ease-in-out infinite alternate;
}
@keyframes flicker {
  from { transform: translateX(-50%) scale(1) rotate(-3deg); opacity: 0.9; }
  to   { transform: translateX(-50%) scale(1.12) rotate(3deg); opacity: 1; }
}
/* Blown out — must kill the flicker animation, else it keeps setting opacity */
.candles.out .flame {
  animation: none;
  opacity: 0;
  transform: translateX(-50%) scale(0);
  box-shadow: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

/* Knife */
.knife {
  position: absolute; top: -70px; left: 50%;
  transform: translateX(-50%) rotate(12deg);
  font-size: 46px;
  opacity: 0;
  z-index: 5;
  transition: opacity 0.3s var(--ease);
}
.knife.show { opacity: 1; }
.knife.cut { animation: chop 0.7s var(--ease) forwards; }
@keyframes chop {
  0%   { transform: translateX(-50%) translateY(-30px) rotate(12deg); }
  45%  { transform: translateX(-50%) translateY(70px) rotate(6deg); }
  60%  { transform: translateX(-50%) translateY(66px) rotate(6deg); }
  100% { transform: translateX(-50%) translateY(70px) rotate(6deg); opacity: 0; }
}

/* Slice that lifts out after the cut */
.cake-slice {
  position: absolute; bottom: 0; left: 50%;
  width: 46px; height: 122px;
  margin-left: -23px;
  border-radius: 4px;
  background: linear-gradient(160deg, #d99ee6, #a86ec9 60%, #8a54b0);
  box-shadow: 4px 4px 14px rgba(0,0,0,0.35);
  opacity: 0;
  z-index: 6;
  transform-origin: bottom right;
}
.cake-slice.out { animation: sliceOut 0.9s var(--ease) 0.5s forwards; }
@keyframes sliceOut {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 1; transform: translate(70px, -20px) rotate(14deg); }
}

/* ==========================================================================
   Section 7 — Choice game
   ========================================================================== */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 26px auto 10px;
  max-width: 420px;
}
.choice {
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  padding: 22px 10px;
  border-radius: 22px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.choice span { font-size: 0.95rem; font-weight: 400; color: var(--text-soft); }
.choice:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.choice:active { transform: scale(0.96); }

.choice-message {
  font-family: 'Dancing Script', cursive;
  font-size: 1.7rem;
  text-align: center;
  margin: 20px auto 0;
  max-width: 420px;
  color: var(--blush);
  animation: glowPulse 2.4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { text-shadow: 0 0 10px rgba(255,207,225,0.4); }
  50%     { text-shadow: 0 0 26px rgba(255,207,225,0.9); }
}

/* Falling petals / cake bits spawned by JS */
.drop {
  position: fixed; top: -30px; z-index: 900;
  font-size: 22px; pointer-events: none;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(360deg); opacity: 0.2; }
}
/* Sparkle burst */
.sparkle {
  position: fixed; z-index: 900; pointer-events: none;
  font-size: 20px;
  animation: sparklePop 1s var(--ease) forwards;
}
@keyframes sparklePop {
  0%   { transform: scale(0) rotate(0); opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: scale(1.6) rotate(140deg) translateY(-30px); opacity: 0; }
}

/* ==========================================================================
   Section 8 — Final
   ========================================================================== */
.final-line { font-size: clamp(1.5rem, 6vw, 2.1rem); margin-bottom: 26px; }
.made-with {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: var(--blush);
  margin-top: 22px;
  animation: glowPulse 2.4s ease-in-out infinite;
}

/* ==========================================================================
   Helpers + shared entrance
   ========================================================================== */
.hidden { display: none !important; }
.fade-up { animation: fadeUp 0.9s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* Larger screens: give the reason grid a bit more room */
@media (min-width: 720px) {
  .reason-grid { grid-template-columns: 1fr 1fr; }
  .reason-grid > :last-child { grid-column: 1 / -1; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto; }
}
