:root{
  --bg: #f6ead7;
  --bg2: #f2dfc2;
  --gold: #c4902f;
  --gold-dark: #8c5c13;
  --maroon: #6d0f1a;
  --brown: #4a2d1b;
  --white: #fffaf4;
  --shadow: 0 20px 60px rgba(0,0,0,0.18);
}

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

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Poppins', sans-serif;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.45), transparent 30%),
    linear-gradient(180deg, #f8ebd7 0%, #f0dcc0 100%);
  color:var(--brown);
  overflow-x:hidden;
  position:relative;
}

/* particles */
.particles::before,
.particles::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    radial-gradient(circle, rgba(255, 220, 130, 0.95) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 210, 110, 0.8) 1px, transparent 1.7px);
  background-size: 180px 180px, 220px 220px, 260px 260px;
  animation: sparkleMove 30s linear infinite;
  z-index:0;
  opacity:.7;
}
.particles::after{
  animation-duration:45s;
  opacity:.45;
}

@keyframes sparkleMove{
  from{transform:translateY(0);}
  to{transform:translateY(-120px);}
}

/* petals */
.petals{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:1;
  overflow:hidden;
}
.petals span{
  position:absolute;
  top:-80px;
  width:18px;
  height:28px;
  background:linear-gradient(180deg,#ffd2df,#ffadc8);
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  opacity:.8;
  filter:blur(.2px);
  animation: fall linear infinite;
}
.petals span:nth-child(1){left:5%; animation-duration:12s; animation-delay:0s;}
.petals span:nth-child(2){left:15%; animation-duration:15s; animation-delay:3s;}
.petals span:nth-child(3){left:28%; animation-duration:13s; animation-delay:1s;}
.petals span:nth-child(4){left:40%; animation-duration:16s; animation-delay:4s;}
.petals span:nth-child(5){left:52%; animation-duration:14s; animation-delay:2s;}
.petals span:nth-child(6){left:65%; animation-duration:18s; animation-delay:5s;}
.petals span:nth-child(7){left:74%; animation-duration:12s; animation-delay:2s;}
.petals span:nth-child(8){left:82%; animation-duration:15s; animation-delay:6s;}
.petals span:nth-child(9){left:90%; animation-duration:14s; animation-delay:1s;}
.petals span:nth-child(10){left:96%; animation-duration:17s; animation-delay:3s;}

@keyframes fall{
  0%{
    transform:translateY(-80px) rotate(0deg) translateX(0);
    opacity:0;
  }
  10%{opacity:.85;}
  50%{transform:translateY(50vh) rotate(180deg) translateX(20px);}
  100%{
    transform:translateY(110vh) rotate(360deg) translateX(-30px);
    opacity:0;
  }
}

/* generic */
.container{
  width:min(1150px, 92%);
  margin:auto;
  position:relative;
  z-index:2;
}

.section{
  padding:90px 0;
  position:relative;
  z-index:2;
}

.section-title{
  text-align:center;
  margin-bottom:45px;
}
.section-title h2{
  font-family:'Cinzel', serif;
  font-size:clamp(28px, 4vw, 46px);
  color:var(--maroon);
  margin-bottom:12px;
}
.gold-line{
  width:120px;
  height:3px;
  margin:auto;
  background:linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius:10px;
  box-shadow:0 0 20px rgba(196,144,47,.5);
}

.main-btn, .outline-btn{
  display:inline-block;
  padding:14px 28px;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  transition:.35s ease;
  font-size:15px;
}
.main-btn{
  background:linear-gradient(135deg, #d7a23f, #a86b18);
  color:white;
  box-shadow:0 10px 25px rgba(168,107,24,.35);
}
.main-btn:hover{
  transform:translateY(-3px) scale(1.02);
  box-shadow:0 18px 35px rgba(168,107,24,.4);
}
.outline-btn{
  border:1.5px solid var(--gold);
  color:var(--gold-dark);
  background:rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
}
.outline-btn:hover{
  transform:translateY(-3px);
  background:rgba(255,255,255,.6);
}

/* hero */
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  position:relative;
  padding:100px 20px;
  overflow:hidden;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.4), transparent 35%),
    linear-gradient(180deg, rgba(255,248,237,.5), rgba(242,223,194,.7));
}

