/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #d1e9ff;
  font-family: 'Cormorant Garamond', serif;
  overflow-x: hidden;
}

.wrapper-magical {
  width: 100%;
  max-width: 450px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  background: #f0f8ff;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 1000; /* Menutupi konten utama sebelum dibuka */
}

.sky-bg-static {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.mobile-area {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 90vh;
  padding: 40px 20px;
  z-index: 20;
}

/* --- BINGKAI FOTO --- */
.main-frame-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 20px auto; /* Tambahkan auto agar tetap di tengah secara horizontal */
  aspect-ratio: 1 / 1; /* Kunci agar bingkai selalu kotak sempurna */
}

.photo-inside {
  position: absolute;
  /* Gunakan persentase yang sama untuk width dan height */
  width: 62%;
  height: 62%;

  /* RUMUS TENGAH: (100% - 72%) / 2 = 14% */
  top: 19%;
  left: 19%;

  overflow: hidden;
  border-radius: 50%;
  z-index: 12;

  /* Tambahkan ini untuk memastikan container foto tetap bulat */
  display: flex;
  align-items: center;
  justify-content: center;
}

.couple-img {
  width: 100%;
  height: 100%;
  /* KUNCI UTAMA: object-fit cover menjaga rasio foto asli */
  object-fit: cover;
  object-position: center;
  animation: slowZoom 15s infinite alternate ease-in-out;
  display: block;
}

.frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 13;
}

/* --- TEXT & BUTTON --- */
.couple-name {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: #105e8f;
  margin-top: 20px;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.guest-box {
  text-align: center;
}

.yth-text {
  font-size: 1rem;
  color: #105e8f;
  margin-bottom: 5px;
}

.guest-name {
  font-size: 1.8rem;
  color: #105e8f;
  margin-bottom: 20px;
  font-weight: 700;
}

.btn-magical {
  background: #105e8f;
  color: #fff;
  border: none;
  padding: 14px 35px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 94, 143, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.4s;
}

.btn-magical:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(16, 94, 143, 0.4);
}

/* --- ORNAMEN BUNGA HEADER & FOOTER (REUSABLE CLASS) --- */

/* Bunga Atas */
.flower-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px; /* Sesuaikan tinggi bunga kamu */
  background-image: url('../images/s2atas.png'); /* Ganti dengan file bunga atasmu */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  z-index: 30;
  pointer-events: none;
  animation: swaySoft 8s infinite ease-in-out;
}

/* Bunga Bawah */
.flower-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px; /* Sesuaikan tinggi bunga kamu */
  background-image: url('../images/s2bawah.png'); /* Ganti dengan file bunga bawahmu */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  z-index: 5;
  pointer-events: none;
  animation: swaySoft 8s infinite ease-in-out reverse;
}

/* Animasi Goyang Halus */
@keyframes swaySoft {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(5px) rotate(2deg);
  }
}

/* --- ANIMASI KEYFRAMES --- */
@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(8deg);
  }
}

/* Responsive Mobile */
@media screen and (max-height: 650px) {
  .main-frame-wrapper {
    width: 220px;
    height: 220px;
  }
  .couple-name {
    font-size: 2.5rem;
  }
}

/* EFEK BUNGA MENGHILANG */
/* .flower-fade {
  opacity: 0;
  transition: 2s ease;
} */

/* --- SECTION 2: MAIN CONTENT --- */
.main-content {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  display: none; /* Muncul setelah klik */
}

.moments-background,
.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bg-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.bg-slide.active {
  opacity: 1;
}

/* Lubang Awan */
.cloud-frame-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/bglubang.jpg');
  background-size: cover;
  background-position: center;
  z-index: 2;
  -webkit-mask-image: radial-gradient(circle, transparent 30%, black 65%);
  mask-image: radial-gradient(circle, transparent 30%, black 65%);
}

/* BUNGA SUDUT REUSABLE (Bisa dipakai di section lain) */
.flower-corner-new {
  position: absolute;
  width: 220px;
  height: 220px;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 10;
  pointer-events: none;
  animation: swayAngle 8s infinite ease-in-out;
}

