/* ============================================
   WEDDING INVITATION — STYLE.CSS
   Palette: Sage Green & Dusty Rose (Opsi 1)
============================================ */

/* ---- CSS VARIABLES ---- */
:root {
  --gold: #8FA68A;
  /* sage green — aksen utama */
  --gold-dark: #6B8A68;
  /* sage gelap */
  --blush: #ECD8D4;
  /* dusty rose muda — background lembut */
  --blush-dark: #C4968A;
  /* dusty rose — aksen kedua */
  --cream: #F0EAE3;
  /* cream hangat */
  --ivory: #F8F5F0;
  /* off-white hangat — background utama */
  --brown: #3D3530;
  /* warm dark brown — teks judul */
  --text: #3D3530;
  /* teks utama */
  --text-light: #7A6E68;
  /* teks sekunder / caption */
  --white: #FFFFFF;
  --shadow: 0 8px 32px rgba(61, 53, 48, 0.10);
  --shadow-hover: 0 16px 48px rgba(61, 53, 48, 0.18);
  --radius: 16px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-script: 'Great Vibes', cursive;
}

/* ---- BASE ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--text);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.hidden {
  display: none !important;
}

/* ---- SECTION BASE ---- */
.section {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

/* ============================================
   SCROLL SLIDE ANIMATIONS
   JS adds .slide-init FIRST (forces paint of
   hidden state), then after 2 rAF frames the
   IntersectionObserver adds .slide-visible.
============================================ */

/* Step 1 — JS sets this class so browser paints
   the invisible state before any transition runs */
[data-slide].slide-init[data-slide="up"] {
  opacity: 0;
  transform: translateY(52px);
}

[data-slide].slide-init[data-slide="left"] {
  opacity: 0;
  transform: translateX(-60px);
}

[data-slide].slide-init[data-slide="right"] {
  opacity: 0;
  transform: translateX(60px);
}

[data-slide].slide-init[data-slide="down"] {
  opacity: 0;
  transform: translateY(-52px);
}

[data-slide].slide-init[data-slide="zoom"] {
  opacity: 0;
  transform: scale(0.85);
}

/* Step 2 — transitions are only active after .slide-ready is added */
[data-slide].slide-ready {
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Delay helpers — only active when ready */
[data-slide].slide-ready[data-slide-delay="100"] {
  transition-delay: 0.1s;
}

[data-slide].slide-ready[data-slide-delay="200"] {
  transition-delay: 0.2s;
}

[data-slide].slide-ready[data-slide-delay="300"] {
  transition-delay: 0.3s;
}

[data-slide].slide-ready[data-slide-delay="400"] {
  transition-delay: 0.4s;
}

[data-slide].slide-ready[data-slide-delay="500"] {
  transition-delay: 0.5s;
}

/* Step 3 — visible: reset to natural position */
[data-slide].slide-visible {
  opacity: 1 !important;
  transform: none !important;
}


.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--brown);
  text-align: center;
  letter-spacing: 0.04em;
}

.divider-gold {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 18px auto 32px;
  border-radius: 2px;
}

/* ---- ORNAMENTS ---- */
.cover-ornament,
.section-ornament,
.footer-ornament {
  position: absolute;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.cover-ornament.top-left {
  top: -40px;
  left: -40px;
  width: 280px;
  transform: rotate(0deg);
}

.cover-ornament.bottom-right {
  bottom: -40px;
  right: -40px;
  width: 280px;
  transform: rotate(180deg);
}

.section-ornament.top-right {
  top: -40px;
  right: -30px;
  width: 220px;
  transform: rotate(90deg);
}

.section-ornament.top-left {
  top: -40px;
  left: -30px;
  width: 220px;
}

.section-ornament.bottom-left {
  bottom: -40px;
  left: -30px;
  width: 220px;
  transform: rotate(270deg);
}

/* ============================================
   COVER SECTION
============================================ */
.cover-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('../media/galery/1.jpg') center/cover no-repeat;
  text-align: center;
  overflow: hidden;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(248, 245, 240, 0.78) 0%,
      rgba(248, 245, 240, 0.30) 30%,
      rgba(236, 216, 212, 0.18) 55%,
      rgba(248, 245, 240, 0.72) 80%,
      rgba(248, 245, 240, 0.88) 100%);
  z-index: 1;
}

