/* ============ RESET + BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: #2a1a3a;
  background: #fff5fb;
  overflow-x: hidden;
}
.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============ WELCOME SPLASH ============ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 50%, #a18cd1 100%);
  animation: fadeIn 0.6s ease;
  transition: opacity 0.8s, transform 0.8s;
}
.splash.fade-out {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}
.splash-inner {
  text-align: center;
  color: #fff;
  animation: fadeIn 0.8s ease;
}
.splash-emoji {
  font-size: 5rem;
  margin-bottom: 10px;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }

.splash-inner h1 {
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.splash-inner h2 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-top: 4px;
  color: rgba(255,255,255,0.9);
}
.splash-name {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: #fff;
}
.splash-btn {
  margin-top: 28px;
  padding: 16px 40px;
  font-size: 1.15rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); box-shadow: 0 10px 30px rgba(255,110,199,0.4); }
  50%     { transform: scale(1.05); box-shadow: 0 16px 40px rgba(255,110,199,0.6); }
}

/* ============ MAIN SITE ============ */
body {
  background:
    radial-gradient(circle at 20% 10%, #ffe5ec 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, #e0d7ff 0%, transparent 40%),
    linear-gradient(180deg, #fff5fb 0%, #fef3ff 100%);
  min-height: 100vh;
}
#confettiCanvas, #heartsCanvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255, 245, 251, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,110,199,0.12);
}
.nav-logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.4rem;
  background: linear-gradient(90deg,#ff6ec7,#a18cd1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: #5a3a6a;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  width: 0; height: 2px;
  background: linear-gradient(90deg,#ff6ec7,#a18cd1);
  transition: all 0.25s;
  transform: translateX(-50%);
}
.nav-links a:hover { color: #ff6ec7; }
.nav-links a:hover::after { width: 100%; }

.music-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg,#ff6ec7,#a18cd1);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(255,110,199,0.4);
  transition: transform 0.2s;
}
.music-toggle:hover { transform: scale(1.1) rotate(15deg); }
.music-toggle.playing .music-icon { animation: spinMusic 2s linear infinite; display: inline-block; }
@keyframes spinMusic { to { transform: rotate(360deg); } }

/* BACKGROUND BALLOONS */
.floating-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.floating-decor > span {
  position: absolute;
  bottom: -100px;
  width: 35px; height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9a9e, #ff6ec7);
  opacity: 0.35;
  animation: floatUp 14s linear infinite;
  animation-delay: calc(var(--i) * -1.6s);
  left: calc(var(--i) * 11%);
}
.floating-decor > span:nth-child(2n) { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.floating-decor > span:nth-child(3n) { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.floating-decor > span:nth-child(4n) { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.floating-decor > span::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 50%;
  width: 1px; height: 40px;
  background: rgba(180,100,150,0.5);
}
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0); opacity: 0; }
  10%  { opacity: 0.35; }
  90%  { opacity: 0.35; }
  100% { transform: translateY(-110vh) rotate(20deg); opacity: 0; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  overflow: hidden;
  z-index: 2;
}
.stars { position: absolute; inset: 0; pointer-events: none; }
.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px #fff, 0 0 20px 6px rgba(255,214,245,0.6);
  animation: twinkle 2s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes twinkle {
  0%,100% { opacity: 0.3; transform: scale(0.6); }
  50%     { opacity: 1;   transform: scale(1.3); }
}

.hero-inner { position: relative; z-index: 3; text-align: center; max-width: 900px; }
.hero-pre {
  font-size: 1rem;
  color: #a18cd1;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  animation: fadeDown 1s ease;
}
@keyframes fadeDown { from { opacity:0; transform: translateY(-20px);} to { opacity:1; transform: translateY(0);} }

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 22px;
}
.hero-title .line {
  display: block;
  font-size: clamp(3rem, 9vw, 6rem);
  opacity: 0;
  transform: translateY(40px);
  animation: lineIn 0.9s cubic-bezier(.2,.9,.2,1) forwards;
  background: linear-gradient(90deg,#ff6ec7,#a18cd1,#8fd3f4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { animation-delay: 0.5s; }
.hero-title .line.name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 400;
  animation-delay: 0.9s;
  background: linear-gradient(90deg,#ff6ec7,#ff9a9e,#a18cd1,#ff6ec7);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lineIn 0.9s cubic-bezier(.2,.9,.2,1) forwards, shimmer 4s linear infinite 1.8s;
  filter: drop-shadow(0 5px 20px rgba(255,110,199,0.35));
}
@keyframes lineIn { to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { to { background-position: 300% 0; } }

.hero-sub {
  color: #5a3a6a;
  font-size: 1.15rem;
  margin-bottom: 34px;
  opacity: 0;
  animation: fadeIn 1s ease 1.6s forwards;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 1s ease 1.9s forwards;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, #ff6ec7, #a18cd1);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255,110,199,0.4);
}
.btn-primary:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 40px rgba(255,110,199,0.55); }
.btn-ghost {
  background: rgba(255,255,255,0.7);
  color: #a18cd1;
  border: 2px solid #a18cd1;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #a18cd1; color: #fff; transform: translateY(-4px); }

/* BALLOONS in hero */
.balloons { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.balloon {
  position: absolute;
  width: 60px; height: 75px;
  border-radius: 50%;
  animation: floatBalloon 6s ease-in-out infinite;
}
.balloon::after {
  content: '';
  position: absolute;
  bottom: -55px; left: 50%;
  width: 2px; height: 55px;
  background: rgba(100,60,120,0.4);
}
.balloon::before {
  content: '';
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid currentColor;
}
.b1 { top: 18%; left: 10%;  background: #ff9a9e; color: #ff9a9e; animation-delay: 0s; }
.b2 { top: 12%; right: 14%; background: #a18cd1; color: #a18cd1; animation-delay: -1.2s; }
.b3 { top: 55%; left: 6%;   background: #84fab0; color: #84fab0; animation-delay: -2.4s; }
.b4 { top: 62%; right: 8%;  background: #fddb92; color: #fddb92; animation-delay: -3.6s; }
.b5 { top: 35%; right: 22%; background: #fbc2eb; color: #fbc2eb; animation-delay: -4.8s; }
@keyframes floatBalloon {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%     { transform: translateY(-25px) rotate(3deg); }
}

.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #a18cd1;
  font-size: 0.8rem;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeIn 1s ease 2.4s forwards;
}
.mouse {
  width: 22px; height: 36px;
  border: 2px solid #a18cd1;
  border-radius: 12px;
  margin: 6px auto 0;
  position: relative;
}
.wheel {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: #a18cd1;
  border-radius: 2px;
  animation: wheelAnim 1.5s ease-in-out infinite;
}
@keyframes wheelAnim {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 20px; }
}

/* STATS */
.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 80px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.stat-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,110,199,0.15);
  border-radius: 22px;
  padding: 36px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(161,140,209,0.12);
  transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-6px); }
.stat-num {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(90deg,#ff6ec7,#a18cd1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: #7a5a8a; font-size: 0.95rem; margin-top: 6px; }

/* SECTION TITLES */
.section-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: linear-gradient(90deg,#ff6ec7,#a18cd1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: #7a5a8a;
  margin-bottom: 50px;
  font-size: 1.05rem;
}

/* WISHES */
.wishes {
  position: relative;
  z-index: 2;
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.wish-card {
  background: rgba(255,255,255,0.85);
  border-radius: 24px;
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(161,140,209,0.15);
  border: 1px solid rgba(255,110,199,0.1);
  transition: all 0.35s cubic-bezier(.2,.8,.2,1);
  opacity: 0;
  transform: translateY(30px);
}
.wish-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.wish-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(255,110,199,0.25);
  border-color: rgba(255,110,199,0.4);
}
.wish-emoji {
  font-size: 3rem;
  margin-bottom: 14px;
  display: inline-block;
  animation: bounce 3s ease-in-out infinite;
}
.wish-card:hover .wish-emoji { animation: spin 0.8s ease; }
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
@keyframes spin { 0%{transform:rotate(0);} 100%{transform:rotate(360deg);} }
.wish-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #4a2a5a;
}
.wish-card p { color: #6a4a7a; line-height: 1.6; font-size: 0.95rem; }

/* GALLERY */
.gallery {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.polaroid-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px 0;
}
.polaroid {
  background: #fff;
  padding: 14px 14px 22px;
  border-radius: 6px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  transform: rotate(var(--r));
  transition: all 0.4s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
}
.polaroid:hover {
  transform: rotate(0) scale(1.08) translateY(-10px);
  box-shadow: 0 30px 60px rgba(255,110,199,0.35);
  z-index: 5;
}
.polaroid-img {
  width: 200px; height: 200px;
  background: var(--g);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-bottom: 12px;
}
.polaroid p {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  text-align: center;
  color: #4a2a5a;
}

/* CAKE */
.cake-section {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  text-align: center;
}
.cake-wrap {
  margin: 40px auto;
  width: 360px;
  height: 360px;
  position: relative;
  perspective: 800px;
}
.cake {
  position: relative;
  width: 100%;
  height: 100%;
  animation: cakeFloat 4s ease-in-out infinite;
}
@keyframes cakeFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

.plate {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 340px; height: 30px;
  background: radial-gradient(ellipse at center, #fff 0%, #e8d5f0 70%, #c9a8d8 100%);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px;
  box-shadow: inset 0 -8px 20px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.1);
}
.layer-bottom {
  bottom: 22px;
  width: 260px; height: 90px;
  background: linear-gradient(180deg, #ff9a9e 0%, #ff6ec7 100%);
}
.layer-middle {
  bottom: 108px;
  width: 220px; height: 80px;
  background: linear-gradient(180deg, #ffafbd 0%, #ffc3a0 100%);
}
.layer-top {
  bottom: 184px;
  width: 180px; height: 70px;
  background: linear-gradient(180deg, #fddb92 0%, #d1fdff 100%);
}

.drip {
  position: absolute;
  top: -2px;
  width: 22px; height: 35px;
  background: linear-gradient(180deg, #fff 0%, #fbeaff 100%);
  border-radius: 0 0 50% 50% / 0 0 60% 60%;
}
.d1 { left: 15px; height: 28px; }
.d2 { left: 60px; height: 42px; }
.d3 { left: 110px; height: 32px; }
.d4 { left: 160px; height: 45px; }
.d5 { left: 210px; height: 30px; }

.candle {
  position: absolute;
  bottom: 254px;
  width: 14px;
  height: 42px;
  border-radius: 4px;
  transition: background 0.3s;
}
.c1 { left: calc(50% - 50px); background: linear-gradient(180deg, #ff6ec7, #ff9a9e); }
.c2 { left: calc(50% - 7px);  background: linear-gradient(180deg, #a18cd1, #fbc2eb); }
.c3 { left: calc(50% + 36px); background: linear-gradient(180deg, #84fab0, #8fd3f4); }

.wick {
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 6px;
  background: #3a2a1a;
}
.flame {
  position: absolute;
  top: -26px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 22px;
  background: radial-gradient(ellipse at 50% 70%, #fff 0%, #ffd93d 40%, #ff6a00 80%, transparent 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 20px 6px rgba(255,165,0,0.6), 0 0 40px 12px rgba(255,100,0,0.3);
  animation: flicker 0.18s ease-in-out infinite alternate;
  transform-origin: center bottom;
}
@keyframes flicker {
  0%   { transform: translateX(-50%) scale(1) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(1.1,0.95) rotate(2deg); }
}
.candle[data-lit="false"] .flame {
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: all 0.4s;
}
.candle:hover { transform: translateY(-3px); cursor: pointer; }

.sprinkle {
  position: absolute;
  width: 8px; height: 3px;
  border-radius: 2px;
  animation: sprinkleSpin 3s linear infinite;
}
.s1 { bottom: 50px;  left: calc(50% - 80px); background: #ffd93d; transform: rotate(30deg); }
.s2 { bottom: 70px;  left: calc(50% + 60px); background: #74ebd5; transform: rotate(-40deg); animation-delay: -0.5s; }
.s3 { bottom: 130px; left: calc(50% - 70px); background: #ff6ec7; transform: rotate(60deg); animation-delay: -1s; }
.s4 { bottom: 150px; left: calc(50% + 50px); background: #a18cd1; transform: rotate(-20deg); animation-delay: -1.5s; }
.s5 { bottom: 200px; left: calc(50% - 40px); background: #fddb92; transform: rotate(45deg); animation-delay: -2s; }
.s6 { bottom: 210px; left: calc(50% + 30px); background: #84fab0; transform: rotate(-50deg); animation-delay: -2.5s; }
@keyframes sprinkleSpin {
  0%,100% { opacity: 0.9; }
  50%     { opacity: 0.5; }
}

.cake-caption {
  margin-top: 20px;
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: #a18cd1;
}

/* MESSAGE / LETTER */
.message-section {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
}
.letter {
  max-width: 720px;
  margin: 0 auto;
  background:
    linear-gradient(135deg, #fffbe7 0%, #fff5fb 100%);
  padding: 50px 44px;
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(161,140,209,0.25),
    inset 0 0 60px rgba(255,245,230,0.5);
  position: relative;
  border: 1px solid rgba(255,200,150,0.3);
  font-family: 'Dancing Script', cursive;
  font-size: 1.35rem;
  line-height: 1.8;
  color: #4a2a5a;
}
.letter::before, .letter::after {
  content: '';
  position: absolute;
  width: 50px; height: 50px;
  background: radial-gradient(circle, rgba(255,200,100,0.6) 0%, transparent 70%);
  border-radius: 50%;
}
.letter::before { top: -10px; left: -10px; }
.letter::after  { bottom: -10px; right: -10px; }
.letter p { margin-bottom: 18px; }
.letter-greet {
  font-size: 1.8rem !important;
  font-weight: 700;
  color: #ff6ec7;
}
.letter-sign { margin-top: 28px !important; font-style: italic; }
.letter-sign-name {
  font-family: 'Great Vibes', cursive !important;
  font-size: 2rem !important;
  color: #a18cd1;
  text-align: right;
}

/* FINAL CTA */
.final {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 20px;
}
.final-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  background: linear-gradient(90deg,#ff6ec7,#a18cd1,#8fd3f4,#ff6ec7);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
  margin-bottom: 14px;
}
.final-sub { color: #7a5a8a; font-size: 1.2rem; margin-bottom: 30px; }

/* FOOTER */
.foot {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 20px;
  color: #a18cd1;
  border-top: 1px solid rgba(255,110,199,0.12);
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .hero { padding: 100px 16px 60px; }
  .balloon { width: 45px; height: 56px; }
  .cake-wrap { width: 300px; height: 320px; }
  .plate { width: 280px; }
  .layer-bottom { width: 220px; }
  .layer-middle { width: 185px; }
  .layer-top { width: 150px; }
  .letter { padding: 36px 24px; font-size: 1.2rem; }
  .stat-num { font-size: 2.4rem; }
}
