
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: 'Segoe UI', sans-serif;
}

.hidden {
  display: none;
}

.pembuka-awalan {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('../../images/simple/bgawal.webp') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pembuka-awalan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(22, 22, 22, 0.5); /* ubah opacity sesuai kebutuhan */
  z-index: 2;
}


.pembuka-awalan .content {
  position: relative;
  z-index: 3;
  color: #fff;
  padding: 0 20px;
}

.pembuka-awalan .subtitle {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-family: 'CG';
}

.pembuka-awalan .couple-names {
  font-family: 'ML';
  font-size: 5rem;
  margin: 1.5rem 0;
}

.pembuka-awalan .invitation {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-family: 'Poppins';
}

.recipient-name {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: 'Poppins';
    font-weight: bold;
  }

.pembuka-awalan .invited {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  font-family: 'Poppins';
  color: #eccfac;
}

.pembuka-awalan .open-btn {
  background: #b49c7e;
  color: white;
  padding: 12px 44px;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.pembuka-awalan .open-btn:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .pembuka-awalan .couple-names {
    font-size: 2.2rem;
  }

  .pembuka-awalan .invitation {
    font-size: 0.95rem;
  }

  .pembuka-awalan .invited {
    font-size: 1rem;
  }

  .pembuka-awalan .open-btn {
    padding: 10px 30px;
    font-size: 0.9rem;
  }
}


#vinylControl {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

/* Animasi vinyl muter */
#vinylControl.playing {
  animation: spin 4s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsif Mobile */
@media (max-width: 768px) {
  #vinylControl {
    width: 50px;
    height: 50px;
    bottom: 15px;
    left: 15px;
  }
}
/*CLOSINGAN VINLY*/


