/* ============================================
   BALI WEDDING INVITATION - STYLE
============================================ */
:root {
  --color-cream: #FAF7F2;
  --color-ivory: #F5EFE6;
  --color-champagne: #E8D9B8;
  --color-gold: #C9A961;
  --color-gold-dark: #A88B4A;
  --color-brown: #4A3728;
  --color-text: #3A2E24;
  --color-text-light: #7A6B5C;
  --color-white: #FFFFFF;
  --color-sage: #A8B5A0;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-script: 'Great Vibes', cursive;
  --font-display: 'Cinzel', serif;
  --shadow-soft: 0 10px 40px rgba(74,55,40,.08);
  --shadow-medium: 0 20px 60px rgba(74,55,40,.12);
  --ease: cubic-bezier(.4,0,.2,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }
body { font-family: var(--font-sans); color: var(--color-text); background: var(--color-cream); overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
body.splash-active { overflow: hidden; height: 100vh; }

/* ============ SPLASH ============ */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-image:
    linear-gradient(rgba(250,247,242,.70), rgba(232,217,184,.80)),
    url("../assets/images/splash.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s var(--ease), visibility 1.2s;
  overflow: hidden;
}
.splash-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-content { position: relative; z-index: 2; text-align: center; padding: 40px 24px 140px; max-width: 520px; width: 100%; animation: fadeInUp 1.8s var(--ease) both; }
.splash-subtitle { font-family: var(--font-display); font-size: .8rem; letter-spacing: .5em; color: var(--color-gold-dark); margin-bottom: 24px; text-indent: .5em; font-weight: 700; text-shadow: 0 1px 2px rgba(74,55,40,.15); }
.splash-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; }
.splash-divider span { width: 40px; height: 1px; background: var(--color-gold); opacity: .5; }
.ornament-dot { width: 6px; height: 6px; background: var(--color-gold); border-radius: 50%; display: inline-block; transform: rotate(45deg); }
.splash-names { font-family: var(--font-script); font-size: clamp(2rem, 9vw, 2rem); color: var(--color-brown); line-height: 1.15; margin-bottom: 30px; font-weight: 400; }
.splash-names .ampersand { font-family: var(--font-serif); font-style: italic; font-size: .7em; color: var(--color-gold); }
.splash-guest { margin-top: 40px; margin-bottom: 20px; }
.guest-label { font-family: var(--font-serif); font-style: italic; font-size: 1rem; color: var(--color-text-light); margin-bottom: 4px; }
.guest-name { font-family: var(--font-serif); font-size: 1.4rem; color: var(--color-brown); font-weight: 500; }
.btn-open-invitation { margin-top: 25px; background: rgba(255,255,255,.85); border: 1.5px solid var(--color-gold); color: var(--color-brown); padding: 16px 40px; font-family: var(--font-sans); font-size: .8rem; letter-spacing: .2em; font-weight: 500; cursor: pointer; border-radius: 50px; display: inline-flex; align-items: center; gap: 12px; transition: all .6s var(--ease); position: relative; overflow: hidden; min-height: 52px; }
.btn-open-invitation::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, var(--color-gold), var(--color-gold-dark)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: -1; }
.btn-open-invitation:hover::before { transform: scaleX(1); }
.btn-open-invitation:hover { color: var(--color-white); border-color: var(--color-gold); }
.splash-frangipani { display: none; }

/* ============ MAIN ============ */
.main-content { opacity: 0; transition: opacity 1.5s var(--ease); }
.main-content.visible { opacity: 1; }

/* ============ MUSIC ============ */
.music-toggle { position: fixed; bottom: 88px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--color-white); border: 1px solid var(--color-champagne); color: var(--color-gold-dark); cursor: pointer; box-shadow: var(--shadow-soft); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: all .4s var(--ease); font-size: 1.2rem; }
.music-toggle:hover { transform: scale(1.1); }
.music-toggle.playing .music-icon { animation: pulseMusic 1.5s ease-in-out infinite; }

