/* RESET & BASE */
*{margin:0;padding:0;box-sizing:border-box}
html,body{
  height:100%;
  overflow-x:hidden;
  background:linear-gradient(to bottom,#fdfbfb,#f5f2ed);
  color:#444;
  font-family:'Noto Sans KR', 'Cormorant Garamond', sans-serif;
  font-weight:300;
  line-height:1.8;
}

/* Cherry blossom falling */
.sakura{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:2;
  overflow:hidden;
}
.sakura::before{
  content:'';
  position:absolute;
  top:-100px;
  left:0;
  width:100%;
  height:200%;
  background:url('/background/korean.png') repeat;
  background-size:120px;
  animation:fall 20s linear infinite;
  opacity:0.6;
}
@keyframes fall{
  0%{transform:translateY(-100%);}
  100%{transform:translateY(100%);}
}

/* LANDING PAGE */
/* ================================
   LANDING PAGE + IMAGE OVERLAY
================================= */

/* Block utama landing page */
#landing {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fdfbfb;
  transition: opacity 1s ease;
  overflow: hidden; /* penting untuk jaga overlay tetap rapi */
}

/* Gambar PNG dari bawah, full width */
#landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/background/cherry.png') bottom center / cover no-repeat;
  opacity: 0.55;           /* transparansi gambar */
  z-index: 1;              
  pointer-events: none;
}

/* Overlay glow putih di atas gambar */
.overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3), #fdfbfb 80%);
  z-index: 1;
}

/* Konten tetap berada di paling atas */
.landing-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 90vw;
}

/* Typography */
.subtitle {
  font-family:'Playfair Display',serif;
  font-size:clamp(1.2rem,3vw,1.6rem);
  letter-spacing:6px;
  color:#d4a5a5;
  margin-bottom:1.5rem;
  font-weight:400;
}

.title {
  font-family:'Playfair Display',serif;
  font-size:clamp(4rem,12vw,9rem);
  line-height:1.1;
  color:#333;
  margin:1rem 0;
}

.date {
  font-size:clamp(1.4rem,4vw,2rem);
  letter-spacing:8px;
  color:#b08d8d;
  margin:2rem 0;
  font-weight:300;
}

/* Button Open */
#openBtn {
  padding:14px 60px;
  background:transparent;
  border:1.5px solid #d4a5a5;
  color:#d4a5a5;
  border-radius:50px;
  font-size:1.2rem;
  letter-spacing:2px;
  cursor:pointer;
  transition:all .4s;
  font-family:'Noto Sans KR',sans-serif;
  font-weight:300;
}

#openBtn:hover {
  background:#d4a5a5;
  color:#fff;
  transform:scale(1.05);
}

/* ================================
   RESPONSIVE GAMBAR LANDING
================================= */
@media (max-width: 1024px) {
  #landing::before {
    background-size: cover;
    opacity: 0.22; /* sedikit lebih soft */
  }
}

@media (max-width: 480px) {
  #landing::before {
    background-size: cover;
    opacity: 0.20;
  }
}






/* MAIN CONTENT */
#main{
  position:relative;
  z-index:10;
  min-height:100vh;
  padding-top:5rem;
}
.container{
  max-width:900px;
  margin:0 auto;
  padding:4rem 2rem;
  text-align:center;
}
.main-title{
  font-family:'Playfair Display',serif;
  font-size:clamp(3rem,8vw,6rem);
  color:#5d4e4e;
  margin-bottom:1.5rem;
}
.desc{
  font-size:1.35rem;
  line-height:2;
  color:#666;
  margin:2rem 0;
}
.wedding-date{
  font-size:1.6rem;
  color:#b08d8d;
  letter-spacing:4px;
  margin-top:3rem;
}

/* Couple */
.couple{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4rem;
  flex-wrap:wrap;
  margin:6rem 0;
}
.card{
  background:#fff;
  padding:3rem 2.5rem;
  border-radius:20px;
  box-shadow:0 15px 40px rgba(0,0,0,0.05);
  width:100%;
  max-width:320px;
  border:1px solid #f0e8e2;
}
.card h3{
  font-family:'Playfair Display',serif;
  font-size:2.4rem;
  color:#5d4e4e;
  margin-bottom:1rem;
}
.card p{
  font-size:1.1rem;
  color:#777;
  line-height:1.8;
}
.ampersand{
  font-family:'Playfair Display',serif;
  font-size:clamp(4rem,10vw,6rem);
  color:#d4a5a5;
}

