html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Lora", serif;
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    url(asset/img/wedding.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: -1;
}

/* SECTION: Openner (Opening) */
#openner {
  height: 100vh;
  position: fixed;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.436) 0%,
      rgba(0, 0, 0, 0.822) 100%
    ),
    url(asset/img/wedding.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  width: 100vw;
  z-index: 12;
  transition: 0.5s;
}
.text-group-top {
  padding-bottom: 10px;
}
.top-heading-openner {
  font-family: Afterglow regular;
  font-size: 2vmax;
  color: white;
  letter-spacing: 10px;
}

.text-group-bottom {
  color: white;
  max-width: 500px;
}

.text-group-bottom p {
  font-size: 1.2rem;
}
.btn-primary {
  background: linear-gradient(180deg, #ffcc5f 0%, #473307 100%);
  border: none !important;
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 226, 5, 0.5) !important;
}

/* icon music */
.music-icon {
  position: fixed;
  color: white;
  background-color: #555;
  padding: 12px;
  border-radius: 50px;
  cursor: pointer;
  bottom: 20px;
  right: 20px;
  box-shadow: 1px 1px 5px #00000052;
  z-index: 10;
  transition: 0.4s;
}

.music-icon:hover {
  filter: brightness(1.3);
}

.music-icon.disabled {
  background-color: #888;
  color: #333;
  filter: grayscale(100%) brightness(0.8);
  cursor: not-allowed;
}

/* pembuka */
.nama-pengantin1 {
  font-family: "Great Vibes", cursive;
  font-size: 3.5rem;
  color: white;
}
.nama-pengantin {
  font-family: "Great Vibes", cursive;
  font-size: 2rem;
  text-align: center;
}
.pembuka {
  display: flex;
  min-height: 100vh;
}

/* wajib */
.left {
  flex: 1;
  position: relative;
}

.left .bg {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100% - 430px);
  height: 100%;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.436) 0%,
      rgba(0, 0, 0, 0.822) 100%
    ),
    url(asset/img/wedding.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.right {
  padding: 20px;
  width: 430px;
  background: rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  color: white;
}

/* Pembuka */
.pembuka .content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* padding: 40px 20px; */
}

.pembuka h4 {
  display: flex;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  gap: 10px;
}
.pembuka .bawah {
  margin-top: auto;
}
.pembuka .date {
  display: flex;
  text-align: right;
  gap: 10px;
}
.pembuka .kutip {
  text-align: right;
}

.and {
  display: flex;
  align-items: center;
  gap: 15px;
}
.and h2 {
  font-family: "Great Vibes", cursive;
}

span.garis {
  flex: 1;
  align-self: center;
  height: 2px;
  background-color: white;
  display: block;
}

/* informasi pengantin */
.pengantin {
  display: flex;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  padding: 30px 20px;
}
.mempelai {
  flex: 1;
  text-align: center;
}

.mempelai img {
  width: 300px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.mempelai p {
  margin: 5px 0;
  text-align: left;
}

/* FIXED: #hari-bahagia - Auto height instead of 100vh */
#hari-bahagia {
  display: flex;
  min-height: auto;
  /* padding: 40px 0; */
}
#hari-bahagia .content {
  padding: 40px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 100%;
  margin: auto;
}

#hari-bahagia h2 {
  font-size: 28px;
  margin-bottom: 10px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

#hari-bahagia p {
  margin-bottom: 30px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.waktu-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.waktu-box {
  text-align: center;
  min-width: 60px;
}

h2.angka-waktu {
  font-size: 30px;
  margin: 0;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.waktu-box p {
  margin: 2px 0 0;
  font-size: 10px;
  letter-spacing: 1px;
}

/* Informasi */
.informasi {
  display: flex;
}

.informasi .content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  position: relative;
}

.informasi .content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(80, 80, 80, 0.6);
}

.informasi .content > * {
  position: relative;
  z-index: 1;
}

.informasi h2 {
  font-family: "Great Vibes", cursive;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.event-image {
  display: flex;
  justify-content: center;
}
.event-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.event-card {
  padding: 15px;
  width: 85%;
}

.event-card.left {
  border-left: 3px solid white;
  margin-right: auto;
}

.event-card.right {
  background: transparent;
  border-right: 3px solid white;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.event-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

.event-card p {
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.btn-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  border: 1px solid white;
}

.btn-location:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* galeri foto */
#foto-nikah {
  display: flex;
  min-height: 100vh;
}

.container-foto {
  text-align: center;
}

.heading-foto {
  font-size: 24px;
  margin-bottom: 20px;
}

.galeri {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.foto-vertical {
  width: 250px;
  object-fit: cover;
  border-radius: 10px;
}

/* RSVP */
.rsvp {
  display: flex;
  min-height: 100vh;
}

.rsvp .content {
  background: rgba(80, 80, 80, 0.6);
  padding: 20px;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.rsvp h2 {
  text-align: center;
  font-family: "Lora", serif;
  font-size: 26px;
  margin-bottom: 10px;
  color: #fff;
}

.rsvp p {
  text-align: center;
  font-size: 14px;
  margin-bottom: 20px;
}

.rsvp label {
  display: block;
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 5px;
}

.rsvp input,
.rsvp select,
.rsvp textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.rsvp textarea {
  resize: none;
  height: 70px;
}

.rsvp button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background: transparent;
  color: white;
  border: 1px solid white;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.3s;
}

.rsvp button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.rsvp .garis {
  margin-top: 30px;
}

/* Loader */
#loader {
  text-align: center;
  font-size: 16px;
  margin: 20px 0;
}

/* Popup */
.popup {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px 25px;
  border-radius: 5px;
  z-index: 1000;
  font-size: 14px;
}

/* Guest List Styling */
#guestListContainer {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
  padding-top: 10px;
}

