/* ================= RESET ================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Poppins',sans-serif;
background:#f6f2f9;
color:#4b3b6b;
overflow-x:hidden;
}

/* ================= SECTION BESAR (HERO ATAS) ================= */

#sectionBesar{
height:100vh;
background:linear-gradient(135deg,#e9dcff,#f6f2f9);
display:flex;
align-items:center;
justify-content:center;
text-align:center;
position:relative;
}

#sectionBesar .pembungkus p{
letter-spacing:3px;
font-size:14px;
margin-bottom:10px;
}

#sectionBesar h1{
font-family:'Great Vibes',cursive;
font-size:70px;
color:#7c5fb3;
margin-bottom:15px;
}

/* ================= SECTION KECIL ================= */

#sectionKecil{
background:#ffffff;
position:relative;
padding:0;
}

/* ================= OPENING ================= */

.cover{
position:fixed;
top:0;
left:0;
width:100%;
height:100vh;
background:url("../images/floral.jpg") center/cover no-repeat;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
z-index:9999;
text-align:center;
}

.cover h1{
font-family:'Great Vibes',cursive;
font-size:55px;
color:#7c5fb3;
}

.btn-primary{
margin-top:25px;
padding:14px 40px;
border:none;
border-radius:50px;
background:linear-gradient(135deg,#8e6bbd,#b89adf);
color:white;
cursor:pointer;
font-size:15px;
box-shadow:0 10px 25px rgba(142,107,189,0.4);
transition:0.3s ease;
}

.btn-primary:hover{
transform:translateY(-3px);
}

/* ================= AYAT ================= */

.ayat{
padding:100px 20px;
text-align:center;
max-width:800px;
margin:auto;
}

.ayat h2{
font-family:'Playfair Display',serif;
font-size:32px;
margin-bottom:20px;
color:#7c5fb3;
}

/* ================= MEMPELAI ================= */

.mempelai{
padding:120px 20px;
text-align:center;
background:#f9f4ff;
}

.mempelai h2{
font-family:'Playfair Display',serif;
font-size:38px;
margin-bottom:50px;
color:#7c5fb3;
}

.couple{
display:flex;
justify-content:center;
gap:80px;
flex-wrap:wrap;
}

.person{
text-align:center;
}

.person img{
width:240px;
height:240px;
border-radius:50%;
object-fit:cover;
box-shadow:0 15px 40px rgba(0,0,0,0.1);
transition:0.4s ease;
}

.person img:hover{
transform:scale(1.05);
box-shadow:0 20px 60px rgba(142,107,189,0.35);
}

.person h3{
margin-top:20px;
font-size:22px;
color:#7c5fb3;
}

/* ================= ACARA ================= */

.acara{
padding:120px 20px;
text-align:center;
}

.acara h3{
font-family:'Playfair Display',serif;
margin-bottom:10px;
color:#7c5fb3;
}

.akad,.resepsi{
margin-bottom:40px;
padding:25px;
background:#f0eaf7;
border-radius:20px;
max-width:400px;
margin-left:auto;
margin-right:auto;
}

.countdown{
margin-top:40px;
}

.timer{
display:flex;
justify-content:center;
gap:30px;
margin-top:20px;
}

.timer div{
background:#f0eaf7;
padding:15px 20px;
border-radius:15px;
}

.timer span{
font-size:28px;
font-weight:bold;
display:block;
}

/* ================= LOKASI ================= */

.lokasi{
padding:120px 20px;
text-align:center;
background:#f9f4ff;
}

.lokasi iframe{
width:100%;
max-width:800px;
height:350px;
border-radius:25px;
border:0;
box-shadow:0 15px 40px rgba(0,0,0,0.1);
}

/* ================= GALERI ================= */

.galeri{
padding:120px 20px;
text-align:center;
}

.gallery{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
gap:15px;
max-width:900px;
margin:auto;
}

.gallery img{
width:100%;
border-radius:20px;
cursor:pointer;
transition:0.4s;
}

.gallery img:hover{
transform:scale(1.05);
}

/* ================= LIGHTBOX ================= */

#lightbox{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.85);
display:none;
align-items:center;
justify-content:center;
z-index:99999;
}

#lightbox img{
max-width:90%;
max-height:85%;
border-radius:20px;
}

#closeLightbox{
position:absolute;
top:20px;
right:30px;
font-size:35px;
color:white;
cursor:pointer;
}

/* ================= RSVP ================= */

.rsvp{
padding:120px 20px;
text-align:center;
background:#f0eaf7;
}

.rsvp h2{
font-family:'Playfair Display',serif;
margin-bottom:30px;
color:#7c5fb3;
}

.wishes-form{
max-width:500px;
margin:auto;
display:flex;
flex-direction:column;
gap:15px;
text-align:left;
}