.f-top-left-s2 {
  top: -30px;
  left: -30px;
  background-image: url('../images/s2sudutatas.png'); /* Ganti dengan file pojokmu */
  background-position: top left;
}

.f-bottom-right-s2 {
  bottom: -30px;
  right: -30px;
  background-image: url('../images/s2sudutbawah.png'); /* Ganti dengan file pojokmu */
  background-position: bottom right;
  transform: rotate(180deg);
}

@keyframes swayAngle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(5deg) scale(1.05);
  }
}

/* Teks & Timer */
.inner-hero {
  position: relative;
  z-index: 20;
  margin-top: 400px;
  text-align: center;
}
.happy-wedding-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; /* Sedikit diperbesar */
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #105e8f;
  margin-bottom: 5px;
  font-weight: bold;
  display: block;
}

/* Nama Pasangan Utama */
.couple-name-main {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem; /* Ukuran lebih tegas */
  color: #105e8f;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 15px rgba(255, 255, 255, 0.8); /* Shadow biar kebaca di atas foto */
}
.timer-display-modern {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.time-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 10px;
  min-width: 65px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.time-box .number {
  font-size: 1.6rem;
  font-weight: bold;
  color: #105e8f;
}
.time-box .label {
  font-size: 0.65rem;
  color: #105e8f;
  text-transform: uppercase;
}
/* --- ANIMASI HIDUP COUNTDOWN --- */

/* 1. Efek Kedip pada Angka Detik */
#seconds {
  animation: blinkText 1s infinite;
}

/* 2. Efek Bernapas (Glow) pada Kotak Waktu */
.time-box {
  animation: boxGlow 3s infinite ease-in-out;
  transition: all 0.3s ease;
}

/* --- LOGIKA KEYFRAMES --- */

/* Animasi untuk Teks Detik */
@keyframes blinkText {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3; /* Mengedip sampai agak transparan */
  }
}

/* Animasi untuk Glow pada Box */
@keyframes boxGlow {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transform: scale(1);
  }
  50% {
    border-color: #105e8f; /* Warna biru tema kamu */
    box-shadow: 0 0 15px rgba(16, 94, 143, 0.3);
    transform: scale(1.02); /* Sedikit membesar seolah bernapas */
  }
}
/* --- SECTION 3: SEPARATE STYLE --- */
.section-separate {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  display: none; /* Sembunyi awal, muncul lewat JS */
  background-image: url('../images/bglubang.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 25px;
  overflow: hidden;
  z-index: 60;
}

.opening-content {
  text-align: center;
  color: #105e8f;
}

.sub-title {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 40px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.main-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 600;
}

/* Bingkai Foto Tengah Section 3 (Sesuai Logic Section 1) */
.photo-mid-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 40px auto;
  aspect-ratio: 1 / 1;
}

.photo-cut {
  position: absolute;
  width: 62%; /* Sama dengan Section 1 permintaanmu */
  height: 62%;
  top: 19%;
  left: 19%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 12;
}

.photo-cut img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-mid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 13;
  pointer-events: none;
}

/* Teks Ayat */
.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-top: 20px;
}

.surah-info {
  font-weight: bold;
  margin-bottom: 40px;
  margin-top: 15px;
  font-size: 1.2rem;
}
/* --- STYLE SECTION 4 PROFIL --- */
.section-profil {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  display: none; /* Muncul lewat JS */
  background-image: url('../images/bglubang.jpg');
  background-size: cover;
  background-position: center;
  padding: 60px 20px; /* Padding samping dikurangi sedikit agar bisa rata kiri-kanan */
  overflow: hidden;
  z-index: 60;
}

.profile-main-container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.profile-item-row {
  display: flex;
  align-items: center;
  /* Kunci: agar elemen merata ke pinggir tapi bisa kita kontrol jarak tengahnya */
  justify-content: space-between;
  margin: 30px 0;
  gap: 5px; /* Jarak antara foto dan teks jadi lebih dekat */
  width: 100%;
}

.row-reverse {
  flex-direction: row-reverse;
}