/* COUNTDOWN */
#timer{
  display:flex;
  justify-content:center;
  gap:1.5rem;
  flex-wrap:wrap;
  margin:4rem 0;
}
#timer > div{
  background:#fff;
  padding:1.8rem 2rem;
  border-radius:18px;
  min-width:100px;
  flex:1 1 90px;
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
  border:1px solid #f0e8e2;
  text-align:center;
}
#timer span{
  font-size:clamp(2rem,5vw,3.8rem);
  font-weight:300;
  color:#d4a5a5;
  display:block;
}
#timer small{
  font-size:0.9rem;
  color:#999;
  letter-spacing:2px;
}

/* Gallery */
.gallery .grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:2rem;
  margin:4rem 0;
}
.gallery img{
  border-radius:18px;
  box-shadow:0 15px 40px rgba(0,0,0,0.08);
  transition:transform .4s,box-shadow .4s;
  width:100%;
}
.gallery img:hover{
  transform:translateY(-8px);
  box-shadow:0 25px 50px rgba(0,0,0,0.12);
}

/* Section Title */
.section-title{
  font-family:'Playfair Display',serif;
  font-size:2.4rem;
  color:#5d4e4e;
  margin:3rem 0 1rem;
}

/* RSVP */
.rsvp form{
  max-width:560px;
  margin:4rem auto;
  display:grid;
  gap:1.2rem;
}
.rsvp input,
.rsvp select,
.rsvp textarea,
.rsvp button{
  padding:16px;
  border-radius:16px;
  border:1px solid #e8ddd5;
  background:#fff;
  color:#555;
  font-size:1.1rem;
  font-family:'Noto Sans KR',sans-serif;
}
.rsvp button{
  background:#d4a5a5;
  color:#fff;
  font-weight:400;
  cursor:pointer;
  transition:.3s;
}
.rsvp button:hover{
  background:#c58989;
}

/* Closing */
.quote{
  font-size:1.5rem;
  line-height:2.2;
  color:#666;
  font-style:italic;
  margin:4rem 0;
}
.author{
  color:#d4a5a5;
  margin:1.5rem 0;
  font-size:1.1rem;
}
.sign{
  font-size:1.8rem;
  color:#5d4e4e;
  margin-top:3rem;
  font-family:'Playfair Display',serif;
}

/* Music Button */
#musicBtn{
  position:fixed;
  top:30px;
  right:30px;
  z-index:999;
  background:#fff;
  border:1px solid #e8ddd5;
  color:#d4a5a5;
  padding:14px 24px;
  border-radius:50px;
  font-size:1.4rem;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  font-family:'Noto Sans KR',sans-serif;
  font-weight:300;
}
#musicBtn:hover{
  background:#d4a5a5;
  color:#fff;
}

/* Responsive */
@media (max-width:768px){
  .couple{flex-direction:column;gap:3rem}
  .ampersand{font-size:4rem}
  .landing-content .subtitle{font-size:1rem;letter-spacing:4px}
  .landing-content .title{font-size:clamp(3rem,10vw,6rem)}
  .landing-content .date{font-size:1.5rem;letter-spacing:6px}
  #openBtn{padding:12px 50px;font-size:1rem}
  #timer > div{min-width:80px;padding:1.5rem 1.8rem}
  #timer span{font-size:clamp(1.5rem,5vw,2.8rem)}
  #timer small{font-size:0.8rem}
}

@media (max-width:480px){
  .landing-content .subtitle{font-size:0.9rem;letter-spacing:3px}
  .landing-content .title{font-size:clamp(2.5rem,10vw,4.5rem)}
  .landing-content .date{font-size:1.2rem;letter-spacing:4px}
  #openBtn{padding:10px 40px;font-size:0.95rem}
}