.section-1 {
  background:
    url('../img/masjid1.png') no-repeat 70% bottom,
    url('../img/bg_teal.jpg') no-repeat center center;
  background-size:
    contain,
    cover;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.section-2 {
  background: #268490;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('../img/bg-ornament.png');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 400px auto !important;
}
.section-3 {
  background: #ffffff;
  min-height: 100vh;
  position: relative;
  z-index: auto;
}
.section-3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url('../img/bg_teal.jpg') center center/cover no-repeat;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.section-3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  background: url('../img/bg-ornament.png') no-repeat left bottom;
  background-size: 100% auto;
  transform: rotate(180deg);
  pointer-events: none;
  z-index: 1;
}
.section-3 > * {
  position: relative;
  z-index: 2;
}
.section-3-masjid-kiri, .section-3-masjid-kanan {
  position: absolute;
  bottom: 0;
  width: 200px !important;
  height: auto;
  z-index: 2;
  pointer-events: none;
  object-fit: contain;
}
.section-3-masjid-kiri {
  left: -100px;
  clip-path: inset(0 50% 0 0);
  /* transform: scaleX(-1); */
}
.section-3-masjid-kanan {
  right: -100px;
  clip-path: inset(0 0 0 50%);
  /* transform: scaleX(-1); */
}
@media (max-width: 600px) {
  .section-3-masjid-kiri, .section-3-masjid-kanan {
    width: 90px;
  }
}
.section-4 {
  background: var(--tblr-primary, #236871);
  min-height: 60vh;
  position: relative;
  z-index: auto;


}
.section-4::before {
  display: none !important;
}
.section-4::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 90%;
  background-image: url('../img/bg-ornament.png');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 400px auto !important;
  z-index: 1;
  pointer-events: none;
}
.section-4 .glass-card {
  z-index: 2;
  position: relative;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.section-4-masjid-kiri, .section-4-masjid-kanan {
  position: absolute;
  bottom: 0;
  width: 160px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  object-fit: contain;
}
.section-4-masjid-kiri {
  left: 0;
  clip-path: inset(0 50% 0 0);
}
.section-4-masjid-kanan {
  right: 0;
  clip-path: inset(0 0 0 50%);
  transform: scaleX(-1);
}
@media (max-width: 600px) {
  .section-4-masjid-kiri, .section-4-masjid-kanan {
    width: 90px;
  }
}
.section-4 .icon-map-pin-top {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  color: #fff;
  display: inline-block;
}
.section-4 h2 {
  color: #fff !important;
}
.section-5 {
  background-color: var(--tblr-secondary, #49959e) !important;
  min-height: 60vh;
}
.container-450 {
  max-width: 450px;
  margin: 0 auto;
  overflow-x: hidden;
}
.frame-kiri-atas, .frame-kanan-atas {
  width: 140px;
  z-index: 5;
  top: -30px;
}

/* Frame Kiri Atas */
.frame-kiri-atas {
  position: absolute;
  left: -30px;
  z-index: 5;
}

/* Frame Kanan Atas (flip) */
.frame-kanan-atas {
  position: absolute;
  right: -30px;
  z-index: 5;
  /* Flip X axis using CSS property other than transform */
  /* Use scaleX(-1) alternative: flip with CSS direction and rotateY */
  /* But since transform is not allowed, use CSS 'scale' filter for flipping */
  filter: progid:DXImageTransform.Microsoft.BasicImage(mirror=1);
  -webkit-filter: FlipH;
  filter: FlipH;
  /* For modern browsers, use scaleX(-1) with transform, but since not allowed, 
     the only pure CSS alternative is to use a flipped image asset or CSS filter, 
     but CSS filter: flipH is not widely supported. 
     If possible, use a flipped image asset for .frame-kanan-atas. */
}

/* Lampion Kiri */
.latern-kiri {
  position: absolute;
  top: 0;
  left: 18px;
  width: 44px;
  z-index: 2;
  transform-origin: top center;
}

/* Lampion Kanan */
.latern-kanan {
  position: absolute;
  top: 0;
  right: 18px;
  width: 36px;
  z-index: 2;
  transform-origin: top center;
  animation: latern-kanan-flip 0.01s linear both;
}
@keyframes latern-kanan-flip {
  to { transform: scaleX(-1); }
}

/* Judul */
.judul {
  color: #FFA52A;
  font-weight: thin;
  font-size: 2rem;
  font-family: 'Jaini Purva', cursive, sans-serif;
  text-shadow: 0 2px 12px rgba(35, 104, 113, 1), 0 1px 2px rgba(0,0,0,0.12);
  text-shadow: 
    2px 2px 0px #236871,
    -1px -1px 0px #236871,
    1px -1px 0px #236871,
    -1px 1px 0px #236871,
    1px 1px 0px #236871;
}

/* Foto Anak */
.foto-anak-wrapper {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  z-index: 1;
  padding-left: 1rem;
  padding-right: 1rem;
}
.foto-anak {
  box-shadow: none;
  border: none;
  border-radius: 1rem;
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: cover;
}

/* Nama Anak */
.nama-anak {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--tblr-primary, #236871);
  font-family: 'Delicious Handrawn', cursive, sans-serif;
  -webkit-text-stroke: 5px #fff;
  text-stroke: 5px #fff;
  paint-order: stroke fill;
}

/* Ornamen Tengah */
.ornamen-tengah {
  width: 48px;
}

/* Masjid */
.masjid-wrapper {
  min-height: 120px;
}
.masjid-img {
  width: 100%;
  max-width: 400px;
}

.dan {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
}

.bg-ornament-kanan-atas {
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: url('../img/bg-ornament.png') no-repeat top right;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
}

.bg-masjid-bawah {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  height: 180px;
  transform: translateX(-50%);
  background: url('../img/masjid1.png') no-repeat bottom center;
  background-size: contain;
  z-index: -1;
  pointer-events: none;
}

.latern-kiri,
.latern-kanan {
  z-index: 2;
}

.frame-kiri-atas,
.frame-kanan-atas {
  z-index: 3;
}


.flower-bottom-ornament {
  position: absolute;
  left: -30px;
  width: 160px !important;
}

#flower-bottom-ornament-right {
  position: absolute;
  right: -30px;
  width: 160px;
  animation: flower-bottom-ornament-flip 0.01s linear both;
}
@keyframes flower-bottom-ornament-flip {
  to { transform: scaleX(-1); }
}

.card-tamu {
  max-width: 300px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border: none !important;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  box-shadow: 0 4px 24px 0 rgba(44,104,113,0.10), 0 1.5px 8px 0 rgba(44,104,113,0.08);
  color: #1a2a2e;
}
.card-tamu * {
  text-shadow: 0 1px 4px rgba(255,255,255,0.7), 0 1px 2px rgba(44,104,113,0.08);
}
@media (max-width: 480px) {
  .card-tamu {
    max-width: 230px;
    margin-left: 8px !important;
    margin-right: 8px !important;
    border-radius: 0.75rem;
  }
}

.latern-undangan {
  position: absolute;
  top: -54px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.latern-undangan-kiri { left: 32px; }
.latern-undangan-kanan { right: 32px; }
.latern-string {
  width: 2px;
  height: 38px;
  background: #ffb84d;
  margin-bottom: -6px;
}
.latern-img {
  width: 44px;
  height: 120px;
  object-fit: contain;
  display: block;
  animation: swing-latern 2.2s ease-in-out infinite alternate;
  transform-origin: top center;
}
@keyframes swing-latern {
  0% { transform: rotate(6deg); }
  100% { transform: rotate(-6deg); }
}
.foto-anak-oval {
  width: 127px;
  height: 167px;
  border-radius: 50% / 40%;
  background: #ddd;
  border: 4px solid #ffa52a;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.foto-anak-inside-oval {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% / 40%;
  display: block;
}
@media (max-width: 480px) {
  .latern-undangan-kiri { left: 10px; }
  .latern-undangan-kanan { right: 10px; }
  .latern-img { width: 38px; height: 90px; }
  .foto-anak-oval { width: 90px; height: 120px; }
}

.undangan-text {
  font-family: 'Fresca', sans-serif;
  font-size: 1.1rem;
  color: #222;
}

#latern-yellow1-left, #latern-yellow1-right {
  position: absolute;
  top: -40px;
  z-index: 12;
  width: 132px;
  height: 360px;
  object-fit: contain;
  pointer-events: none;
}
#latern-yellow1-left {
  left: -32px;
  animation: swing-latern-left 2.4s ease-in-out infinite alternate;
  transform-origin: top center;
}
#latern-yellow1-right {
  right: -32px;
  animation: swing-latern-right 2.4s ease-in-out infinite alternate;
  transform-origin: top center;
}
@keyframes swing-latern-left {
  0% { transform: rotate(8deg); }
  100% { transform: rotate(-8deg); }
}
@keyframes swing-latern-right {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(8deg); }
}
@media (max-width: 480px) {
  #latern-yellow1-left, #latern-yellow1-right {
    width: 80px;
    height: 210px;
    top: -20px;
  }
  #latern-yellow1-left { left: -12px; }
  #latern-yellow1-right { right: -12px; }
}

