/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  background: transparent; /* putih polos dulu */
  color: #333;
  text-align: center;
  overflow-x: hidden;
}
html, body {
  width: 100%;
  overflow-x: hidden;
}
html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  height: 100vh;
}
.no-scroll .rightside {
  overflow: hidden !important;
}
@media (min-width: 576px) {
  .no-scroll .rightside {
    overflow: hidden !important;
  }
}

/* Layout utama */
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Bagian kiri */
.leftside {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.side-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;      
}

.side-text {
  position: absolute;       /* nempel di .leftside */
  top: 50%;                 /* geser ke tengah vertikal */
  left: 50%;                /* geser ke tengah horizontal */
  transform: translate(-50%, -50%); /* beneran center */
  z-index: 2;               /* di atas gambar */
  color: #0b1a39;             /* biar kontras */
  text-align: center;       /* teks rata tengah */
  padding: 1rem;
}

/* Aturan untuk teks di side-text */
.side-text h2 {
  font-size: 3rem;     /* ukuran sedang */
  font-weight: 400;      /* normal */
  letter-spacing: 2px;   /* jarak antar huruf */
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.368);
}

.side-text h1 {
  font-size: 3rem;       /* besar */
  font-weight: bold;      /* tebal */
  line-height: 1.2;
  margin: 0.5rem 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.side-text p {
  font-size: 2rem;
  font-weight: 300;      /* lebih ringan */
  margin-top: -1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Background global untuk rightside */
.rightside::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("img/background.webp") no-repeat center center;
  background-size: contain;        /* sesuai ukuran asli gambar */
  background-attachment: fixed;    /* tetap saat scroll */
  z-index: -1;
}

/* Tablet & HP: center-center */
@media (max-width: 991.98px) {
  .rightside::before {
    background-position: center center;
    background-size: cover;
  }
}

/* Desktop: right-center */
@media (min-width: 992px) {
  .rightside::before {
    background-position: right center;
    background-size: contain;
  }
}

/* Rightside wrapper */
.rightside {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  position: relative;
  z-index: 1; /* supaya konten di atas background */
}

.rightside-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  box-sizing: border-box;
  background: transparent;
}

/* Mobile: kunci max 430px */
@media (max-width: 575.98px) {
  .rightside-container {
    max-width: 430px;
  }
}

/* Tablet: lebih lebar */
@media (min-width: 576px) and (max-width: 991.98px) {
  .rightside-container {
    height: 100vh; /* penuh tinggi layar */
    width: calc(100vh * (1080 / 1920)); /* lebar = tinggi layar * rasio */
    max-width: 100vw; /* jangan dibatasi */
  }
  .rightside::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("img/background.webp") no-repeat center center;
    background-size: contain;        /* sesuai ukuran asli gambar */
    background-attachment: fixed;    /* tetap saat scroll */
    z-index: -1;
  }
}
/* Desktop: rapat kiri */
@media (min-width: 992px) {
  .rightside-container {
    max-width: 860px;   /* atau lebih besar sesuai kebutuhan */
    margin-left: auto;
    margin-right: 0;
  }
}