/* ============ NAV ============ */
.nav-menu { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(250,247,242,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--color-champagne); display: flex; justify-content: space-around; align-items: center; padding: 10px 4px calc(10px + env(safe-area-inset-bottom)); z-index: 999; transform: translateY(100%); transition: transform .6s var(--ease); box-shadow: 0 -4px 20px rgba(74,55,40,.06); }
.nav-menu.visible { transform: translateY(0); }
.nav-link { font-size: .62rem; letter-spacing: .05em; color: var(--color-text-light); padding: 8px 4px; border-radius: 8px; transition: all .3s; text-transform: uppercase; font-weight: 500; min-width: 38px; text-align: center; }
.nav-link.active { color: var(--color-gold-dark); background: rgba(201,169,97,.12); }

/* ============ SECTIONS ============ */
section { position: relative; padding: 80px 0; overflow: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-subtitle { font-family: var(--font-display); font-size: .7rem; letter-spacing: .4em; color: var(--color-gold-dark); margin-bottom: 12px; text-transform: uppercase; text-indent: .4em; }
.section-title { font-family: var(--font-serif); font-size: clamp(2rem, 8vw, 3rem); color: var(--color-brown); font-weight: 400; line-height: 1.2; margin-bottom: 20px; font-style: italic; }
.section-divider { display: flex; align-items: center; justify-content: center; gap: 14px; }
.section-divider span { width: 50px; height: 1px; background: var(--color-gold); opacity: .4; }

/* ============ HERO ============ */
.hero-section { min-height: 100vh; padding: 100px 0 120px; background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-ivory) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero-ornament-top { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); width: 200px; height: 40px; opacity: .3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cpath d='M20 35 Q50 5 100 35 Q150 5 180 35' stroke='%23C9A961' fill='none' stroke-width='1'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; background-position: center; }
.hero-content { padding: 0 24px; margin-bottom: 40px; }
.hero-subtitle { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--color-text-light); margin-bottom: 12px; letter-spacing: .05em; }
.hero-names { font-family: var(--font-script); font-size: clamp(3rem, 14vw, 5.5rem); color: var(--color-brown); line-height: 1.05; font-weight: 400; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.name-amp { font-family: var(--font-serif); font-style: italic; font-size: .55em; color: var(--color-gold); margin: 0 4px; }
.hero-date { font-family: var(--font-display); font-size: 1rem; letter-spacing: .4em; color: var(--color-gold-dark); font-weight: 500; text-indent: .4em; }
.hero-photo-wrapper { width: 100%; max-width: 520px; padding: 0 24px; margin-bottom: 40px; }
.hero-photo-frame { position: relative; border-radius: 200px 200px 24px 24px; overflow: hidden; box-shadow: var(--shadow-medium); border: 6px solid var(--color-white); outline: 1px solid var(--color-champagne); outline-offset: 6px; background: linear-gradient(135deg, #E8D9B8 0%, #C9A961 100%); }
.hero-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center top; transition: transform 8s ease; }
.hero-photo-frame:hover .hero-photo { transform: scale(1.08); }
.photo-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 60%, rgba(74,55,40,.15) 100%); pointer-events: none; }
.hero-quote { max-width: 500px; padding: 0 30px; margin-bottom: 40px; }
.quote-title { font-family: var(--font-script); font-size: clamp(1.8rem, 6vw, 2.4rem); color: var(--color-gold-dark); font-weight: 400; line-height: 1.2; margin-bottom: 20px; text-align: center; }
.quote-text { font-family: var(--font-serif); font-style: italic; font-size: 1rem; color: var(--color-text-light); line-height: 1.7; margin-bottom: 10px; }
.quote-source { font-family: var(--font-display); font-size: .7rem; letter-spacing: .2em; color: var(--color-gold-dark); }
.hero-scroll-indicator { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-scroll-indicator span { font-family: var(--font-display); font-size: .65rem; letter-spacing: .3em; color: var(--color-text-light); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--color-gold), transparent); animation: scrollDown 2s ease-in-out infinite; }
.frangipani-float { display: none; }