/* Ukuran Bingkai disesuaikan agar muat bersandingan dengan teks di HP */
.frame-profile-main {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  /* Agar bingkai tidak terlalu keluar layar */
  margin: 0 -10px;
}

.photo-inside-profile {
  position: absolute;
  width: 62%;
  height: 62%;
  top: 19%;
  left: 19%;
  overflow: hidden;
  border-radius: 50%;
  z-index: 1;
}

.photo-inside-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-gold-asset {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.profile-info-text {
  flex: 1;
  color: #105e8f;
  /* Memberi sedikit ruang agar teks tidak nempel sekali ke pinggir layar */
  padding: 0 5px;
}

.name-display-couple {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.parents-info-couple {
  font-size: 1rem;
  line-height: 1.3;
}

.ig-link-couple {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: #105e8f;
  text-decoration: none;
  font-size: 1rem;
  border: 1px solid #105e8f;
  padding: 2px 10px;
  border-radius: 5px;
}

.ampersand-divider {
  font-family: 'Great Vibes', cursive;
  font-size: 3.5rem;
  text-align: center;
  margin: -10px 0;
  color: #105e8f;
}

/* ===============================
   PREMIUM ANIMATION (LUXURY)
================================ */

.premium-hidden {
  opacity: 0;
  transform: translateY(80px);
}

.premium-show {
  opacity: 1;
  transform: translateY(0);
  transition: all 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Slide arah */
.from-left {
  transform: translateX(-100px);
}
.from-right {
  transform: translateX(100px);
}

.from-left.premium-show,
.from-right.premium-show {
  transform: translateX(0);
}

/* Frame foto */
.frame-profile-main {
  opacity: 0;
  transform: scale(0.7) rotate(-6deg);
  transition: all 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.frame-profile-main.photo-show {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* Teks cascade */
.profile-info-text > * {
  opacity: 0;
  transform: translateY(25px);
}

.profile-info-text.text-show > * {
  opacity: 1;
  transform: translateY(0);
  transition: all 1.2s ease;
}

.profile-info-text.text-show > *:nth-child(1) {
  transition-delay: 0.4s;
}
.profile-info-text.text-show > *:nth-child(2) {
  transition-delay: 0.7s;
}
.profile-info-text.text-show > *:nth-child(3) {
  transition-delay: 1s;
}

/* Ampersand mewah */
.ampersand-divider {
  opacity: 0;
  transform: scale(0.4);
}

.ampersand-divider.amp-show {
  opacity: 1;
  transform: scale(1);
  transition: all 2s ease;
  animation: ampGlow 3s infinite;
}

@keyframes ampGlow {
  0% {
    text-shadow: 0 0 0 transparent;
  }
  50% {
    text-shadow: 0 0 18px rgba(16, 94, 143, 0.4);
  }
  100% {
    text-shadow: 0 0 0 transparent;
  }
}

/* --- SECTION 5: EVENT DETAILS --- */
.section-event {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;

  background-image: url('../images/bglubang.jpg');
  background-size: cover;
  background-position: center;
  padding: 60px 20px; /* Padding samping dikurangi sedikit agar bisa rata kiri-kanan */
  overflow: hidden;
  /* z-index: 60; */
}

.event-content-wrapper {
  position: relative;
  z-index: 10;
  text-align: center;
}

.couple-name-event {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: #105e8f;
  margin-top: -20px;
  margin-bottom: 40px;
}

/* Row Layout Kiri-Kanan */
.event-details-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
}

.event-col {
  flex: 1;
  color: #105e8f;
}

/* Pemisah Bunga di Tengah */
.event-divider-flower {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 50px;
}

.event-divider-flower img {
  width: 200%;
  height: auto;
  /* Efek rotasi agar bunga pemisah terlihat estetik */
  transform: rotate(27deg);
}

.event-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  border-bottom: 1px solid #105e8f;
  display: inline-block;
  padding-bottom: 5px;
}

.event-info {
  font-size: 1rem;
  line-height: 1.6;
}

.event-info p {
  margin-bottom: 8px;
  font-size: 1rem;
}

.event-info i {
  margin-right: 5px;
  font-size: 1rem;
}

.loc-text {
  font-weight: 500;
  margin-top: 10px;
}

.btn-maps-event {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 25px;
  padding: 6px 12px;
  border: 1px solid #105e8f;
  color: #105e8f;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 20px;
  transition: 0.3s;
}

.btn-maps-event:hover {
  background: #105e8f;
  color: #fff;
}
/* --- CSS TAMBAHAN UNTUK SAVE THE DATE --- */
.btn-save-date-premium {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #105e8f; /* Biru tema kamu */
  color: #fff;
  padding: 12px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-weight: bold;
  font-size: 1rem;
  /* margin-bottom: 30px; */
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(16, 94, 143, 0.3);
}

.btn-save-date-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 94, 143, 0.4);
  color: #fff;
}

/* --- TAMBAHAN SECTION 5: CLOSING & MAPS --- */

.flower-divider-bottom {
  margin: 20px auto;
  margin-bottom: -10px;
  width: 130px;
}
.flower-divider-bottom img {
  width: 100%;
}

.hope-text-container {
  padding: 0 20px;
  margin-bottom: 30px;
}

.hope-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: #105e8f;
  line-height: 1.5;
  /* font-style: italic; */
}

