body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #4b3f2f;
  background-color: #f8f3eb;
  overflow-x: hidden;
}

/* === Navbar umum === */
.navbar {
  display: flex;
  justify-content: center;
  background: rgba(255, 250, 240, 0.9);
  padding: 10px 0;
  position: relative;
  z-index: 1000;
  flex-wrap: wrap;
  gap: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);

  /* ✨ biar bisa scroll horizontal juga di desktop */
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.navbar::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* ✨ Gunakan font elegan */
.navbar a {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  background: rgba(42, 44, 74, 0.751);
  border-radius: 24px;
  text-decoration: none;
  padding: 8px 18px;
  letter-spacing: 0.4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.721);
  backdrop-filter: blur(1.0px);
}

/* Hover efek lembut */
.navbar a:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #242b47;
  transform: translateY(-2px);
}

/* ul & li tetap sama */
.navbar ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}
.navbar li {
  margin: 0;
}

/* === Navbar mobile bawah (scrollable) === */
@media (max-width: 768px) {
  .navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(253, 252, 252, 0.316);
    padding: 6px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .navbar ul {
    display: inline-flex;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    padding: 0 10px;
    margin: 0;
    gap: 8px;
  }

  .navbar li {
    flex: 0 0 auto;
    display: inline-block;
  }

  .navbar a {
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 20px;
  }

  .navbar::-webkit-scrollbar {
    display: none;
  }
}



/* Sections */
.section {
  min-height: 100vh;
  padding: 120px 20px 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
}

.overlay-light, .overlay-cream {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.overlay-light { background: rgba(255,255,255,0.6); }
.overlay-cream { background: rgba(255,245,230,0.85); }

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

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #3a2f22;
}

/* === BUTTON UNIFIED === */
button {
	margin-top: 8px;
	color: #ffffff;
	font-family: "Libre Baskerville", serif;
	font-size: 14px;
	text-decoration: none;
	padding: 6px 12px;
	background: rgba(42, 44, 74, 0.751);
	border-radius: 20px;
	/* faster, property-specific transitions to avoid repaint cost */
	transition: background 80ms linear, color 80ms linear, box-shadow 120ms ease;
	box-shadow: 0 4px 12px rgba(70, 61, 61, 0.758);
	/* mobile/touch niceties */
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

/* Hover only on devices that support hover (desktop) - no transform */
@media (hover: hover) {
	button:hover {
		background: rgba(255, 255, 255, 0.8);
		color: #242b47;
		box-shadow: 0 6px 14px rgba(70, 61, 61, 0.85);
	}
}

/* Instant feedback for touch devices */
button:active {
	background: rgba(69, 24, 24, 0.8);
	color: #fffefd;
	box-shadow: 0 6px 14px rgba(70, 61, 61, 0.85);
}

/* Mobile tweak */
@media (max-width: 768px) {
	button {
		font-size: 13px;
		padding: 6px 18px;
	}
}



/* Wishes */
#wishes input, 
#wishes textarea {
  width: 100%;
  max-width: 500px;
  margin: 10px 0;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  resize: none;
}


.wish-card {
  background: rgba(255, 255, 255, 0.5); /* lebih transparan */
  backdrop-filter: blur(6px); /* blur di belakang card */
  border-left: 5px solid #692617;
  padding: 12px 16px;
  border-radius: 10px;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.wish-text {
  font-size: 15px;
  color: #333;
  margin-bottom: 6px;
}

.wish-name {
  text-align: right;
  font-size: 13px;
  font-style: italic;
  color: #666;
}

/* === MUSIC BUTTON (special styling - override defaults) === */
.music-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: rgba(255,255,255,0.8) !important;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  z-index: 1000;
  padding: 0 !important;
  backdrop-filter: none !important;
}

.music-btn:hover { 
  transform: scale(1.1);
  background-color: rgba(255,255,255,0.9) !important;
}

.music-btn span { font-size: 26px; }

.rotate { animation: spin 3s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }



/* === MAP BASE === */
.map-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin: 15px 0;
  transition: transform 0.3s ease;
}

.map-icon a {
  text-decoration: none; /* hilangkan garis biru/underline default link */
}

.map-icon img {
  width: 60px;
  height: 60px;
  margin-bottom: 5px;
  transition: transform 0.3s ease;
}

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

