:root {
  --gold: #a8842b;
  --soft-gold: #f8f1dc;
  --abu-own: #3e3e3e;
  --bg: #f5f3ef;
  --white: #ffffff;
  --shadow: 0 2px 4px rgb(0 0 0 / 0.3);
  --blur-bg: rgba(255, 255, 255, 0.25);
}

/* RESET */
body {
  font-family: 'Aref Ruqaa', serif;
  font-optical-sizing: auto;
  background: linear-gradient(to bottom right, #f8f1dc, #e8d9b6);
  color: var(--brown);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
html,
body {
  overflow-x: hidden;
}
* {
  max-width: 100%;
  box-sizing: border-box;
}
section {
  max-width: 478px;
  margin: 0 auto; /* ini yang bikin center */
  width: 100%;
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Background gambar + overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, #f8f1dc, #e8d9b6);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

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

/* 🌸 ORNAMEN */
.ornamen-atas {
  position: absolute;
  width: 230px;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

.ornamen-kanan {
  top: -20px;
  right: -60px;
  transform: rotate(180deg);
}
.ornamen-kiri {
  top: -20px;
  left: -60px;
  transform: scaleX(-1) rotate(180deg);
}

.ornamen-tengah-bawah {
  position: absolute;
  width: 100%;
  bottom: -150px;
  z-index: 3;
  display: none;
}

/* ornamen kipas */
.kipas-kiri {
  position: absolute;
  bottom: -20px;
  left: -138px;
  width: 250px;
  z-index: 7;
  display: inline-block;
  transform-origin: bottom center;
  animation: ayunGunungan 10s ease-in-out infinite;
}
.kipas-kanan {
  position: absolute;
  bottom: -20px;
  right: -129px;
  width: 250px;
  z-index: 7;
  display: inline-block;
  transform-origin: bottom center;
  animation: ayunGunungan 10s ease-in-out infinite;
}

.kupu-kupu {
  position: absolute;
  bottom: 55px;
  left: 130px;
  width: 27px;
  z-index: 7;
  display: inline-block;
  transform: rotate(320deg);
  animation: terbangMelengkung 10s ease-in-out infinite,
    kepakSayap 1.5s ease-in-out infinite;
  transform-origin: center;
}
.kupu-kupu-atas {
  position: absolute;
  top: 70px;
  left: 40px;
  width: 27px;
  z-index: 7;
  display: inline-block;
  transform: rotate(320deg);
  animation: terbangMelengkung 10s ease-in-out infinite,
    kepakSayap 1.5s ease-in-out infinite;
  transform-origin: center;
}

/* foto couple */
.main-couple {
  width: 170px;
  height: 220px;
  margin: 0 auto;
  margin-bottom: 5px;
  background: #f3e6c1;
  border: 1.5px solid #6e4222;
  border-radius: 80px 80px 0 0;
  box-shadow: 0 4px 8px rgba(110, 66, 34, 0.4);
}

.img-couple {
  width: 100%;
}

/* Teks utama */
.hero h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 5em; /* diperbesar */
  color: var(--gold);
  margin-bottom: 0.5rem;
  animation: fadeInUp 1.4s ease;
}

.hero h4 {
  font-size: 1.3rem;
  color: var(--abu-own);
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.4);
  animation: fadeInDown 1.2s ease;
}

.hero p {
  font-size: 1.12rem;
  color: var(--abu-own);
  opacity: 0; /* ⬅️ Awalnya transparan dulu */
  animation: fadeInText 1.6s ease forwards;
  animation-delay: 0.2s; /* ⬅️ Tambahkan delay biar muncul setelah judul */
}

/* Countdown */
.simply-countdown {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.6s ease;
}

.simply-section {
  background: var(--blur-bg);
  border-radius: 20px;
  padding: 16px 20px;
  min-width: 95px;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.simply-section:hover {
  transform: translateY(-4px);
}

.simply-amount {
  display: block;
  font-size: 2.4rem;
  font-family: 'Aref Ruqaa', serif;
  font-optical-sizing: auto;
  font-weight: 700;
  color: var(--abu-own);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.simply-word {
  font-family: 'Aref Ruqaa', serif;
  font-size: 0.9rem;
  color: var(--abu-own);
  text-transform: uppercase;
}

/* Tambahan teks bawah countdown */
.countdown-text {
  font-size: 1.12rem;
  font-style: italic;
  color: var(--brown);
  opacity: 0.85;
  margin-top: 10px;
  animation: fadeIn 2s ease;
}

/* Tombol */
.hero a {
  color: var(--abu-own);
  background: linear-gradient(to right, #d4af37, #b8860b);
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  margin-top: 1rem;
  animation: fadeInUpButton 1.6s ease forwards;
  z-index: 5;
  padding-top: 8px;
}

.hero a:hover {
  background: var(--abu-own);
  color: var(--white);
  transform: translateY(-3px);
}
/* Riwayat- ayat */
.riwayat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem 2rem;
  background-color: #4e2a15;
  color: #f8f1dc;
}

.ornamen-riwayat {
  margin-bottom: -1rem;
  margin-top: -1rem;
  width: 50%;
}
.riwayat p {
  font-size: 1.1rem;
  font-style: italic;
}
/* home */
.home {
  overflow: hidden;
  min-height: 100vh;
  padding-top: 8rem;
  padding-bottom: 6rem;
  position: relative;
}
.home .bg {
  width: 100%;
  position: absolute;
  inset: 0;
  background-image: url('./img/bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;
}
.ornamen-atas-main {
  position: absolute;
  width: 150px;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

.ornamen-kanan-main {
  top: -10px;
  right: -40px;
  transform: rotate(180deg);
}
.ornamen-kiri-main {
  top: -10px;
  left: -40px;
  transform: scaleX(-1) rotate(180deg);
}
.home .container {
  position: relative;
  z-index: 1;
  color: #4b2e05;
}
.home h3 {
  font-family: 'Great Vibes', cursive;
  font-weight: 200;
  color: var(--gold);
  font-size: 2.5rem;
}
.home p {
  font-size: 1.12rem;
  margin-bottom: 2rem;
}
/* foto couple */
.foto-calon {
  width: 150px;
  margin: 0 auto;
  margin-bottom: 1rem;
}
.foto-calon .calon-pria {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #6e4222;
  object-fit: cover;
}
.foto-calon .calon-wanita {
  width: 100%;
  height: 100%;
  border-radius: 50%;

  object-fit: cover;
}
.data-calon {
  margin-bottom: 25px;
}

.data-calon h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: -7px;
}
.data-calon p {
  font-size: 1.12rem;
  color: var(--abu-own);
  margin-bottom: 1rem;
}
.data-calon h4 {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: var(--gold);
}

/* info pernikahan */
.info {
  position: relative;
  background-color: #4e2a15;
  width: 100%;
  padding: 2rem 1rem;
  color: #f8f1dc;
}
.info .bg {
  width: 100%;
  position: absolute;
  inset: 0;
  background-image: url('./img/bg-for-brown.png');
  background-size: contain;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}
.info h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.8rem;
  color: var();
  margin-bottom: 1rem;
}

/* card */
.info .card {
  position: relative;
  padding: 130px 30px;
  background: linear-gradient(to bottom right, #f8f1dc, #e8d9b6);
  color: var(--abu-own);
  border-radius: 220px;
  margin-bottom: 2rem;
  overflow: hidden;
  border: var(--gold) 1.5px solid;
  max-width: 420px;
}

.info .card .kipas-card {
  position: absolute;
  top: 80px;
  left: 48%;
  transform: translateX(-50%);
  width: 500px;
  z-index: 0;
  opacity: 0.1;
}
.info .card .ornamen-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -78px;
  width: 110%;
  opacity: 0.9;
  z-index: 0;
}
.info .card .bunga-card-right {
  position: absolute;
  right: -34px;
  bottom: 120px;
  width: 120px;
  transform: rotate(-20deg);
  opacity: 0.9;
  z-index: 0;
}
.info .card .bunga-card-left {
  position: absolute;
  left: -27px;
  bottom: 120px;
  width: 120px;
  transform: scaleX(-1);
  transform: rotate(40deg);
  opacity: 0.9;
  z-index: 0;
}
.info .card .ranting-card {
  position: absolute;
  right: -10px;
  top: 50px;
  width: 150px;
  transform: rotate(200deg);
  z-index: 0;
}

.info .card-main {
  margin-bottom: 1rem;
  z-index: 1;
}
.info .card-main h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
}
.info .card-main p {
  font-size: 1.2rem;
  font-weight: 500;
}
.info .card-main h3 {
  font-size: 3rem;
  margin-bottom: 1.2rem;
}
.line-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  z-index: 1;
}
.line-icon span {
  display: inline-block;
  height: 2px;
  width: 100px;
  background-color: var(--abu-own);
  margin: 0 10px;
}
.line-icon svg {
  fill: var(--abu-own);
}

.info .card-add {
  margin-bottom: 1rem;
  z-index: 1;
}
.info .card-add p {
  font-size: 1.2rem;
}
.btn-location {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 170px;
  gap: 3px; /* jarak ikon dan teks */
  padding: 10px;
  background: linear-gradient(90deg, #c9a34b, #e0c27b);
  color: var(--abu-own);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  border: none;
  border-radius: 50px; /* bentuk oval */
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  z-index: 1;
}
.btn-location span {
  position: relative;
  margin-top: -2px;
}

.btn-location:hover {
  background: linear-gradient(90deg, #b9933a, #d4b466);
  transform: translateY(-2px);
}

/* SVG ikon */
.btn-location svg {
  width: 20px;
  height: 20px;
  fill: var(--abu-own);
}

/* MAP LOKASI */
.lokasi-section {
  padding: 2rem 1rem;
}

.judul-lokasi {
  font-family: 'Great Vibes', cursive;
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.nama-tempat {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--abu-own);
  margin-bottom: 5px;
}

.alamat-tempat {
  font-size: 1.12rem;
  color: var(--abu-own);
  margin-bottom: 25px;
}

.map-wrapper {
  max-width: 500px;
  margin: 0 auto 25px;
  border-radius: 15px;
  border: var(--gold) 1px solid;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.btn-lokasi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  gap: 8px;
  background: linear-gradient(90deg, #c7a440, #e6c65f);
  color: var(--abu-own);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 50px;
  border: var(--gold) 1px solid;
  font-weight: 500;
  font-size: 1.12rem;
  transition: all 0.3s ease;
}
.btn-lokasi span {
  position: relative;
  top: -2px;
}

.btn-lokasi:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/*WEDDING GIFT */
.wedding-gift {
  padding: 2rem 0;
  background-color: #4e2a15;
  color: #f8f1dc;
  text-align: center;
  position: relative;
  padding-bottom: 0;
}
.wedding-gift .bg {
  width: 100%;
  position: absolute;
  inset: 0;
  background-image: url('./img/bg-for-brown.png');
  background-size: contain;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}
.wedding-gift .container {
  padding: 0 2rem;
}
.wedding-gift .card-gift {
  position: relative;
  padding: 25px;
  background: linear-gradient(to bottom right, #f8f1dc, #e8d9b6);
  color: var(--abu-own);
  border-radius: 10px;
  margin-bottom: 2rem;
}

.card-gift h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.card-gift p {
  font-size: 1.12rem;
  margin-bottom: 1rem;
}

.btn-gift-card {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 170px;
  gap: 3px; /* jarak ikon dan teks */
  padding: 10px;
  background: linear-gradient(90deg, #c9a34b, #e0c27b);
  color: var(--abu-own);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  border: none;
  border-radius: 50px; /* bentuk oval */
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  z-index: 1;
  margin-top: 2rem;
}

.btn-gift-card:hover {
  background: linear-gradient(90deg, #b9933a, #d4b466);
  transform: translateY(-2px);
}

/* SVG ikon */
.btn-gift-card svg {
  width: 20px;
  height: 20px;
  fill: var(--abu-own);
}
/* card rekening */

.card-bank {
  position: relative;
  max-width: 400px;
  width: 100%;
  height: 200px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5f5f5, #c0c0c0, #a9a9a9);
  color: #222;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  padding: 20px;
  display: flex;
}

/* Efek kilau bergerak */
.card-bank::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0)
  );
  transform: skewX(-25deg);
  transition: 0.8s;
}

.card-bank:hover::before {
  left: 125%;
}

/* Komponen kiri */
.card-left {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center; /* element kiri berada di tengah vertikal */
  align-items: flex-start;
}
.card-left img {
  width: 48px;
  height: 35px;
}
.card-left .no-rekening {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.2rem;
}
.card-left .nama {
  font-family: 'Aref Ruqaa', serif;
  font-size: 1.1rem;
  font-weight: 500;
}
/* Komponen kanan */
.card-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}
.card-right .top {
  width: 100px;
}
.card-right .top-gift {
  width: 60px;
}
.card-right .top img {
  width: 100%;
}
.card-right .bottom {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.card-right .bottom img {
  width: 100%;
  height: 100%;
}
.text-card-gift {
  text-align: left;
}
.text-card-gift h4 {
  font-size: 1.3rem;
  margin-bottom: 0;
  font-weight: bold;
}
.text-card-gift p {
  font-size: 1rem;
  margin-top: 1px;
}

/* Efek border halus seperti logam */
.card-bank::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.botton-copy {
  background-color: #dddddd;
  padding: 2px 10px;
  border-radius: 10px;
  border: var(--gold) 1px solid;
}

/* codingan untuk card hilang dulu */
/* ====== BAGIAN DASAR ====== */
.gift-back {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gift-back.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* ====== ANIMASI TIAP CARD ====== */
.gift-back.show .card-bank {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s forwards;
}

.gift-back.show .card-bank:nth-child(1) {
  animation-delay: 0.2s;
}

.gift-back.show .card-bank:nth-child(2) {
  animation-delay: 0.4s;
}

/* ====== ANIMASI PANAH ====== */
.btn-gift-card svg {
  transition: transform 0.4s ease;
}

.btn-gift-card.active svg {
  transform: rotate(90deg);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  html {
    font-size: 90%;
  }
  .hero {
    padding: 3rem 1rem;
  }
  .hero h1 {
    font-size: 5.5rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 80%;
  }
  .hero {
    padding: 2rem 1rem 2.5rem;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero h4 {
    font-size: 1.2rem;
  }
  .simply-countdown {
    gap: 1rem;
  }
  .simply-section {
    padding: 10px 14px;
    min-width: 75px;
  }
  .ornamen-tengah-bawah {
    display: block;
  }
}

@media (max-width: 480px) {
  /* CSS untuk tampilan HP */
  .ornamen-tengah-bawah {
    bottom: -100px;
  }
}
/* navbar */

.navbar .nav-link {
  font-size: 1.2rem;
  text-align: center;
}

/* ✨ Animations ✨ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUpButton {
  0% {
    opacity: 0;
    transform: translateY(30px);
    background-color: var(--abu-own); /* warna awal seperti hover */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    background-color: var(--gold); /* warna akhir normal */
  }
}
@keyframes slideFromLeft {
  0% {
    opacity: 0;
    transform: translateY(-50px) rotate(90deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(90deg);
  }
}

@keyframes slideFromRight {
  0% {
    opacity: 0;
    transform: scaleY(-1) rotate(270deg) translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: scaleY(-1) rotate(270deg) translateX(0);
  }
}

/* 🌿 Efek melayang lembut (setelah posisi akhir) */
@keyframes floatSlowKiri {
  0% {
    transform: rotate(90deg) translateY(0);
  }
  50% {
    transform: rotate(90deg) translateY(-8px);
  }
  100% {
    transform: rotate(90deg) translateY(0);
  }
}

@keyframes floatSlowKanan {
  0% {
    transform: scaleY(-1) rotate(270deg) translateY(0);
  }
  50% {
    transform: scaleY(-1) rotate(270deg) translateY(-8px);
  }
  100% {
    transform: scaleY(-1) rotate(270deg) translateY(0);
  }
}

@keyframes ayunGunungan {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(0deg);
  }
  80% {
    transform: rotate(-2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Gerakan kepakan sayap cepat */
@keyframes kepakSayap {
  0%,
  100% {
    transform: rotate(320deg) scaleY(1);
  }
  25% {
    transform: rotate(322deg) scaleY(1.05);
  }
  50% {
    transform: rotate(320deg) scaleY(0.95);
  }
  75% {
    transform: rotate(318deg) scaleY(1.05);
  }
}

/* Gerakan terbang lembut */
@keyframes terbangMelengkung {
  0% {
    transform: translate(0, 0) rotate(320deg);
  }
  25% {
    transform: translate(10px, -20px) rotate(320deg);
  }
  50% {
    transform: translate(20px, 0) rotate(320deg);
  }
  75% {
    transform: translate(10px, -15px) rotate(320deg);
  }
  100% {
    transform: translate(0, 0) rotate(320deg);
  }
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* uji coba */
.buku-tamu {
  width: 100%;
  margin: 0 auto;
  background: none;
  position: relative;
  padding: 2rem 2rem;
}
.buku-tamu p {
  font-size: 1.12rem;
}
.buku-tamu .wishes-bg {
  width: 100%;
  position: absolute;
  inset: 0;
  background-color: var(--white);
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}
.buku-tamu .wishes-area {
  background-color: var(--soft-gold);
  padding: 2rem;
  border-radius: 10px;
}

.wishes-area h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-family: 'Great Vibes', cursive;
  color: var(--gold);
}

.wishes-area p {
  font-size: 1.12rem;
  margin-bottom: 2rem;
  color: var(--abu-own);
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
}

input,
textarea {
  border: 1px solid var(--abu-own);
  border-radius: 8px;
  padding: 10px;
  font-size: 1.1rem;
  z-index: 1;

  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus {
  outline: none;
  border-color: #b8860b;
  box-shadow: 0 0 6px rgba(244, 242, 231, 0.4);
}
textarea:focus {
  outline: none;
  border-color: #b8860b;
  box-shadow: 0 0 6px rgba(244, 242, 231, 0.4);
}

button {
  background: linear-gradient(to right, #d4af37, #b8860b);
  color: var(--abu-own);
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 1.12rem;
  font-weight: 600;
  z-index: 1;
}

button:hover {
  background: linear-gradient(to right, #e3c34d, #c9a12d);
}
.thanks-box {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  padding: 20px;
  border-radius: 14px;
  background: #fff7e5;
  color: var(--abu-own);
  border: 1.5px solid var(--gold);
  margin-top: 10px;
  animation: fadeThanks 0.5s ease;
  margin-bottom: 2rem;
}
@keyframes fadeThanks {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.area-tampilan-pesan {
  overflow-y: auto;
  max-height: 400px;
  padding: 1rem;
  border: var(--gold) 1px solid;
  border-radius: 10px;

  /* 🌟 Tambahan ini penting */
  scrollbar-width: none; /* Untuk Firefox */
  -ms-overflow-style: none; /* Untuk Internet Explorer & Edge lama */
}

/* Untuk Chrome, Edge baru, dan Safari */
.area-tampilan-pesan::-webkit-scrollbar {
  display: none;
}

.chat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 500px;
  text-align: left;
}

.chat-list li {
  background: #ffffff;
  border-radius: 18px;
  padding: 15px 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left !important;
}

.chat-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.nama {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 4px;
  display: block;
}

.pesan {
  font-size: 1.12rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 8px;
  white-space: pre-wrap;
}

.tanggal {
  font-size: 0.8rem;
  color: #999;
  text-align: right;
  display: block;
}
.chat-list li:nth-child(even) {
  background: #f3f5fa;
}

/* audio */
.audio-icon-wrapper {
  width: 2rem;
  height: 2rem;
  font-size: 4rem;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  cursor: pointer;
  color: var(--white);
  opacity: 0.5;
  mix-blend-mode: difference;
  z-index: 99;
  animation: rotating 4s linear infinite;
  transform-origin: center;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
}

@keyframes rotating {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.end {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: var(--soft-gold);
  background-image: url(./img/bg-ibnu.jpg);
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
  padding: 4rem;
  text-align: center;
}

.area-nuhun {
  background-color: rgba(128, 128, 128, 0.3);
  width: 100%;
  max-width: 500px;
  backdrop-filter: blur(6px);
  padding: 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: 'Aref Ruqaa', serif;
}

.area-nuhun h2 {
  font-size: 2.8rem;
  font-family: 'Great Vibes', cursive;
  color: var(--soft-gold);
}
.area-nuhun p {
  font-size: 1.12rem;
}
.area-nuhun h4 {
  font-family: 'Great Vibes', cursive;
  color: var(--soft-gold);
  font-size: 2rem;
  margin-bottom: 2.2rem;
}
.area-nuhun h5 {
  font-size: 1.3;
  margin-bottom: 1rem;
}
.area-nuhun h3 {
  font-family: 'Great Vibes', cursive;
  color: var(--soft-gold);
  font-size: 2.5rem;
}

.bawah {
  background-color: #4e2a15;
  padding: 0.8rem;
  text-align: center;
  color: #f8f1dc;
}
.bawah p {
  font-size: 0.9rem;
  margin: 0;
}

/* Kondisi awal */

/* —————————————————————
   KONDISI AWAL (HIDDEN)
————————————————————— */

.hidden-y,
.hidden-x,
.hidden-right,
.hidden-scale,
.hidden-rotate,
.hidden-bounce,
.hidden-smooth {
  opacity: 0;
  filter: blur(1.5px);
  transition: all 1s ease-out;
}

/* Slide dari bawah */
.hidden-y {
  transform: translateY(60px);
}

/* Slide dari kiri */
.hidden-x {
  transform: translateX(-60px);
}

/* Slide dari kanan */
.hidden-right {
  transform: translateX(60px);
}

/* Scale kecil */
.hidden-scale {
  transform: scale(0.3);
}

/* Rotate + fade */
.hidden-rotate {
  transform: rotate(-6deg) translateY(20px) scale(0.9);
}

/* Bounce lembut (lebih elegan) */
.hidden-bounce {
  transform: translateY(60px) scale(0.9);
}

/* Smooth fade elegant */
.hidden-smooth {
  transform: translateY(20px);
  transition: all 1s cubic-bezier(0.15, 0.85, 0.25, 1); /* smooth */
}

/* —————————————————————
   KONDISI AKHIR (SHOW)
————————————————————— */

.tampil {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Bounce easing saat muncul */
.tampil.hidden-bounce {
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* angka berjalan */
.count-number {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.count-number.show {
  opacity: 1;
}