.maps-embed-container {
  margin-top: 20px;
  margin-bottom: 60px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.5); /* Background tipis agar peta stand out */
  border-radius: 10px;
  border: 1px solid #105e8f;
}

.map-frame-wrapper {
  width: 100%;
  border-radius: 10px;
  overflow: hidden; /* Supaya sudut iframe jadi bulat */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===============================
   EVENT SECTION – CEREMONY STYLE
================================ */

.event-frame.premium-show {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition: all 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.event-frame {
  transform: translateY(40px) scale(0.95);
}

/* Foto tengah lebih kalem */
.event-photo.photo-show {
  transform: scale(1);
  opacity: 1;
}

.event-photo {
  transform: scale(0.85);
  opacity: 0;
  transition: all 2s ease;
}

/* Nama pasangan elegan */
.event-name {
  opacity: 0;
  letter-spacing: 6px;
  transform: translateY(10px);
}

.event-name.premium-show {
  opacity: 1;
  letter-spacing: 2px;
  transform: translateY(0);
  transition: all 2s ease;
}

/* Card acara */
.event-card {
  transform: translateY(50px);
  opacity: 0;
}

.event-card.premium-show {
  transform: translateY(0);
  opacity: 1;
  transition: all 1.6s ease;
}

/* Divider bunga */
.event-divider {
  opacity: 0;
  transform: scale(0.6);
}

.event-divider.premium-show {
  opacity: 1;
  transform: scale(1);
  transition: all 1.8s ease;
}

/* RESPONSIVE: Di HP layar kecil agar tidak terlalu sempit */
/* @media (max-width: 400px) {
  .event-details-row {
    gap: 5px;
  }
  .event-title {
    font-size: 1.1rem;
  }
  .event-info {
    font-size: 0.8rem;
  }
  .event-divider-flower {
    width: 40px;
  }
} */

/* --- SECTION 6: OUR STORY --- */
.section-story {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;

  background-image: url('../images/bglubang.jpg');
  background-size: cover;
  background-position: center;
  padding: 60px 20px; /* Padding samping dikurangi sedikit agar bisa rata kiri-kanan */
  overflow: hidden;
}

.story-header {
  text-align: center;
  margin-bottom: 50px;
}

.sub-title-story {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #105e8f;
  display: block;
  letter-spacing: 2px;
}

.main-title-story {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #105e8f;
  margin-top: 5px;
}

.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 400px;
  margin: 0 auto;
}

/* Box Utama */
.story-card-box {
  background: #ffffff;
  border-radius: 5px;
  padding: 0;
  box-shadow: 0 10px 30px rgba(16, 94, 143, 0.1);
  border: 1px solid rgba(16, 94, 143, 0.1);
  position: relative;
  overflow: hidden;
}

/* Background Awan di dalam Box */
.cloud-box-bg {
  background-image: url('../images/bglubang.jpg'); /* Pastikan file awan.png ada */
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  padding: 20px;
  min-height: 300px;
}

.story-photo-wrapper {
  width: 100%;
  height: 200px;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 0px solid #105e8f;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.img-story {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-date-badge {
  display: inline-block;
  background: #105e8f;
  color: #fff;
  padding: 4px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.story-moment-title {
  font-family: 'Engagement', cursive;
  font-weight: bold;
  color: #105e8f;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.story-moment-desc {
  font-size: 1.2rem;
  color: #105e8f;
  line-height: 1.6;
  text-align: justify;
}

/* Garis penghubung antar card (opsional) */
.story-card-box::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  width: 2px;
  height: 40px;
  background: dashed #105e8f;
  opacity: 0.3;
}

.story-card-box:last-child::after {
  display: none;
}

/* --- SECTION 7: SUSUNAN ACARA --- */
.section-rundown {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;

  background-image: url('../images/bglubang.jpg');
  background-size: cover;
  background-position: center;
  padding: 60px 20px; /* Padding samping dikurangi sedikit agar bisa rata kiri-kanan */
  overflow: hidden;
}

/* .small-divider {
  width: 50px;
  height: 2px;
  background: #105e8f;
  margin: 10px auto;
  opacity: 0.5;
} */

.modern-timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px 0;
}