.cover-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.cover-top {
  padding-top: 24px;
}

.cover-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 16px;
}

.cover-sub {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.couple-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  gap: 0;
  margin-bottom: 8px;
  font-family: var(--font-script);
  font-size: clamp(3rem, 11vw, 7.5rem);
  color: var(--brown);
  font-weight: 400;
  text-shadow: 0 4px 24px rgba(61, 53, 48, 0.12);
}

.couple-names span {
  font-family: var(--font-script);
  font-size: clamp(2rem, 7vw, 4.5rem);
  color: var(--gold);
  line-height: 1;
  display: block;
  text-shadow: 0 2px 16px rgba(143, 166, 138, 0.30);
  margin: -4px 0;
}

.cover-date {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--text-light);
  font-weight: 300;
  letter-spacing: 0.12em;
  margin-top: 8px;
}

/* ---- COVER KEPADA BLOCK ---- */
.cover-kepada {
  display: inline-block;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(143, 166, 138, 0.30);
  border-radius: 14px;
  padding: 16px 44px;
  margin-top: 24px;
  margin-bottom: 6px;
  box-shadow: 0 6px 24px rgba(61, 53, 48, 0.10);
  text-align: center;
  min-width: 240px;
  max-width: 90vw;
}

.kepada-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.kepada-nama {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  font-weight: 600;
  color: var(--brown);
  letter-spacing: 0.03em;
  line-height: 1.3;
  word-break: break-word;
}

.kepada-tempat {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-light);
  margin-top: 6px;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  /* Mobile: foto pasangan tetap full-screen, konten di atasnya.
     Wajah ada di area tengah -> konten didorong ke atas (nama) & ke bawah
     (kartu Kepada dst) supaya tidak menutupi wajah. */
  .cover-content {
    padding: 28px 18px 24px;
  }

  .cover-top {
    padding-top: 8px;
  }

  /* Nama mempelai dibesarkan & diberi jarak supaya tidak terlalu rapat */
  .couple-names {
    font-size: clamp(3.6rem, 16vw, 5rem);
    gap: 4px;
    margin-bottom: 4px;
  }

  .couple-names span {
    font-size: clamp(2.4rem, 9vw, 3rem);
    margin: 2px 0;
  }

  /* Grup bawah diangkat dari dasar layar supaya kartu Kepada berada di zona
     bersih tepat di bawah wajah (bukan menempel ke bawah / terlalu turun). */
  .cover-bottom {
    margin-bottom: 12vh;
    padding-bottom: 0;
  }

  /* Kartu Kepada dibuat lebih kecil & transparan, didorong ke bawah */
  .cover-kepada {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-color: rgba(143, 166, 138, 0.28);
    box-shadow: 0 4px 16px rgba(61, 53, 48, 0.08);
    padding: 9px 28px;
    min-width: 0;
    margin-top: 0;
    margin-bottom: 2px;
  }

  .kepada-label {
    font-size: 0.66rem;
    margin-bottom: 2px;
  }

  .kepada-nama {
    font-size: clamp(1.05rem, 4.6vw, 1.4rem);
  }

  .kepada-tempat {
    font-size: 0.66rem;
    margin-top: 2px;
  }

  /* tanggal & tombol dirapatkan ke kartu Kepada */
  .cover-date {
    font-size: clamp(0.92rem, 3.4vw, 1.1rem);
    margin-top: 8px;
  }

  .cover-bottom .divider-gold {
    margin: 8px auto;
  }

  .btn-open {
    margin-top: 10px;
    padding: 12px 34px;
  }
}

.btn-open {
  margin-top: 36px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(143, 166, 138, 0.45);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-open:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(143, 166, 138, 0.60);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* Cover animations */
.animate-fade-down {
  animation: fadeDown 1s ease forwards;
}

.animate-fade-up {
  animation: fadeUp 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.5s;
}

.delay-3 {
  animation-delay: 0.7s;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   NAVBAR
============================================ */
.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -2px 16px rgba(90, 61, 40, 0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 12px 40px;
  background: rgba(250, 246, 240, 0.98);
}

.nav-logo {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--brown);
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 950;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu ul {
  text-align: center;
}

.mobile-menu ul li {
  margin: 18px 0;
}

.mobile-menu ul li a {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--brown);
  letter-spacing: 0.06em;
  transition: var(--transition);
}

.mobile-menu ul li a:hover {
  color: var(--gold);
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brown);
  cursor: pointer;
}