.map-icon span {
  font-size: 14px;
  color: #ffffff;
  background: rgba(42, 44, 74, 0.751);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
  margin-top: 5px; /* jarak icon ke tombol */
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  display: inline-block; /* supaya padding & border-radius bekerja */
  text-align: center;
  box-shadow: 0 6px 14px rgba(70, 61, 61, 0.85);
}

.map-icon span:hover {
  color: #242b47;
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(70, 61, 61, 0.85);
}


/* === Modal === */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: #ffffff5a;
  border-radius: 15px;
  padding: 25px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  font-family: 'Montserrat', sans-serif;
}

.modal-content h3 { margin-top: 0; color: #ffffff; }

.modal-content .gift-qr { width: 200px; height: 200px; margin: 15px 0; object-fit: contain; border-radius: 10px; }

.modal-content p { color: #ffffff; font-size: 16px; }

.close {
  position: absolute;
  top: 12px; right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  transition: 0.3s;
}
.close:hover { color: #333; }

@media (max-width: 480px) {
  .modal-content { padding: 20px; }
  .modal-content .gift-qr { width: 150px; height: 150px; }
}

#countdown {
  display: inline-block;
  padding: 10px 20px;
  background-color: rgba(25, 70, 124, 0.85);
  color: #fff;
  font-family: 'Libre Baskerville', serif;
  font-weight: 500;
  border-radius: 25px;
  font-size: 16px;
  cursor: default;
  user-select: none;
  text-align: center;
  transition: background 0.3s, transform 0.3s;
}

#countdown:hover {
  background-color: rgba(25, 70, 124, 0.85);
  transform: scale(1.05);
}


/* === FOTO COUPLE (Save The Date) === */
.couple-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-top: 40px;
}

.couple-photo img {
  width: 100%;
  max-width: 250px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.couple-photo img:hover {
  transform: scale(1.05);
}


#date .couple-photos {
  display: grid;
  grid-template-columns: repeat(2, 220px);
  justify-content: center; /* tengah */
  gap: 10px; /* jarak antar foto */
}


@media (min-width: 768px) {
  .couple-photos {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* Judul tetap di tengah */
#wishes h2 {
  text-align: center;
}

/* Bungkus form dan daftar ucapan biar sejajar */
#wishForm,
#wishList {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

/* Elemen form */
#wishForm input,
#wishForm textarea {
  width: 100%;
  margin-bottom: 10px;
  box-sizing: border-box;
}

/* Tombol dikasih ukuran otomatis */
#wishForm button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 5px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background: rgba(42, 44, 74, 0.751);
  color: #ffffff;
  font-weight: bold;
  transition: 0.2s;
}

#wishForm button:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* === GLOBAL RESET === */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Untuk berjaga-jaga kalau ada transform atau elemen aneh */
body {
  position: relative;
}

