/*--================================== Font Family ==================================--*/
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Parisienne&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Vidaloka&display=swap');

@font-face {
  font-family: 'Hello Paris';
  src: url('../font/hello_paris/Hello\ Paris\ Sans\ Regular.ttf') format('truetype');
}

/*--================================== Global Styles ==================================--*/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
	background-color: #f2f1eb;
  font-family: 'Poppins', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/*--================================== Lock Screen Styles ==================================--*/
.lock-screen {
	position: fixed; /* penting supaya menimpa section lain */
	top: 0;
	left: 0;
  width: 100%;
  height: 100vh;
  background: url('../images/1-Opening/1-1.jpg') center bottom/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding-top: 20vh; /* bisa ubah sesuai kebutuhan */
  align-items: center;
  text-align: center;
  color: #000;
  overflow: hidden;
	z-index: 10; /* pastikan di atas bibleVerses */
	transition: transform 1s ease-in-out;
}

.lock-screen::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
  z-index: 1;
}

.lock-screen.hide {
  transform: translateY(-100%); /* Naik keluar layar */
}

/* teks utama */
.lock-screen .sub-text {
  font-family: "Parisienne", cursive;
  font-size: 2rem;
  letter-spacing: 1px;
  z-index: 2;
}

.lock-screen .main-names {
  width: 650px;
  z-index: 2;
}

.lock-screen .dear {
	font-family: "Vidaloka", sans-serif;
  color: #494949;
  font-size: 1rem;
  margin-top: 20px;
}

.lock-screen .guest-name {
	font-family: "Vidaloka", sans-serif;
  font-size: 1.5rem;
  z-index: 2;
}

/* tombol */
.btn-invite {
  font-family: 'Poppins', sans-serif;
  background: transparent;
  color: #000;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  padding: 10px 20px;
  border: none;
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px; /* jarak icon dan teks */
  z-index: 99;
}

.btn-invite::before,
.btn-invite::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #000;
  cursor: pointer;
}

.btn-invite::before {
  top: 0;
}

.btn-invite::after {
  bottom: 0;
}

/*--================================== Hero Section ==================================--*/
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* teks di bawah */

	opacity: 0; /* awalnya belum kelihatan */
	transform: translateY(30px);
	transition: opacity 1s ease, transform 1s ease;
}

.hero-section.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
  z-index: 1;
}

/* Background slideshow */
.hero-section .slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-section .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  animation: fadeSlide 20s infinite;
}

/* Set urutan tiap gambar */
.slide:nth-child(1) {
  animation-delay: 0s;
}
.slide:nth-child(2) {
  animation-delay: 5s;
}
.slide:nth-child(3) {
  animation-delay: 10s;
}
.slide:nth-child(4) {
  animation-delay: 15s;
}

/* Konten utama */
.hero-section .overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
  display: flex;
  justify-content: center;
  align-items: flex-end; /* posisi di bawah */
  text-align: center;
  padding-bottom: 60px; /* jarak dari bawah */
  z-index: 2;
}

.hero-section .content-wrapper {
  color: #000;
}