.hero::before{
  content:"";
  position:absolute;
  inset:20px;
  border:1.5px solid rgba(196,144,47,.5);
  border-radius:30px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.25),
    0 0 40px rgba(196,144,47,.18);
}

.hero-overlay{
  position:absolute;
  width:600px;
  height:600px;
  background:radial-gradient(circle, rgba(255,227,163,.45), transparent 60%);
  filter:blur(20px);
  animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow{
  0%,100%{transform:scale(1);}
  50%{transform:scale(1.12);}
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:900px;
  padding:40px 28px;
  border-radius:30px;
  background:rgba(255,250,244,.32);
  backdrop-filter: blur(10px);
  box-shadow:var(--shadow);
  border:1px solid rgba(196,144,47,.25);
  animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-8px);}
}

.topline{
  letter-spacing:3px;
  color:var(--brown);
  font-size:13px;
  margin-bottom:18px;
  font-weight:500;
}

.names{
  font-family:'Great Vibes', cursive;
  font-size:clamp(54px, 8vw, 110px);
  color:var(--maroon);
  line-height:1.1;
  text-shadow:0 6px 25px rgba(109,15,26,.18);
}
.names span{
  color:var(--gold-dark);
}

.country-line{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:16px;
  margin:18px 0 24px;
  font-family:'Cinzel', serif;
  font-size:clamp(20px, 2vw, 28px);
  color:#0f5b52;
  flex-wrap:wrap;
}
.country-line .heart{
  color:#8b1021;
  font-size:28px;
  animation: heartbeat 1.5s infinite;
}
@keyframes heartbeat{
  0%, 100%{transform:scale(1);}
  25%{transform:scale(1.15);}
  50%{transform:scale(1);}
  75%{transform:scale(1.12);}
}

.tagline{
  max-width:700px;
  margin:0 auto 28px;
  font-size:17px;
  line-height:1.8;
  color:#5a4130;
}

.scroll-indicator{
  position:absolute;
  bottom:28px;
  left:50%;
  transform:translateX(-50%);
  width:28px;
  height:48px;
  border:2px solid rgba(140,92,19,.5);
  border-radius:20px;
  z-index:2;
}
.scroll-indicator span{
  display:block;
  width:6px;
  height:10px;
  background:var(--gold-dark);
  border-radius:10px;
  margin:8px auto;
  animation:scrollDot 1.6s infinite;
}
@keyframes scrollDot{
  0%{transform:translateY(0); opacity:1;}
  100%{transform:translateY(16px); opacity:0;}
}

/* story */
.story-card{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:30px;
  background:rgba(255,250,244,.6);
  backdrop-filter: blur(8px);
  border:1px solid rgba(196,144,47,.2);
  border-radius:28px;
  padding:35px;
  box-shadow:var(--shadow);
}

.story-left h3{
  font-family:'Cinzel', serif;
  font-size:28px;
  color:var(--maroon);
  margin-bottom:18px;
}
.story-left p{
  line-height:1.9;
  color:#5c4637;
  margin-bottom:14px;
}

.story-right{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:18px;
}

.culture-box{
  width:100%;
  padding:28px 20px;
  text-align:center;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,.7), rgba(247,233,212,.7));
  border:1px solid rgba(196,144,47,.25);
  box-shadow:0 12px 30px rgba(0,0,0,.08);
}
.culture-box h4{
  font-family:'Cinzel', serif;
  color:var(--gold-dark);
  font-size:28px;
  margin-bottom:10px;
}
.culture-box p{
  color:#5f4a3a;
}
.culture-heart{
  font-size:32px;
  color:var(--maroon);
  animation:heartbeat 1.5s infinite;
}

/* details */
.details-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:25px;
}