/* Lampion kuning tengah section 2 */
#latern-yellow3-center {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 239px;
  z-index: 10;
  animation: swing-latern-center 3.2s ease-in-out infinite alternate;
  transform-origin: top center;
}
@keyframes swing-latern-center {
  0% { transform: translateX(-50%) rotate(-5deg); }
  100% { transform: translateX(-50%) rotate(5deg); }
}

/* Card section 2: dome top like mosque */
.card-section-2 {
  border-top-left-radius: 40% 20%;
  border-top-right-radius: 40% 20%;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  overflow: hidden;
  padding-top: 40px;
}
@media (max-width: 480px) {
  .card-section-2 {
    border-top-left-radius: 50% 30%;
    border-top-right-radius: 50% 30%;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    padding-top: 50px;
  }
}

@media (max-width: 480px) {
  .section-2 {
    background-size: 180px auto;
  }
}

.section-6 {
  background-color: var(--tblr-secondary, #49959e) !important;
  min-height: 100vh;
  /* background: #F1DEDE !important; */
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-7 {
  min-height: 100vh;
  background:
    url('../img/bg_teal.jpg') no-repeat center center;
  background-size:
    cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Section 6: Do'a & RSVP */
/* #doa {
  background: linear-gradient(180deg, #e9f0fb 0%, #f8fbff 100%);
  min-height: 100vh;
} */
/* #rsvp-form .form-control {
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
} */

#rsvp-form .btn-outline-primary {
  background: #fff;
  border-width: 2px;
}
#rsvp-form .btn-check:checked + .btn-outline-primary {
  background: #206bc4;
  color: #fff;
  border-color: #206bc4;
}
#rsvp-form .btn-outline-primary .icon {
  margin-right: 0.5em;
  vertical-align: middle;
}