#guestListContainer::-webkit-scrollbar {
  width: 8px;
}

#guestListContainer::-webkit-scrollbar-button {
  display: block;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
}

#guestListContainer::-webkit-scrollbar-button:hover {
  background: rgba(255, 255, 255, 0.4);
}

#guestListContainer::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

#guestListContainer::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

#guestList {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 20px;
}

.guest-card {
  padding: 15px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.guest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.guest-name {
  font-weight: bold;
  text-transform: capitalize;
  font-size: 16px;
  color: #d4af37;
  flex-grow: 1;
}

.guest-status {
  background: #4caf50;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 10px;
}

.guest-status.tidak-hadir {
  background: #f44336;
}

.guest-time {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

.guest-message {
  display: flex;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
  color: #e0e0e0;
  margin: 0;
}

/* kado digital */
.kado-digital {
  display: flex;
}

.kado-digital .content {
  max-width: 360px;
  background: rgba(80, 80, 80, 0.6);
  padding: 25px 20px;
  margin: 50px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.kado-digital h2 {
  font-family: "Lora", serif;
  color: #fff;
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: bold;
}

.kado-digital p {
  color: #d6d6d6;
  margin-bottom: 20px;
  font-size: 14px;
}

.bank-card {
  border-radius: 15px;
  padding: 20px 18px;
  margin-bottom: 18px;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Bank Colors */
.bank-card.bca {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.bank-card.bri {
  background: linear-gradient(135deg, #003d82 0%, #0066cc 100%);
}

.bank-card.bni {
  background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}

.bank-card.mandiri {
  background: linear-gradient(135deg, #d4af37 0%, #f1c40f 100%);
  color: #333;
}

.bank-logo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.bank-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.bank-logo {
  width: 50px;
  height: 35px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #1e3c72;
  font-size: 12px;
}

.bank-name {
  font-size: 16px;
  font-weight: bold;
}

.account-info {
  text-align: left;
  margin-bottom: 15px;
}

.account-name {
  font-size: 14px;
  margin-bottom: 6px;
  opacity: 0.9;
}

.account-number {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-family: "Courier New", monospace;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.copy-btn.copied {
  background: #4caf50;
  border-color: #4caf50;
  transform: scale(0.95);
}

.thank-message {
  border-radius: 15px;
  padding: 15px 18px;
  margin-top: 20px;
}

.thank-message h3 {
  color: #fff;
  margin: 0 0 8px 0;
  font-size: 16px;
}

.thank-message p {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
}

/* Animation */
.kado-digital {
  animation: slideUp 0.8s ease-out;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  z-index: 1000;
  display: none;
}

.toast.show {
  display: block;
  animation: toastSlide 0.3s ease-out;
}

/* FIXED: Penutup - Auto height instead of 100vh */
.penutup {
  display: flex;
  min-height: auto;
  /* padding: 40px 0; */
}

.penutup .content {
  /* padding: 40px 30px; */
  display: flex;
  flex-direction: column;
}

.penutup .container {
  background: rgba(80, 80, 80, 0.6);
  color: white;
  text-align: center;
  width: 100%;
  margin: auto;
  max-width: 500px;
  margin: 0 auto;
}

.penutup h2 {
  font-family: "Great vibes", cursive;
  font-size: 2.7rem;
  margin-bottom: 1rem;
}

.penutup .foto img {
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.penutup p {
  font-size: 0.7rem;
  margin: 0.8rem 0;
}

.penutup .tanda-tangan {
  font-size: 1rem;
  margin-top: 2rem;
}

.penutup .tanda-tangan strong {
  font-family: "Great vibes", cursive;
  text-transform: capitalize;
  font-size: 1.7rem;
  letter-spacing: 0.05em;
}

/* footer */

.tutup {
  margin: 20px;
  padding: 1rem;
  background: rgba(150, 150, 150, 0.7);
  border-radius: 10px;
}
.footer-text {
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
  color: black;
  opacity: 0.7;
}
.tutup .logo-penutup img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop - Music icon position */
@media (min-width: 1024px) {
  .music-icon {
    right: auto;
    left: 20px;
  }
}

/* Tablet Layout */
@media (max-width: 1024px) and (min-width: 769px) {
  .left .bg {
    width: calc(100% - 350px);
  }

  .right {
    width: 350px;
    padding: 15px;
  }

  .mempelai img {
    width: 250px;
  }

  .foto-vertical {
    width: 200px;
  }

  .nama-pengantin1 {
    font-size: 3rem;
  }

  .top-heading-openner {
    font-size: 3vmax;
    letter-spacing: 8px;
  }
}

/* Mobile Layout */
@media (max-width: 768px) {
  body {
    background-position: top center;
  }

  /* Reset layout untuk mobile */
  .pengantin,
  #hari-bahagia,
  .informasi,
  #foto-nikah,
  .rsvp,
  .kado-digital,
  .penutup {
    flex-direction: column;
    min-height: auto;
  }

  .left {
    display: none;
  }

  .left .bg {
    display: none;
  }

  .right {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: none;
  }

  /* Opening section mobile */
  .top-heading-openner {
    font-size: 4vw;
    letter-spacing: 3px;
  }

  .nama-pengantin1 {
    font-size: 2.5rem;
  }

  .text-group-bottom p {
    font-size: 1rem;
  }

  /* Pembuka section mobile */

  .pembuka h4 {
    font-size: 1.2rem;
    flex-direction: column;
    gap: 8px;
  }

  /* Pengantin section mobile */
  .pengantin .content {
    padding: 20px 15px;
  }

  .mempelai img {
    width: 280px;
    max-width: 85%;
  }

  .nama-pengantin {
    font-size: 1.5rem;
  }

  .and {
    margin: 20px 0;
    /* flex-direction: column; */
    gap: 10px;
  }

  /* FIXED: Save the date mobile */
  #hari-bahagia .content {
    padding: 30px 15px;
  }

  #hari-bahagia h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  #hari-bahagia p {
    font-size: 14px;
    margin-bottom: 25px;
    max-width: 100%;
  }

  .waktu-container {
    gap: 15px;
    justify-content: space-around;
  }

  .waktu-box {
    min-width: 60px;
  }

  h2.angka-waktu {
    font-size: 28px;
  }

  .waktu-box p {
    font-size: 11px;
  }

  /* Informasi mobile */
  .informasi .content {
    padding: 20px 15px;
  }

  .event-card {
    width: 100%;
    margin: 10px 0;
  }
  .event-card.left {
    border-left: 3px solid white;
    border-right: none;
    margin-right: auto;
    margin-left: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .event-card.right {
    border-right: 3px solid white;
    border-left: none;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .event-card h3 {
    font-size: 1rem;
    gap: 5px;
  }

  .event-card p {
    font-size: 0.9rem;
    flex-direction: column;
    align-items: flex-start;
  }

  /* FIXED: Gallery mobile - Much larger photos */
  .container-foto {
    padding: 20px 15px;
  }

  .heading-foto {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .galeri {
    gap: 20px;
  }

  /* RSVP mobile */
  .rsvp .content {
    margin: 20px auto;
    padding: 15px;
    max-width: none;
  }

  /* Kado digital mobile */
  .kado-digital .content {
    margin: 20px auto;
    padding: 20px 15px;
    max-width: none;
  }

  .bank-card {
    padding: 15px;
  }

  .account-number {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .copy-btn {
    padding: 8px 15px;
    font-size: 12px;
  }

  /* FIXED: Penutup mobile */
  /* .penutup {
    padding: 30px 0;
  }

  .penutup .content {
    padding: 30px 15px;
  } */

  .penutup h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .penutup .foto img {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .penutup p {
    font-size: 0.9rem;
    margin: 1rem 0;
    line-height: 1.5;
  }

  .penutup .tanda-tangan {
    font-size: 1.1rem;
    margin-top: 2.5rem;
  }

  .penutup .tanda-tangan strong {
    font-size: 1.8rem;
  }

  .penutup .tutup {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .penutup .footer-text {
    font-size: 0.9rem;
  }

  /* Music icon mobile */
  .music-icon {
    bottom: 15px;
    right: 15px;
    padding: 10px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .nama-pengantin1 {
    font-size: 2rem;
  }

  .top-heading-openner {
    font-size: 5vw;
    letter-spacing: 2px;
  }

  .mempelai img {
    width: 220px;
  }

  /* FIXED: Save the date small mobile */

  #hari-bahagia .content {
    padding: 25px 15px;
  }

  h2.angka-waktu {
    font-size: 24px;
  }

  .waktu-box {
    min-width: 50px;
  }

  .waktu-box p {
    font-size: 10px;
  }

  .account-number {
    font-size: 14px;
  }

  /* FIXED: Penutup small mobile */
  /* .penutup {
    padding: 25px 0;
  }

  .penutup .content {
    padding: 25px 15px;
  } */

  .penutup h2 {
    font-size: 1.8rem;
  }

  .penutup p {
    font-size: 0.8rem;
  }

  .penutup .tanda-tangan strong {
    font-size: 1.6rem;
  }
}

/* Landscape orientation fix */
@media (max-width: 768px) and (orientation: landscape) {
  .pembuka .content {
    min-height: auto;
    padding: 20px 15px;
  }

  #hari-bahagia .content {
    padding: 20px 15px;
  }

  .penutup .content {
    padding: 20px 15px;
  }
}