/* COUNTDOWN TANGGAL */
.section-tanggal {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url('../../images/simple/bgtimersimplelegant.webp') no-repeat center center;
  background-size: cover;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay-tanggal {
  background-color: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
  padding: 50px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tanggal-container {
  max-width: 800px;
  width: 100%;
}

.wedding-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-family: 'CG';
}

.wedding-names {
  font-family: 'ML';
  font-size: 3.5rem;
  margin-bottom: 2rem;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 20px 0;
  margin-bottom: 1rem;
}

.time-box {
  display: flex;
  flex-direction: column;
}

.time-box div {
  font-size: 2rem;
  font-weight: bold;
  font-family: 'Poppins';
}

.time-box span {
  font-size: 0.9rem;
  margin-top: 4px;
  color: #ddd;
}

.wedding-date {
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: 3rem;
  font-weight: bold;
  font-family: 'Poppins';
}

/* Responsive COUNTDOWN TANGGAL*/
@media (max-width: 600px) {
  .wedding-title {
    font-size: 1.5rem;
    font-family: 'CG';
    margin-bottom: -30px;
}
  .countdown {
    flex-direction: row;
    justify-content: space-between;
    max-width: 300px;
    margin: 0 auto 1rem auto;
    padding: 20px 10px;
    gap: 10px;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
  }

  .time-box {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .time-box div {
    font-size: 1.5rem;
  }

  .wedding-date {
    font-size: 1.1rem;
    font-weight: 400;
    color: white;
  }
}

/* AYAT */

.ayat {
  background-color: #222121;
  color: #f0f0f0;
  text-align: center;
  padding: 60px 20px 60px 20px;
}

.ayat .isi-ayat {
  font-size: 1.2rem;
  max-width: 750px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  font-family: 'CG';
  margin-bottom: 7px;
}

.ayat .judul-ayat {
  font-size: 1.2rem;
  max-width: 750px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  font-family: 'Poppins';
  font-weight: bold;
}

.garis {
  width: 100%;
  height: 0.5px; 
  background-color: white;
  opacity: 0.3;
}

.ayat .judul-beloved .judul-kecil {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 8px;
  margin-top: 50px;
  font-family: 'Montr';
}

.ayat .judul-beloved .judul-besar {
  font-size: 3.5rem;
  font-weight: bold;
  font-family: 'CG';
  color: #d0b49f;
  margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .ayat {
    padding: 40px 15px 60px 15px;
  }

  .ayat .isi-ayat {
    font-size: 1.2rem;
  }

  .ayat .judul-beloved .judul-kecil {
    font-size: 1rem;
  }

  .ayat .judul-beloved .judul-besar {
    font-size: 3rem;
  }
}


/* PROFILE GROOM N BRIDES */

#groom {
  width: 100%;
  height: 100vh;
}

.groom-container {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.groom-left {
  background-color: white;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 5rem;
  font-family: 'Playfair Display', serif;
  color: #222;
  margin: 0;
  transform: scale(1.4); 
}

.groom-right {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.groom-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.groom-text-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.nama-dekorasi {
  font-family: 'ML';
  font-size: 3rem;
  margin: 0;
}

.nama-full {
  font-family: 'Poppins';
  font-size: 2rem;
  margin: 0;
}

.fullname {
  font-family: 'Poppins';
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.desc {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.ig-link {
  color: white !important;
  font-size: 24px;
}

.ig-link:hover {
  color: #ffb600 !important;
}


.ig-link:hover .ig-icon {
  color: #ffb600;
}

#bride {
  width: 100%;
  height: 100vh;
}

.bride-container {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.bride-left {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.bride-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bride-text-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.bride-right {
  background-color: white;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  color: #222;
  margin: 0;
}

.desc {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}


/* Responsive */
@media (max-width: 768px) {
  .groom-container {
    flex-direction: row;
  }

  .bride-container {
    flex-direction: row; /* <=== ini KUNCI-nya */
  }

  .groom-left,
  .bride-right {
    flex: 0 0 auto;
    width: 100px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .groom-right,
  .bride-left {
    flex: 1;
    position: relative;
  }

  .groom-photo,
  .bride-photo {
    width: 100%;
    height: 100vh;
    object-fit: cover;
  }

  .groom-text-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    text-align: left;
  }

  .bride-text-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    text-align: left;
  }

  .vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    color: #222;
    margin: 0;
  }

  .name-script {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    margin: 0;
  }

  .nama-full {
    font-size: 1.5rem;
    margin: 0.25rem 0;
  }

  .desc {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .ig-link .ig-icon {
    width: 20px;
    height: 20px;
  }
}


/* WHEN AND WHERE SECTION */
.wedding-card-section {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem; 
  background-color: #222121; 
}

.card-container {
  background-color: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  margin-top: 1rem; 
}

.image-header {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.image-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay Text Image */
.overlay-text {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: #fff;
}

.overlay-text .sub-title {
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'Poppins';
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.overlay-text .main-title {
  font-family: 'ML';
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Holy Matrimony Content */
.matrimony-content {
  padding: 4rem 2rem;
  text-align: center;
}

.matrimony-icon i {
  font-size: 2.5rem;
  color: #d0b49f;
  margin-bottom: 1rem;
}

.judul-HM {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
  font-family: 'Poppins';
}

hr {
  border: none;
  height: 1px;
  background-color: #888;
  margin: 1rem auto;
  width: 60%;
}

.matrimony-info p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #ddd;
  font-family: 'poppins';
}

.map-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 12px 55px;
  background: #b49c7e;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.map-button:hover {
  opacity: 0.9;
}

.rules{
  color: white;
  font-family: 'Poppins';
  font-size: 15px;
  margin-top: 30px;
  font-weight: bold;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1300px;
  width: 100%;
}

/* MOBILE */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}


.foto {
  padding: 3rem 1rem;
  background-color: #fff;
  text-align: center;
}

.foto-title {
  font-size: 1rem;
  color: #2e2e2e;
  margin-bottom: 2rem;
  font-family: 'MontR';
}

.foto-title .moments {
  font-size: 2.5rem;
  display: block;
  margin-top: 0.3rem;
  color: #000;
}

.foto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.foto-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.foto-grid img:hover {
  transform: scale(1.02);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.lightbox-nav span {
  font-size: 3rem;
  color: #fff;
  padding: 0 1rem;
  cursor: pointer;
  user-select: none;
}


/* CSS HADIAH*/
.hadiah {
  background-color: #242424;
  text-align: center;
  padding: 4rem 1rem;
  color: white;
}

.hadiah-title {
  font-size: 2.5rem;
  font-family: 'ML';
  margin-bottom: 1rem;
}

.hadiah-title span {
  font-family: inherit;
  font-size: 2.5rem;
}

.hadiah-desc {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  color: #fff;
  font-family: 'Poppins';
}

.hadiah-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hadiah-container {
    grid-template-columns: 1fr 1fr;
  }
}

.hadiah-card {
  background-color: #1e1e1e;
  color: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hadiah-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  font-family: 'MontR';
}

.nama-rek {
  font-family: 'Poppins';
}

.rekening {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-family: 'MontR';
}

.hadiah-card button {
  display: block;
  margin: 1rem auto;
  padding: 0.5rem 1.2rem;
  background-color: #ffffff;
  color: #242424;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  font-family: 'Poppins';
  font-size: 15px;
}

.copy-norek {
color: #242424;
}

.hadiah-card button:hover {
  opacity: 0.9;
}

.whatsapp-btn {
  display: block;
  margin: 1rem auto;
  padding: 0.5rem 1.2rem;
  background-color: #ffffff;
  color: #242424;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  font-family: 'Poppins';
  font-size: 12px;
  text-decoration: none;
  max-width: 70%;
}

.whatsapp-btn:hover {
  opacity: 0.9;
}

.whatsapp-btn i {
  font-size: 1rem;
}


.penutup {
  background: url('../../images/simple/closing.webp') center center / cover no-repeat;
  padding: 5rem 1rem;
  color: white;
  text-align: center;
  position: relative;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.penutup-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.thanks-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Poppins';
}

.thanks-names {
  font-size: 2.5rem;
  margin: 0;
}

.thanks-names span {
  margin: 0 0.3rem;
}

.family-label {
  font-weight: bold;
  margin: 2rem 0 0.5rem;
  font-size: 1rem;
  font-family: 'Poppins';
}

.family-name {
  line-height: 1.6;
  font-size: 0.95rem;
  font-family: 'Poppins';
}

/* FOOTER */
#site-footer {
  background-color: white;
  padding: 10px 0;
  text-align: center;
  border-top: 1px solid #eee;
  
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  font-family: 'Poppins';
}

.footer-content img {
  height: 24px;
  width: auto;
}

/* ================= RSVP ================= */
.form-wrapper {
  background: #212020;
  padding: 60px 0; /* Menambah padding atas-bawah agar lebih seimbang */
}

/* MENYAMAKAN CONTAINER UTAMA */
.rsvp-section, 
.wish-section {
  max-width: 600px; /* Lebar dikecilkan ke 600px agar terlihat lebih elegan/compact */
  margin: 40px auto; 
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  box-sizing: border-box; /* Memastikan padding tidak menambah lebar */
}

/* MEMBERSIHKAN MARGIN ATAS RSVP */
.rsvp-section {
  margin-top: 0; 
}

.rsvp-title, 
.wish-title {
  font-size: 2.2rem;
  color: #000000;
  margin-bottom: 0.5rem;
  font-family: 'ML';
  text-transform: uppercase;
  letter-spacing: 2px;
}

.rsvp-subtitle, 
.wish-subtitle {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  color: #444;
  font-family: 'Playfair Display', serif;
  line-height: 1.6;
}

/* MENYAMAKAN FORM & INPUT */
.rsvp-form, 
.wish-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%; /* Pastikan form memenuhi container */
  margin: 0 auto;
}

.rsvp-input-name,
.rsvp-input-guest,
.wish-input-name,
.wish-input-text {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  box-sizing: border-box; /* Sangat penting agar padding tidak merusak lebar */
  transition: border 0.3s ease;
  background-color: #f9f9f9;
}

.rsvp-input-name:focus, 
.wish-input-text:focus {
  border-color: #000;
  outline: none;
  background-color: #fff;
}

/* MENYAMAKAN TOMBOL */
.rsvp-btn-send, 
.wish-btn-send {
  width: 100%; /* Lebar penuh mengikuti input */
  padding: 1.1rem;
  background: #000000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-family: 'Playfair Display', serif;
}

.rsvp-btn-send:hover, 
.wish-btn-send:hover {
  background: #333;
  transform: translateY(-2px);
}

/* LIST UCAPAN */
.wish-list {
  margin-top: 2.5rem;
  text-align: left;
  max-height: 400px; 
  overflow-y: auto;
  padding-right: 0.5rem; 
  font-family: 'Playfair Display', serif;
}

.wish-item {
  background-color: #f1f1f1;
  padding: 1.2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid #000; /* Aksen biar lebih premium */
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .rsvp-section, 
  .wish-section {
    max-width: calc(100% - 32px); /* Memberikan margin kiri-kanan 16px */
    padding: 1.5rem;
    margin: 20px auto;
  }
  
  .rsvp-title, .wish-title {
    font-size: 1.8rem;
  }
}
/* ===============================
   ANIMATION : SECTION TANGGAL
   =============================== */

/* keadaan awal (sembunyi) */
.section-tanggal .anim-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s ease;
}

/* saat aktif */
.section-tanggal.show .anim-item {
  opacity: 1;
  transform: translateY(0);
}

/* delay bertahap */
.section-tanggal.show .anim-1 { transition-delay: 0.2s; }
.section-tanggal.show .anim-2 { transition-delay: 0.4s; }
.section-tanggal.show .anim-3 { transition-delay: 0.6s; }
.section-tanggal.show .anim-4 { transition-delay: 0.8s; }

/* ===============================
   ANIMATION : AYAT CINEMATIC
   =============================== */

.ayat .anim-ayat {
  transform: translateY(20px) scale(0.98);
  filter: blur(6px);
  transition:
    transform 1.1s cubic-bezier(.19,1,.22,1),
    filter 1.1s ease;
  will-change: transform, filter;
}

/* state aktif */
.ayat.show .anim-ayat {
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* delay lembut */
.ayat.show .anim-1 { transition-delay: 0.15s; }
.ayat.show .anim-2 { transition-delay: 0.45s; }


/* ===============================
   ANIMATION : GROOM & BRIDE
   =============================== */

/* FOTO */
.groom-photo,
.bride-photo {
  transform: scale(1.05);
  transition: transform 1.4s cubic-bezier(.19,1,.22,1);
  will-change: transform;
}

/* TEXT OVERLAY */
.groom-text-overlay > *,
.bride-text-overlay > * {
  transform: translateY(24px);
  transition: transform 1.1s cubic-bezier(.19,1,.22,1);
  will-change: transform;
}

/* VERTICAL TEXT */
.vertical-text {
  transform: translateY(40px);
  transition: transform 1.2s cubic-bezier(.19,1,.22,1);
  will-change: transform;
}

/* ===============================
   ACTIVE STATE
   =============================== */

#groom.show .groom-photo,
#bride.show .bride-photo {
  transform: scale(1);
}

#groom.show .groom-text-overlay > *,
#bride.show .bride-text-overlay > * {
  transform: translateY(0);
}

#groom.show .vertical-text,
#bride.show .vertical-text {
  transform: translateY(0);
}

