/* ===================================================
   WEDDING INVITATION - Aldrin & Angely
   =================================================== */

:root {
  --gold:       #c9a96e;
  --gold-light: #e8d5b0;
  --gold-dark:  #a07840;
  --cream:      #fdf9f3;
  --white:      #ffffff;
  --dark:       #2c2c2c;
  --soft-dark:  #5a5a5a;
  --blush:      #f5e6e0;
  --blush-dark: #e8c4b8;
  --sage:       #a8b89a;
  --font-serif: 'Cormorant Garamond', serif;
  --font-script:'Great Vibes', cursive;
  --font-sans:  'Montserrat', sans-serif;
  --font-play:  'Playfair Display', serif;
  --shadow:     0 10px 40px rgba(0,0,0,0.12);
  --shadow-sm:  0 4px 15px rgba(0,0,0,0.08);
  --radius:     16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===== UTILITY ===== */
.hidden { display: none !important; }

/* ===================================================
   COVER
   =================================================== */
.cover {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a1208;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(201,169,110,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(201,169,110,0.15) 0%, transparent 60%),
    linear-gradient(135deg, #1a1208 0%, #2d1f0a 50%, #1a1208 100%);
}

/* Decorative SVG botanical border on cover */
.cover::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}
.cover::after {
  content: '';
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 1px;
  pointer-events: none;
  z-index: 1;
}

.cover-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  animation: coverFadeIn 1.5s ease forwards;
}

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

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

.cover-names {
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 12vw, 7rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 60px rgba(201,169,110,0.4);
}

.cover-names .amp {
  display: block;
  font-size: 0.55em;
  color: var(--gold);
  margin: -10px 0;
}

.cover-date {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold-light);
  letter-spacing: 0.15em;
  margin-bottom: 28px;
}

.cover-to {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.cover-guest {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 36px;
}

.btn-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-open::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn-open:hover {
  color: #1a1208;
}

.btn-open:hover::before {
  transform: scaleX(1);
}

/* ===================================================
   MAIN CONTENT
   =================================================== */
.main-content {
  min-height: 100vh;
}

/* ===================================================
   SECTION SHARED
   =================================================== */
.section {
  padding: 80px 20px;
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: var(--gold-dark);
  white-space: nowrap;
}

.divider-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-sub {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--soft-dark);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================================
   HERO
   =================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,169,110,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(201,169,110,0.08) 0%, transparent 60%);
  overflow: hidden;
}

.hero-flowers {
  position: absolute;
  top: 0;
  width: 280px;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.12;
  filter: sepia(1) hue-rotate(10deg);
}

.hero-flowers-left {
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 500'%3E%3Cellipse cx='40' cy='100' rx='30' ry='50' fill='%23c9a96e' transform='rotate(-20,40,100)'/%3E%3Cellipse cx='60' cy='200' rx='25' ry='45' fill='%23c9a96e' transform='rotate(15,60,200)'/%3E%3Cellipse cx='35' cy='300' rx='28' ry='52' fill='%23c9a96e' transform='rotate(-10,35,300)'/%3E%3Cpath d='M50,0 Q80,150 60,300 Q40,400 70,500' stroke='%23c9a96e' stroke-width='3' fill='none'/%3E%3C/svg%3E");
  background-position: left top;
}

.hero-flowers-right {
  right: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 500'%3E%3Cellipse cx='160' cy='100' rx='30' ry='50' fill='%23c9a96e' transform='rotate(20,160,100)'/%3E%3Cellipse cx='140' cy='200' rx='25' ry='45' fill='%23c9a96e' transform='rotate(-15,140,200)'/%3E%3Cellipse cx='165' cy='300' rx='28' ry='52' fill='%23c9a96e' transform='rotate(10,165,300)'/%3E%3Cpath d='M150,0 Q120,150 140,300 Q160,400 130,500' stroke='%23c9a96e' stroke-width='3' fill='none'/%3E%3C/svg%3E");
  background-position: right top;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
}

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

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--soft-dark);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.hero-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-name {
  font-family: var(--font-script);
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--gold-dark);
  line-height: 1;
  display: block;
}

