:root{
  --primary:#8a2c3b;
  --primary-dark:#3c0a18;
  --gold:#c79a3e;
  --gold-light:#e9d28c;
  --cream:#f7efe1;
  --sage:#dbe5d6;
  --blush-from:#fff5f6;
  --blush-to:#ffebef;
  --ink:#4a3b32;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'EB Garamond', serif;
  background:var(--cream);
  color:var(--ink);
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
.hidden{display:none !important;}

/* ============ PETALS ============ */
.petal-layer{ position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:1; }
.petal-layer-fixed{ position:fixed; inset:0; overflow:hidden; pointer-events:none; z-index:40; }
.petal{ position:absolute; top:-40px; font-size:1.2rem; opacity:.3; animation: fall linear infinite; }
.petal-img{ opacity:.3; filter:drop-shadow(0 2px 4px rgba(0,0,0,0.15)); pointer-events:none; }

@keyframes burstFly{
  0%{ transform:translate(-50%,-50%) scale(0.3) rotate(0deg); opacity:1; }
  70%{ opacity:1; }
  100%{ transform:translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.05) rotate(var(--rot)); opacity:0; }
}
.burst-layer{ position:fixed; inset:0; pointer-events:none; z-index:200; }
.burst-petal{
  position:absolute; left:0; top:0; width:30px;
  animation: burstFly 1s cubic-bezier(.19,.85,.32,1) forwards;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}.petal-img{ opacity:.85; filter:drop-shadow(0 2px 4px rgba(0,0,0,0.15)); pointer-events:none; }