/* === SPLIT LAYOUT DESKTOP === */
.split-container {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* === KIRI: BACKGROUND STATIS === */
.left-side {
  flex: 0.7; /* 70% */
  height: 100vh;
  background-image: url('images/ga4.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* === KANAN: KONTEN UTAMA (SCROLLABLE) === */
.right-side {
  flex: 0.3; /* 30% */
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden; /* cegah horizontal di kanan */
  -webkit-overflow-scrolling: touch;
  background-color: #fff;
  z-index: 2;
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
  }

  .split-container {
    flex-direction: column;
    width: 100%;
    height: auto;
    overflow-x: hidden;
  }

  .left-side {
    display: none !important;
  }

  .right-side {
    flex: none;
    width: 100%;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* pastikan tidak ada child di kanan yang overflow */
  .right-side * {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}
@media (max-width: 768px) {
  .navbar {
    overflow-x: auto !important;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .navbar * {
    overflow: visible !important;
    max-width: none !important;
  }
}


@import url('https://fonts.googleapis.com/css2?family=Corinthia:wght@400;700&family=Playfair+Display:wght@400;600&family=Poppins:wght@300;400;600&display=swap');

/* === ANIMATION BASE === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.77,.2,.32,1.01), transform 0.7s cubic-bezier(.77,.2,.32,1.01);
  will-change: transform, opacity;
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.85) rotate(-6deg);
  transition: opacity 0.7s cubic-bezier(.77,.2,.32,1.01), transform 0.7s cubic-bezier(.77,.2,.32,1.01);
  will-change: transform, opacity;
}
.zoom-in.show {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.popup {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.5s cubic-bezier(.68,-0.55,.27,1.55), transform 0.5s cubic-bezier(.68,-0.55,.27,1.55);
  will-change: transform, opacity;
}
.popup.show {
  opacity: 1;
  transform: scale(1.05);
  animation: popup-bounce 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes popup-bounce {
  0% { transform: scale(0.7); }
  70% { transform: scale(1.08); }
  100% { transform: scale(1.05); }
}

.bounce-in {
  opacity: 0;
  transform: translateY(-40px) scale(0.95);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(.68,-0.55,.27,1.55);
  will-change: transform, opacity;
}
.bounce-in.show {
  opacity: 1;
  transform: translateY(0) scale(1.05);
  animation: bounceDown 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes bounceDown {
  0% { transform: translateY(-40px) scale(0.95);}
  60% { transform: translateY(10px) scale(1.08);}
  100% { transform: translateY(0) scale(1.05);}
}



/* === WISHES SECTION === */
.wish-card-container {
  background: rgba(255, 255, 255, 0.2); /* sangat transparan */
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  margin: 0 auto 20px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* lembut */
}

/* Daftar ucapan */
.wish-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

/* Card untuk setiap ucapan */
.wish-card {
  background: rgba(255, 255, 255, 0.15); /* transparan */
  padding: 12px 16px;
  border-radius: 10px;
  border-left: 3px solid #242754;
  box-shadow: 0 2px 5px rgba(247, 245, 245, 0.05);
}

.wish-text {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(8, 8, 8, 0.853);
}

.wish-name {
  text-align: right;
  font-size: 13px;
  font-style: italic;
  color: #fbf9f9;
  text-shadow: 0 2px 4px rgba(153, 37, 37, 0.717);
}

/* Input dan textarea tetap terlihat di dalam card */
#wishes input,
#wishes textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.3); /* transparan */
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  resize: none;
}

/* Overlay untuk background wishes */
#wishes .overlay-light {
  background: rgba(0, 0, 0, 0.35);
}

/* Judul section Wishes */
#wishes h2 {
  font-family: "Corinthia", cursive;
  font-size: 47px;
  color: #552522;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.85);
}



/* === TAMBAHAN KHUSUS UNTUK TEKS UTAMA === */
.wedding-names {
  font-family: 'Corinthia', cursive;
  font-size: 68px;
  font-weight: 700;
  color: z#595958;
  text-shadow: 0 2px 4px rgba(251, 250, 250, 0.671);
  letter-spacing: 2px;
  margin: 5px 0;
  line-height: 0.9;

  /* fix render artefak */
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
  isolation: isolate;
}

@media (max-width: 768px) {
  .wedding-names {
    font-size: 46px;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
}

/* tambahan opsional (buat Safari / Android WebView) */
@supports (-webkit-touch-callout: none) {
  .wedding-names {
    transform: translate3d(0,0,0);
  }
}


.libre-text {
  font-family: 'Libre Baskerville', serif;
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.6;
  color: #3e3e3e;
  letter-spacing: 0.1px;
}
@media (max-width: 768px) {
  .libre-text {
    font-size: 13.5px;
    line-height: 1.5;
  }
}

#guest {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px;
  color: #5c4b36;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: block;
  opacity: 0.9;
}


/* === Quote Section === */
#quote {
  background-image: url('images/bgputih.jpeg');
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  position: relative;
}

.quote-card {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 200px 200px 0 0;
  max-width: 600px;
  overflow: hidden;

  /* INI YANG PENTING → bayangan kuat seperti Save The Date */
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);

  text-align: center;
  backdrop-filter: blur(1px); /* opsional tipis */
  position: relative;
}

.quote-content {
  padding: 60px 40px 30px;
}

.quote-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #2f2f2f;
  margin-bottom: 20px;
}

.quote-title .italic {
  font-family: "Corinthia", cursive;
  font-size: 2.4rem;
  color: #5b3535;
}

.quote-text {
  font-family: "Libre Baskerville", serif;
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 20px;
}

.quote-ref {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: #5b3535;
}

.quote-photo img {
  width: 100%;
  height: auto;
  display: block;
}


/* ==== SAVE THE DATE ARCH ==== */
.date-arch-section {
  background-image: url('images/g13.jpeg');
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  position: relative;
}

.date-arch-card {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  
  /* ⭐ WAJIB untuk bikin foto gak keluar card */
  overflow: hidden;

  /* ⭐ Supaya card tidak transparan penuh */
  background: rgba(255, 255, 255, 0.35);

  padding: 60px 30px 0;
  border-radius: 200px 200px 0 0; /* arc melengkung */
}