.header-rundown h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #105e8f;
  margin-top: 30px;
  text-align: center;
}

/* Garis Tengah */
.center-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #105e8f, transparent);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-node {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Bulatan Icon di Tengah */
.node-dot {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 2px solid #105e8f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #105e8f;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(16, 94, 143, 0.2);
}

/* Layout Kiri & Kanan */
.timeline-node.left {
  flex-direction: row-reverse;
  text-align: right;
}
.timeline-node.right {
  flex-direction: row;
  text-align: left;
}

.node-time {
  width: 52%;
  font-weight: bold;
  color: #105e8f;
  font-size: 1.2rem;
}
.node-time .tz {
  font-size: 0.9rem;
  opacity: 0.7;
}

.node-info {
  width: 45%;
  padding: 0 20px;
}
.node-info h3 {
  font-family: Engagement, cursive;
  font-size: 1.3rem;
  color: #105e8f;
  margin-bottom: 5px;
}
.node-info p {
  font-size: 1.2rem;
  color: #105e8f;
  line-height: 1.4;
}

/* Highlight Acara Puncak */
.is-puncak h3 {
  color: #d4af37;
  font-weight: bold;
}
.is-puncak p {
  color: #444;
}

/* Responsive Mobile */
@media (max-width: 600px) {
  .center-line {
    left: 20px;
  }
  .node-dot {
    left: 20px;
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }
  .timeline-node.left,
  .timeline-node.right {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 50px;
  }
  .node-time,
  .node-info {
    width: 100%;
    padding: 0;
  }
  .node-time {
    margin-bottom: 5px;
  }
}

/* --- SECTION 8: TITIP HADIAH --- */
.section-gift {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  background-image: url('../images/bglubang.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  overflow: hidden;
  text-align: center;
}

.header-gift h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #105e8f;
  margin-top: 25px;
  margin-bottom: 25px;
  text-align: center;
}

.gift-subtitle {
  font-family: 'Cormorant Garamond', serif;
  color: #105e8f;
  font-size: 1.2rem;
  margin: 10px auto 30px;
  max-width: 320px;
  line-height: 1.5;
}

.gift-item-box {
  margin-bottom: 50px;
}