.hero-section .subtitle {
  font-family: "Parisienne", cursive;
  font-size: 1.8rem;
  margin-bottom: 10px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-section.show .subtitle {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.2s;
}

.hero-section .hero-logo {
  width: 100%;
  max-width: 400px;
  margin-bottom: 10px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-section.show .hero-logo {
  opacity: 1;
  transform: scale(1);
  transition-delay: .5s;
}

.hero-section .countdown {
  display: flex;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-section.show .countdown {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .8s;
}

.countdown .time-box {
  font-family: "Poppins", sans-serif;
  text-align: center;
}

.countdown .time-box span {
  font-size: 2.3rem;
  font-weight: bold;
}

.countdown .time-box p {
  font-size: 1rem;
  margin-top: 5px;
}

/*--================================== Verses Section ==================================--*/
.verse-section {
  position: relative;
  background-color: #fff9f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 180px;
  overflow: hidden;
}

.verse-section .container {
  z-index: 2;
  max-width: 800px;
}

.yd-logo {
  display: block;
  width: 250px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.verse-text {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #594404;
  line-height: 1.4;
  font-size: 1.6rem;
  margin-bottom: 25px;
}

.verse-ref {
  font-family: "Parisienne", cursive;
  font-size: 2rem;
  color: #494949;
}

/*--================================== Bride & Groom Section ==================================--*/
.bride-groom {
  position: relative;
  background-color: #fff9f2;
  padding: 100px 20px;
  overflow: hidden;
}

/* Text */
.bride-groom .title {
  font-family: "Parisienne", cursive;
  font-size: 2.5rem;
  color: #5c4510;
  margin-bottom: 20px;
  position: relative;
  display: inline-block; /* supaya garis ikut lebarnya teks */
}

/* Garis di bawah title */
.title::after {
  content: "";
  position: absolute;
  bottom: -8px; /* jarak garis dari teks */
  left: 50%;
  transform: translateX(-50%);
  width: 60px; /* panjang garis */
  height: 2px; /* tebal garis */
  background-color: #b89d69; /* warna emas */
  border-radius: 1px;
}

.bride-groom .name {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #4b3a08;
  margin-bottom: 10px;
}

.bride-groom .parents {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: #5e5e5e;
}

/* Frame container */
.bride-groom .photo-frame {
  position: relative;
  display: inline-block;
  border-radius: 20px;
  overflow: visible; /* biar frame boleh keluar */
}

.photo-frame .photo-img {
  width: 600px;
  height: 500px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

/* FRAME DASAR */
.photo-frame::after {
  content: '';
  position: absolute;
  top: -10px;   /* keluar sedikit dari atas */
  left: -10px;  /* keluar sedikit dari kiri */
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border: 2px solid #b89d69;
  border-radius: 20px;
  z-index: 2;
  transition: transform 0.3s ease;
}

/* Jika foto miring ke kanan, frame miring ke kiri */
.tilt-right .photo-img {
  transform: rotate(2deg);
}
.tilt-right::after {
  transform: rotate(-1.5deg);
}

/* Jika foto miring ke kiri, frame miring ke kanan */
.tilt-left .photo-img {
  transform: rotate(-2deg);
}
.tilt-left::after {
  transform: rotate(1.5deg);
}

/*--================================== Wedding Event ==================================--*/
.wedding-event {
  background-color: #fff9f2;
  text-align: center;
  padding: 100px 0;
  font-family: "Poppins", sans-serif;
  position: relative; /* ⬅️ tambahkan ini */
  overflow: hidden;   /* ⬅️ opsional: supaya dekor tidak keluar area */
}

.event-title {
  font-family: "Parisienne", cursive;
  font-size: 4rem;
  color: #5c4510;
  margin-bottom: 60px;
  text-align: left; /* ubah jadi rata kiri */
  display: inline-block;
  position: relative;
}

.event-title span {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  color: #5c4510;
  display: block;
}

/* Garis di samping kanan judul */
.wedding-event .title-line {
  position: absolute;
  top: 50%;
  left: calc(100% + 20px);
  transform: translateY(-50%);
  width: clamp(60px, 10vw, 150px);
  height: 2px;
  background: linear-gradient(90deg, #5c4510 30%, transparent 70%);
  background-size: 200% 100%;
  border-radius: 1px;
  animation: lineMove 3s linear infinite;
}

.event-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.event-card {
  position: relative;
  background-color: #c7a565;
  width: 300px;
  overflow: hidden;
  text-align: left;
  color: #000;
  transition: transform 0.3s ease;
}

.event-card.holy-event {
  border-radius: 100px 0 0 0;
}

.event-card.reception-event {
  border-radius: 0 100px 0 0;
}

/* Gambar atas */
.event-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Body konten */
.holy-event .event-body {
  padding: 10px 30px 30px 60px;
  background-color: #bfa05d;
  position: relative;
  margin-top: -10px; /* Sama, rapatkan */
}

.reception-event .event-body {
  padding: 10px 60px 30px 20px;
  background-color: #bfa05d;
  position: relative;
  margin-top: -10px; /* Sama, rapatkan */
}

/* Label vertikal */
.event-side-title {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px; /* Lebar area label */
  background-color: #5c4510;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 0; /* biar full block */
  overflow: hidden;
}

/* Posisi kiri */
.event-side-title.left {
  left: 0;
  transform: rotate(-90deg);
  transform-origin: center;
  width: 100%;
  height: 50px;
  top: 42%;
  left: -125px; /* Geser keluar biar sejajar sisi card */
  text-align: center;
  background-color: #5c4510;
  border-radius: 0 0 20px 20px;
}

/* Posisi kanan */
.event-side-title.right {
  right: 0;
  transform: rotate(90deg);
  transform-origin: center;
  width: 100%;
  height: 50px;
  top: 42%;
  right: -125px;
  text-align: center;
  background-color: #5c4510;
  border-radius: 0 0 20px 20px;
}

/* Tanggal */
.event-date {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #000;
}

.event-date .day {
  font-family: 'Hello Paris', cursive;
  font-size: 5rem;
}

.date-info span {
  display: block;
  font-weight: 600;
}

/* Waktu */
.event-time {
  margin-top: 10px;
  font-size: 0.95rem;
  padding-bottom: 10px;
}

.event-time i {
  margin-right: 5px;
}

/* Tempat */
.event-place {
  margin-top: 10px;
}

.event-place span {
  font-weight: 700;
}

.event-place p {
  margin: 5px 0 15px;
}

/* Tombol */
.map-btn {
  display: inline-block;
  border: 1px solid #000;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  transition: 0.2s ease;
}

.map-btn:hover {
  background-color: #5c4510;
  border: none;
  color: white;
}

/*--================================== Gallery ==================================--*/
.gallery-section {
  background-color: #fff9f2;
  text-align: center;
  padding: 100px 60px;
  font-family: "Poppins", sans-serif;
  position: relative; /* ⬅️ tambahkan ini */
  overflow: hidden;   /* ⬅️ opsional: supaya dekor tidak keluar area */
}

.gallery-title {
  font-family: "Parisienne", cursive;
  font-size: 4rem;
  color: #5c4510;
  margin-bottom: 60px;
  text-align: left; /* ubah jadi rata kiri */
  display: inline-block;
  position: relative;
}

.gallery-title span {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  color: #5c4510;
  display: block;
}

/* Garis di samping kanan judul */
.gallery-section .title-line {
  position: absolute;
  top: 50%;
  left: calc(100% + 20px);
  transform: translateY(-50%);
  width: clamp(60px, 10vw, 150px);
  height: 2px;
  background: linear-gradient(90deg, #5c4510 30%, transparent 70%);
  background-size: 200% 100%;
  border-radius: 1px;
  animation: lineMove 3s linear infinite;
}

/* === Grid === */
.gallery-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  justify-content: center;
  max-width: 1300px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Custom layout */
.gallery-grid img:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid img:nth-child(2) {
  grid-column: span 2;
}

.gallery-grid img:nth-child(3) {
  grid-row: span 2;
}

.gallery-grid img:nth-child(4) {
  grid-row: span 2;
}

.gallery-grid img:nth-child(5) {
  grid-column: span 2;
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.85);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  animation: zoom 0.4s ease;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  user-select: none;
}

.lightbox .close {
  top: 30px;
  right: 45px;
  transform: none;
  font-size: 40px;
}

.lightbox .prev {
  left: 40px;
}

.lightbox .next {
  right: 40px;
}

.lightbox .prev:hover,
.lightbox .next:hover,
.lightbox .close:hover {
  color: #c4a76a;
}

/*--================================== Gift ==================================--*/
.gift-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #fff9f2;
  position: relative;
  overflow: hidden;
}

.gift-title {
  font-family: 'Parisienne', cursive;
  color: #5c4510;
  font-size: 4rem;
  margin-bottom: 15px;
}

.gift-desc {
  color: #6a530f;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.gift-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.gift-card {
  position: relative; /* penting untuk posisi pseudo element */
  border: 2px solid #b89d69; /* border utama */
  border-radius: 16px;
  padding: 30px 40px;
  width: 420px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;
}

/* === border miring di belakang === */
.gift-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #b89d69;
  border-radius: 16px;
  transform: rotate(2deg);
  z-index: -1;
}

/* === bisa tambahkan efek hover biar sedikit bergerak === */
.gift-card:hover {
  transform: translateY(-6px);
  box-shadow: 6px 6px 0 #8b6b1e;
}

.gift-card:hover::before {
  transform: rotate(3deg);
}

.bank-logo {
  width: 120px;
  margin-top: -20px;
}

.gift-name {
  font-weight: 700;
  color: #3a2a09;
  margin-bottom: 5px;
}

.gift-number {
  font-size: 18px;
  color: #5c4510;
  margin-bottom: 20px;
}

.copy-btn {
  font-family: 'Poppins', sans-serif;
  background-color: transparent;
  border: 2px solid #5c4510;
  color: #5c4510;
  padding: 8px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background-color: #5c4510;
  color: #fff;
}

/*--================================== Greetings ==================================--*/
.greetings-section {
  background: #fff9f2;
  text-align: center;
  padding: 80px 20px;
}

.greetings-title {
  font-family: 'Parisienne', cursive;
  font-size: 4rem;
  color: #7a6026;
  margin-bottom: 50px;
}

.greetings-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 1200px; /* diperlebar dari sebelumnya 900px */
}

.greetings-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #b89d69;
  border-radius: 16px;
  transform: rotate(2deg);
  z-index: 1;
}

.greetings-inner {
  position: relative;
  z-index: 2;
  border: 2px solid #b89d69;
  border-radius: 12px;
  padding: 50px;
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

/* Form styling */
.greetings-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 40%;
}

.greetings-form input,
.greetings-form textarea,
.greetings-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #7a6026;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  background: #fffdf9;
  color: #4d3a17;
}

.greetings-form textarea {
  height: 120px;
  resize: none;
}

.greetings-form button {
  background: #7a6026;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: 0.3s;
}

.greetings-form button:hover {
  background: #b89d69;
  color: #3e2f13;
}

/* Messages styling */
.greetings-messages {
  flex: 1.3; /* Lebih lebar agar teks muat */
  background: #c4b288;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 300px;
  justify-content: flex-start;
  align-items: stretch;
}

.no-message {
  font-family: 'Poppins', sans-serif;
  color: #000;
  opacity: 0.9;
  font-size: 15px;
  border-radius: 6px;
  padding: 20px;
}

.message-card {
  background: #fff;
  border: 1.5px solid #7a6026;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left; /* teks jadi rata kiri */
  line-height: 1.5;
  animation: fadeIn 0.6s ease;
}

.message-card strong {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #3e2f13;
  display: block;
}

.message-card p {
  margin: 4px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #4b3c21;
}

.message-card small {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #7a6026;
}

.chat-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/*--================================== Thank You Section ==================================--*/
.thankyou-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('../images/4-Galeri/4-7.jpg') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* 🔹 Taruh konten di bawah */
  align-items: center;       /* 🔹 Center secara horizontal */
  text-align: center;
  color: #fff;
  padding: 80px 20px;        /* 🔹 Jarak dari bawah agar tidak terlalu mepet */
  overflow: hidden;
}