/* TITLE */
.date-title {
  font-family: "Corinthia", cursive;
  font-size: 60px;
  color: #5b3535;
  margin-bottom: 10px;
}

/* TANGGAL BESAR */
.date-big .day {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 70px;
  font-weight: 600;
}

.date-big .month {
  display: block;
  font-size: 20px;
  font-family: "Libre Baskerville", serif;
  margin-top: -10px;
}

/* FOTO PANJANG */
.date-photo-container {
  margin-top: 30px;
  border-radius: 20px;
  overflow: hidden;
}

.date-photo {
  width: 100%;
  display: block;
  border-radius: 0 0 20px 20px;
  aspect-ratio: 4 / 3; /* potong landscape */
  object-fit: cover;   /* crop agar selalu landscape */
}

/* EVENT INFO */
.event-info h3 {
  margin-top: 30px;
  font-family: "Playfair Display", serif;
  font-size: 26px;
}

.event-info p {
  margin: 5px 0 10px;
  font-size: 15px;
  color: #302d2d;
}

/* MAP */
.map-icon {
  margin-top: 25px;
}

.map-icon img {
  width: 45px;
  display: block;
  margin: auto;
}

.map-icon span {
  margin-top: 3px;
  font-family: "Libre Baskerville", serif;
  font-size: 14px;
  display: block;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 480px) {
  .date-arch-card {
    padding: 35px 25px 0;
    border-radius: 200px 200px 0 0;
  }
  .date-title {
    font-size: 48px;
  }
  .date-big .day {
    font-size: 58px;
  }
  .date-big .month {
    font-size: 17px;
  }
}


/* === Couple Section Card === */
/* Biar card selalu turun ke bawah, bukan sejajar */
.couple-section {
  display: flex;
  flex-direction: column;  /* <--- WAJIB */
  align-items: center;     /* center tetap rapi */
  gap: 40px;               /* jarak antar card */
}

.couple-card-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* CARD */
.couple-card {
  background: rgba(255, 255, 255, 0.822);
  padding: 30px 25px;
  border-radius: 22px;
  backdrop-filter: blur(1.0px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0);

  width: 260px;        /* ukuran fix biar sama */
  max-width: 90%;      /* responsif aman */
  text-align: center;
}

/* FOTO */
.couple-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f5e9da;
}

/* Overlay lebih gelap */
#couple .overlay-light {
  background: rgba(0, 0, 0, 0.068); /* dari putih → hitam soft */
}

/* Nama */
.wedding-names {
  font-family: "Corinthia", cursive;
  font-size: 40px;
  color: #3a2f22;
  margin-top: 12px;
  line-height: 1.2; /* tambahkan ini */
}

/* Instagram Button */
.instagram-btn {
  margin-top: 8px;
  color: #ffffff;
  font-family: "Libre Baskerville", serif;
  font-size: 14px;
  text-decoration: none;
  padding: 6px 12px;
  background: rgba(42, 44, 74, 0.751);
  border-radius: 20px;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(70, 61, 61, 0.758);
}

.instagram-btn:hover {
  background: rgba(255, 255, 255, 0.8);
	color: #242b47;
	box-shadow: 0 6px 14px rgba(70, 61, 61, 0.85);
}



/* HOME CARD — SELARAS DENGAN SAVE THE DATE */
.home-card {
  background: rgba(255, 255, 255, 0.28);   /* dari 0.45 → 0.28 (lebih soft, tidak putih) */
  padding: 55px 35px;
  border-radius: 25px;
  backdrop-filter: blur(1.0px);              /* dari blur(8px) → 4px (menghilangkan highlight putih) */
  box-shadow: 0 10px 25px rgba(0,0,0,0.22); /* sedikit lebih gelap */
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 90%;
  /* Tambahkan untuk animasi zoom-in */
  will-change: transform;
  transition: transform 2s cubic-bezier(.68,-0.55,.27,1.55), opacity 1.5s cubic-bezier(.68,-0.55,.27,1.55);
}


/* Agar judulnya selaras */
.home-card h2 {
  font-family: "Corinthia", cursive;
  font-size: 40px;
  color: #000000;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.832);
}