/* ===============================
   STAGGER DELAY (HALUS & RAPI)
   =============================== */

.groom-text-overlay h3,
.bride-text-overlay h3 { transition-delay: 0.2s; }

.groom-text-overlay h4,
.bride-text-overlay h4 { transition-delay: 0.35s; }

.groom-text-overlay .desc,
.bride-text-overlay .desc { transition-delay: 0.5s; }

.groom-text-overlay .ig-link,
.bride-text-overlay .ig-link { transition-delay: 0.65s; }

.vertical-text { transition-delay: 0.15s; }


/* ===============================
   ANIMATION : WHERE & WHEN CARD
   =============================== */

/* state awal */
.anim-card {
  transform: translateY(50px) scale(0.97);
  filter: blur(8px);
  transition:
    transform 1.2s cubic-bezier(.19,1,.22,1),
    filter 1.2s ease;
  will-change: transform, filter;
}

/* aktif saat masuk viewport */
.anim-card.show {
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* sedikit stagger biar cinematic */
.anim-card:nth-child(1) { transition-delay: 0.15s; }
.anim-card:nth-child(2) { transition-delay: 0.35s; }

/* ===== REVEAL BASE ===== */
.reveal-title,
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

/* aktif */
.reveal-title.show,
.reveal-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* sedikit beda feel */
.reveal-title {
  transition-delay: 0.1s;
}

.reveal-item {
  transition: all 0.6s ease;
}

/* ===== HADIAH REVEAL BASE ===== */
.reveal-title,
.reveal-desc,
.reveal-card {
  opacity: 0;
  transform: translateY(24px);
}

/* judul */
.reveal-title {
  transition: all 0.9s ease;
}

/* deskripsi */
.reveal-desc {
  transition: all 0.9s ease;
  transition-delay: 0.15s;
}

/* card */
.reveal-card {
  transform: translateY(30px) scale(0.97);
  transition: all 0.8s ease;
}

/* aktif */
.reveal-title.show,
.reveal-desc.show,
.reveal-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* hover tetap soft */
.hadiah-card:hover {
  transform: translateY(-6px);
  transition: transform 0.4s ease;
}

/* ===== PENUTUP REVEAL ===== */
.reveal-penutup .reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

/* aktif */
.reveal-penutup .reveal-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* nama pengantin sedikit lebih “hidup” */
.thanks-names {
  letter-spacing: 0.08em;
  transition: all 1.1s ease;
}

/* spacing supaya lega */
.penutup-inner {
  text-align: center;
  padding: 100px 20px;
}


/* ===== FORM REVEAL ===== */
.reveal-form .reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.9s ease;
}