/* ============ COUPLE ============ */
.couple-section { background: var(--color-white); }
.couple-grid { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.couple-card { text-align: center; max-width: 340px; width: 100%; }
.couple-photo-wrapper { margin-bottom: 28px; }
.couple-photo-frame { width: 220px; height: 220px; margin: 0 auto; border-radius: 50%; overflow: hidden; border: 4px solid var(--color-white); outline: 1px solid var(--color-champagne); outline-offset: 6px; box-shadow: var(--shadow-soft); background: linear-gradient(135deg, #E8D9B8 0%, #C9A961 100%); }
.couple-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.couple-card:hover .couple-photo { transform: scale(1.08); }
.couple-name { font-family: var(--font-script); font-size: 1.5rem; color: var(--color-brown); font-weight: 400; margin-bottom: 6px; line-height: 1.2; word-wrap: break-word; padding: 0 10px; }
.couple-fullname { font-family: var(--font-serif); font-size: 1rem; color: var(--color-text-light); margin-bottom: 16px; }
.couple-parents { font-size: .85rem; color: var(--color-text-light); line-height: 1.8; margin-bottom: 16px; font-weight: 300; }
.couple-ig { font-size: .8rem; color: var(--color-gold-dark); border-bottom: 1px solid var(--color-champagne); padding-bottom: 2px; transition: all .3s; }
.couple-ig:hover { color: var(--color-gold); border-color: var(--color-gold); }
.couple-amp-wrapper { display: flex; align-items: center; justify-content: center; }
.couple-amp { font-family: var(--font-script); font-size: 4rem; color: var(--color-gold); line-height: 1; }

/* ============ STORY ============ */
.story-section { background: linear-gradient(180deg, var(--color-ivory) 0%, var(--color-cream) 100%); }
.story-content { max-width: 720px; margin: 0 auto; text-align: center; padding: 0 20px; }
.story-paragraph { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--color-text-light); line-height: 1.9; margin-bottom: 24px; font-weight: 300; }
.story-paragraph:last-child { margin-bottom: 0; }

/* ============ EVENT ============ */
.event-section { background: linear-gradient(160deg, var(--color-brown) 0%, #3A2B1F 100%); color: var(--color-white); padding: 100px 0; position: relative; }
.event-bg-pattern { position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 5 L55 30 L30 55 L5 30 Z' stroke='%23C9A961' fill='none' stroke-width='0.5'/%3E%3Ccircle cx='30' cy='30' r='3' fill='%23C9A961'/%3E%3C/svg%3E"); background-size: 60px 60px; }
.pura-silhouette { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 600px; height: 120px; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120'%3E%3Cpath d='M0 120 L0 100 L50 100 L50 80 L70 80 L70 60 L90 60 L90 40 L110 40 L110 20 L130 20 L130 40 L150 40 L150 60 L170 60 L170 80 L190 80 L190 100 L220 100 L220 70 L240 70 L240 50 L260 50 L260 30 L280 30 L280 10 L300 10 L300 30 L320 30 L320 50 L340 50 L340 70 L360 70 L360 100 L390 100 L390 80 L410 80 L410 60 L430 60 L430 40 L450 40 L450 20 L470 20 L470 40 L490 40 L490 60 L510 60 L510 80 L530 80 L530 100 L600 100 L600 120 Z' fill='%23C9A961'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; background-position: bottom center; }
.event-section .section-subtitle { color: var(--color-champagne); }
.event-section .section-title { color: var(--color-white); }
.event-section .section-divider span { background: var(--color-champagne); }
.event-card { max-width: 480px; margin: 0 auto; text-align: center; background: rgba(255,255,255,.04); backdrop-filter: blur(10px); border: 1px solid rgba(201,169,97,.25); border-radius: 24px; padding: 50px 30px; }
.event-day { font-family: var(--font-display); font-size: .9rem; letter-spacing: .4em; color: var(--color-champagne); margin-bottom: 12px; text-indent: .4em; }
.event-date-big { font-family: var(--font-serif); font-size: 5rem; line-height: 1; color: var(--color-white); font-weight: 300; margin-bottom: 8px; }
.event-month-year { font-family: var(--font-serif); font-size: 1.3rem; color: var(--color-champagne); font-style: italic; margin-bottom: 20px; }
.event-time { font-size: .9rem; color: rgba(255,255,255,.75); letter-spacing: .08em; font-weight: 300; }
.event-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 30px 0; }
.event-divider span { width: 60px; height: 1px; background: var(--color-champagne); opacity: .4; }
.event-venue h4 { font-family: var(--font-serif); font-size: 1.35rem; color: var(--color-white); font-weight: 400; font-style: italic; margin-bottom: 8px; }
.event-venue p { font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.6; font-weight: 300; margin-bottom: 30px; }
.btn-view-location { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; background: linear-gradient(120deg, var(--color-gold), var(--color-gold-dark)); color: var(--color-white); border-radius: 50px; font-size: .8rem; letter-spacing: .15em; font-weight: 500; transition: all .5s var(--ease); box-shadow: 0 8px 24px rgba(201,169,97,.3); min-height: 48px; }
.btn-view-location:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(201,169,97,.45); }

/* ============ COUNTDOWN ============ */
.countdown-section { background: var(--color-white); padding: 70px 0; }
.countdown-wrapper { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; max-width: 600px; margin: 0 auto; }
.countdown-item { display: flex; flex-direction: column; align-items: center; min-width: 65px; }
.countdown-number { font-family: var(--font-serif); font-size: clamp(1.8rem, 8vw, 2.8rem); color: var(--color-brown); font-weight: 500; line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.countdown-label { font-family: var(--font-display); font-size: .6rem; letter-spacing: .2em; color: var(--color-text-light); text-transform: uppercase; }
.countdown-sep { font-family: var(--font-serif); font-size: 1.5rem; color: var(--color-gold); margin-bottom: 20px; opacity: .5; }

/* ============ GALLERY — SLIDER ============ */
.gallery-section {
  background: var(--color-cream);
  position: relative;
  padding: 80px 0 100px;
}

.gallery-wrapper {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  padding: 0 20px;
}

.gallery-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0 30px;
  scrollbar-width: none;
  cursor: grab;
  scroll-behavior: smooth;
}

.gallery-slider::-webkit-scrollbar {
  display: none;
}

.gallery-slider.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.gallery-item {
  flex: 0 0 auto;
  width: 280px;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  scroll-snap-align: center;
  background: linear-gradient(135deg, #E8D9B8 0%, #C9A961 100%);
  box-shadow: 0 10px 40px rgba(74,55,40,.08);
  transition: transform .5s var(--ease);
}

.gallery-item:hover {
  transform: translateY(-6px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease);
  pointer-events: none;
  -webkit-user-drag: none;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Tombol navigasi */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--color-champagne);
  color: var(--color-gold-dark);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 10;
  transition: all .3s var(--ease);
  box-shadow: 0 6px 20px rgba(74,55,40,.12);
  line-height: 1;
  padding-bottom: 2px;
}

.gallery-nav:hover {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.gallery-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Dots indicator */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-champagne);
  cursor: pointer;
  transition: all .3s var(--ease);
  border: none;
  padding: 0;
}

.gallery-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-gold);
}

/* ============ LIGHTBOX dengan PINCH-TO-ZOOM ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30,20,12,.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  touch-action: none;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transition: transform .2s ease, opacity .25s ease;
  touch-action: pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #FFFFFF;
  font-size: 1.8rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  z-index: 10;
  line-height: 1;
  padding-bottom: 3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-close:hover {
  background: rgba(255,255,255,.3);
}

/* Counter */
.lightbox-counter {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.9);
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  letter-spacing: .15em;
  font-weight: 500;
  padding: 6px 16px;
  background: rgba(0,0,0,.4);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ============ RSVP ============ */
.rsvp-section { background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-ivory) 100%); }
.rsvp-wrapper { display: flex; flex-direction: column; gap: 40px; max-width: 700px; margin: 0 auto; }
.rsvp-form { background: var(--color-white); padding: 32px 24px; border-radius: 20px; box-shadow: var(--shadow-soft); border: 1px solid rgba(232,217,184,.5); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--font-display); font-size: .7rem; letter-spacing: .15em; color: var(--color-gold-dark); margin-bottom: 8px; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--color-champagne); border-radius: 12px; font-family: var(--font-sans); font-size: .9rem; color: var(--color-text); background: var(--color-cream); transition: all .3s; font-weight: 300; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--color-gold); background: var(--color-white); box-shadow: 0 0 0 3px rgba(201,169,97,.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit { width: 100%; padding: 16px; background: linear-gradient(120deg, var(--color-gold), var(--color-gold-dark)); color: var(--color-white); border: none; border-radius: 50px; font-family: var(--font-sans); font-size: .85rem; letter-spacing: .15em; font-weight: 500; cursor: pointer; transition: all .5s var(--ease); box-shadow: 0 8px 24px rgba(201,169,97,.3); min-height: 52px; text-transform: uppercase; }
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(201,169,97,.45); }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; }
.wishes-wrapper { background: var(--color-white); padding: 28px 20px; border-radius: 20px; box-shadow: var(--shadow-soft); border: 1px solid rgba(232,217,184,.5); }
.wishes-title { font-family: var(--font-serif); font-size: 1.3rem; color: var(--color-brown); font-style: italic; font-weight: 500; margin-bottom: 20px; text-align: center; }
.wishes-list { max-height: 400px; overflow-y: auto; padding-right: 6px; }
.wishes-list::-webkit-scrollbar { width: 4px; }
.wishes-list::-webkit-scrollbar-track { background: var(--color-cream); border-radius: 4px; }
.wishes-list::-webkit-scrollbar-thumb { background: var(--color-champagne); border-radius: 4px; }
.wish-item { padding: 16px 0; border-bottom: 1px solid var(--color-ivory); }
.wish-item:last-child { border-bottom: none; }
.wish-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 12px; }
.wish-name { font-family: var(--font-serif); font-size: 1rem; color: var(--color-brown); font-weight: 600; }
.wish-badge { font-size: .65rem; padding: 3px 10px; border-radius: 20px; font-weight: 500; white-space: nowrap; }
.wish-badge.hadir { background: rgba(168,181,160,.2); color: #5A7A50; }
.wish-badge.tidak { background: rgba(201,169,97,.15); color: var(--color-gold-dark); }
.wish-message { font-size: .85rem; color: var(--color-text-light); line-height: 1.6; font-weight: 300; }
.wish-time { font-size: .7rem; color: var(--color-text-light); opacity: .7; margin-top: 4px; display: block; }
.no-wishes { text-align: center; color: var(--color-text-light); font-style: italic; padding: 20px; font-size: .9rem; }

/* ============ GIFT ============ */
.gift-section { background: var(--color-white); }
.gift-intro { text-align: center; max-width: 500px; margin: 0 auto 40px; color: var(--color-text-light); font-size: .9rem; line-height: 1.7; font-weight: 300; }
.gift-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 500px; margin: 0 auto; }
.gift-card { background: linear-gradient(160deg, var(--color-cream), var(--color-white)); border: 1px solid var(--color-champagne); border-radius: 20px; padding: 28px 24px; text-align: center; transition: all .6s var(--ease); position: relative; overflow: hidden; }
.gift-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--color-gold), var(--color-champagne)); }
.gift-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); }
.gift-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.gift-type { font-family: var(--font-display); font-size: .7rem; letter-spacing: .2em; color: var(--color-gold-dark); margin-bottom: 16px; text-transform: uppercase; }
.gift-bank { font-family: var(--font-serif); font-size: 1.2rem; color: var(--color-brown); font-weight: 600; margin-bottom: 12px; }
.gift-account { font-size: 1.3rem; color: var(--color-text); letter-spacing: .1em; font-weight: 500; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.gift-name { font-size: .85rem; color: var(--color-text-light); margin-bottom: 20px; font-weight: 300; }
.btn-copy { background: transparent; border: 1px solid var(--color-gold); color: var(--color-gold-dark); padding: 10px 24px; border-radius: 50px; font-size: .75rem; letter-spacing: .1em; font-weight: 500; cursor: pointer; transition: all .4s var(--ease); display: inline-flex; align-items: center; gap: 8px; min-height: 42px; text-transform: uppercase; }
.btn-copy:hover { background: var(--color-gold); color: var(--color-white); }
.btn-copy.copied { background: var(--color-sage); border-color: var(--color-sage); color: var(--color-white); }

/* ============ CLOSING ============ */
.closing-section {
  position: relative;
  padding: 120px 0 60px;
  text-align: center;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(250,247,242,.25), rgba(232,217,184,.90)),
    url("../assets/images/penutup.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* Overlay tambahan (opsional) */
.closing-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(250,247,242,.3) 0%, rgba(232,217,184,.6) 100%);
  pointer-events: none;
  z-index: 1;
}