.home-card h3 {
  font-family: "Corinthia", cursive;
  font-size: 62px;     /* dari 70px → 62px */
  color: #000265;
  margin: 5px 0 10px;
  text-shadow: 0 2px 4px rgba(0, 76, 255, 0.671);
}

.home-card h4 {
  font-family: "Libre Baskerville", serif;
  font-size: 20px;
  color: #000000;
  letter-spacing: 3px;
  margin-top: 5px;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.832);
}

#home .overlay-light {
  background: rgba(0, 0, 0, 0.068); /* dari putih → hitam soft */
}


@media (max-width: 480px) {
  .home-card {
    max-width: 98vw;
    width: 98vw;
    padding: 60px 6px 30px 6px;
    border-radius: 30px;
  }
  .home-card h2 {
    font-size: 32px !important;
    margin-bottom: 8px !important;
  }
  .home-card .wedding-names {
    font-size: 44px !important;
    margin: 4px 0 8px 0 !important;
    letter-spacing: 1px !important;
  }
  .home-card h4 {
    font-size: 16px !important;
    margin-top: 4px !important;
  }
}


/* === STORY SECTION === */
#story {
  position: relative;
  padding: 60px 20px;
  text-align: center;
}

/* Overlay gelap sama seperti section lain */
#story .overlay-light {
  background: rgba(0,0,0,0.35);
}

/* Title: Love Story */
#story h2 {
  font-family: 'Corinthia', cursive;
  font-size: 48px;
  color: #4a2c2c;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(250, 250, 250, 0.765);
}

/* === STORY CARD CONTAINER === */
.story-card {
  background: rgba(255,255,255,0.45);
  padding: 35px 25px;
  border-radius: 22px;
  backdrop-filter: blur(1.0px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* === PHOTO GRID === */
#story .couple-photos {
  display: grid;
  grid-template-columns: repeat(2, 220px);
  justify-content: center; /* tengah */
  gap: 15px; /* jarak antar foto */
}
/* === TEXT PARAGRAPHS === */
#story .libre-text {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px;
  color: #fdfdfd;
  line-height: 1.8;
  margin-top: 18px;
  text-shadow: 0 2px 4px rgba(8, 8, 8, 0.9);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 480px) {

  #story .couple-photos {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-items: center;
  }

  /* Semua foto mengecil */
  #story .couple-photo img,
  #story .pair-stack img {
    width: 90%;
    max-width: 130px;
    border-radius: 16px;
    object-fit: cover;
  }
}



/* === GALLERY ARCH SECTION === */
.gallery-arch-section {
  background-image: url('images/g10.jpeg');
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  position: relative;
}

.gallery-arch-card {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  padding: 60px 30px 30px;
  border-radius: 200px 200px 0 0;
  text-align: center;
  /* kurangi backdrop-filter untuk smooth scroll */
  backdrop-filter: blur(0.8px);
  -webkit-backdrop-filter: blur(0.8px);
}

/* Title di card */
.gallery-arch-section .overlay-cream {
  display: none;
}

/* Gallery Grid - Landscape Layout (2 columns) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 kolom landscape */
  gap: 10px; /* kurangi gap dari 12px → 10px */
  margin-top: 20px;
  max-width: 100%;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 4 / 3; /* naikkan dari 16/9 → 4/3 agar lebih tinggi & jelas */
  overflow: hidden;
  border-radius: 10px;
  background: #313a5dc9; /* placeholder warna */
}

/* Gallery Image - lazy load safe */
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  /* optimize untuk smooth scroll */
  will-change: auto;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  contain: layout; /* optimize render */
}

.gallery-grid img:hover {
  transform: scale(1.05);
  will-change: transform;
}