#doa.bg-secondary {
  background: var(--tblr-secondary, #206bc4) !important;
}

.section-7-masjid-kiri, .section-7-masjid-kanan {
  position: absolute;
  bottom: 0;
  width: 200px !important;
  height: auto;
  z-index: 2;
  pointer-events: none;
  object-fit: contain;
}
.section-7-masjid-kiri {
  left: -100px;
  clip-path: inset(0 50% 0 0);
}
.section-7-masjid-kanan {
  right: -100px;
  clip-path: inset(0 0 0 50%);
}
#particles-penutup {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.section-7 > .container {
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: 'Elsie Swash Caps', sans-serif;
  color: var(--tblr-primary) !important;
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 1.2em;
  letter-spacing: 0.01em;
}

.vehicles-anim-wrapper {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  z-index: 10;
  pointer-events: none;
  height: 90px;
}
.vehicle-anim {
  position: absolute;
  bottom: 0;
  left: -100px;
  z-index: 2;
  filter: drop-shadow(0 2px 8px #0002);
  opacity: 0.95;
  width: 90px !important;
}
.vehicle-plane {
  animation: vehicle-move-plane 18s linear infinite;
  animation-delay: 0s;
}
.vehicle-truck {
  animation: vehicle-move-truck 22s linear infinite;
  animation-delay: 6s;
}
.vehicle-train {
  animation: vehicle-move-train 26s linear infinite;
  animation-delay: 12s;
}
@keyframes vehicle-move-plane {
  0% { left: -100px; }
  100% { left: 100vw; }
}
@keyframes vehicle-move-truck {
  0% { left: -100px; }
  100% { left: 100vw; }
}
@keyframes vehicle-move-train {
  0% { left: -100px; }
  100% { left: 100vw; }
}
@media (max-width: 600px) {
  .vehicles-anim-wrapper { height: 54px; }
  .vehicle-anim { width: 54px !important; }
}

.glass-bg-card {
  background: linear-gradient(120deg,rgba(255,255,255,0.72),rgba(255,255,255,0.62)), url('../img/bg_teal.jpg') center center/cover no-repeat;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px #23687122;
  border: 1.5px solid rgba(255,255,255,0.25);
  overflow: hidden;
}

.masjid-transparan { opacity: 0.3 !important; }

/* Music Button Styles */
.music-button-container {
  position: fixed;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  cursor: pointer;
  user-select: none;
  z-index: 1000;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.28);
  box-shadow: 0 4px 24px #23687122, 0 1.5px 8px #fff3;
  transition: box-shadow 0.2s, background 0.2s;
}
.music-button-container:hover, .music-button-container:focus {
  box-shadow: 0 8px 32px #23687144, 0 2px 12px #fff5;
  background: rgba(255,255,255,0.28);
}
@media (max-width: 600px) {
  .music-button-container {
    width: 48px;
    height: 48px;
    bottom: 20% !important;
    right: 12px !important;
  }
}