.wishes-form input,
.wishes-form textarea{
padding:12px;
border-radius:10px;
border:1px solid #ccc;
}

.wishes-form button{
padding:12px;
border:none;
border-radius:30px;
background:#8e6bbd;
color:white;
cursor:pointer;
}

#wishesList{
margin-top:30px;
display:flex;
flex-direction:column;
gap:15px;
}

.wish-item{
background:white;
padding:15px;
border-radius:15px;
box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

/* ================= HADIAH ================= */

.hadiah{
padding:120px 20px;
text-align:center;
}

.rekening{
margin-top:20px;
background:#f0eaf7;
padding:20px;
border-radius:20px;
display:inline-block;
}

/* ================= PENUTUP ================= */

.penutup{
padding:120px 20px;
text-align:center;
background:#f9f4ff;
}

.penutup h1{
font-family:'Great Vibes',cursive;
font-size:45px;
color:#7c5fb3;
}

/* ================= MUSIC DISC ================= */

#musicControl{
position:fixed;
bottom:20px;
right:20px;
width:80px;
height:80px;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
z-index:2000;
}

.vinyl-disc{
width:80px;
height:80px;
border-radius:50%;
background:
  radial-gradient(circle at center,#1c1c1c 40%,#000 75%),
  repeating-radial-gradient(
    circle,
    rgba(255,255,255,0.12) 2px,
    rgba(255,255,255,0.12) 4px,
    transparent 6px,
    transparent 8px
  );
display:flex;
align-items:center;
justify-content:center;
animation:spinVinyl 2s linear infinite;
animation-play-state:paused;
}

#musicControl.playing .vinyl-disc{
animation-play-state:running;
}

.vinyl-label{
width:36px;
height:36px;
background:#b89adf;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:11px;
color:white;
}

@keyframes spinVinyl{
from{transform:rotate(0deg);}
to{transform:rotate(360deg);}
}

/* ================= FLOWER ================= */

#flower-container{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
pointer-events:none;
overflow:hidden;
z-index:2;
}

.flower{
position:absolute;
top:-100px;
animation-name:fall;
animation-timing-function:linear;
animation-fill-mode:forwards;
}

@keyframes fall{
0%{transform:translateY(0) rotate(0deg);}
100%{transform:translateY(110vh) rotate(360deg);}
}

/* ================= RESPONSIVE ================= */

@media (max-width:768px){

#sectionBesar h1{
font-size:40px;
}

.couple{
flex-direction:column;
gap:40px;
}

.person img{
width:200px;
height:200px;
}

.timer{
flex-direction:column;
gap:15px;
}

}

/* ===== LOKASI FIX CLEAN ===== */

html, body {
overflow-x: hidden;
}

.lokasi {
overflow: hidden;
padding:120px 20px;
background:#f9f4ff;
text-align:center;
}

.lokasi h2{
margin-bottom:40px;
font-family:'Playfair Display',serif;
color:#7c5fb3;
}

.map-wrapper{
width:100%;
max-width:700px;      /* batas lebar */
margin:0 auto;        /* ini yang bikin center */
border-radius:30px;
overflow:hidden;
box-shadow:0 20px 60px rgba(0,0,0,0.12);
}

.map-wrapper iframe {
width: 100%;
height: 400px;
border: 0;
display: block;
}

.map-button{
display:inline-block;
margin-top:20px;
padding:12px 30px;
background:linear-gradient(135deg,#8e6bbd,#b89adf);
color:white;
border-radius:30px;
text-decoration:none;
transition:0.3s;
}

.map-button:hover{
transform:translateY(-3px);
box-shadow:0 10px 25px rgba(142,107,189,0.4);
}

.wish-item:empty{
display:none;
}

.cover{
transition:opacity 0.6s ease;
}

/* ================= SCROLL TO TOP ================= */

#scrollTopBtn{
position:fixed;
bottom:110px; /* di atas music button */
right:25px;
width:50px;
height:50px;
border:none;
border-radius:50%;
background:linear-gradient(135deg,#8e6bbd,#b89adf);
color:white;
font-size:20px;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
box-shadow:0 8px 25px rgba(142,107,189,0.4);
opacity:0;
visibility:hidden;
transform:translateY(20px);
transition:0.3s ease;
z-index:1999;
}

#scrollTopBtn.show{
opacity:1;
visibility:visible;
transform:translateY(0);
}

#scrollTopBtn:hover{
transform:translateY(-3px);
}

.rsvp-success{
  background:#ede6f7;
  padding:15px;
  border-radius:12px;
  text-align:center;
  margin-bottom:20px;
  color:#2e7d32;
  font-weight:500;
}

/* ================= COMMENT PREMIUM STYLE ================= */