/* === GALLERY ANIMATION === */
.gallery-item .zoom-in {
  /* inherit zoom-in, but add shadow for gallery */
  box-shadow: 0 2px 12px rgba(80, 60, 40, 0.10);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.gallery-item .zoom-in.show {
  /* pop effect on show */
  animation: gallery-pop 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes gallery-pop {
  0% { transform: scale(0.85) rotate(-6deg); opacity: 0; }
  60% { transform: scale(1.08) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Shine effect on hover */
.gallery-item img {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.gallery-item img::after {
  content: "";
  display: block;
  position: absolute;
  left: -75%;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.5) 60%, rgba(255,255,255,0.0) 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  transition: left 0.5s cubic-bezier(.77,.2,.32,1.01);
}

.gallery-item:hover img::after {
  left: 120%;
  transition: left 0.7s cubic-bezier(.77,.2,.32,1.01);
}

/* Mobile responsive - tetap 2 kolom */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* tetap 2 kolom di mobile */
    gap: 8px; /* kurangi gap di mobile */
  }
  
  .gallery-item {
    aspect-ratio: 4 / 3; /* tetap 4/3 agar konsisten */
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* tetap 2 kolom di HP kecil */
    gap: 6px; /* gap minimal di HP kecil */
  }
  
  .gallery-arch-card {
    padding: 40px 15px 15px;
  }
}


/* GIFT */
.gift-card {
  background: rgba(255, 255, 255, 0.35); /* transparansi seperti HOME */
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  padding: 50px 30px;
  border-radius: 30px;
  max-width: 500px;
  margin: auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.gift-card h2 {
  font-family: 'Corinthia', cursive;
  font-size: 48px;
  color: #5b3535;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(255, 254, 254, 0.671);
}

.gift-card p {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px;
  color: #fbf9f9;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(19, 18, 18, 0.9);
}


#gift .overlay-light,
#gallery .overlay-light {
  background: rgba(0,0,0,0.25); /* hitam soft */
}


/* Responsif mobile */
@media (max-width: 768px) {
  .gift-card {
    padding: 35px 20px;
    max-width: 90%;
  }
  .gift-card h2 {
    font-size: 36px;
  }
}

/* === LOCK HALAMAN SAAT AWAL === */
/* Kunci total scroll browser */
html.locked,
body.locked {
  overflow: hidden !important;
  height: 100vh !important;
  width: 100% !important;
  position: fixed !important;
  top: 0;
  left: 0;
  touch-action: none !important;
  overscroll-behavior: none !important;
}

/* Kunci semua container besar supaya tidak bikin scroll sendiri */
.split-container.locked,
.left-side.locked,
.right-side.locked {
  overflow: hidden !important;
  height: 100vh !important;
}

/* ===== NAVBAR ===== */
.navbar.hidden {
  display: none !important;
}

.navbar.show {
  display: flex !important;
}
.home-hidden {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}
#home.hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute; /* tetap occupy space tapi tidak interaktif */
}

/* View all button near wishes */
#viewAllBtn {
  background: rgba(42, 44, 74, 0.751);
  color: #ffffff;
  border-radius: 20px;
  padding: 8px 14px;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 120ms linear, color 120ms linear;
}

/* Instagram-like small indicator style when count is large */
#viewAllBtn.ig-indicator {
  position: relative;
  background: rgba(206, 207, 222, 0.751);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(139,58,58,0.25);
}

/* Modal styling reuse .modal/.modal-content; tweak inner list items */
#allWishesList .wish-card {
  margin-bottom: 10px;
  background: rgba(255,255,255,0.06);
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
}

#allWishesList .wish-name {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  margin-top: 6px;
  text-align: right;
}

/* ensure long modal scroll works nicely on mobile */
@media (max-width: 480px) {
  #allWishesList { max-height: 50vh; }
}

/* pinned message styling (highlight, no heavy blur) */
.pinned-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  border-left: 4px solid #22253e;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* ensure pinned text contrast */
.pinned-card .wish-text {
  color: #fff;
  font-weight: 600;
}

.pinned-card .wish-name {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  text-align: right;
}

/* Lock body scroll saat modal wishes terbuka */
body.modal-open {
  overflow: hidden !important;
}

/* ensure modal list scrollable */
#allWishesList {
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Modal tetap di tempat, tidak scroll */
#allWishesModal {
  scroll-behavior: auto !important;
}

@media (max-width: 780px) {
  .home-card.show {
    /* Zoom-in lebih terasa dan menutupi layar */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.95);
    opacity: 1;
    transform: scale(1.35) !important;
    transition: transform 2s cubic-bezier(.68,-0.55,.27,1.55), opacity 1.5s cubic-bezier(.68,-0.55,.27,1.55);
    will-change: transform, opacity;
  }
  .home-card.show.fade-out {
    opacity: 0 !important;
    transition: opacity 0.7s cubic-bezier(.77,.2,.32,1.01);
  }
}

/* Lock scroll di mobile saat home-card.show aktif */
@media (max-width: 480px) {
  body.home-animating {
    overflow: hidden !important;
    position: fixed !important;
    width: 100vw !important;
    height: 100vh !important;
    overscroll-behavior: none !important;
    touch-action: none !important;
  }
}