.closing-section .container {
  position: relative;
  z-index: 2;
}

.closing-section .closing-footer {
  position: relative;
  z-index: 2;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-15px) rotate(8deg); } }
@keyframes scrollDown { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: .4; } }
@keyframes pulseMusic { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* ============ RESPONSIVE ============ */
@media (min-width: 768px) {
  section { padding: 100px 0; }
  .nav-menu { top: 24px; bottom: auto; left: 50%; right: auto; transform: translate(-50%, -100%); border-radius: 50px; border: 1px solid var(--color-champagne); padding: 8px 16px; gap: 6px; width: auto; }
  .nav-menu.visible { transform: translate(-50%, 0); }
  .nav-link { font-size: .72rem; padding: 8px 14px; }
  .music-toggle { bottom: 30px; right: 30px; width: 52px; height: 52px; }
  .couple-grid { flex-direction: row; justify-content: center; align-items: flex-start; gap: 30px; }
  .couple-card { flex: 1; }
  .gallery-item { width: 320px; }
  .gallery-nav { display: flex; }
  .gallery-wrapper { padding: 0 60px; }
  .gift-grid { grid-template-columns: repeat(2, 1fr); max-width: 700px; }
  .hero-photo-frame { border-radius: 250px 250px 24px 24px; }
  .couple-name { font-size: 1.8rem; }
}

@media (min-width: 1024px) {
  .hero-names { gap: 16px; }
  .name-amp { margin: 0 10px; }
  .rsvp-wrapper { flex-direction: row; align-items: flex-start; }
  .rsvp-form { flex: 1.2; }
  .wishes-wrapper { flex: 1; position: sticky; top: 100px; }
  .countdown-wrapper { gap: 20px; }
  .countdown-item { min-width: 90px; }
  .countdown-sep { font-size: 2.5rem; margin-bottom: 30px; }
  .couple-name { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============ CLOSING — Detail Teks & Nama ============ */
.closing-text {
  max-width: 860px;
  margin: 0 auto 50px;
  font-size: .9rem;
  color: var(--color-text-light);
  line-height: 1.8;
  font-weight: 400;
  padding: 0 50px;
  position: relative;
  z-index: 2;
  transform: translateY(-80px);    /* <-- naikkan 80px */
  text-align: center; 
}

.closing-thanks {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--color-gold-dark);
  margin-bottom: 16px;
  font-weight: 400;
  line-height: 1.15;
  position: relative;
  z-index: 2;
  transform: translateY(-40px);    /* <-- naikkan 80px */
}

.closing-names {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 11vw, 4rem);
  color: var(--color-brown);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: 0;
  position: relative;
  z-index: 2;
  transform: translateY(-40px);    /* <-- naikkan 80px */
}

.closing-names .ampersand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .7em;
  color: var(--color-gold);
}

.closing-date {
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .3em;
  color: var(--color-black);
  margin-bottom: 50px;
  text-indent: .7em;
  position: relative;
  transform: translateY(-50px);    /* <-- naikkan 80px */
  z-index: 2;
}

.closing-footer {
  border-top: 1px solid rgba(201,169,97,.2);
  padding-top: 24px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.closing-footer p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .8rem;
  color: var(--color-text-light);
}