/* ============================================
   SALAM SECTION
============================================ */
.salam-section {
  background: var(--ivory);
  text-align: center;
  scroll-margin-top: 20px;
}


.bismillah {
  font-family: 'Traditional Arabic', 'Scheherazade New', serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--gold);
  line-height: 1.5;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(201, 169, 110, 0.2);
}

.salam-text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-light);
  font-weight: 300;
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.9;
}

.ayat {
  background: linear-gradient(135deg, var(--blush) 0%, var(--cream) 100%);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text);
  box-shadow: var(--shadow);
}

.ayat cite {
  display: block;
  margin-top: 16px;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--gold-dark);
  letter-spacing: 0.08em;
}

/* ============================================
   MEMPELAI SECTION
============================================ */
.mempelai-section {
  position: relative;
  isolation: isolate;
}

.mempelai-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(245, 240, 232, 0.55), rgba(245, 240, 232, 0.55)),
    url("../media/galery/5.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.couple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 16px auto 0;
  max-width: 850px;
}

.mempelai-card {
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.mempelai-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.mempelai-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.mempelai-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 24px rgba(143, 166, 138, 0.30);
}

.mempelai-photo.pria {
  background: linear-gradient(135deg, rgba(143, 166, 138, 0.30), rgba(107, 138, 104, 0.12));
  border: 3px solid var(--gold);
}

.mempelai-photo.wanita {
  background: linear-gradient(135deg, rgba(236, 216, 212, 0.70), rgba(196, 150, 138, 0.40));
  border: 3px solid var(--blush-dark);
}

.photo-icon {
  font-size: 3.5rem;
  color: var(--gold-dark);
  opacity: 0.6;
}

.photo-initial {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold-dark);
}

.mempelai-photo.wanita .photo-initial {
  color: var(--blush-dark);
}

.mempelai-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.mempelai-name {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 12px;
}

.mempelai-parents {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.mempelai-sosmed {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.mempelai-sosmed a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 0.85rem;
  transition: var(--transition);
}

.mempelai-sosmed a:hover {
  background: var(--gold);
  color: var(--white);
  transform: scale(1.1);
}

.couple-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ampersand-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-family: var(--font-script);
  font-size: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(143, 166, 138, 0.45);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(143, 166, 138, 0.45);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 36px rgba(143, 166, 138, 0.65);
  }
}

/* ============================================
   COUNTDOWN SECTION
============================================ */
.countdown-section {
  background: url('../media/hero_bg.png') center/cover fixed no-repeat;
  text-align: center;
  color: var(--white);
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(55, 72, 52, 0.85), rgba(107, 138, 104, 0.78));
}

.countdown-label {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}

.countdown-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 48px;
  opacity: 0.95;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 24px 28px;
  min-width: 100px;
}

.count-num {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 300;
  line-height: 1;
}

.count-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 8px;
}

.countdown-sep {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-serif);
  opacity: 0.6;
  line-height: 1;
  padding-bottom: 24px;
}

/* ============================================
   ACARA SECTION
============================================ */
.acara-section {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
  position: relative;
}

.acara-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(143, 166, 138, 0.4), transparent);
}

.acara-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 16px;
}

.acara-card {
  background: linear-gradient(145deg, var(--white), var(--cream));
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(143, 166, 138, 0.20);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.acara-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blush-dark), var(--gold));
}

.acara-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.acara-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(143, 166, 138, 0.40);
}

.acara-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 20px;
}

.acara-detail p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  line-height: 1.6;
}

.acara-detail i {
  color: var(--gold);
  font-size: 0.78rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.acara-loc {
  justify-content: center;
  margin-bottom: 4px;
}

.acara-loc i {
  margin-top: 0;
  font-size: 0.95rem;
}

.acara-place {
  display: block;
  text-align: center;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 2px;
}

.acara-address {
  display: block;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 28px;
  border: 2px solid var(--gold);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  transition: var(--transition);
}

.btn-map:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(143, 166, 138, 0.40);
}

