/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Crimson Text", serif;
  width: 100%;
  max-width: 448px; /* max-w-md = 28rem = 448px */
  margin: 0 auto;
  overflow-x: hidden;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideRight {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideLeft {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* ========================================
   AUDIO PLAYER
   ======================================== */
.audio-player {
  position: fixed;
  bottom: 1.5rem; /* 24px = bottom-6 */
  right: 1.5rem;
  z-index: 50;
}

.audio-button {
  background-color: #500f09;
  color: white;
  width: 3.5rem; /* 56px = w-14 */
  height: 3.5rem; /* 56px = h-14 */
  border-radius: 50%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  visibility: hidden; /* hidden by default */
}

.audio-button:hover {
  background-color: #3a0b07;
}

.audio-button .icon {
  width: 1.5rem; /* 24px = w-6 */
  height: 1.5rem;
}

.icon-hidden {
  display: none;
}

/* ========================================
   COVER SECTION
   ======================================== */
.cover-section {
  height: 100vh;
  width: 100%;
  background: linear-gradient(
    to bottom,
    #fce7f3,
    #f3e8ff
  ); /* from-pink-100 to-purple-100 */
  background-image: url("assets/hamid/joglo-cover.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem; /* p-6 = 1.5rem */
  padding-bottom: 10em;
  transition: transform 1s;
  position: relative;
}

.tanggal-cover {
  position: absolute;
  top: 0%;
  left: 0%;
  padding: 1rem;
}

.decor-top-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: end;
}

.decor-top .decor-img {
  margin: 0 auto 1rem;
  width: 100%;
  height: 6rem; /* h-24 = 6rem */
}

.slide-down {
  animation: slideDown 1s ease-in-out;
}

.slide-left {
  animation: slideLeft 1s ease-in-out;
}

.slide-right {
  animation: slideRight 1s ease-in-out;
}

.decor-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  display: flex;
  justify-content: start;
}

.decor-bottom .decor-img {
  /* margin: 0 auto 1rem; */
  /* width: 100%; */
  height: 16rem;
}

.slide-up {
  animation: slideUp 1s ease-in-out;
}

.cover-content {
  text-align: center;
  z-index: 10;
  margin-top: 5rem; /* mt-20 = 5rem */
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
}

.gunungan-icon {
  margin: 0 auto 1rem;
  width: 6rem; /* w-24 = 6rem */
  height: 6rem;
}

.cover-date {
  font-size: 0.75rem; /* text-xs = 0.75rem */
  color: #1f2937; /* text-gray-800 */
}

.cover-title {
  font-size: 1.25rem; /* text-xl = 1.25rem */
  font-weight: 700; /* font-bold */
  color: #500f09;
}

.nama-img {
  width: 100%;
}

.guest-info {
  position: fixed;
  bottom: 5rem; /* bottom-20 = 5rem */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 448px; /* max-w-md */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.guest-label {
  color: #1f2937; /* text-gray-800 */
  margin-bottom: 0.5rem; /* mb-2 */
  font-weight: 700; /* font-bold */
}

.guest-name-box {
  border-radius: 9999px; /* rounded-full */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  background-color: #500f09;
  padding: 0.5rem; /* p-2 */
  margin-bottom: 1.5rem; /* mb-6 */
  border: 1px solid #fabe74;
  width: 90%;
  text-align: center;
}

.guest-name {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 600; /* font-semibold */
  color: #fffafa;
}

.open-button {
  background-color: transparent;
  color: #500f09;
  padding: 0.75rem; /* px-8 py-3 */
  border-radius: 9999px; /* rounded-full */
  font-weight: 600; /* font-semibold */
  transition: background-color 0.3s;
  z-index: 9999;
  animation: bounce 1s infinite;
  border: none;
  cursor: pointer;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
  overflow: hidden;
  display: none;
}

.section {
  width: 100%;
  background-color: #fff5eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem; /* px-6 = 1.5rem */
  position: relative;
}

.section-title {
  line-height: normal;
  font-size: 2.25rem; /* text-4xl */
  font-weight: 700; /* font-bold */
  color: #500f09;
  margin: 0;
}

/* ========================================
   DOA SECTION
   ======================================== */
.section-doa {
  height: 100vh;
  justify-content: center;
  overflow: hidden;
}

.bg-flowers {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100vh;
}

.bg-flowers img {
  margin: 0 auto;
  width: 100%;
  object-fit: fill;
}

.photo-container {
  width: 12rem; /* w-64 = 16rem */
  position: relative;
}

.cloud {
  position: absolute;
  width: 100%;
}

.cloud img {
  margin: 0 auto 1rem;
  width: 100%;
  height: 6rem;
}

.cloud-1 {
  top: 2rem; /* -top-10 */
  left: 12rem; /* left-30 */
}

.cloud-2 {
  top: 1rem; /* bottom-12 */
  right: 12rem; /* right-32 */
}

.prewed-img {
  margin: 0 auto 1rem;
  width: 100%;
  height: 16rem;
  margin: 2rem 0;
}

.ayat-text {
  color: #374151; /* text-gray-700 */
  text-align: center;
  padding: 0 1.5rem;
  font-size: 0.875rem; /* text-sm */
}

.surah-ref {
  color: #1f2937; /* text-gray-800 */
  text-align: center;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ========================================
   MEMPELAI SECTION
   ======================================== */
.section-mempelai {
  height: 100vh;
  justify-content: center;
  gap: 6rem; /* gap-2 */
  padding-bottom: 8em;
}

.section-pria {
  align-items: flex-end;
  text-align: right;
}

.section-pria .section-title {
  text-align: center;
}

.nama-mempelai .section-title {
  text-align: center;
}

.nama-mempelai .mempelai-info {
  text-align: center;
}

.instagram-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.section-pria .instagram-link {
  justify-content: flex-end;
}

.instagram-icon {
  width: 1rem; /* w-4 */
  height: 1rem;
  object-fit: fill;
}

.instagram-link a {
  color: #374151;
  margin-left: 0.5rem; /* ml-2 */
  text-decoration: none;
}

.mempelai-info {
  color: #1f2937;
  line-height: 1.6;
}

.section-pria .mempelai-info {
  text-align: right;
}

.mempelai-photo {
  width: 19.5rem; /* w-78 */
  height: 100%;
  position: relative;
  margin-top: 0.5rem;
}

.mempelai-top {
  position: absolute;
  top: -8rem;
  right: 0;
}
.mempelai-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
}
.wayang {
  position: absolute;
  margin: 0 auto 1rem;
  /* width: 100%; */
}

.cloud-mempelai-1 {
  top: 4rem;
  right: -10rem;
}
.wayang-dita {
  bottom: 10rem; /* bottom-12 */
  left: 0rem; /* -right-32 */
}

.wayang-nizar {
  bottom: 0.5rem; /* bottom-2 */
  left: -12rem; /* -left-48 */
  width: 86%;
}

.mempelai-photo img {
  margin: 0 auto 1rem;
  width: 100%;
  object-fit: fill;
}

/* ========================================
   COUNTDOWN SECTION
   ======================================== */
.section-countdown {
  /* height: 100vh; */
  /* justify-content: flex-end; */
  gap: 0.5rem;
}

.duduk-img {
  margin-bottom: 1rem;
  width: 100%;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem; /* gap-6 */
  margin-top: 1rem;
  width: 100%;
}

.countdown-item {
  border-radius: 0.75rem; /* rounded-xl */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  background-color: #500f09;
  padding: 1rem; /* p-4 */
  margin-bottom: 1.5rem;
  border: 1px solid #fabe74;
  text-align: center;
  color: white;
  min-width: 80px;
}

.countdown-number {
  font-size: 1.875rem; /* text-3xl */
}

.countdown-label {
  font-size: 1rem;
}

.countdown-description {
  text-align: center;
  padding: 0 1.5rem;
  color: #374151;
  margin-top: 0.5rem;
}

/* ========================================
   ACARA SECTION
   ======================================== */
.section-acara {
  /* height: 100vh; */
  justify-content: flex-start;
  gap: 0.5rem;
}

.acara-card {
  margin: 1.5rem;
  border-radius: 1rem; /* rounded-2xl */
  background-color: white;
  background-image: url("assets/gunungan-trans.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #d1d5db; /* border-gray-300 */
}

.acara-title-img {
  margin: 0 auto 1rem;
  width: 100%;
  height: 6rem;
}

.acara-time {
  text-align: center;
  color: #374151;
  font-size: 1.25rem; /* text-xl */
  margin: 0;
  padding: 0;
}

.acara-date {
  text-align: center;
  color: #500f09;
  font-size: 90px;
}

.acara-month,
#acara-location {
  text-align: center;
  color: #374151;
  font-size: 1.25rem;
}

.maps-img {
  margin-top: 1rem;
  width: 100%;
  cursor: pointer;
}

.maps-button {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem; /* px-6 py-2 */
  background-color: #500f09;
  color: white;
  border-radius: 1rem;
  width: 100%;
  border: 2px solid #fabe74;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.maps-button:hover {
  background-color: #3a0b07;
}

/* ========================================
   GALERI SECTION
   ======================================== */
.section-galeri {
  height: auto;
  background-color: #500f09;
  padding-bottom: 1.5rem;
  gap: 0.5rem;
}

.galeri-title {
  margin: 2rem auto 1rem;
  width: 100%;
  height: 4rem; /* h-16 */
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* grid-cols-2 */
  gap: 0.5rem; /* gap-2 */
  width: 100%;
  margin-top: 1rem;
}

.galeri-item img {
  margin: 0 auto;
  width: 100%;
}

/* ========================================
   KADO SECTION
   ======================================== */
.section-kado {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: cover;
  background-position: center;
  gap: 2rem;
  padding-bottom: 0;
}

.kado-title {
  /* margin: 2rem auto 1rem; */
  width: 100%;
  position: relative;
  /* height: 2.8rem; */
}

.hadiah-img {
  margin: 1rem auto 1rem;
  width: 100%;
  height: 4rem;
}

.kado-description {
  text-align: center;
  padding: 0 1.5rem;
  color: #374151;
  margin-top: 0.5rem;
}

.bank-card {
  background-color: white;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem; /* rounded-xl */
  padding: 2rem; /* p-8 */
  margin-top: 1rem;
  width: 100%;
  max-width: 448px;
}

.bank-logo {
  width: 8rem; /* w-48 */
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.bank-number {
  display: flex;
  gap: 1rem; /* gap-4 */
  align-items: center;
}

.bank-number .number {
  color: #1f2937; /* text-gray-800 */
  font-weight: 600;
  font-size: 1.25rem; /* text-xl */
}

.copy-icon {
  width: 1.5rem; /* w-6 */
  height: 1.5rem;
  cursor: pointer;
}

.bank-name {
  color: #4b5563; /* text-gray-600 */
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

/* ========================================
   UCAPAN SECTION
   ======================================== */
.section-ucapan {
  height: 100vh;
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 1.5rem;
  gap: 0.5rem;
}

.ucapan-bg-flower {
  position: absolute;
  top: 5rem; /* top-20 */
  right: -12.5rem; /* -right-50 */
  transform: rotate(270deg);
}

.ucapan-bg-flower img {
  margin: 0 auto 1rem;
  width: 100%;
  object-fit: fill;
}

.ucapan-title {
  margin: 2rem auto 1rem;
  width: 100%;
  height: 4rem;
}

.ucapan-form {
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 10;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  color: #374151;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 1rem; /* px-4 py-2 */
  border: 1px solid #d1d5db; /* border-gray-300 */
  border-radius: 0.5rem; /* rounded-lg */
  outline: none;
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #500f09;
  box-shadow: 0 0 0 2px rgba(80, 15, 9, 0.2);
}

.submit-button {
  width: 100%;
  padding: 0.75rem 1.5rem; /* px-6 py-3 */
  background-color: #500f09;
  color: white;
  border-radius: 1rem; /* rounded-2xl */
  font-weight: 600;
  border: 2px solid #fabe74;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #3a0b07;
}

.form-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
}

.ucapan-list-wrapper {
  margin-top: 0.5rem;
  width: 100%;
}

.ucapan-list-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #500f09;
  margin-bottom: 1rem;
}

.ucapan-list {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* space-y-4 */
  max-height: 24rem; /* max-h-96 */
  overflow-y: auto;
  width: 100%;
  padding-bottom: 3em;
}

/* ========================================
   PENUTUP SECTION
   ======================================== */
.section-penutup {
  height: 100vh;
  justify-content: center;
  padding-bottom: 1.5rem;
  gap: 0.5rem;
}

.cloud-decoration {
  position: absolute;
  width: 100%;
}

.cloud-decoration img {
  margin: 0 auto 1rem;
  width: 100%;
  height: 6rem;
}

.cloud-left {
  top: 1rem; /* top-4 */
  left: 10.5rem; /* left-42 */
}

.cloud-right {
  top: 3.5rem; /* -top-10 */
  right: 10.5rem; /* right-38 */
}

.terimakasih-img {
  margin: 2rem auto 1rem;
  width: 100%;
  height: 4rem;
}

.penutup-text {
  text-align: center;
  padding: 0 1.5rem;
  color: #374151;
  margin-top: 0.5rem;
}

.gunungan-penutup {
  margin: 1rem auto 1rem; /* mt-3 */
  width: 12rem; /* w-64 */
}

.footer {
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  background-color: #500f09;
  padding: 0.5rem 0;
}

.footer-text {
  font-size: 0.875rem;
  color: rgba(255, 245, 235, 0.8); /* text-[#fff5eb]/80 */
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

.footer-nama {
  display: flex;
  justify-content: center;
  margin: 0.75rem auto 1rem;
  width: 10rem; /* w-40 */
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 640px) {
  .section-title {
    font-size: 1.875rem; /* Slightly smaller on mobile */
  }

  .countdown {
    gap: 0.75rem;
  }

  .countdown-item {
    min-width: 70px;
    padding: 0.75rem;
  }
}

/* ======= Ucapan ======= */

.list-ucapan {
  background-color: #ffffff;
  border-radius: 0.5rem; /* rounded-lg */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #d1d5db;
  padding: 1rem 1rem;
  transition: background-color 0.3s;
}

.ucapan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.ucapan-nama {
  text-transform: capitalize;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937; /* text-gray-800 */
  margin: 0;
}

/* Gallery Item Styling */
.galeri-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: block;
  background: #f5f5f5;
}

.galeri-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.galeri-item:hover img {
  transform: scale(1.1);
}

/* Gallery Grid */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* Hover effect overlay (optional) */
.galeri-item::before {
  content: "🔍 Klik untuk melihat";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 14px;
  font-weight: bold;
}

.galeri-item:hover::before {
  opacity: 1;
}