.thankyou-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%; /* sedikit lebih tinggi biar gradasi halus */
  background: #000;
  opacity: 0.6;
  z-index: 1;
}

.thanks-title {
  font-family: "Parisienne", cursive;
  font-size: 5rem;
  margin-bottom: 10px;
  z-index: 2;
  position: relative;
}

.thanks-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  z-index: 2;
  position: relative;
  max-width: 700px;
}

.thanks-logo {
  width: 500px;
  margin-top: 30px;
  z-index: 2;
  position: relative;
  filter: invert(1);
}

/*--================================== Footer ==================================--*/
.site-footer {
  background: #774936;
  border-top: 1px solid #774936;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
}

.footer-logo {
  max-height: 100px;
}

.footer-brand {
  font-family: 'Parisienne', cursive;
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
}

/* Grid wrapper */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* penting untuk responsive */
  gap: 20px;
  text-align: center;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

/* Navigation */
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  transition: color .3s;
}

.footer-nav a:hover {
  color: #f9dcc4;
}

/* Social */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-social a {
  color: #fff;
  font-size: 1.2rem;
  transition: color .3s;
}

.footer-social a:hover {
  color: #f9dcc4;
}

/* Copyright */
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  color: #fff;
  font-size: 0.85rem;
}

.footer-bottom a {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	transition: color .3s;
}

