:root {
  --Background: #fff; /* Ivory/Cream yang hangat */
  --text: #333333; /* Abu-abu sangat gelap, lebih lembut dari hitam */
  --accent: #c0a062; /* Aksen Emas (untuk highlight jika perlu) */
  --primary-brown: #af8f53; /* Emas yang lebih matang untuk tombol & judul */
  --dark-brown: #79653d; /* Bayangan emas untuk hover/detail */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #686868;
  margin: 5px;
  line-height:1.5;
  size-adjust:100%;
  -moz-tab-size:4;
  tab-size:4;
  font-family:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings:normal;
  font-variation-settings:normal;
  -webkit-tap-highlight-color:#ff000000
}

body {
  height: 100%;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.lock-scroll {
  overflow: hidden;
}

.hidden {
  display: none;
}

/* Hero & Animasi Awal */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.5)
  );
  z-index: 1;
}

#hero1 {
  position: fixed; /* HANYA COVER YANG FIXED */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  transition: opacity 1s ease, visibility 1s ease;
}

#hero1.hide {
  opacity: 0;
  visibility: hidden; /* Sembunyikan sepenuhnya */
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 600px;
}

.hero-text h1 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.hero-text p,
.hero-text h2 {
  font-size: 1rem;
}

.btn-undangan {
  margin-top: 20px;
  padding: 12px 24px;
  background: white;
  color: var(--text);
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  border: none;
}
/* --- AKHIR PERUBAHAN PENTING --- */


/* Section Kutipan */
.section-kutipan {
  background-image: url('../gmb/bg-rounded.png');
  padding: 40px 20px;
  text-align: center;
  color: #333333;
  font-family: Georgia, serif;
}

.section-kutipan blockquote {
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 500px;
}

.section-kutipan .quote-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
}

.section-kutipan cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-weight: bold;
}

/* Section Mempelai & Simbol '&' */
.section-mempelai {
  text-align: center;
  padding: 10px 20px;
  background-image: url('../gmb/bg-rounded.png');
  object-fit: contain;
  color: var(--text);
}

.and-symbol {
  font-size: 3.5rem;
  color: var(--primary-brown);
  font-family: "Playfair Display", serif;
  text-align: center;
  padding: 30px 0;
  background-image: url('../gmb/bg-rounded.png');
  object-fit: contain;
}

.invite-text {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.photo-wrapper {
  margin: 0 auto 20px;
  border: solid 2px #00000024;
  padding: 5px;
  border-radius: 8px;
  width: 50%;
  height: auto;
  overflow: hidden;
  box-shadow: -3px 3px 3px rgb(0 0 0 / 18%);
}

.photo-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  
}

.nama-mempelai {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-brown);
  margin-bottom: 10px;
}

.info-keluarga {
  font-size: 1rem;
  color: var(--dark-brown);
  margin-bottom: 20px;
}

.ig-icon {
  font-size: 1.2rem;
  background-color: var(--primary-brown);
  color: white;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
}

.ig-icon:hover {
  transform: scale(1.1);
}

/* Section Save Date */
.section-save-date {
  background-image: url('../gmb/bg-rounded.png');
  text-align: center;
  padding: 40px 20px;
  color: var(--text);
}