@keyframes burstFly{
  0%{ transform:translate(-50%,-50%) scale(0.3) rotate(0deg); opacity:1; }
  70%{ opacity:1; }
  100%{ transform:translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.05) rotate(var(--rot)); opacity:0; }
}
.burst-layer{ position:fixed; inset:0; pointer-events:none; z-index:200; }
.burst-petal{
  position:absolute; left:0; top:0; width:30px;
  animation: burstFly 1s cubic-bezier(.19,.85,.32,1) forwards;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

@keyframes fall{
  0%{ transform:translateY(-40px) rotate(0deg); }
  100%{ transform:translateY(110vh) rotate(340deg); }
}

/* ============ ENTRY SCREEN ============ */
.entry-screen{
  position:fixed; inset:0; z-index:100;
  background: radial-gradient(circle at 50% 25%, rgba(199,154,62,0.18), transparent 60%), linear-gradient(160deg, var(--cream), #efe2c8);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:38px;
  transition:opacity .8s ease, visibility .8s ease;
}


.envelope{ position:relative; width:80vw; height:500px; cursor:pointer; }
.envelope-body{
  position:absolute; inset:0; top:60px; height:60vh;
  background:linear-gradient(160deg, #fffaf0, #f1e3c8),
    repeating-linear-gradient(135deg, rgba(0,0,0,0.02) 0px, rgba(0,0,0,0.02) 1px, transparent 1px, transparent 7px);
  border:1px solid var(--gold-light); border-radius:4px;
  box-shadow:0 14px 30px rgba(60,10,24,0.18);
}
.envelope-flap{
  position:absolute; top:62px; left:0; width:100%; height:210px;
  background:linear-gradient(160deg, #fdf3e0, #ecdbb8),
    repeating-linear-gradient(135deg, rgba(0,0,0,0.02) 0px, rgba(0,0,0,0.02) 1px, transparent 1px, transparent 7px);
  clip-path:polygon(0 0, 100% 0, 50% 78%);
  border:1px solid var(--gold-light); transform-origin:top center;
transition:transform 1s cubic-bezier(.6,-0.2,.3,1.4) .55s; z-index:3;}
.flower-spray{
  position:absolute; top:90px; left:50%; transform:translateX(-50%);
  width:300px; z-index:4; pointer-events:none;
}
.envelope.open .flower-spray{ opacity:0; transition:opacity .4s ease; }


.envelope.open .envelope-flap{ transform:rotateX(180deg) translateY(-2px); }


.seal-half{
  position:absolute; top:200px; left:50%; width:130px; height:130px; z-index:4;
  background:linear-gradient(160deg, #f8d9e2, #e6aebd); border:2px solid #d99aab; border-radius:50%;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  font-family:'Great Vibes', cursive; font-size:0rem; color:#b8860b;
  text-shadow:0 1px 1px rgba(255,255,255,0.3);
box-shadow:0 4px 10px rgba(0,0,0,0.18); transition:transform .6s ease-out 0s, opacity .5s ease-out 0s;}



.seal-left{ transform:translate(-50%,-50%); clip-path:inset(0 50% 0 0); }
.seal-right{ transform:translate(-50%,-50%); clip-path:inset(0 0 0 50%); }

.seal-left span, .seal-right span{ display:inline-block; width:100px; text-align:center; line-height:1.15; }
.envelope.open .seal-left{ transform:translate(-115%,-140%) rotate(-25deg); opacity:0; }
.envelope.open .seal-right{ transform:translate(15%,-140%) rotate(25deg); opacity:0; }
.tap-btn{
  position:absolute;
  bottom:170px;
  display: flex;
  /* left:24vw; */
  transform:translateX(-50%);
  padding:14px 30px; border-radius:40px; border:1px solid var(--primary);
  background:rgba(255,255,255,0.6); color:var(--primary); font-family:'Marcellus', serif;
  letter-spacing:.15em; font-size:.85rem; cursor:pointer;
  animation:pulseBtn 2s ease-in-out infinite;
}
@keyframes pulseBtn{ 0%,100%{transform:scale(1);} 50%{transform:scale(1.05);} }

/* ============ GENERAL ============ */
section{ padding:90px 22px; position:relative; overflow:hidden; }
.script-title{
  font-family:'Great Vibes', cursive; font-size:clamp(2.2rem, 7vw, 3rem); text-align:center; color:var(--primary);
  margin-bottom:8px; position:relative; z-index:2;
}
.section-sub{
  text-align:center; font-family:'Marcellus', serif; letter-spacing:.15em; text-transform:uppercase;
  font-size:.72rem; color:var(--gold); margin-bottom:10px; position:relative; z-index:2;
}
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .8s ease, transform .8s ease; position:relative; z-index:2; }
.reveal.in{ opacity:1; transform:translateY(0); }
.sound-toggle{
  position:fixed; bottom:18px; right:18px; z-index:50; width:46px; height:46px; border-radius:50%;
  border:1px solid var(--gold); background:rgba(255,255,255,0.85); cursor:pointer; font-size:1.1rem;
}
.divider{ display:flex; align-items:center; justify-content:center; gap:12px; margin:16px auto 0; max-width:220px; position:relative; z-index:2; }
.divider .rule{ flex:1; height:1px; background:var(--gold-light); }
.divider .dot{ color:var(--gold); }

/* ============ HERO ============ */
.hero{ min-height:100svh; display:flex; align-items:center; justify-content:center; background:linear-gradient(180deg, #f3e2d0, var(--cream)); }
.hero-frame{ max-width:520px; text-align:center; padding:50px 26px; }
.ganesh-mark{ font-size:2.4rem; margin-bottom:6px; }
.ganesh-img{ width:96px; height:96px; object-fit:contain; margin:0 auto 6px; }
.invocation{ font-family:'Cormorant Garamond', serif; font-style:italic; color:var(--primary); font-size:1.05rem; margin-bottom:20px; }
.invite-line{ font-size:1.1rem; line-height:1.8; margin-bottom:22px; color:var(--ink); max-width:420px; margin-left:auto; margin-right:auto; }


.bride-name, .groom-name{ font-family:'Great Vibes', cursive; font-size:clamp(2.6rem, 9vw, 4rem); color:var(--primary); line-height:1.1; }

#heroGroom{margin-top:40px;}

.parents-line{ font-size:.95rem; color:var(--ink); opacity:.9; margin:6px 0 14px; font-weight:600; }

.with-word{ font-family:'Great Vibes', cursive; font-size:2rem; color:var(--primary); margin:30px ; font-style:italic; }

/* ============ SAVE THE DATE / SCRATCH ============ */
.save-date-section{ text-align:center; background:var(--cream); }
.scratch-wrap{ position:relative; width:100%; max-width:448px; height:128px; margin:0 auto; border-radius:16px; overflow:hidden; border:2px solid var(--gold-light); box-shadow:0 8px 24px rgba(0,0,0,0.1); }
.scratch-under{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; background:var(--cream); }
.sd-label{ font-family:'Marcellus', serif; letter-spacing:.3em; text-transform:uppercase; font-size:.85rem; color:var(--primary); }
.sd-date{ font-family:'Great Vibes', cursive; font-size:2.1rem; color:var(--primary); margin-top:4px; }
#scratchCanvas{ position:absolute; inset:0; width:100%; height:100%; cursor:pointer; touch-action:none; z-index:5; }
.scratch-hint{
  position:absolute; inset:0; z-index:6; pointer-events:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  color:#fff; font-family:'Marcellus', serif; letter-spacing:.2em; font-size:1.2rem; text-transform:uppercase;
  text-shadow:0 2px 6px rgba(0,0,0,0.5);
}
.countdown{ display:flex; justify-content:center; gap:clamp(10px,3vw,20px); flex-wrap:wrap; margin-top:36px; transition:opacity .6s ease, transform .6s ease; }
.countdown.hidden{ display:none; }
.cd-cell{ min-width:70px; padding:14px 6px; border-radius:14px; border:1px solid var(--gold-light); background:var(--cream); }
.cd-num{ font-family:'Marcellus', serif; font-size:1.6rem; color:var(--primary); }
.cd-label{ font-family:'Marcellus', serif; font-size:.6rem; letter-spacing:.15em; text-transform:uppercase; color:var(--gold); margin-top:4px; }

/* ============ MEET THE COUPLE ============ */
.profiles-section{ background:var(--cream); }
.profiles{ display:flex; flex-direction:column; gap:60px; max-width:640px; margin:40px auto 50px;}
.profile{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px; }
@media (min-width:700px){
  .profile{ flex-direction:row; text-align:left; gap:36px; }
  .profile.reverse{ flex-direction:row-reverse; text-align:right; }
}


.profile-photo{ width:220px; aspect-ratio: 3 / 4; border-radius:2.5rem; object-fit:cover; border:2px solid var(--gold-light); box-shadow:0 8px 22px rgba(0,0,0,0.15); flex-shrink:0; }


.profile-label{ font-family:'Marcellus', serif; letter-spacing:.2em; text-transform:uppercase; font-size:.7rem; color:var(--primary); }
.profile-name{ font-family:'Great Vibes', cursive; font-size:2.4rem; color:var(--primary); margin:4px 0 10px; }
.profile-quote{ font-family:'EB Garamond', serif; font-style:italic; font-size:1.1rem; line-height:1.7; font-weight:600; }
.quote-card{
  max-width:600px; margin:0 auto; padding:30px; border-radius:22px; background:rgba(219,229,214,0.3); border:1px solid var(--gold-light);
  text-align:center; font-family:'EB Garamond', serif; font-style:italic; font-size:1.15rem; color:var(--primary); font-weight:600;
}

/* ============ LOVE STORY ============ */
.love-story{ background:var(--cream); }
.chat-mock{ max-width:380px; margin:16px auto 0; border-radius:14px; overflow:hidden; border:1px solid #dcdfe4; box-shadow:0 6px 18px rgba(0,0,0,0.08); background:#fff; text-align:left; }
.chat-header{ display:flex; align-items:center; gap:10px; padding:12px 14px; background:#eef3fb; border-bottom:1px solid #dde6f2; }
.chat-avatar{ width:32px; height:32px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:.9rem; }
.chat-name{ font-family:'Marcellus', serif; font-size:.9rem; color:#1a4bb0; }
.chat-status{ font-size:.7rem; color:#6f88b3; }
.chat-body{ padding:14px; display:flex; flex-direction:column; gap:8px; }
.bubble{ max-width:75%; padding:8px 13px; border-radius:16px; font-size:.9rem; line-height:1.4; }
.bubble.them{ align-self:flex-start; background:#f0f2f5; color:#333; border-bottom-left-radius:4px; }
.bubble.me{ align-self:flex-end; background:#0084ff; color:#fff; border-bottom-right-radius:4px; }
.chat-caption{ text-align:center; font-family:'Cormorant Garamond', serif; font-style:italic; font-size:.8rem; color:var(--primary); padding:8px 14px 12px; border-top:1px dashed #e2e6ec; }

.timeline{ max-width:600px; margin:40px auto 0; border-left:2px solid var(--gold-light); padding-left:28px; }
.tl-row{ margin-bottom:40px; position:relative; }
.tl-row:last-child{ margin-bottom:0; }
.tl-row::before{ content:''; position:absolute; left:-34px; top:4px; width:14px; height:14px; border-radius:50%; background:var(--cream); border:2px solid var(--gold); }
.tl-icon{ font-size:1.2rem; margin-right:6px; }
.tl-title{ font-family:'EB Garamond', serif; font-weight:600; color:var(--primary); font-size:1.3rem; margin-bottom:6px; }
.tl-text{ font-size:1.05rem; line-height:1.7; font-weight:600; }

.closing-photo-wrap{ max-width:560px; aspect-ratio: 3 / 4; margin:50px auto 0; border-radius:22px; overflow:hidden; border:6px solid #fff; box-shadow:0 10px 26px rgba(0,0,0,0.15); }

/* ============ GALLERY ============ */
.gallery-section{ background:var(--sage); }
.gallery-wrap{ position:relative; max-width:700px; margin:20px auto 0; }
.gallery{ display:flex; gap:18px; overflow-x:auto; padding:10px 30px 20px; scroll-snap-type:x mandatory; }
.gallery-card{ flex:0 0 230px; scroll-snap-align:center; }
.gallery-card img{ border-radius:1.6rem; height:300px; width:100%; object-fit:cover; border:4px solid #fff; box-shadow:0 8px 20px rgba(0,0,0,0.15); }
.gallery-arrow{
  position:absolute; top:45%; transform:translateY(-50%); z-index:5; width:42px; height:42px; border-radius:50%;
  border:1px solid var(--gold-light); background:rgba(255,255,255,0.85); color:var(--primary); font-size:1.4rem; cursor:pointer;
}
.gallery-arrow.left{ left:-6px; } .gallery-arrow.right{ right:-6px; }
.gallery-caption{ text-align:center; font-family:'Great Vibes', cursive; font-size:1.8rem; color:var(--primary); margin-top:6px; position:relative; z-index:2; }
.dots{ display:flex; justify-content:center; gap:8px; margin-top:14px; position:relative; z-index:2; }
.dot{ width:7px; height:7px; border-radius:50%; background:var(--gold-light); transition:background .3s, transform .3s, width .3s; }
.dot.active{ background:var(--primary); width:16px; border-radius:4px; }

/* ============ EVENTS ============ */
.events-section{ background:var(--sage); }
.events{ display:grid; grid-template-columns:1fr; gap:26px; max-width:640px; margin:0 auto; position:relative; z-index:2; }
@media (min-width:800px){ .events{ grid-template-columns:1fr 1fr; max-width:900px; } }
.event-card{
  position:relative; border-radius:18px; overflow:hidden; min-height:340px; border:1px solid var(--gold-light);
  background-size:cover; background-position:center; box-shadow:0 10px 26px rgba(0,0,0,0.2); display:flex; align-items:flex-end;
}
.event-card::before{ content:''; position:absolute; inset:0; background:rgba(0,0,0,0.4); }
.event-inner{ position:relative; z-index:1; padding:30px 26px; color:#fdf6e8; text-align:center; width:100%; }
.event-overlay-img{ max-width:180px; margin:0 auto 10px; }
.event-name{ font-family:'Great Vibes', cursive; font-size:2.4rem; color:#fff; }
.event-desc{ font-family:'Cormorant Garamond', serif; font-style:italic; margin:6px 0 14px; opacity:.9; }
.event-meta div{ margin-bottom:10px; }
.event-meta .label{ font-family:'Marcellus', serif; font-size:.72rem; letter-spacing:.15em; text-transform:uppercase; color:var(--gold-light); }
.event-meta .value{ font-size:1.1rem; margin-top:2px; }

/* ============ CTA ============ */
.cta-section{ background:var(--cream); text-align:center; }
.cta-text{ font-family:'EB Garamond', serif; font-style:italic; font-size:1.25rem; font-weight:600; color:var(--ink); max-width:480px; margin:0 auto; }

/* ============ FAMILIES ============ */
.families-section{ background:var(--sage); }
.families{ display:flex; flex-wrap:wrap; gap:22px; justify-content:center; max-width:700px; margin:20px auto 0; position:relative; z-index:2; }
.family-card{ flex:1 1 260px; max-width:300px; border:1px solid var(--gold-light); border-radius:18px; padding:30px 22px; text-align:center; background:rgba(255,255,255,0.6); }
.family-heading{ font-family:'Marcellus', serif; letter-spacing:.15em; text-transform:uppercase; font-size:.75rem; color:var(--gold); margin-bottom:10px; }
.family-note{ font-family:'Cormorant Garamond', serif; font-style:italic; margin-bottom:12px; color:var(--ink); opacity:.85; }
.family-member{ font-size:1.1rem; margin-bottom:4px; }

/* ============ WISHES ============ */
.wishes-section{ background:linear-gradient(180deg, var(--blush-from), var(--blush-to)); text-align:center; }
.wish-form{
  max-width:440px; margin:0 auto 50px; text-align:left; padding:34px 28px; border-radius:22px;
  background:rgba(255,255,255,0.75); border:1px solid #fbdce4; display:flex; flex-direction:column; gap:12px;
}
.wish-form-label{ text-align:center; font-family:'Marcellus', serif; font-size:.7rem; letter-spacing:.15em; color:var(--gold); font-weight:700; }
.wish-form-optional{ text-align:center; font-family:'Marcellus', serif; font-size:.65rem; letter-spacing:.15em; text-transform:uppercase; color:var(--primary); opacity:.7; margin-bottom:6px; }
.wish-form label{ font-family:'Marcellus', serif; font-size:.72rem; color:var(--primary); font-weight:700; }
.wish-form input, .wish-form textarea{
  padding:10px 12px; border-radius:10px; border:1px solid #f3c8d2; background:rgba(255,255,255,0.7); font-family:'EB Garamond', serif; font-size:1rem;
}
.wish-form textarea{ height:70px; resize:none; }
.wish-form-note{ text-align:center; font-size:.78rem; font-style:italic; color:var(--ink); opacity:.7; }
.wish-form button{
  padding:12px; border-radius:30px; border:none; background:linear-gradient(120deg, var(--primary), #b5495c); color:#fff;
  font-family:'Marcellus', serif; letter-spacing:.15em; font-size:.75rem; text-transform:uppercase; cursor:pointer;
}
.wish-carousel{ display:flex; align-items:center; justify-content:center; gap:14px; max-width:480px; margin:26px auto 0; }
.wish-arrow{ width:38px; height:38px; border-radius:50%; border:1px solid #fbdce4; background:#fff; color:var(--primary); font-size:1.3rem; cursor:pointer; flex:0 0 38px; }
.wish-card{ flex:1; min-height:160px; border-radius:18px; padding:26px 22px; background:rgba(255,255,255,0.75); border:1px solid #fbdce4; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.wish-msg{ font-family:'EB Garamond', serif; font-style:italic; font-weight:600; line-height:1.6; margin-bottom:12px; }
.wish-name{ font-family:'Marcellus', serif; letter-spacing:.15em; text-transform:uppercase; font-size:.75rem; color:var(--gold); font-weight:700; }

/* ============ LOCATION ============ */
.location-section{ background:var(--cream); text-align:center; }
.location-address{ font-size:1.1rem; font-weight:600; max-width:480px; margin:0 auto 30px; }
.map-wrap{ max-width:600px; margin:0 auto 24px; border-radius:18px; overflow:hidden; border:1px solid var(--gold-light); }
.map-wrap iframe{ width:100%; height:280px; border:0; display:block; }
.directions-btn{
  display:inline-block; padding:13px 30px; border-radius:30px; background:linear-gradient(120deg, var(--gold), #b6862c); color:#fff;
  font-family:'Marcellus', serif; letter-spacing:.1em; text-decoration:none; font-size:.85rem; position:relative; z-index:2;
}

/* ============ FOOTER ============ */
footer{ background:var(--primary-dark); color:var(--cream); text-align:center; padding:70px 22px; position:relative; overflow:hidden; }
.footer-label{ font-family:'Marcellus', serif; letter-spacing:.35em; text-transform:uppercase; font-size:.7rem; color:var(--gold-light); position:relative; z-index:2; }
.footer-names{ font-family:'Great Vibes', cursive; font-size:2.8rem; color:#fff; margin:12px 0; position:relative; z-index:2; }
.footer-date{ font-family:'EB Garamond', serif; font-style:italic; opacity:.9; position:relative; z-index:2; }
.footer-hashtag{ margin-top:14px; letter-spacing:.2em; font-family:'Marcellus', serif; font-size:.78rem; color:var(--cream); opacity:.7; position:relative; z-index:2; }
.dev-credit{ margin-top:50px; font-family:'EB Garamond', serif; font-size:.9rem; color:var(--gold-light); opacity:.7; position:relative; z-index:2; }
.dev-email{ margin-top:10px; font-family:'EB Garamond', serif; font-size:.8rem; color:var(--gold-light); opacity:.7; position:relative; z-index:2; }