/*--================================== Floating Buttons ==================================--*/
.floating-buttons {
	position: fixed;
	bottom: 20px;
	left: 20px;
	display: flex;
	flex-direction: column-reverse; /* Musik di bawah, Top di atasnya */
	gap: 15px;
	z-index: 9999;
}

/*=== Music Button ===*/
.music-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: solid 8px #76520e;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transition: transform 0.3s ease;
	color: #76520e;
  font-size: 1.5rem;
}

.music-btn.playing {
	animation: spin 4s linear infinite;
}

.music-btn:hover {
	transform: scale(1.1);
}

/*=== Top Button ===*/
.top-btn {
	bottom: 90px; /* di atas tombol musik */
	left: 20px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: solid 8px #76520e;
	background: #fff;
	color: #76520e;
	font-size: 20px;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	opacity: 0;
	transform: scale(0.5);
	pointer-events: none; /* tidak bisa diklik saat invisible */
	transition: opacity 0.5s ease, transform 0.5s ease;
	z-index: 999;
}

.top-btn.show {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

.top-btn:hover {
	transform: scale(1.1);
}

/*--================================== Decoration ==================================--*/
.decor {
  position: absolute;
  opacity: 0.8;
  pointer-events: none;
}

.flower-left {
  top: 10%;
  left: -180px;
  transform: rotate(15deg);
  animation: swing 6s ease-in-out infinite alternate;
}

/* Dekorasi bunga antara dua section */
.flower-between {
  bottom: -70px;
  right: -80px;
  width: 400px;
  transform: rotate(10deg);
  animation: swing 6s ease-in-out infinite alternate;
}

.leaf-top {
  top: 0;
  right: -20px;
  width: 250px;
  animation: float25 4s ease-in-out infinite alternate;
}

.leaf-bottom {
  bottom: 20px;
  left: -40px;
  width: 250px;
  animation: float25 4s ease-in-out infinite alternate;
}

/* === Flower Decorations === */
.flower-decor {
  position: absolute;
  bottom: 0;
  width: 320px;
  opacity: 0.95;
  pointer-events: none;
}

.flower-decor.left {
  left: 0;
}

.flower-decor.right {
  right: 0;
  transform: scaleX(-1);
}

/*--================================== RESPONSIVE DESIGN ==================================--*/
@media (max-width: 1200px) {
  .flower-left {
    width: 300px;
    left: -100px;
  }

  .flower-between {
    width: 280px;
    bottom: 50px;
  }

  .photo-frame .photo-img {
    width: 450px;
    height: 400px;
  }

  .bride-groom .title {
    font-size: 2.5rem;
  }

  .bride-groom .name {
    font-size: 1.8rem;
  }

  .bride-groom .parents {
    font-size: 1.3rem;
  }

  .event-card {
    width: 260px;
  }

  .event-side-title.left {
    left: -110px;
  }

  .event-side-title.right {
    right: -110px;
  }

  .gift-card {
    width: 350px;
  }

  .thanks-logo {
    width: 400px;
  }
}

/* 📱 Tablet portrait (≤992px) */
@media (max-width: 992px) {
  .hero-section .hero-logo {
    max-width: 280px;
  }

  .bride-groom {
    text-align: center;
  }

  .photo-frame .photo-img {
    width: 300px;
    height: 250px;
  }

  .event-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .gallery-section {
    padding: 80px 30px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 180px;
  }

  .flower-decor {
    width: 150px;
    opacity: 0.9;
  }

  .flower-decor.right {
    top: 0;
    transform: scaleY(-1) scaleX(-1);
  }

  .greetings-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 30px;
  }

  .greetings-form,
  .greetings-messages {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .lock-screen .main-names {
    width: 90%;
  }

  .hero-section .subtitle {
    font-size: 1.3rem;
  }

  .hero-section .hero-logo {
    max-width: 200px;
  }

  .hero-section .countdown {
    gap: 20px;
  }

  .countdown .time-box span {
    font-size: 1.6rem;
  }

  .countdown .time-box p {
    font-size: .8rem;
  }

  .yd-logo {
    width: 150px;
  }

  .verse-text {
    font-size: 1.2rem;
  }

  .verse-ref {
    font-size: 1.8rem;
  }

  .flower-left {
    width: 180px;
    top: 100px;
    left: -80px;
  }

  .flower-between {
    width: 220px;
    bottom: -10px;
  }

  .bride-groom .title {
    font-size: 2rem;
  }

  .bride-groom .name {
    font-size: 1.25rem;
  }

  .bride-groom .parents {
    font-size: 1.05rem;
  }

  .photo-frame::after {
    width: 300px;
    height: 200px;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
  }

  .bride-groom .photo-img {
    width: 300px;
    height: 200px;
  }

  .text-section {
    text-align: center !important;
    margin-bottom: 30px;
  }

  .leaf-top {
    top: 55%;
    width: 135px;
  }

  .leaf-bottom {
    top: 220px;
    width: 150px;
  }

  .event-title {
    font-size: 2.5rem;
  }
  
  .event-title span {
    font-size: 2rem;
  }

  .event-side-title.left {
    left: -110px;
  }

  .event-side-title.right {
    right: -110px;
  }

  .gallery-section {
    padding: 60px 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 140px;
  }

  .gallery-title {
    font-size: 2.5rem;
  }
  
  .gallery-title span {
    font-size: 2rem;
  }

  .gift-title {
    font-size: 2.5rem;
  }

  .gift-desc {
    font-size: 1rem;
  }

  .gift-container {
    flex-direction: column;
    align-items: center;
  }

  .gift-card {
    width: 85%;
  }

  .flower-decor {
    width: 150px;
    opacity: 0.9;
  }

  .flower-decor.right {
    top: 0;
    transform: scaleY(-1) scaleX(-1);
  }

  .greetings-title {
    font-size: 2.5rem;
  }

  .greetings-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .greetings-form,
  .greetings-messages {
    width: 100%;
  }

  .thanks-title {
    font-size: 3.5rem;
  }

  .thanks-subtitle {
    font-size: 1rem;
    padding: 0 10px;
  }

  .thanks-logo {
    width: 200px;
  }
}

/*--================================== Animation ==================================--*/
/* Default state sebelum muncul */
.fade-up, .fade-down, .fade-left, .fade-right {
  opacity: 0;
  transition: all 1s ease;
}

/* arah */
.fade-up    { transform: translateY(40px); }
.fade-down  { transform: translateY(-40px); }
.fade-left  { transform: translateX(-40px); }
.fade-right { transform: translateX(40px); }

/* default kecil */
.zoom-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 1s ease;
}