.detail-card{
  background:rgba(255,250,244,.6);
  backdrop-filter: blur(10px);
  border-radius:26px;
  padding:35px 24px;
  text-align:center;
  border:1px solid rgba(196,144,47,.25);
  box-shadow:var(--shadow);
  transform-style:preserve-3d;
  transition:.35s ease;
}
.detail-card:hover{
  transform:translateY(-8px) rotateX(6deg);
}
.detail-icon{
  font-size:40px;
  margin-bottom:14px;
}
.detail-card h3{
  font-family:'Cinzel', serif;
  color:var(--maroon);
  margin-bottom:12px;
}
.detail-card p{
  color:#5c4637;
  line-height:1.8;
}
.detail-card .highlight{
  font-weight:700;
  color:var(--gold-dark);
  font-size:22px;
}

/* countdown */
.countdown-box{
  display:flex;
  justify-content:center;
  gap:22px;
  flex-wrap:wrap;
}

.time-box{
  width:170px;
  min-height:160px;
  background:linear-gradient(180deg, rgba(255,250,244,.75), rgba(248,235,215,.55));
  border-radius:24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  box-shadow:var(--shadow);
  border:1px solid rgba(196,144,47,.22);
  transition:.3s ease;
}
.time-box:hover{
  transform:translateY(-6px);
}
.time-box span{
  font-family:'Cinzel', serif;
  font-size:52px;
  color:var(--maroon);
}
.time-box small{
  margin-top:8px;
  color:var(--gold-dark);
  font-weight:600;
  letter-spacing:1px;
}

/* invite */
.invite-card{
  max-width:900px;
  margin:auto;
  text-align:center;
  padding:50px 32px;
  border-radius:28px;
  background:rgba(255,250,244,.58);
  border:1px solid rgba(196,144,47,.2);
  backdrop-filter: blur(10px);
  box-shadow:var(--shadow);
}
.invite-card h2{
  font-family:'Great Vibes', cursive;
  color:var(--maroon);
  font-size:58px;
  margin-bottom:18px;
}
.invite-card p{
  font-size:17px;
  line-height:1.9;
  color:#5c4637;
}
.invite-card .quote{
  margin-top:18px;
  font-family:'Cinzel', serif;
  color:var(--gold-dark);
  font-size:20px;
}

/* RSVP */
.rsvp-section{
  text-align:center;
}
.rsvp-text{
  color:#5c4637;
  margin-bottom:24px;
  font-size:17px;
}
.rsvp-buttons{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}

/* footer */
.footer{
  padding:45px 20px 60px;
  text-align:center;
  position:relative;
  z-index:2;
}
.footer h2{
  font-family:'Great Vibes', cursive;
  font-size:56px;
  color:var(--maroon);
}
.footer p{
  color:#6b5444;
  margin-top:8px;
}
.footer-line{
  color:var(--gold-dark);
  margin-top:16px;
}

/* music button */
.music-btn{
  position:fixed;
  top:20px;
  right:20px;
  z-index:50;
  border:none;
  background:linear-gradient(135deg, #d7a23f, #a86b18);
  color:white;
  padding:12px 18px;
  border-radius:999px;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(168,107,24,.35);
  font-weight:600;
}

/* reveal animation */
.section, .hero-content, .story-card, .detail-card, .invite-card, .time-box{
  opacity:0;
  transform:translateY(40px);
  transition: all .8s ease;
}
.show{
  opacity:1 !important;
  transform:translateY(0) !important;
}

/* responsive */
@media (max-width: 992px){
  .story-card{
    grid-template-columns:1fr;
  }

  .details-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 768px){
  .hero{
    padding:90px 16px;
  }

  .hero-content{
    padding:28px 18px;
  }

  .names{
    font-size:60px;
  }

  .country-line{
    font-size:20px;
  }

  .tagline{
    font-size:15px;
  }

  .section{
    padding:70px 0;
  }

  .invite-card h2{
    font-size:42px;
  }

  .time-box{
    width:140px;
    min-height:140px;
  }

  .time-box span{
    font-size:42px;
  }
}

@media (max-width: 480px){
  .topline{
    font-size:11px;
    letter-spacing:2px;
  }

  .names{
    font-size:48px;
  }

  .story-card,
  .invite-card,
  .detail-card{
    padding:24px 18px;
  }

  .time-box{
    width:130px;
  }
}