.save-date-img img {
  width: 100%;
  max-width: 300px;
  border: solid 2px #af8f53;
  padding: 8px;
  border-top-left-radius: 50% 40%;
  border-top-right-radius: 50% 40%;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.save-date-title {
  margin-top: 10px;
  font-size: 1.5rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.countdown div {
  background-color: var(--primary-brown);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  min-width: 60px;
  font-size: 0.9rem;
}

.detail-akad h3 {
  font-size: 1.4rem;
  color: var(--primary-brown);
  margin-bottom: 5px;
}

.detail-akad p {
  margin: 5px 0;
}

.detail-akad .alamat {
  font-size: 0.9rem;
  color: var(--dark-brown);
  line-height: 1.5;
}

.detail-resepsi h3 {
  font-size: 1.4rem;
  color: var(--primary-brown);
  margin-bottom: 5px;
}

.detail-resepsi p {
  margin: 5px 0;
}

.detail-resepsi .alamat {
  font-size: 0.9rem;
  color: var(--dark-brown);
  line-height: 1.5;
}

.btn-lokasi {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 8px 15px;
  border: 1px solid var(--primary-brown);
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  background-color: var(--primary-brown);
  transition: all 0.3s ease;
}

.btn-lokasi:hover {
  background-color: #fff;
  color: var(--primary-brown);
}

/* Section Love Story */
.section-love-story {
  background-image: url('../gmb/bg-rounded.png');
  object-fit: contain;
  padding: 60px 20px;
  color: var(--text);
  text-align: center;
  margin: 10px;
  border-radius: 20px;
  border: solid 3px #00000047;
  box-shadow: -3px 3px 3px #00000024;
}

.title-love-story {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #af8f53;
  font-family: "Playfair Display", serif;
}

.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 700px;
  margin: 0 auto;
}

.story-item {
  background-color: #ffffff75;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: solid 2px #00000024;
}

.story-item h3 {
  font-size: 1.2rem;
  color: var(--primary-brown);
  margin-bottom: 10px;
}

.story-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Section Gallery */
.section-gallery {
  padding: 40px 20px;
  background-image: url('../gmb/bg-rounded.png');

  object-fit: contain;
  text-align: center;
  color: var(--text);
  margin: 10px;
  border: solid 3px #00000047;
  box-shadow: -3px 3px 3px #00000024;
}

.gallery-intro {
  margin-bottom: 20px;
  font-size: 1rem;
  max-width: 600px;
  margin-inline: auto;
}

.gallery-grid {
  display: grid;
  /* Ubah menjadi 2 kolom yang sama besar */
  grid-template-columns: repeat(2, 1fr); 
  gap: 15px;
  /* Hapus atau sesuaikan width 50% jika ingin gallery lebih lebar */
  width: 100%; 
  max-width: 1000px; /* Opsional: Agar tidak terlalu lebar di layar besar */
  margin: 0 auto 20px;
}

.gallery-item img,
.gallery-landscape img {
  padding: 5px;
  border: solid 2px #adadad;
  width: 100%;
  height: 100%; /* Pastikan mengisi area grid */
  object-fit: cover; /* Agar gambar tidak gepeng */
  border-radius: 12px;
  display: block; /* Hindari whitespace di bawah gambar */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.gallery-item img:hover,
.gallery-landscape img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsif: 1 Kolom untuk HP */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* Section Ucapan - RSVP */
.section-bagian-rsvp {
  background-image: url('../gmb/bg-rounded.png');
  object-fit: contain;
  height: 500px;
  padding: 60px 20px;
  color: var(--text);
  text-align: center;
}


/* Section Wedding Gift */
.gift-wrapper {
  border-radius: 20px;
  margin: 10px;
  background-image: url('../gmb/bg-rounded.png');
  border: solid 2px #00000038;
  box-shadow: -3px 3px 3px #00000024;
}

.gift-button-container {
  text-align: center;
  color: #000;
  padding: 80px 20px;
}

.gift-button-container h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.btn-gift {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  border: 2px solid #000;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  background-color: #000000d1;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-gift:hover {
  background-color: #000000;
  color: #fff;
}

.gift-section {
  padding: 40px 20px;
  background-color: var(--primary-brown);
  display: none; /* Default state */
  opacity: 0;
  transition: opacity 0.8s ease;
  background-image: url('../gmb/bg-rounded.png');
}

.gift-section.show {
  display: block;
  opacity: 1;
  border-radius: 18px;
}

.gift-card {
  position: relative;
  background-size: cover;
  background-position: center;
  width: 100%;
  max-width: 320px;
  height: 200px;
  margin: 20px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.gift-card.show {
  opacity: 1;
  transform: translateY(0);
}

.gift-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.gift-info {
  position: relative;
  z-index: 2;
  color: white;
  padding: 20px;
  text-align: left;
}

.bank-logo {
  width: 50px;
  position: absolute;
  top: 16px;
  right: 16px;
}

.no-rek {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 80px 0 4px;
  letter-spacing: 1px;
}

.nama-rek {
  font-size: 1rem;
  margin-bottom: 10px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-color: #ffffff88;
  color: #000;
  border: none;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  font-size: 10px;
}

.btn-copy:hover {
  background-color: #ffffffcc;
}

/* Section Komentar */
.comment-section {
  padding: 50px 20px;
  background: var(--primary-brown);
  font-family: "Poppins", sans-serif;
  color: white;
}

.comment-section h2 {
  margin-bottom: 3px;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
}
.comment-section p {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.comment-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.status {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
  font-weight: bold;
}

#commentForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-inline: auto;
}

#commentForm input,
#commentForm textarea,
#commentForm select {
  padding: 12px;
  font-size: 14px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: "Poppins", sans-serif;
}

#commentForm button {
  padding: 12px;
  font-weight: bold;
  background-color: white;
  color: var(--primary-brown);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#commentForm button:hover {
  background-color: #f0e9e0;
}

#commentsList {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
  max-width: 600px;
  margin-inline: auto;
}

#commentsList .comment {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
}

#commentsList .comment-name {
  font-weight: bold;
  margin-bottom: 5px;
}

#commentsList .comment-status {
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  background-color: rgba(0, 0, 0, 0.2);
}

#commentsList .comment-message {
  font-size: 0.9rem;
  line-height: 1.5;
}

#commentsList::-webkit-scrollbar {
  width: 6px;
}

#commentsList::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

#commentsList::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}

/* Penutup & Footer */
.penutup {
  background-image: url('../gmb/bg-rounded.png');
  text-align: center;
  padding: 60px 20px;
  color: var(--text);
}