#wishesList{
  margin-top:30px;
  display:flex;
  flex-direction:column;
  gap:18px;
  max-height:400px;
  overflow-y:auto;
  padding-right:8px;
}

#wishesList::-webkit-scrollbar{
  width:6px;
}

#wishesList::-webkit-scrollbar-thumb{
  background:#b89adf;
  border-radius:10px;
}
.comment-wrapper{
  display:flex;
  gap:15px;
  align-items:flex-start;
}

.avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  background:#7c5fb3; /* warna lebih solid */
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  font-size:16px;
  flex-shrink:0;
  box-shadow:0 6px 15px rgba(124,95,179,0.4);
}

.comment-content{
  background:#ffffff;
  padding:18px;
  border-radius:18px;
  flex:1;
  border:1px solid #eee;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.comment-name{
  font-weight:600;
  font-size:15px;
  margin-bottom:4px;
}

.comment-attendance{
  font-size:12px;
  margin-bottom:10px;
  padding:3px 10px;
  display:inline-block;
  border-radius:20px;
  background:#f0eaf7;
  color:#7c5fb3;
}

.comment-message{
  font-size:14px;
  line-height:1.6;
  color:#444;  
}

.comment-content:hover{
  transform:translateY(-3px);
  transition:0.3s ease;
}

/* ================= WEDDING GIFT FIX ================= */

.gift-section{
  background:#b89adf;
  color:white;
  padding:100px 20px;
  text-align:center;
  margin-top:80px; /* Biar kepisah dari gallery */
}

.gift-container{
  max-width:650px;
  margin:0 auto;
}

.gift-section h2{
  font-family:'Great Vibes', cursive;
  font-size:42px;
  margin-bottom:25px;
  font-weight:400;
}

.gift-section p{
  font-size:16px;
  line-height:1.8;
  margin-bottom:18px;
  opacity:0.95;
}

.gift-button{
  margin-top:30px;
  padding:14px 35px;
  border:none;
  border-radius:40px;
  background:white;
  color:#7c5fb3;
  font-weight:600;
  cursor:pointer;
  transition:0.3s ease;
  box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.gift-button:hover{
  transform:translateY(-3px);
}

/* ================= CLOSING FIX ================= */

.closing-section{
  padding:120px 20px;
  text-align:center;
  background:linear-gradient(to bottom,#f6f0ff,#ffffff);
  margin-top:80px; /* Pisah dari gift */
}

.closing-container{
  max-width:750px;
  margin:0 auto;
}

.closing-title{
  font-family:'Playfair Display', serif;
  font-size:40px;
  margin-bottom:30px;
  font-weight:600;
}

.closing-text{
  font-size:16px;
  line-height:1.9;
  margin-bottom:30px;
  opacity:0.9;
}

.closing-salam{
  font-weight:600;
  margin-bottom:35px;
}

.closing-sub{
  margin-bottom:12px;
  font-weight:500;
}

.closing-name{
  font-family:'Great Vibes', cursive;
  font-size:48px;
  color:#7c5fb3;
  font-weight:400;
}

/* ================= GIFT MODAL ================= */

.gift-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  animation:fadeIn 0.3s ease;
}

.gift-modal-content{
  background:white;
  width:90%;
  max-width:500px;
  border-radius:20px;
  padding:35px 25px;
  text-align:center;
  position:relative;
  max-height:85vh;
  overflow-y:auto;
}

.gift-close{
  position:absolute;
  top:15px;
  right:20px;
  font-size:22px;
  cursor:pointer;
}

.gift-modal h2{
  font-family:'Great Vibes', cursive;
  font-size:36px;
  margin-bottom:20px;
}

.gift-desc{
  font-size:14px;
  line-height:1.7;
  margin-bottom:25px;
}

.bank-card{
  background:#f7f3ff;
  padding:18px;
  border-radius:15px;
  margin-bottom:20px;
  box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.bank-card h3{
  margin-bottom:8px;
}

.rekening{
  font-weight:600;
  letter-spacing:1px;
  margin-bottom:5px;
}

.bank-card button{
  margin-top:10px;
  padding:8px 18px;
  border:none;
  border-radius:20px;
  background:#7c5fb3;
  color:white;
  cursor:pointer;
}

.bank-card button:hover{
  opacity:0.85;
}

.qris-section{
  margin-top:25px;
}

.qris-section img{
  width:180px;
  margin:10px 0;
  border-radius:12px;
  box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

.wa-button{
  display:block;
  margin-top:25px;
  padding:12px;
  border-radius:30px;
  background:#25D366;
  color:white;
  text-decoration:none;
  font-weight:600;
}

.wa-button:hover{
  opacity:0.9;
}

@keyframes fadeIn{
  from{opacity:0}
  to{opacity:1}
}