#wishes-chat-container {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}
#wishes-chat-container::-webkit-scrollbar {
  display: none;
}
.chat-bubble {
  padding: 10px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 12px;
}
.chat-bubble-title .chat-bubble-author {
  font-size: 0.9rem !important;
  font-weight: bold;
}
.chat-bubble-title .chat-bubble-date {
  font-size: 0.7rem !important;
}
.chat-bubble-body p {
  font-size: 0.9rem !important;
  color: #333;
  margin-bottom: 0;
}

/* ====== START: Migrasi dari custom.css ====== */
.invitation-container {
  max-width: 450px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 8px;
}
@media (max-width: 480px) {
  .invitation-container {
    padding: 4px;
    width: 100vw;
    max-width: 100vw;
  }
}
body {
  color: #333;
}
/* Chat Bubble Styles */
.chat-bubbles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}
.chat-item {
  width: 100%;
}
.chat-item .row.align-items-end {
  align-items: flex-start !important;
}
.chat-bubble {
  padding: 10px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
}
.chat-bubble-title .chat-bubble-author {
  font-size: 0.9rem !important;
  font-weight: bold;
  font-family: 'Playfair Display', serif;
  color: var(--tblr-primary, #236871);
}
.chat-bubble-title .chat-bubble-date {
  font-size: 0.7rem !important;
  color: var(--tblr-secondary, #206bc4);
}
.chat-bubble-body p {
  font-size: 0.9rem !important;
  color: #333;
  margin-bottom: 0;
  font-family: 'Fresca', sans-serif;
}
.avatar.avatar-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e9f0fb;
  color: var(--tblr-primary, #236871);
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 2px 8px #23687122;
}
.btn-reply {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.btn-reply svg {
  color: var(--tblr-secondary, #206bc4);
  stroke: var(--tblr-secondary, #206bc4);
}
.btn-reply:hover, .btn-reply:focus {
  opacity: 1;
}
.chat-bubble-reply .btn-reply {
  display: none !important;
}
.chat-bubble-reply {
  background: rgba(255,255,255,0.18);
  font-size: 0.95em;
  box-shadow: none;
}
.chat-reply-item {
  margin-left: 0.5rem;
  border-left: 2px solid #e9f0fb;
  padding-left: 0.5rem;
  display: flex;
  align-items: flex-start;
}
.chat-reply-item .avatar {
  margin-top: 0;
}
@media (max-width: 600px) {
  .btn-reply {
    right: 4px;
    bottom: 4px;
  }
  .chat-reply-item {
    margin-left: 0.25rem;
    padding-left: 0.25rem;
  }
}
/* ====== END: Migrasi dari custom.css ====== */

.section-8 {
  display: flex;
  align-items: end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  background: transparent;
  min-height: unset;
  height: auto;
}
.section-8-divider {
  width: 100%;
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

#latern7-kiri {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 40px;
  height: auto;
}
#latern7-kanan {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 40px;
  height: auto;
}