/* KARTU ATM */
.atm-card-e {
  width: 100%;
  max-width: 360px;
  height: 210px;
  background: linear-gradient(135deg, #105e8f 0%, #3498db 100%);
  border-radius: 18px;
  padding: 22px;
  position: relative;
  color: white;
  margin: 0 auto;

  /* TINGKAT KETEBALAN (Sisi Kanan dan Bawah) */
  /* Kita gunakan border tipis di kiri atas, dan shadow tebal di kanan bawah */
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.55);

  /* Efek Bayangan untuk menciptakan Dimensi Tebal */
  box-shadow: 
        /* Bayangan halus luar */ 0 15px 35px rgba(0, 0, 0, 0.2), /* Efek Tebal di sisi kanan (Deep Shadow) */ 2px 0px 0px 0px rgba(10, 60, 90, 0.8), /* Efek Tebal di sisi bawah */ 0px 3px 0px 0px rgba(10, 50, 80, 0.815);

  transition: transform 0.3s ease;
}

/* Efek saat sedikit di hover (opsional agar terasa lebih nyata) */
.atm-card-e:hover {
  transform: translateY(-5px) rotateX(5deg);
}

.atm-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
/* DESAIN CHIP KARTU ATM LEBIH REALISTIK */
.atm-chip {
  width: 45px;
  height: 32px;
  background: linear-gradient(135deg, #f1c40f 0%, #d4af37 50%, #f39c12 100%);
  border-radius: 6px;
  position: relative;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.5);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
}

/* Garis Hitam Halus (Pemisah Tima) */
.atm-chip span {
  border: 0.5px solid rgba(0, 0, 0, 0.4);
  display: block;
  position: relative;
}

/* Membuat pola garis vertikal dan horizontal agar seperti sirkuit */
.atm-chip span:nth-child(1) {
  border-width: 0 1px 1px 0;
}
.atm-chip span:nth-child(2) {
  border-width: 0 1px 1px 1px;
}
.atm-chip span:nth-child(3) {
  border-width: 0 0 1px 1px;
}
.atm-chip span:nth-child(4) {
  border-width: 1px 1px 0 0;
}
.atm-chip span:nth-child(5) {
  border-width: 1px 1px 1px 1px;
  border-radius: 2px;
} /* Bagian tengah biasanya kotak kecil */
.atm-chip span:nth-child(6) {
  border-width: 1px 0 0 1px;
}

.atm-logo img {
  max-height: 35px;
  max-width: 100px;
  filter: brightness(0) invert(1);
}

.atm-mid {
  margin: 30px 0;
}
.rekening-num {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  letter-spacing: 2px;
  font-weight: bold;
}

.atm-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.holder-info {
  text-align: left;
}
.holder-info small {
  font-size: 10px;
  opacity: 0.8;
  letter-spacing: 1px;
}
.holder-info p {
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
  font-size: 1rem;
}

.btn-copy-gift {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid #fff;
  color: #fff;
  border-radius: 5px;
  padding: 5px 13px;
  font-size: 11px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-copy-gift:hover {
  background: #fff;
  color: #105e8f;
}

/* IKON KADO HIDUP & COLLAPSE */
.physical-gift-wrapper {
  margin-top: 50px;
}

.gift-toggle-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  cursor: pointer;
  color: #105e8f;
  transition: 0.3s;
}

.gift-icon-anim {
  font-size: 2.5rem;
  margin-bottom: 5px;
  animation: wobble 2s infinite ease-in-out; /* Animasi hidup */
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

.address-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  margin: 10px auto;
  max-width: 360px;
}

.address-content {
  padding: 20px;
  border: 1px dashed #105e8f;
  border-radius: 12px;
  text-align: center;
}
.address-content p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 15px;
}

.btn-salin-alamat {
  background: #105e8f;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
}

/* --- SECTION 9: RSVP & GUESTBOOK --- */
.section-rsvp {
  background-image: url('../images/bglubang.jpg');
  background-size: cover;
  padding: 80px 20px;
  text-align: center;
  color: #105e8f;
}

.rsvp-intro {
  font-family: 'Cormorant Garamond', serif;
  color: #105e8f;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 15px;
  max-width: 320px;
  line-height: 1.5;
}

/* FLUID INPUT STYLE (Floating Labels & Underline) */
.rsvp-form-container {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 30px 5px 30px 5px; /* Asymmetric */
  padding: 40px 30px;
  margin-bottom: 60px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.fluid-input-group {
  position: relative;
  margin-bottom: 30px;
}
.fluid-input-group input,
.fluid-input-group textarea,
.fluid-input-group select {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #105e8f;
  background: transparent;
  outline: none;
  color: #105e8f;
  font-size: 1rem;
}

.header-rsvp h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #105e8f;
  margin-top: 25px;
  margin-bottom: 25px;
  text-align: center;
}