/* ============================================
   DRESS CODE SECTION
============================================ */
.dresscode-section {
  background: linear-gradient(135deg, var(--blush) 0%, var(--cream) 100%);
  text-align: center;
}

.dresscode-sub {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: var(--text-light);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 40px;
}

.dresscode-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.dc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dc-color {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.dc-color:hover {
  transform: scale(1.12) translateY(-4px);
}

.dc-item span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
}

/* ============================================
   STORY / TIMELINE
============================================ */
.galeri-section {
  position: relative;
  isolation: isolate;
}

.galeri-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(245, 240, 232, 0.86), rgba(245, 240, 232, 0.86)),
    url("../media/galery/2.JPG");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.story-timeline {
  position: relative;
  max-width: 760px;
  margin: 40px auto 0;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 176px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
}

.story-item {
  display: grid;
  grid-template-columns: 140px 24px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
}

.story-item .story-year {
  text-align: right;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 300;
  margin-top: -3px;
}

.story-item .story-content {
  text-align: left;
}

.story-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 3px var(--gold);
  position: relative;
  z-index: 1;
  justify-self: center;
  margin-top: 4px;
}

.story-content h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--brown);
  margin-bottom: 6px;
}

.story-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   GIFT / AMPLOP DIGITAL
============================================ */
.gift-section {
  background: linear-gradient(135deg, var(--cream) 0%, var(--blush) 100%);
  text-align: center;
}

.gift-sub {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 40px;
}

.gift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.gift-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(143, 166, 138, 0.20);
  transition: var(--transition);
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gift-bank {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.bank-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.bank-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brown);
}

.account-name {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 2px 0;
}

.account-num {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
}

.btn-copy {
  width: 100%;
  padding: 10px;
  background: none;
  border: 2px solid var(--gold);
  border-radius: 50px;
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
}

.btn-copy:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-copy.copied {
  background: #4CAF50;
  border-color: #4CAF50;
  color: var(--white);
}

/* ============================================
   UCAPAN SECTION
============================================ */
.ucapan-section {
  background: var(--ivory);
  text-align: center;
}

.ucapan-sub {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 40px;
}

.ucapan-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--blush-dark);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(143, 166, 138, 0.20);
}

.form-group input:disabled {
  background: var(--cream);
  color: var(--text-light);
  border-color: rgba(143, 166, 138, 0.20);
  cursor: not-allowed;
  opacity: 0.8;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  grid-column: 1 / -1;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(143, 166, 138, 0.40);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(143, 166, 138, 0.50);
}

/* Ucapan List */
.ucapan-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.ucapan-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(143, 166, 138, 0.15);
  transition: var(--transition);
}

.ucapan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.ucapan-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ucapan-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ucapan-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brown);
  margin-bottom: 2px;
}

.ucapan-hadir {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  border-radius: 12px;
  padding: 2px 8px;
  font-weight: 500;
  display: inline-block;
}

.ucapan-hadir.hadir {
  background: #e8f5e9;
  color: #2e7d32;
}

.ucapan-hadir.mungkin {
  background: #fff3e0;
  color: #e65100;
}

.ucapan-hadir.tidak {
  background: #fce4ec;
  color: #c62828;
}

.ucapan-msg {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.5;
}

/* Pagination Controls */
.ucapan-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  grid-column: 1 / -1;
  margin-top: 32px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(143, 166, 138, 0.15);
}

.page-btn:hover:not(:disabled) {
  background: var(--gold);
  color: var(--white);
}

.page-btn:disabled {
  border-color: rgba(143, 166, 138, 0.3);
  color: rgba(143, 166, 138, 0.5);
  cursor: not-allowed;
  box-shadow: none;
}