/* aktif normal */
.zoom-in.active {
  opacity: 1;
  transform: scale(1);
}

/* aktif (muncul normal) */
.fade-up.active,
.fade-down.active,
.fade-left.active,
.fade-right.active {
  opacity: 1;
  transform: none; /* reset jadi normal */
}

/* Delay helpers */
.delay-50 { animation-delay: 0.05s; }
.delay-100 { animation-delay: 0.1s; }
.delay-150 { animation-delay: 0.15s; }
.delay-200 { animation-delay: 0.2s; }
.delay-250 { animation-delay: 0.25s; }
.delay-300 { animation-delay: 0.3s; }
.delay-350 { animation-delay: 0.35s; }
.delay-400 { animation-delay: 0.4s; }
.delay-450 { animation-delay: 0.45s; }
.delay-500 { animation-delay: 0.5s; }
.delay-550 { animation-delay: 0.55s; }
.delay-600 { animation-delay: 0.6s; }
.delay-650 { animation-delay: 0.65s; }
.delay-700 { animation-delay: 0.7s; }
.delay-750 { animation-delay: 0.75s; }
.delay-800 { animation-delay: 0.8s; }
.delay-850 { animation-delay: 0.85s; }
.delay-900 { animation-delay: 0.9s; }
.delay-950 { animation-delay: 0.95s; }
.delay-1000 { animation-delay: 1s; }