.fluid-input-group label {
  position: absolute;
  left: 0;
  top: 10px;
  color: #105e8f;
  transition: 0.3s;
  pointer-events: none;
  opacity: 0.7;
}

/* Animasi Label saat diketik */
.fluid-input-group input:focus ~ label,
.fluid-input-group input:not(:placeholder-shown) ~ label,
.fluid-input-group textarea:focus ~ label,
.fluid-input-group textarea:not(:placeholder-shown) ~ label {
  top: -15px;
  font-size: 0.8rem;
  opacity: 1;
  font-weight: bold;
}

.fluid-row {
  display: flex;
  gap: 15px;
}
.flex-2 {
  flex: 2;
}
.flex-1 {
  flex: 1;
}

/* PULSE BUTTON */
.btn-pulse-rsvp {
  background: #105e8f;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(16, 94, 143, 0.4);
  animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 94, 143, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(16, 94, 143, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 94, 143, 0);
  }
}

/* BUBBLE STATS */
.bubble-stats-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 60px;
}
.bubble-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid #105e8f;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(16, 94, 143, 0.1);
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bubble-item:hover .bubble-circle {
  transform: scale(1.2) translateY(-5px);
}
.bubble-item small {
  display: block;
  margin-top: 8px;
  font-weight: bold;
}

/* STAGGERED CLOUD GUESTBOOK */
.staggered-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cloud-item {
  width: 85%;
}
.cloud-item.left {
  align-self: flex-start;
  text-align: left;
}
.cloud-item.right {
  align-self: flex-end;
  text-align: right;
}

.cloud-inner {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  position: relative;
  border-left: 4px solid #105e8f;
}
.cloud-item.right .cloud-inner {
  border-left: none;
  border-right: 4px solid #105e8f;
}

.status-tag {
  font-size: 0.7rem;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 5px;
}
.cloud-head strong {
  font-size: 1rem;
  color: #105e8f;
}
.cloud-text {
  margin: 10px 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #444;
}
.cloud-date {
  font-size: 0.7rem;
  opacity: 0.6;
}

/* PEMBATAS DAFTAR UCAPAN (GUESTBOOK) */
.staggered-list {
  display: flex;
  flex-direction: column;
  gap: 20px;

  /* SET TINGGI MAKSIMAL (Misal: 500px atau 600px) */
  max-height: 550px;
  overflow-y: auto; /* Munculkan scrollbar jika data penuh */
  overflow-x: hidden;

  /* Padding kanan dikasih ruang sedikit buat scrollbar */
  padding: 20px 10px;

  /* Efek Masking: Biar bagian bawah & atas terlihat memudar (Elegan!) */
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

/* CUSTOM SCROLLBAR (Biar Tidak Kaku/Jelek) */
.staggered-list::-webkit-scrollbar {
  width: 5px;
}
.staggered-list::-webkit-scrollbar-track {
  background: rgba(16, 94, 143, 0.05);
  border-radius: 10px;
}
.staggered-list::-webkit-scrollbar-thumb {
  background: rgba(16, 94, 143, 0.3); /* Warna biru tema kamu tapi agak transparan */
  border-radius: 10px;
}
.staggered-list::-webkit-scrollbar-thumb:hover {
  background: #105e8f;
}

/* --- SECTION 10: GALLERY MASONRY --- */
.section-gallery {
  background-image: url('../images/bglubang.jpg');
  background-size: cover;
  padding: 80px 20px;
  text-align: center;
  color: #105e8f;
}

.header-gallery h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #105e8f;
  margin-top: 25px;
  margin-bottom: 25px;
  text-align: center;
}

.gallery-intro {
  margin-bottom: 10px;
  color: #105e8f;
  font-size: 1.2rem;
}