.cormorant-font {
  font-family: "Cormorant", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.raleway-font {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.imperial-script-regular {
  font-family: "Imperial Script", cursive;
  font-weight: 400;
  font-style: normal;
}


.kapakana-regular {
  font-family: "Kapakana", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* ================= COVER ================= */
.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* = ORNAMENT KIRI & KANAN = */
.ornament-cover {
  position: absolute;
  width: 150px;                /* atur sesuai ukuran gambar */
  opacity: 0;
  transform: translateX(50px) rotate(0deg);
  transition: all 1.3s ease-out;
  pointer-events: none;
  z-index: 5;
}

/* Kanan */
.ornament-cover-right {
  right: -30px;        /* mulai di luar layar */
  bottom: 1%;            /* permintaan user */
}

/* Kiri */
.ornament-cover-left {
  left: -30px;
  bottom: 1%;            /* permintaan user */
}

/* Saat muncul — arah rotasi dibedakan */
.ornament-cover-right.reveal.active {
  opacity: 1;
  transform: translateX(0) rotate(-45deg);  /* muter ke kiri */
}

.ornament-cover-left.reveal.active {
  opacity: 1;
  transform: translateX(0) rotate(45deg);   /* muter ke kanan */
}
.cover {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #486aad;
  padding: 1rem;
  background: url('img/cover.webp') no-repeat center;
  background-size: cover;
  overflow: hidden;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 50%);
  z-index: 1;
}

.cover-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

/* Guest box */
.guest-box {
  background: #fff;
  border-radius: 20px;
  padding: 1.2rem 1.8rem;
  margin-top: 0rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.guest-box h3 {
  font-size: 1.2rem;
  color: #0b1a39;
  margin-bottom: 0.4rem;
}

.guest-box .note {
  font-size: 0.8rem;
  font-style: italic;
  color: #444444;
  margin-top: 0.3rem;
  margin-bottom: 0;
}

/* Typography awal: invisible */
.cover h4, .cover h1, .cover > p, .cover > h3 {
  opacity: 0;
}

/* Ukuran teks */
.cover h4 { font-size: 2.7rem; margin-bottom: 0.2; color: black;}
.cover h1 { font-size: 3rem; margin-bottom: 0; font-weight: bold; }
.cover h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.cover p { font-size: 1rem; margin-top: 2rem; color: black; }
.cover p.note { font-size: 0.7rem; font-style: italic; color: #444444; }

/* BUTTON STYLE */
.open-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(180deg, #86a9cc 0%, #d9dcde 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #1a1e2e;
  box-shadow: 0 0 15px rgba(255,255,255,0.3); 
  border-radius: 30px;
  font-size: 1rem;
  text-decoration: none;
  margin-top: 1rem;
  transition:transform .3s ease, background .3s ease;
}

.open-btn i{
  margin-right: 6px;
}

/* Hover efek mengecil */
.open-btn:hover{
  transform: scale(0.93);
  background: linear-gradient(180deg, #405a74 0%, #8c99a6 100%); 
  color:#fff;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

/* Ganti ikon saat hover */
.open-btn:hover i::before {
  content: "\F73C"; /* bi-envelope-paper-heart */
}

/* ANIMASI */
@keyframes zoomIn {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.zoom-in { 
  animation: zoomIn 1.2s ease forwards;
}

.fade-up {
  animation: fadeUp 1.2s ease forwards;
}

/* Delay urutan */
.cover h4 { animation-delay: 0.3s; }
.cover h1 { animation-delay: 0.9s; }
.cover p.small-text { animation-delay: 1.5s; }
.cover h3 { animation-delay: 2.1s; }
.cover p.note { animation-delay: 2.7s; }

/* Tombol terakhir */
.cover .btn.zoom-in {
  animation: zoomIn 1.2s ease forwards;
  animation-delay: 1.5s;
}

/* Setelah animasi selesai, aktifkan hover transition */
.cover .btn.finished {
  transition: all 0.3s ease-in-out;
}

/* ================= SLIDE VIDEO================= */
/* Hilangkan slide video saat awal */
.video-slide {
  display: block;
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-bottom: 0;
  padding-bottom: 0;
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

  /* TEKS YANG MUNCUL SETELAH 16 DETIK */
.video-text {
  position: absolute;
  top: 38%;
  width: 100%;
  text-align: center;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  color: #070708;
}

.video-text h1 {
  margin: 0px 0;   /* jarak atas bawah jadi lebih kecil */
  color: #2a3855;
}

.video-text p {
  margin-top: -2px;   /* rapetin ke atas */
}

.wedding-logo img {
  width: 120px; /* bisa diubah sesuai desain */
  height: auto;
  margin: 10px 0 20px 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 0 8px rgba(207, 206, 227, 0.5)); /* opsional */
}
.video-text.show {
  opacity: 1;
}

/* Lock scroll di awal */
.no-scroll {
  overflow: hidden;
}

/* Animasi fade-out untuk cover */
.cover.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

/* ================= SLIDE SURAH AR-RUM ================= */
/* ================= ORNAMENT KIRI & KANAN ================= */
.ornament-surah {
  position: absolute;
  width: 130px;                /* atur sesuai ukuran gambar */
  opacity: 0;
  transform: translateX(50px) rotate(0deg);
  transition: all 1.3s ease-out;
  pointer-events: none;
  z-index: 5;
}

/* Kanan */
.ornament-surah-right {
  right: -30px;        /* mulai di luar layar */
  top: 10%;            /* permintaan user */
}

/* Kiri */
.ornament-surah-left {
  left: -30px;
  top: 10%;            /* permintaan user */
}

/* Saat muncul — arah rotasi dibedakan */
.ornament-surah-right.reveal.active {
  opacity: 1;
  transform: translateX(0) rotate(-45deg);  /* muter ke kiri */
}

.ornament-surah-left.reveal.active {
  opacity: 1;
  transform: translateX(0) rotate(45deg);   /* muter ke kanan */
}

/* Agar posisi absolute berfungsi */
.slide-after-cover {
  position: relative;
  overflow: visible;
}
/* Slide After Cover */
.slide-after-cover {
  width: 100%;
  background: url('img/background.webp') top center no-repeat;
  background-size: cover;
  margin-top: 0;
  padding: 50px 20px;
  background-position: bottom;
  /* Agar tingginya mengikuti isi */
  display: flex;
  justify-content: center;
}

/* Container isi ayat */
.sac-container {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(4px);
  border-radius: 25px;
  padding: 45px 28px;
  max-width: 680px;
  width: 100%;
  text-align: center;
  /* Shadow lebih elegan */
  box-shadow: 0 12px 35px rgba(0,0,0,0.20);
}

/* Logo Wrapper */
.logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

/* Logo PNG */
.sac-logo {
  width: 100px;        /* sesuaikan ukuran */
  max-width: 60%;      /* responsif */
  height: auto;
  object-fit: contain;
}

/* Ayat */
.ayat {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: #444;
  margin-bottom: 18px;
}

.sumber {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 600;
  margin-top: 10px;
  color: #333;
}

/* Fade animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= SLIDE 1 ================= */
.slide1-section{
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  background: transparent; 
  padding: 2rem 1rem;
  text-align: center;
}
.slide1-inner {
  max-width: 430px;
  padding: 2rem;
  background: #ffffffbd;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
}

.slide1-section .ornament-slide1-center {
  width: 200px; margin: 0 auto 0rem; display: block;   margin-top: -50px; margin-bottom: -30px;
}
.slide1-section .arabic { font-weight: bold; margin-bottom: 1rem; font-size: 1.2rem; }
.slide1-section .doa { margin-bottom: 1rem; font-size: 0.8rem;}
.slide1-section .nama { font-size: 4rem; color: #4c5780; margin-bottom: 0.5rem; }
.slide1-section .lengkap { font-size: 1.4rem; margin-bottom: 0rem; }
.slide1-section .status { font-weight: bold; margin-bottom: 0rem; font-size: 0.9rem;}
.slide1-section .ortu { margin-bottom: 1rem; font-size: 0.9rem;}
.slide1-section .dan { font-size: 3rem; margin-bottom: 2rem;}
.slide1-section .ig {
  display: inline-flex; /* supaya icon & text sejajar */
  align-items: center;
  font-size: 1rem;
  gap: 6px;             /* otomatis kasih jarak 6px antara icon & teks */
  padding: 0.5rem 1.2rem;
  border-radius: 25px; 
  background: linear-gradient(180deg, #86a9cc 0%, #d9dcde 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #161a2d;
  box-shadow: 0 0 15px rgba(118, 117, 117, 0.3);
  text-decoration: none; 
  transition: transform 0.3s ease; 
  margin-bottom: 2rem;
}

.slide1-section .ig:hover { 
  transform: scale(0.95); 
}

/* Reveal Animation on Scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

.reveal, .fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active, .fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= COUNTDOWN SECTION ================= */
.countdown-section {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  background: #11254d; 
  padding: 3rem 1rem;
  text-align: center;
}

.countdown-section .title {
  font-size: 3rem; 
  margin-bottom: 1.5rem;
  color: #fefefe; 
}
/* ==== REPLACE / OVERRIDE: Countdown (paste this at the end of style.css) ==== */

/* wrapper supaya grid benar-benar bisa disejajarkan di tengah */
.countdown-wrapper {
  display: flex;
  justify-content: center; /* center horizontal */
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* grid yang 'shrink-to-fit' => tidak meluas penuh parent */
.simply-countdown {
  display: grid !important;                 /* kunci: shrink-to-fit */
  grid-template-columns: repeat(2, auto); /* 2 kolom, lebar kolom tetap */
  gap: 1.4rem;                          /* jarak antar kotak */
  justify-items: center;
  align-items: center;
  text-align: center;
  white-space: nowrap;                  /* hindari wrap yang tak diinginkan */
  margin: 0 auto;                      /* benar-benar center */
  overflow: visible !important;
}

/* gaya kotak countdown */
.simply-countdown > .simply-section {
  float: none !important;
  width: 140px;
  height: 140px;
  border-radius: 22px;
  background: #fff;
  color: #11254d;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  padding: 0.25rem;
  margin: 0 auto;
}

/* angka + label */
.simply-countdown > .simply-section .simply-amount {
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1;
}
.simply-countdown > .simply-section .simply-word {
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

/* small screen: tetap 2 kolom kalau muat, jika terlalu sempit jadi 1 kolom */
@media (max-width: 480px) {
  .simply-countdown {
    grid-template-columns: repeat(2, 100px);
    gap: 1rem;
  }
  .simply-countdown > .simply-section {
    width: 100px;
    height: 100px;
    border-radius: 18px;
  }
}

/* very small / portrait phones -> 1 kolom */
@media (max-width: 340px) {
  .simply-countdown {
    grid-template-columns: 1fr;
    display: inline-grid; /* masih shrink-to-fit */
  }
  .simply-countdown > .simply-section {
    width: 260px;         /* batasi agar tetap enak dibaca */
    max-width: calc(100vw - 40px);
    height: auto;
    padding: 1rem 0;
  }
}

/* (Opsional) debug visual — aktifkan sementara jika masih tampak bergeser:
.countdown-wrapper { outline: 2px dashed rgba(255,255,255,0.12); }
.simply-countdown { outline: 1px dotted rgba(0,0,0,0.1); }
*/

/* Tombol */
.save-date-btn {
  background: linear-gradient(180deg, #86a9cc 0%, #d9dcde 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #161a2d;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
  margin-top: 1rem;
  padding: 0.7rem 1.7rem; 
  border-radius: 50px;
  text-decoration: none; 
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}
.save-date-btn i {
  font-size: 1.2rem;          /* ukuran ikon */
  margin-right: 6px;
}
.save-date-btn:hover { transform: scale(0.95); }

/* Responsif */
@media (max-width: 480px) {
  .simply-countdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .simply-countdown > .simply-section {
    width: 100px; 
    height: 100px;
  }
  .simply-countdown > .simply-section .simply-amount {
    font-size: 1.5rem;
  }
}

/* ================= SLIDE AKAD ================= */
.akad-section{
  min-height:100vh;
  display:flex;justify-content:center;align-items:center;
  padding:3rem 1rem;
}

/* Wadah kartu */
.akad-card{
  position:relative;
  width:min(92vw, 720px);   /* BESARKAN di sini jika ingin lebih lebar */
  margin:0 auto;
  text-align:center;
}

.akad-frame {
  width:100%;
  height: auto;
  transform: scaleY(1.1);
  transform-origin: top;
  z-index:0;
}

/* Konten di atas gambar */
.akad-content{
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  /* ruang aman di dalam bingkai
     persen mengikuti LEBAR kartu → ikut membesar/kecil otomatis */
  padding: 16% 10% 14%;    /* top | kanan/kiri | bottom → SILAKAN SESUAIKAN */
  transform: translateY(1.4rem);
}

/* Tipografi (pakai warna Anda sebelumnya bila perlu) */
.akad-content h2{
  font-size:1.8rem; margin-bottom:0rem; letter-spacing:1px; color:#fefefe; font-weight: bold;
}
.akad-content hr{
  width:60%; border:0; border-top:2px solid #fefefe; margin-bottom: 1rem; margin-top: 0rem;
}
.akad-content h3{
  font-size:3rem; margin-bottom:-3rem; color:#fefefe;
}
.akad-date{ font-size:5rem; font-weight:bold; color:#fefefe; margin-bottom: -1rem;}
.akad-month{ font-size:2rem; margin-bottom:0rem; letter-spacing:1px; color:#fefefe; }
.akad-time{ font-size:1.5rem; margin-bottom:1.5rem; color:#fefefe; }
.akad-content h4{ margin-bottom: 0.5rem; font-size:1.5rem; color:#fefefe; text-decoration: underline; font-weight: bold;}
.akad-place{ font-weight:bold; margin-bottom:0rem; color:#fefefe; }
.akad-address{ font-size:0.95rem; margin-bottom:0.2rem; line-height:1.5; color:#fefefe; }
.akad-time i {
  margin-right: 6px;    
}
.akad-maps-btn{
  display:inline-block;   
  background: linear-gradient(180deg, #86a9cc 0%, #d9dcde 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #1a1e2e;
  box-shadow: 0 0 15px rgba(255,255,255,0.3); 
  font-size: 1rem;
  padding:0.5rem 1.3rem; 
  border-radius:50px; 
  text-decoration:none; 
  font-weight:bold;
  margin-top: 0.5rem;
  transition:transform .3s ease, background .3s ease;
}
.akad-maps-btn i {
  margin-right: 6px;
}

.akad-maps-btn:hover{ 
  background: linear-gradient(180deg, #405a74 0%, #8c99a6 100%); 
  color:#fff; transform:scale(.95); 
}



/* ================= SLIDE RESEPSI ================= */
.resepsi-section{
  min-height:100vh;
  display:flex;justify-content:center;align-items:center;
  padding:3rem 1rem 5rem;
}

.resepsi-card {
  position: relative;
  width: min(92vw, 720px);
  margin: 0 auto;
  text-align: center;
  z-index: 1;
  padding-bottom: 3rem; /* biar frame bawah tidak nabrak */
}

/* Spacer khusus supaya ornamen hijau tidak nempel Live */
.resepsi-section::after {
  content: "";
  display: block;
  height: 3rem; /* tinggi tambahan */
}
/* Wadah kartu */
.resepsi-card{
  position:relative;
  width:min(92vw, 720px);   /* BESARKAN di sini jika ingin lebih lebar */
  margin:0 auto;
  text-align:center;
}

/* Gambar bingkai — selalu utuh, tidak terpotong */
.resepsi-frame{
  width:100%;
  height: auto;
  transform: scaleY(1.1);
  transform-origin: top;
  z-index:0;
}

/* Konten di atas gambar */
.resepsi-content{
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  /* ruang aman di dalam bingkai
     persen mengikuti LEBAR kartu → ikut membesar/kecil otomatis */
  padding: 16% 10% 14%;    /* top | kanan/kiri | bottom → SILAKAN SESUAIKAN */
  transform: translateY(0rem);
}

/* Tipografi (pakai warna Anda sebelumnya bila perlu) */
.resepsi-content h2{
  font-size:1.8rem; margin-bottom:0rem; letter-spacing:1px; color:#fefefe; font-weight: bold;
}
.resepsi-content hr{
  width:40%; border:0; border-top:2px solid #fefefe; margin-bottom: 1rem; margin-top: 0rem;
}
.resepsi-content h3{
  font-size:3rem; margin-bottom:-3rem; color:#fefefe;
}
.resepsi-date{ font-size:5rem; font-weight:bold; color:#fefefe; margin-bottom: -1rem; }
.resepsi-month{ font-size:2rem; margin-bottom:0rem; letter-spacing:1px; color:#fefefe; }
.resepsi-time{ font-size:1.5rem; margin-bottom:1.5rem; color:#fefefe; }
.resepsi-content h4{ margin-bottom: 0.5rem; font-size:1.5rem; color:#fefefe; text-decoration: underline; }
.resepsi-place{ font-weight:bold; margin-bottom:0rem; color:#fefefe; }
.resepsi-address{ font-size:0.95rem; margin-bottom:0.2rem; line-height:1.5; color:#fefefe; }
.resepsi-time i {
  margin-right: 6px;      /* kasih warna senada dengan tema */
}

.resepsi-maps-btn{
  display:inline-block;   
  background: linear-gradient(180deg, #86a9cc 0%, #d9dcde 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #1a1e2e;
  box-shadow: 0 0 15px rgba(255,255,255,0.3); 
  font-size: 1rem;
  padding:0.5rem 1.3rem; 
  border-radius:50px; 
  text-decoration:none; 
  font-weight:bold;
  margin-top: 0.5rem;
  transition:transform .3s ease, background .3s ease;
}
.resepsi-maps-btn i {
  margin-right: 6px;
}
.resepsi-maps-btn:hover{ 
  background: linear-gradient(180deg, #405a74 0%, #8c99a6 100%); 
  color:#fff; transform:scale(.95); 
}


/* Fade in up animation */
.fade-in-up { opacity: 0; transform: translateY(60px); transition: all 0.8s ease; }
.fade-in-up.active { opacity: 1; transform: translateY(0); }

/* ================= LIVE STREAMING ================= */
/* = ORNAMENT KIRI & KANAN = */
.ornament-live {
  position: absolute;
  width: 120px;                /* atur sesuai ukuran gambar */
  opacity: 0;
  transform: translateX(50px) rotate(0deg);
  transition: all 1.3s ease-out;
  pointer-events: none;
  z-index: 5;
}

/* Kanan */
.ornament-live-right {
  right: -50px;        /* mulai di luar layar */
  bottom: 1%;            /* permintaan user */
}

/* Kiri */
.ornament-live-left {
  left: -50px;
  bottom: 1%;            /* permintaan user */
}

/* Saat muncul — arah rotasi dibedakan */
.ornament-live-right.reveal.active {
  opacity: 1;
  transform: translateX(0) rotate(-45deg);  /* muter ke kiri */
}

.ornament-live-left.reveal.active {
  opacity: 1;
  transform: translateX(0) rotate(45deg);   /* muter ke kanan */
}
.live-section {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  background: #11254d; 
  padding: 3rem 1rem;
  text-align: center;
}
.live-card {
  max-width: 600px;
  padding: 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
}
.live-title {
  font-size: 4rem;
  margin-top: -1rem;
  margin-bottom: 1rem;
  color: #0b1a39;
}
.live-text {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.live-btn {
  display: inline-block;
  background: linear-gradient(180deg, #86a9cc 0%, #d9dcde 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #161a2d;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease, background 0.3s ease;
}
.live-btn i {
  margin-right: 8px;
}
.live-btn:hover {
  transform: scale(0.95);
}

/* Fade in up animation */
.fade-in-up { opacity: 0; transform: translateY(60px); transition: all 0.8s ease; }
.fade-in-up.active { opacity: 1; transform: translateY(0); }

/* ================= DRESSCODE ================= */
.dresscode-section {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  background: transparent; 
  padding: 3rem 1rem;
  text-align: center;
  background: transparent; 
  box-shadow: 0 4px 12px rgba(10, 20, 42, 0.644);
}

.dresscode-card {
  max-width: 700px;
  width: 100%;
  padding: 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
}

.dresscode-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #11254d;
}

.dresscode-text {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #0b1a39;
}

/* Warna Dresscode */
.color-wrapper {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.color-circle {
  width: 70px;
  height: 70px;
  background: var(--clr);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: transform .3s ease;
}

.color-circle:hover {
  transform: scale(1.1);
}

/* ================= LOVE STORY ================= */
/* = ORNAMENT KIRI & KANAN = */
.ornament-story {
  position: absolute;
  width: 130px;                /* atur sesuai ukuran gambar */
  opacity: 0;
  transform: translateX(50px) rotate(0deg);
  transition: all 1.3s ease-out;
  pointer-events: none;
  z-index: 5;
}

/* Kanan */
.ornament-story-right {
  right: -50px;        /* mulai di luar layar */
  top: -50%;            /* permintaan user */
}

/* Kiri */
.ornament-story-left {
  left: -50px;
  top: -50%;            /* permintaan user */
}

/* Saat muncul — arah rotasi dibedakan */
.ornament-story-right.reveal.active {
  opacity: 1;
  transform: translateX(0) rotate(-45deg);  /* muter ke kiri */
}

.ornament-story-left.reveal.active {
  opacity: 1;
  transform: translateX(0) rotate(45deg);   /* muter ke kanan */
}

.love-container {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  background: #11254d; 
  padding: 3rem 1rem;
  text-align: center;
}

/* Title */
.love-title {
  font-size: 3.5rem;
  text-align: center;
  color: white;
  margin-bottom: 2rem;
}

/* CARD 1 */
.story-card-1 {
  max-width: 600px;
  padding: 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
  margin-bottom: 2rem;
}

.story-card-1 h3 {
  font-size: 22px;
  margin-bottom: 2rem;
  color: #0b1a39;
  font-weight: bold;
}

/* CARD 2 */
.story-card-2 {
  max-width: 600px;
  padding: 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
  margin-bottom: 2rem ;
}

.story-card-2 h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #0b1a39;
  font-weight: bold;
}

/* CARD 3 */
.story-card-3 {
  max-width: 600px;
  padding: 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
}

.story-card-3 h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #0b1a39;
  font-weight: bold;
}
/* RESPONSIVE */
@media(max-width: 600px) {
  .timeline-line { left: 40px; }
  .story-card { max-width: 80%; }
}

/* ================= WEDDING GIFT ================= */
.gift-section {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  background: transparent; 
  padding: 3rem 1rem;
  text-align: center;
  background: transparent; 
  box-shadow: 0 4px 12px rgba(10, 20, 42, 0.644);
}

.gift-card {
  max-width: 700px;
  width: 100%;
  padding: 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
}

.gift-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #11254d;
}

.gift-text {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #0b1a39;
}

.gift-btn {
  background: linear-gradient(180deg, #86a9cc 0%, #d9dcde 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #161a2d;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}
.gift-btn i {
  margin-right: 8px;
}

.gift-btn:hover {
  transform: scale(0.95);
}

/* Detail Box */
.gift-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

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

.hidden {
  display: none;
}

.gift-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #244484;
  color: #fff;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(10, 20, 42, 0.644);
}

.gift-box .bank-logo {
  width: 50px;
  margin-right: 1rem;
}

.gift-info {
  flex: 1;
  text-align: left;
}

.gift-info p {margin-bottom: 0rem; text-decoration: underline;}
.gift-info h3 {margin-bottom: 2rem;}
.gift-info h3,
.gift-info h4 {
  margin: 0.3rem 0;
}

.copy-btn {
  background: linear-gradient(180deg, #86a9cc 0%, #d9dcde 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #161a2d;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.copy-btn:hover {
  transform: scale(0.95);
}

/* ================= RSVP SECTION ================= */
.rsvp-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  background: #ffffffbd;
}

.rsvp-section h2 {
  font-size: 3rem;
  color: #0b1a39;
  margin-bottom: 1rem;
}

.rsvp-section p {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #333;
}

/* RSVP Form */
.rsvp-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.rsvp-form .form-control,
.rsvp-form .form-select {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.rsvp-form .form-control:focus,
.rsvp-form .form-select:focus {
  border-color: #14532d;
  box-shadow: 0 0 0 0.2rem rgba(20, 83, 45, 0.25);
  outline: none;
}

/* Submit Button override Bootstrap */
.rsvp-form .btn-primary {
  background: linear-gradient(180deg, #86a9cc 0%, #d9dcde 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #1a1e2e;
  box-shadow: 0 0 15px rgba(255,255,255,0.3); 
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.rsvp-form .btn-primary:hover {
  transform: scale(0.97);
}


/* ================= WISHES SECTION ================= */
.wishes-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  background: #11254d;   
}

.wishes-card {
  width: 100%;
  max-width: 600px;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
}

.wishes-card h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #0b1a39;
}

.wishes-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #333;
}

/* Form Wishes */
.wishes-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.wishes-form .form-control,
.wishes-form textarea {
  padding: 0.9rem 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  resize: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.wishes-form .form-control:focus,
.wishes-form textarea:focus {
  border-color: #14532d;
  box-shadow: 0 0 0 0.2rem rgba(20, 83, 45, 0.25);
  outline: none;
}

.wishes-btn {
  display:inline-block;   
  background: linear-gradient(180deg, #86a9cc 0%, #d9dcde 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #1a1e2e;
  box-shadow: 0 0 15px rgba(255,255,255,0.3); 
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wishes-btn:hover {
  transform: scale(0.95);
}


.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wishes-container {
  padding: 1rem;
  margin-bottom: 1rem;
  /* Hapus kalau ada: max-height, overflow */
}


/* Responsif */
@media (max-width: 480px) {
  .wishes-form button { width: 100%; }
}

/* ==== Wishes Styling ==== */

/* Kontainer ucapan bisa discroll */
.wishes-container {
  max-height: 300px;   /* tinggi area ucapan */
  overflow-y: auto;
  padding: 1rem;
  margin-bottom: 60px; /* ruang supaya tidak menabrak pagination */
}

/* Pagination selalu di bawah card */
.wishes-pagination {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 0.5rem 0;
  text-align: center;
  z-index: 5;
  border-top: 1px solid #ddd;
}

/* Tombol Kirim di Ucapan & Doa */
.wishes-card .btn {
  background: linear-gradient(180deg, #86a9cc 0%, #d9dcde 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #1a1e2e;
  box-shadow: 0 0 15px rgba(255,255,255,0.3); 
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wishes-card .btn:hover {
  transform: scale(0.95);
}

/* ==== Pagination Styling ==== */
.pagination {
  display: inline-flex; /* rata tengah */
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 6px; /* jarak antar tombol */
}

.pagination .page-item {
  display: inline-block;
}

.pagination .page-link {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #86a9cc 0%, #d9dcde 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #000000;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background: linear-gradient(180deg, #4b6988 0%, #d9dcde 100%);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(180deg, #003a73 0%, #d9dcde 100%);
  font-weight: bold;
  color: white;
}

.pagination .page-item.disabled .page-link {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}
/* Pastikan nav di dalam pagination benar-benar center */
#wishesPagination nav {
  width: 100%;
  display: flex;
  justify-content: center !important;
}

#wishesPagination .pagination {
  justify-content: center !important;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}


/* ================= TERIMA KASIH ================= */
/* = ORNAMENT KIRI & KANAN = */
.ornament-thanks {
  position: absolute;
  width: 150px;                /* atur sesuai ukuran gambar */
  opacity: 0;
  transform: translateX(50px) rotate(0deg);
  transition: all 1.3s ease-out;
  pointer-events: none;
  z-index: 5;
}

/* Kanan */
.ornament-thanks-right {
  right: -60px;        /* mulai di luar layar */
  bottom: 1%;            /* permintaan user */
}

/* Kiri */
.ornament-thanks-left {
  left: -60px;
  bottom: 1%;            /* permintaan user */
}

/* Saat muncul — arah rotasi dibedakan */
.ornament-thanks-right.reveal.active {
  opacity: 1;
  transform: translateX(0) rotate(-45deg);  /* muter ke kiri */
}

.ornament-thanks-left.reveal.active {
  opacity: 1;
  transform: translateX(0) rotate(45deg);   /* muter ke kanan */
}
.ornament-thanks-center {
  width: 200px; margin: 0 auto 0rem; display: block;   margin-top: -50px; margin-bottom: -30px;
}
.thanks-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  background: #ffffffbd;
}

.thanks-card {
  text-align: center;
  max-width: 700px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0);
  animation: fadeUpSmooth 1.5s ease forwards;
  opacity: 0;
}

.thanks-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #0b1a39;
}

.thanks-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #444;
}

.thanks-salam {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.thanks-subtitle {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #444;
}

.thanks-names {
  font-size: 2rem;
  font-weight: bold;
  color: #0b1a39;
  margin-bottom: 0rem;
}

/* Animasi smooth fade-up */
@keyframes fadeUpSmooth {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ================= BRILLIANA ================= */
.brilliana-section {
  display: flex;
  flex-direction: column; /* urut dari atas ke bawah */
  align-items: center;    /* semua di tengah */
  text-align: center;     /* teks rata tengah */
  padding: 2rem 1rem;
  background-color: #11254d;
}

.brilliana-title {
  font-size: 1.2rem;
  margin-bottom: 1rem; /* jarak ke div */
  color: #f0f9ef;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #f8f9fa; /* warna abu-abu terang */
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #e9ecef;
  transform: scale(1.1);
}

.contact {
  font-size: 0.9rem;
  color: #e9ffe9;
}

#audio-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.audio-icon-wrapper {
  width: 3rem;
  height: 3rem;
  font-size: 0;                /* 🔥 jangan pakai font-size di wrapper */
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  cursor: pointer;
  color: #0b1a39;
  opacity: 0.7;
  mix-blend-mode: difference;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
    /* frame putih */
  background: #fefefe;
  border-radius: 50%;  
}

.audio-icon-wrapper i {
  font-size: 3rem;             /* 🔥 atur ukuran ikon di sini */
  display: block;
  animation: rotating 4s linear infinite;
  transform-origin: center center;
}

.audio-icon-wrapper.paused i {
  animation: none;
}

@keyframes rotating {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* === FIX: scroll di HP & Tablet, panel di Desktop === */

/* Desktop (≥ 992px): panel kanan fix 430px, kiri ambil sisa */
@media (min-width: 992px) {
  .layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
  }

  .leftside {
    flex: 1;                  /* ambil sisa ruang */
    position: sticky;
    top: 0;
    height: 100vh;
  }

  .rightside {
    flex: 0 0 auto;           /* kunci lebar 430px */
    height: 100vh; /* penuh tinggi layar */
    width: calc(100vh * (1080 / 1920)); /* lebar = tinggi layar * rasio */
    max-width: 100vw; /* jangan dibatasi */
    margin-left: auto;         /* tempel ke kanan */
    height: 100vh;
    overflow-y: auto;          /* scroll isi */
    background: url("img/background.webp") no-repeat center center;
    background-size: cover;    /* penuh panel kanan */
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
  }

  .rightside-container {
    width: 100%;
    height: 100vh; /* penuh tinggi layar */
    width: calc(100vh * (1080 / 1920)); /* lebar = tinggi layar * rasio */
    max-width: 100vw; /* jangan dibatasi */
    margin: 0 auto;           /* isi tetap center di dalam panel */
    min-height: 100vh;
  }
}

/* HP & Tablet (< 992px): leftside hilang, body yang scroll */
@media (max-width: 991.98px) {
  html, body {
    height: auto;
    overflow-y: auto;        /* aktifkan scroll halaman */
  }
  .layout {
    display: block;
    height: auto !important;     /* JANGAN 100vh */
    overflow: visible !important;/* lepas perangkap overflow */
  }
  .leftside { display: none !important; }
  /* iOS Safari suka bermasalah dengan background fixed */
  body { background-attachment: scroll; }
}

/* === Tampilkan side-image hanya di laptop/desktop === */
.side-image {
  display: none; /* default: sembunyikan */
}

@media (min-width: 992px) {
  .side-image {
    display: block; /* tampilkan lagi di laptop/desktop */
  }
}