.page-info {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

/* ============================================
   PROTOKOL SECTION
============================================ */
.protokol-section {
  background: linear-gradient(135deg, var(--blush) 0%, var(--cream) 100%);
  text-align: center;
}

.protokol-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.protokol-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  min-width: 130px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.protokol-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.protokol-item i {
  font-size: 2rem;
  color: var(--gold);
}

.protokol-item p {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
  font-weight: 500;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--brown);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.footer-ornament {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  opacity: 0.12;
  filter: brightness(5);
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-names {
  font-family: var(--font-script);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.footer-date {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.75;
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}

.footer-doa {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  opacity: 0.8;
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto 32px;
}

.footer-divider {
  width: 60px;
  height: 1.5px;
  background: rgba(143, 166, 138, 0.4);
  margin: 0 auto 24px;
}

.footer-credit {
  font-size: 0.78rem;
  opacity: 0.45;
  letter-spacing: 0.08em;
}

/* ============================================
   BACK TO TOP
============================================ */
.back-to-top {
  position: fixed;
  bottom: 150px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(143, 166, 138, 0.45);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 800;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(143, 166, 138, 0.60);
}

/* ============================================
   MUSIC PLAYER
============================================ */
.music-player {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 800;
}

.music-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(143, 166, 138, 0.45);
}

.music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(143, 166, 138, 0.60);
}

.music-btn.playing .fa-music {
  animation: spin 4s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   RESPONSIVE — TABLET
============================================ */
@media (max-width: 900px) {
  .couple-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .couple-center {
    order: -1;
  }

  .acara-grid {
    grid-template-columns: 1fr;
  }

  .gift-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .ucapan-list {
    grid-template-columns: 1fr;
  }

  .nav-logo {
    display: none;
  }

  .nav-links {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 5px;
  }

  .nav-links a {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: none !important;
  }
}

/* ============================================
   RESPONSIVE — MOBILE
============================================ */
@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }

  .salam-section {
    padding-top: 72px;
  }

  /* clear fixed navbar removed */
  .navbar {
    padding: 14px 10px;
  }

  .navbar.scrolled {
    padding: 10px 10px;
  }

  .cover-ornament {
    width: 160px;
  }

  .section-ornament {
    width: 140px;
  }

  .story-timeline::before {
    left: 20px;
  }

  .story-item {
    grid-template-columns: 24px 1fr;
    row-gap: 4px;
    column-gap: 20px;
    align-items: start;
  }

  .story-item .story-year {
    display: block;
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .story-item .story-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-self: start;
    margin-top: 4px;
  }

  .story-item .story-content {
    grid-column: 2;
    grid-row: 2;
  }

  .countdown-grid {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .countdown-item {
    min-width: 0;
    padding: 12px 6px;
    flex: 1;
  }

  .count-num {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .countdown-sep {
    display: none;
  }

  .ucapan-form {
    grid-template-columns: 1fr;
  }

  .protokol-grid {
    gap: 18px;
  }

  .protokol-item {
    min-width: 100px;
    padding: 20px 16px;
  }

  .couple-names {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .back-to-top {
    bottom: 140px;
    right: 16px;
  }

  .music-player {
    right: 16px;
    bottom: 80px;
  }
}

/* ============================================
   GALERI FOTO
============================================ */
.foto-section {
  background: var(--ivory);
  text-align: center;
}

.foto-sub {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 40px;
}

.photo-slider {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.slider-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--cream);
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.photo-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 9 / 16;
  cursor: pointer;
  overflow: hidden;
}

.photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-slide::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  background: rgba(61, 53, 48, 0.30);
  opacity: 0;
  transition: var(--transition);
}

.photo-slide:hover img {
  transform: scale(1.05);
}

.photo-slide:hover::after {
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(61, 53, 48, 0.45);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.slider-prev {
  left: 12px;
}

.slider-next {
  right: 12px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(143, 166, 138, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--gold);
  transform: scale(1.25);
}

/* ============================================
   LIGHTBOX
============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(28, 24, 22, 0.92);
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lb-img {
  max-width: 90vw;
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lb-close,
.lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.lb-close:hover,
.lb-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.lb-close {
  top: 22px;
  right: 22px;
}

.lb-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 560px) {
  .photo-slider {
    max-width: 300px;
  }

  .slider-btn {
    width: 38px;
    height: 38px;
  }

  .lb-close,
  .lb-nav {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .lb-prev {
    left: 10px;
  }

  .lb-next {
    right: 10px;
  }
}