.hero-and {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--gold);
  font-style: italic;
  font-weight: 300;
  display: block;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-style: italic;
  color: var(--soft-dark);
  letter-spacing: 0.1em;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1.1rem;
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

/* ===================================================
   AYAT
   =================================================== */
.ayat-section {
  background: linear-gradient(135deg, #2d1f0a 0%, #1a1208 100%);
  padding: 80px 20px;
}

.ayat-wrapper {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.ayat-ornament {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto;
  width: 200px;
}

.ayat-ornament.top { margin-bottom: 30px; }
.ayat-ornament.bottom { margin-top: 30px; }

.ayat-text {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1.9;
}

.ayat-ref {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: 16px;
}

/* ===================================================
   MEMPELAI
   =================================================== */
.mempelai-section {
  background: var(--cream);
  overflow: hidden;
}

.mempelai-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.mempelai-card {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  text-align: center;
}

.mempelai-photo-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
}

.mempelai-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: var(--white);
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 30px rgba(201,169,110,0.4);
}

.mempelai-photo-pria {
  background: linear-gradient(135deg, #2d4a7a 0%, #1a2d4f 100%);
}

.mempelai-photo-wanita {
  background: linear-gradient(135deg, #c0718c 0%, #8b3a56 100%);
}

.mempelai-photo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.6;
  animation: rotateSlow 10s linear infinite;
}

.mempelai-photo-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed var(--gold);
  opacity: 0.4;
}

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

.mempelai-name {
  font-family: var(--font-play);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 8px;
}

.mempelai-son {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--soft-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.mempelai-parents {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold-dark);
  line-height: 1.6;
}

.mempelai-and {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.and-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--white);
  box-shadow: 0 8px 25px rgba(201,169,110,0.5);
}

.and-rings {
  font-size: 1.3rem;
  color: var(--gold);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.2); opacity: 0.7; }
}

/* ===================================================
   COUNTDOWN
   =================================================== */
.countdown-section {
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.countdown-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--blush) 0%, #f9eee8 50%, var(--blush) 100%);
}

.countdown-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,169,110,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(201,169,110,0.08) 0%, transparent 50%);
}

.countdown-content {
  position: relative;
  z-index: 1;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 36px;
}

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

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: 12px;
  padding: 20px 24px;
  min-width: 80px;
  box-shadow: var(--shadow-sm);
}

.countdown-box span {
  font-family: var(--font-play);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
}

.countdown-box label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soft-dark);
  margin-top: 6px;
}

.countdown-sep {
  font-family: var(--font-play);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  align-self: flex-start;
  padding-top: 20px;
}

/* ===================================================
   ACARA
   =================================================== */
.acara-section {
  background: var(--cream);
}

.acara-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 850px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.acara-card {
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gold-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.acara-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(201,169,110,0.4);
}

.acara-title {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--gold-dark);
}

.acara-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.acara-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--soft-dark);
  text-align: left;
}

.acara-row i {
  color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(201,169,110,0.4);
  margin-top: auto;
}

.btn-maps:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,169,110,0.5);
}

.acara-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  min-width: 60px;
}

.divider-vert {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.acara-divider-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(201,169,110,0.4);
}

/* ===================================================
   LOVE STORY
   =================================================== */
.lovestory-section {
  background: linear-gradient(180deg, #2d1f0a 0%, #1a1208 100%);
}

.lovestory-section .section-title {
  color: var(--gold-light);
}

.lovestory-section .divider-line {
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.5), transparent);
}

.lovestory-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

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

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 50px;
  padding-right: calc(50% + 30px);
  position: relative;
}

.timeline-item.right {
  flex-direction: row-reverse;
  padding-right: 0;
  padding-left: calc(50% + 30px);
}

