:root {
  --primary-color: #d4af37;
  --primary-dark: #b5952f;
  --text-dark: #333333;
  --text-light: #777777;
  --bg-light: #fafafa;
  --white: #ffffff;
  --font-heading: "Playfair Display", serif;
  --font-body: "Montserrat", sans-serif;
  --font-script: "Great Vibes", cursive;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}
body.locked-scroll {
  overflow: hidden;
}

/* --- COVER SCREEN --- */
.cover-screen {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80") center/cover;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  transition:
    transform 1s ease-in-out,
    opacity 1s ease-in-out;
}
.cover-screen.hide {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.cover-content h3 {
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.cover-content h1 {
  font-family: var(--font-script);
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.tamu-undangan {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 1rem 0 2rem 0;
}
.btn-cover {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}
.btn-cover:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* --- FLOATING NAV MENU --- */
.floating-nav {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 25px;
  border-radius: 30px;
  display: flex;
  gap: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 90;
  transition: opacity 0.5s ease;
  backdrop-filter: blur(5px);
  border: 1px solid #f0f0f0;
}
.floating-nav.hide {
  opacity: 0;
  pointer-events: none;
}
.floating-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  transition: 0.3s;
}
.floating-nav a:hover {
  transform: translateY(-3px);
}

/* --- PAGE 1 (HERO) --- */
.page1 {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80") center/cover fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}
.hometext h3 {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 4px;
  color: white;
  text-transform: uppercase;
}
.h1home {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.h1home h1 {
  font-family: var(--font-script);
  font-size: 6rem;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* --- PAGE 2 (COUPLE) --- */
.page2 {
  min-height: 100vh;
  background-color: var(--bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem;
}
.box {
  background-color: var(--white);
  width: 100%;
  max-width: 1000px;
  border-radius: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 4rem 2rem;
}
.textpage2 {
  text-align: center;
  margin-bottom: 4rem;
}
.textpage2 h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.textpage2 h3 {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}
.fototext {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  text-align: center;
}
.foto {
  width: 250px;
  height: 350px;
  border-radius: 125px 125px 0 0;
  border: 3px solid var(--primary-color);
  padding: 8px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
}
.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 115px 115px 0 0;
  transition: 0.5s;
}
.foto img:hover {
  transform: scale(1.05);
}
.fototext h1 {
  font-family: var(--font-script);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.fototext h2 {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  margin: 0.5rem 0;
}
.fototext h3 {
  font-size: 0.85rem;
  color: var(--text-light);
}
.icon {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}
.icon box-icon {
  fill: var(--primary-color);
  transition: 0.3s;
}
.icon box-icon:hover {
  fill: var(--primary-dark);
  transform: scale(1.1);
}

/* --- PAGE 3 (EVENT) --- */
.page3 {
  min-height: 100vh;
  background: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dalam h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}
.salam {
  display: flex;
  gap: 15px;
  justify-content: center;
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.gabungan h3 {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 2rem;
}
.tanggal-nikah {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

#countdown {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.time-box {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 10px;
  min-width: 100px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 3px solid var(--primary-color);
}
.time-box span {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  font-weight: bold;
  color: var(--primary-color);
  display: block;
}
.time-box small {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.fotoresepsi {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.fotonya1,
.fotonya2 {
  width: 100%;
  max-width: 380px;
  padding: 3rem 2rem;
  border-radius: 15px;
  background: var(--bg-light);
  border: 1px solid rgba(212, 175, 55, 0.2);
  text-align: center;
}
.fotonya1 h1,
.fotonya2 h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin: 1rem 0;
}
.fotonya1 h4,
.fotonya2 h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.fotonya1 h5,
.fotonya2 h5 {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: normal;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-group-event {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.btn-group-event button {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-group-event button:hover {
  background: var(--primary-color);
  color: white;
}
.btn-group-event button:hover box-icon {
  fill: white;
}

/* Dresscode */
.dresscode-box {
  margin-top: 4rem;
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 15px;
  border: 1px dashed var(--primary-color);
  display: inline-block;
  max-width: 500px;
}
.dresscode-box h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0.5rem 0;
}
.dresscode-box p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.endtext {
  margin-top: 4rem;
  color: var(--text-light);
  font-size: 0.95rem;
  font-style: italic;
}

/* --- PAGE 4 (GALLERY) --- */
.page4 {
  padding: 6rem 2rem;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bungkuspg4 {
  width: 100%;
  max-width: 1000px;
  text-align: center;
}
.bungkuspg4 > h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
}
.foto-nikah {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-bottom: 3rem;
}
.group-galery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.foto-nikah img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.3s;
}
.foto-nikah img:hover {
  transform: scale(1.03);
}
.kutipan-ayat {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-light);
  font-style: italic;
}
.kutipan-ayat h2 {
  margin-top: 1rem;
  color: var(--primary-color);
  font-weight: bold;
  font-family: var(--font-heading);
}

/* --- PAGE 5 (GIFT) --- */
.page5 {
  padding: 6rem 2rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.judul-kado {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
  text-align: center;
}
.gift {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1000px;
}
.digital-wallet,
.Ofline {
  background: var(--bg-light);
  border-radius: 15px;
  padding: 2.5rem;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.header h2,
.Ofline h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.header h3,
.Ofline p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.wallet-container p,
.wallet-container2 p {
  font-weight: bold;
  color: var(--text-dark);
}
.rekening-box,
.rekening-box2 {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  margin: 0.5rem 0 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px dashed var(--primary-color);
  cursor: pointer;
  transition: 0.3s;
}
.rekening-box:hover,
.rekening-box2:hover {
  background: #fdfaf2;
}
.Ofline .button button {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.7rem 2rem;
  border-radius: 30px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: 0.3s;
}
.Ofline .button button:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* --- PAGE 6 (RSVP & GUESTBOOK) --- */
.page6 {
  padding: 6rem 2rem 8rem 2rem;
  background: var(--bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
}
.box-pesan {
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  width: 100%;
  max-width: 650px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.box-pesan h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.input1 input,
.input2 textarea,
.input-kehadiran select {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  margin-bottom: 1rem;
  background: var(--bg-light);
  transition: 0.3s;
}
.input1 input:focus,
.input2 textarea:focus,
.input-kehadiran select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.input-kehadiran {
  display: flex;
  gap: 10px;
}
.input-kehadiran select {
  color: var(--text-dark);
  cursor: pointer;
}

.kirim button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
  margin-top: 1rem;
}
.kirim button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* GUESTBOOK KOTAK UCAPAN */
.guestbook-container {
  margin-top: 3rem;
  text-align: left;
  border-top: 1px solid #eee;
  padding-top: 2rem;
}
.guestbook-container h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}
.guestbook-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}
.guestbook-list::-webkit-scrollbar {
  width: 5px;
}
.guestbook-list::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

.guest-item {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary-color);
}
.guest-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.badge-hadir {
  background: #d4af37;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: normal;
}
.badge-absen {
  background: #999;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: normal;
}
.guest-item p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --- MUSIC PLAYER --- */
.music-container {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
  animation: spin 4s linear infinite;
  animation-play-state: paused;
}
.music-container.playing {
  animation-play-state: running;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 768px) {
  .h1home h1,
  .cover-content h1 {
    font-size: 4rem;
  }
  .fototext {
    gap: 2rem;
  }
  .time-box {
    min-width: 70px;
    padding: 1rem;
  }
  .time-box span {
    font-size: 1.8rem;
  }
  .box,
  .digital-wallet,
  .Ofline,
  .box-pesan {
    padding: 1.5rem;
  }
  .input-kehadiran {
    flex-direction: column;
    gap: 0;
  }
  .btn-group-event {
    flex-direction: column;
  }
  .floating-nav {
    bottom: 15px;
    padding: 10px 15px;
    gap: 15px;
  }
  .music-container {
    top: 20px;
    right: 20px;
  }
}