.penutup img {
  width: 100%;
  max-width: 300px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 20px;
  padding: 8px;
  border: solid 2px #af8f539c;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.penutup .small {
  font-size: 2rem;
}
.penutup p {
  font-size: 1rem;
  margin: 10px 0;
  max-width: 600px;
  margin-inline: auto;
}
.penutup h1 {
  font-size: 1.2rem;
  color: var(--primary-brown);
  margin: 20px 0 10px;
}
.penutup h3 {
  font-size: 2rem;
  font-family: "Great Vibes", cursive;
  color: var(--dark-brown);
}

footer {
  background-image: url('../gmb/bg-rounded.png');
  border-radius: 10px;
  padding-top: 14px;
  border: solid 2px #00000036;
  text-align: center;
}
footer .socials {
  padding: 1rem 0;
}
footer .socials a {
  color: var(--dark-brown);
  margin: 1rem;
}
footer .socials a:hover {
  color: var(--text);
}
footer .credit {
  font-size: 0.8rem;
}
footer .credit a {
  color: var(--dark-brown);
  font-weight: 700;
}

/* Music Toggle */
.music-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  z-index: 999;
  cursor: pointer;
  display: none; /* Muncul via JS */
  place-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}
.music-toggle:hover {
  transform: scale(1.1);
}

.music-toggle svg.feather {
  stroke: var(--dark-brown);
  width: 20px;
  height: 20px;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-wrapper {
    width: 50%;
  }
  .nama-mempelai {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.2rem;
  }
  .hero-text p,
  .hero-text h2 {
    font-size: 0.9rem;
  }
  .btn-undangan {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .photo-wrapper {
    width: 50%;
  }
  .nama-mempelai {
    font-size: 1.4rem;
  }
  .countdown div {
    min-width: 45px;
    padding: 8px 10px;
    font-size: 0.75rem;
  }
  .gallery-grid {
     grid-template-columns: repeat(2, 1fr);
  }
}








.modal-dialog {
  max-width:500px;
  margin:auto;
  padding:.5rem;
  height:100%;
}
.modal-content {
  overflow:auto
}
.btn-close {
  text-decoration:none;
  width:48px;
  height:48px;
  border-radius:100%;
  background-color:rgba(255,0,0,.282);
  color:#fff;
  position:fixed;
  bottom:20px;
  left:calc(50% - 24px);
  display:flex;
  justify-content:center;
  align-items:center;
}
.rsvp-placeholder {
  position:relative;
  max-height:calc(100vh - 150px);
  overflow:auto;
  font-family:sans-serif;
}
.rsvp-placeholder .rsvp-form {
  padding:0 20px!important;
}
.rsvp-placeholder .rsvp-form .mb-4,
.no-menu .countdown {
  display:none
}
.countdown {
  display:flex;
  gap:8px;
}
.countdown-item {
  width:100%;
  background-color:#1c1d1f;
  color:var(--btn-color);
  padding: 10px 14px 10px -14px;
  border-radius: 12px 0px 12px 0px;
  border: solid 3px #3b3b3b;
}
.countdown-item .number {
  font-size:1.35rem;
  line-height:1.2;
  font-weight:700;
}

.comment {
  width:100%;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.comment .comment-item {
  flex:none;
  width:100%;
  padding:.5rem;
  border-radius:.5rem;
  border:1px solid #f3f3f3;
  background-color:#fff;
  color:#131313;
}

.btn-primary {
  background-color:#1c1d1f;
  color:#fff;
  border-radius:.6rem;
  border: solid 2px #c5cbcd;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active {
  background-color:#131513;
  border-color:#e7f8ff;
  color:#fff;
  box-shadow:var(--inv-accent)!important;
}

.floating-action {
  max-width:500px;
  margin:auto;
  position:absolute;
  right:20px;
  bottom:120px;
  gap:12px;
}
.btn-float {
  height:40px;
  width:40px;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:0;
  border-radius:10rem;
  background-color:#bd9556;
  border-color:#ffffff;
  color:#000;
  opacity:.7;
}

/* Section Love Story */
.section-kirim-ucapan {
  background-color: var(--Background);
  padding: 60px 20px;
  color: var(--text);
  text-align: center;
}

.ph-fill.ph-clock-countdown:before {
content: "\ea44";
}
.ph-fill.ph-clock-countdown:before {
content: "\ea44";
}








/* Animasi Umum */
.animate-on-scroll,
.animate-top,
.animate-bottom,
.section-kutipan,
.and-symbol {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.show,
.section-kutipan.show,
.and-symbol.show {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll {
  transform: translateY(30px);
}
.animate-top {
  transform: translateY(-30px);
}
.animate-bottom {
  transform: translateY(30px);
}

.animate-top.show,
.animate-bottom.show {
  opacity: 1;
  transform: translateY(0);
}