/* Efek fade lembut */
@keyframes fadeSlide {
  0% { opacity: 0; }
  10% { opacity: 1; }
  30% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes float0 {
	0% {
		transform: rotate(0deg) translateY(0);
	}
	100% {
		transform: rotate(0deg) translateY(20px);
	}
}

@keyframes float15 {
	0% {
		transform: rotate(15deg) translateY(0);
	}
	100% {
		transform: rotate(15deg) translateY(20px);
	}
}

@keyframes float25 {
	0% {
		transform: rotate(25deg) translateY(0);
	}
	100% {
		transform: rotate(25deg) translateY(20px);
	}
}

@keyframes float180 {
	0% {
		transform: rotate(180deg) translateY(0);
	}
	100% {
		transform: rotate(180deg) translateY(20px);
	}
}

@keyframes float90 {
	0% {
		transform: rotate(90deg) translateY(0);
	}
	100% {
		transform: rotate(90deg) translateY(20px);
	}
}

@keyframes swing {
	from {
    transform: rotate(20deg) translateY(0);
  }
  to {
    transform: rotate(15deg) translateY(5px);
  }
}

@keyframes pulse {
	0% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.15);
		opacity: 0.9;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes zoom {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes zoomIn {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}

/* Fade Up */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade Down */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade Left */
@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade Right */
@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
	0% {
		left: -75%;
	}
	100% {
		left: 125%;
	}
}

@keyframes draw {
	to {
		stroke-dashoffset: 0;
	}
}

/* Animasi seperti "bergerak" */
@keyframes lineMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200% 0;
  }
}