/* VIDEO STYLE */
.video-container-luxury {
  max-width: 800px;
  margin: 0 auto 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.video-frame {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 15px;
}
.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* MOSAIC GALLERY STYLE */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 Kolom di mobile */
  grid-auto-rows: 150px;
  grid-gap: 15px;
  grid-auto-flow: dense;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: 0.5s ease;
}

/* Efek Miring-Miring Artistik (Ekstrem) */
.mosaic-item:nth-child(odd) {
  transform: rotate(-2deg);
}
.mosaic-item:nth-child(even) {
  transform: rotate(2deg);
}

.mosaic-item.item-tall {
  grid-row: span 2;
} /* Foto tinggi */
.mosaic-item.item-wide {
  grid-column: span 2;
} /* Foto lebar */

.mosaic-inner {
  width: 100%;
  height: 100%;
  position: relative;
  border: 5px solid white; /* Frame foto fisik */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mosaic-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.mosaic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 94, 143, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  opacity: 0;
  transition: 0.3s;
}

.mosaic-item:hover {
  transform: rotate(0deg) scale(1.05); /* Lurus kembali & membesar saat hover */
  z-index: 10;
}
.mosaic-item:hover .mosaic-overlay {
  opacity: 1;
}

/* Responsive Tablet/Desktop */
@media (min-width: 768px) {
  .gallery-mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
  }
}

/* --- SECTION 11: CLOSING STYLES --- */
.section-closing {
  background-image: url('../images/bglubang.jpg');
  background-size: cover;
  padding: 80px 20px;
  text-align: center;
  color: #105e8f;
}

/* Memastikan ukuran bingkai di penutup tetap proporsional */
.section-closing .main-frame-wrapper {
  margin: 40px auto;
  max-width: 300px; /* Ukuran bisa disesuaikan agar tidak terlalu besar di penutup */
}

.closing-couple-names .couple-name {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.closing-thanks {
  margin-top: -40px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.thanks-text {
  font-size: 1.2rem;
  line-height: 1.6;
  font-style: italic;
  /* margin-bottom: px; */
}

.thanks-title {
  font-family: Engagement, cursive;
  font-size: 2.8rem;
  letter-spacing: 10px;
  color: #105e8f;
  margin-bottom: 150px;
}

/* DESIGN BY STYLE (DI DALAM SECTION CLOSING) */
.design-by-text {
  font-size: 10px; /* Ukuran sangat kecil agar elegan */
  letter-spacing: 3px; /* Jarak antar huruf agar terkesan mewah */
  text-transform: uppercase;
  color: #105e8f;
  opacity: 0.5; /* Dibuat agak samar agar tidak mendominasi */
  margin-top: 100px; /* Memberi jarak dari teks Terima Kasih */
  margin-bottom: 10px;
}

.wa-admin-link {
  display: inline-block;
  color: #105e8f;
  font-size: 22px; /* Ukuran ikon WhatsApp */
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0.7;
  margin-bottom: 40px;
}

.wa-admin-link:hover {
  opacity: 1;
  transform: translateY(-5px) scale(1.1); /* Efek melompat kecil saat hover */
}

/* Menghilangkan garis bawah link jika ada settingan global */
.wa-admin-link:active,
.wa-admin-link:focus {
  outline: none;
  text-decoration: none;
}

/* FLOATING NAVBAR STYLE */
/* SEMBUNYIKAN NAVIGASI DI AWAL */
#wrapper-floating-controls {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: none; /* <-- Tambahkan ini agar tidak muncul di sampul */
}

.nav-pill {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  gap: 25px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-item {
  color: #105e8f;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  text-decoration: none;
}

/* MUSIC SPINNING ANIMATION */
#music-btn.playing i {
  animation: spin 3s linear infinite;
  color: #3498db;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* TOOLTIP AUTO SCROLL */
.tooltip-scroll {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #105e8f;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 1rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.5s;
}

.tooltip-scroll.show {
  opacity: 1;
  bottom: 55px;
}

/* AUTO SCROLL ACTIVE COLOR */
#auto-scroll-btn.active {
  color: #3498db;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
}