.timeline-icon {
  position: absolute;
  right: calc(50% - 20px);
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(201,169,110,0.5);
  z-index: 1;
  flex-shrink: 0;
}

.timeline-item.right .timeline-icon {
  right: auto;
  left: calc(50% - 20px);
}

.timeline-content {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius);
  padding: 20px;
}

.timeline-year {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,169,110,0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.timeline-content h4 {
  font-family: var(--font-play);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

/* ===================================================
   GALERI
   =================================================== */
.galeri-section {
  background: var(--cream);
}

/* ===================================================
   GALERI — Layout grid foto nyata
   =================================================== */
.galeri-section .section-sub {
  margin-bottom: 36px;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 300px 300px;
  gap: 10px;
  max-width: 960px;
  margin: 0 auto;
}

/* Foto 1: kolom 1, baris 1 */
.gi-1 { grid-column: 1; grid-row: 1; }
/* Foto 2: kolom 2, baris 1–2 (tinggi penuh, portrait) */
.gi-2 { grid-column: 2; grid-row: 1 / 3; }
/* Foto 3: kolom 3, baris 1 */
.gi-3 { grid-column: 3; grid-row: 1; }
/* Foto 4: kolom 1, baris 2 */
.gi-4 { grid-column: 1; grid-row: 2; }
/* Foto 5: kolom 3, baris 2 */
.gi-5 { grid-column: 3; grid-row: 2; }

.galeri-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

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

/* Foto tengah (gi-2) lebih full karena 2x tinggi */
.gi-2 img {
  object-position: center 20%;
}

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

.galeri-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(26, 18, 8, 0.55) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.galeri-overlay i {
  color: var(--white);
  font-size: 1.1rem;
  background: rgba(201,169,110,0.85);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ===================================================
   LIGHTBOX
   =================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: lbFadeIn 0.3s ease;
}

.lightbox.open {
  display: flex;
}

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

.lightbox-inner {
  position: relative;
  max-width: 860px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lbSlideUp 0.35s ease;
}

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

.lightbox-inner img {
  max-height: 85vh;
  max-width: 100%;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: block;
}

#lightboxCaption {
  margin-top: 14px;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--gold-light);
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 1;
}

.lightbox-close:hover {
  background: rgba(201,169,110,0.5);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(201,169,110,0.25);
  border: 1px solid rgba(201,169,110,0.4);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 1;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(201,169,110,0.6);
}

/* ===================================================
   RESPONSIVE GALERI
   =================================================== */
@media (max-width: 768px) {
  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 220px);
  }
  .gi-1 { grid-column: 1; grid-row: 1; }
  .gi-2 { grid-column: 2; grid-row: 1 / 3; }
  .gi-3 { grid-column: 1; grid-row: 2; }
  .gi-4 { grid-column: 1; grid-row: 3; }
  .gi-5 { grid-column: 2; grid-row: 3; }
}

@media (max-width: 480px) {
  .galeri-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 300px 180px;
  }
  .gi-2 { grid-row: 1 / 3; }
}




/* ===================================================
   CLOSING
   =================================================== */
.closing-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.closing-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2d1f0a 0%, #1a1208 100%);
}

.closing-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,169,110,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(201,169,110,0.1) 0%, transparent 60%);
}

.closing-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.closing-thanks {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(232,213,176,0.8);
  line-height: 2;
  margin-bottom: 40px;
}

.closing-names {
  margin-bottom: 20px;
}

.closing-names p {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.closing-names h3 {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: var(--white);
  text-shadow: 0 0 40px rgba(201,169,110,0.4);
}

.closing-date {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold);
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: #0e0b05;
  padding: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* ===================================================
   MUSIC BTN
   =================================================== */
.music-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(201,169,110,0.5);
  transition: transform 0.3s;
  overflow: hidden;
}

.music-btn:hover {
  transform: scale(1.1);
}