.reveal-form .reveal-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
  width: 200px; /* Lebar area loading */
  text-align: center;
}

/* Logo Favicon */
.loader-logo {
  width: 40px;
  height: auto;
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease;
}

/* Progress Bar Container */
.progress-container {
  width: 100%;
  height: 2px; /* Tipis biar elegan */
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

/* Progress Bar Inner */
.progress-bar {
  width: 0%; /* Start dari 0 */
  height: 100%;
  background: #1a1a1a; /* Warna bar gelap premium */
  transition: width 0.4s ease; /* Transisi pas nambah % */
}

.loading-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888888;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}


/* LOVE STORY CSS */
.love-story {
  background-color: #222121;
  padding: 80px 20px;
  color: #fff;
  text-align: center;
}

.section-title {
  font-family: 'ML';
  font-size: 3.5rem;
  color: #d0b49f;
  margin-bottom: 50px;
}

.story-timeline {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.story-item {
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: left;
}

.story-item.reverse {
  flex-direction: row-reverse;
  text-align: right;
}

.story-img {
  flex: 1;
}

.story-img img {
  width: 100%;
  border-radius: 15px;
  filter: grayscale(30%);
  border: 1px solid #b49c7e;
}

.story-text {
  flex: 1;
}

.story-text h3 {
  font-family: 'CG';
  font-size: 1.8rem;
  color: #d0b49f;
  margin-bottom: 10px;
}

.story-text p {
  font-family: 'Poppins';
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ddd;
}

/* DRESSCODE CSS */
.dresscode-section {
  background: url('../../images/simple/bgdates.webp') no-repeat center center/cover;
  padding: 80px 20px;
  position: relative;
}

.dresscode-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Overlay gelap agar teks terbaca */
}

.dresscode-container {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(208, 180, 159, 0.3);
  text-align: center;
  color: #fff;
}

.dresscode-title {
  font-family: 'CG';
  font-size: 2.5rem;
  color: #d0b49f;
}

.dresscode-desc {
  font-family: 'Poppins';
  margin-bottom: 30px;
}

.color-palette {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.color-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-circle span {
  font-size: 0.7rem;
  font-family: 'Poppins';
  color: #888;
  margin-top: 80px;
}

.attire-info {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
}

.info-item i {
  font-size: 1.5rem;
  color: #d0b49f;
  margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .story-item, .story-item.reverse {
    flex-direction: column;
    text-align: center;
  }
  .section-title { font-size: 2.5rem; }
  .color-palette { gap: 10px; }
  .color-circle { width: 50px; height: 50px; }
  .attire-info { flex-direction: column; gap: 20px; }
}