.music-btn i {
  color: var(--white);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* Music wave animation */
.music-wave {
  display: none;
  align-items: center;
  gap: 2px;
  position: absolute;
}

.music-wave.active {
  display: flex;
}

.music-wave span {
  display: block;
  width: 3px;
  height: 10px;
  background: var(--white);
  border-radius: 3px;
  animation: wave 0.8s ease infinite;
}

.music-wave span:nth-child(1) { animation-delay: 0s; height: 8px; }
.music-wave span:nth-child(2) { animation-delay: 0.1s; height: 14px; }
.music-wave span:nth-child(3) { animation-delay: 0.2s; height: 10px; }
.music-wave span:nth-child(4) { animation-delay: 0.3s; height: 16px; }
.music-wave span:nth-child(5) { animation-delay: 0.4s; height: 8px; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.4); }
}

/* ===================================================
   SCROLL TO TOP
   =================================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201,169,110,0.9);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(201,169,110,0.4);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--gold-dark);
}

/* ===================================================
   PETALS
   =================================================== */
.petals-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -30px;
  width: 12px;
  height: 10px;
  border-radius: 50% 0 50% 0;
  background: linear-gradient(135deg, #f8c8d4 0%, #e8a0b8 100%);
  opacity: 0;
  animation: fallPetal linear infinite;
}

@keyframes fallPetal {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg);
  }
  10% { opacity: 0.8; }
  90% { opacity: 0.5; }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg) translateX(60px);
  }
}

/* ===================================================
   NAVBAR (optional floating)
   =================================================== */
.nav-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 998;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201,169,110,0.4);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.3s;
}

.nav-dot.active,
.nav-dot:hover {
  background: var(--gold);
  transform: scale(1.4);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
  .lovestory-timeline::before { left: 20px; }

  .timeline-item,
  .timeline-item.right {
    padding-right: 0;
    padding-left: 60px;
    flex-direction: row;
  }

  .timeline-icon,
  .timeline-item.right .timeline-icon {
    left: 0;
    right: auto;
  }

  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gi-1, .gi-2, .gi-3, .gi-4, .gi-5 {
    grid-column: auto;
    grid-row: auto;
  }

  .galeri-grid { height: auto; }
  .galeri-item { height: 160px; }
  .gi-6 { display: block; height: 160px; }

  .acara-divider {
    flex-direction: row;
    padding: 10px 0;
    min-width: 100%;
    justify-content: center;
  }

  .divider-vert {
    width: 60px;
    height: 1px;
  }

  .mempelai-and {
    flex-direction: row;
    min-width: 100%;
    justify-content: center;
  }

  .cover-names {
    font-size: clamp(2.5rem, 14vw, 5rem);
  }
}

@media (max-width: 480px) {
  .section { padding: 60px 16px; }
  .hero-name { font-size: clamp(2.5rem, 14vw, 4rem); }
  .countdown-box { min-width: 65px; padding: 14px 16px; }
  .countdown-box span { font-size: 1.8rem; }
}

/* ===================================================
   COUNTDOWN — Flip Animation & Wedding Day State
   =================================================== */

/* Animasi flip angka saat berubah */
@keyframes cdFlip {
  0%   { transform: rotateX(0deg);   opacity: 1; }
  45%  { transform: rotateX(90deg);  opacity: 0; }
  55%  { transform: rotateX(-90deg); opacity: 0; }
  100% { transform: rotateX(0deg);   opacity: 1; }
}

.cd-flip {
  animation: cdFlip 0.4s ease;
}

/* Tampilan "Hari Bahagia Telah Tiba!" */
.countdown-wedding-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  animation: fadeUp 1s ease forwards;
}

.wd-icon {
  font-size: 3.5rem;
  animation: pulse 2s ease infinite;
}

.wd-title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--gold-dark);
  text-align: center;
}

.wd-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--soft-dark);
  text-align: center;
  max-width: 420px;
  line-height: 1.8;
}

.wd-names {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold);
}
