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

:root {
  --primary: #212529;
  --on-primary: #ffffff;
  --background: #ffffff;
  --surface: #bb4a4a;
  --border: #e0dcd1;
  --text: #212529;
  --text-muted: #ffffff;
  --accent: #6d1e1e;
  --gold: #c9a84c;
  --gold-light: #f5e6b8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lora", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  overflow-x: hidden;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

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

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: "Great Vibes", cursive;
  font-size: 52px;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 15px;
  color: #666;
  max-width: 500px;
  margin: 15px auto 0;
  line-height: 1.7;
}

.ornament-divider {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 10px auto;
  position: relative;
}

.ornament-divider::before {
  content: "♦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 12px;
  background: var(--background);
  padding: 0 8px;
}

/* ===== OPENING SECTION ===== */
.opening {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.opening.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Foto background full cover, wajah di tengah-bawah */
.opening::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("Depan.jpg") center 30% / cover no-repeat;
  z-index: 0;
}

.opening-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradient: gelap di kiri-atas (tempat teks), transparan di tengah-bawah (wajah) */
  background: linear-gradient(
    135deg,
    rgba(20, 8, 8, 0.82) 0%,
    rgba(20, 8, 8, 0.65) 35%,
    rgba(20, 8, 8, 0.15) 65%,
    rgba(20, 8, 8, 0.05) 100%
  );
  z-index: 1;
}

.opening-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--on-primary);
  padding: 40px 30px 35px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 12px;
  background: rgba(15, 5, 5, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 360px;
  width: 88%;
  margin: 40px 0 0 40px;
  animation: fadeInUp 1s ease;
}

@media (max-width: 768px) {
  /* Mobile: teks di tengah layar */
  .opening {
    align-items: center;
    justify-content: center;
  }

  .opening-content {
    margin: 0 auto;
    max-width: 340px;
    width: 92%;
  }

  /* Foto fokus ke bagian atas agar wajah terlihat di balik kotak teks */
  .opening::before {
    background: url("Depan.jpg") center 25% / cover no-repeat;
  }

  /* Overlay merata agar teks tetap terbaca */
  .opening-overlay {
    background: rgba(20, 8, 8, 0.55);
  }
}

.opening-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--gold-light);
}

.opening-names {
  font-family: "Great Vibes", cursive;
  font-size: 52px;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.2;
}

.opening-names span {
  color: var(--gold);
}

.opening-date {
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 22px;
  color: var(--gold-light);
}

.opening-guest {
  margin-bottom: 22px;
  font-size: 13px;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  padding: 12px 0;
}

.opening-guest .guest-name {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 600;
  margin-top: 4px;
  color: #fff;
}

.btn-open {
  background: var(--surface);
  color: var(--on-primary);
  border: none;
  padding: 12px 30px;
  font-size: 14px;
  font-family: "Lora", serif;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(187, 74, 74, 0.4);
}

.btn-open:hover {
  background: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(187, 74, 74, 0.6);
}

.btn-open:focus {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Opening ornament dekoratif */
.opening-ornament {
  display: block;
  text-align: center;
  color: var(--gold);
  opacity: 0.7;
  letter-spacing: 6px;
  font-size: 12px;
  margin: 8px 0;
}
.opening-ornament.top {
  margin-bottom: 12px;
}
.opening-ornament.top::before {
  content: "✦ ✦ ✦";
}
.opening-ornament.bottom {
  margin-top: 15px;
}
.opening-ornament.bottom::before {
  content: "✦ ✦ ✦";
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: #3d2020;
}

/* Slideshow */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 55%;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.5s ease;
  animation: none;
}

.hero-slide.active {
  opacity: 1;
  animation: zoomSlide 8s ease-in-out forwards;
}

@keyframes zoomSlide {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* Desktop: hero lebih tinggi agar foto portrait lebih terlihat */
@media (min-width: 769px) {
  .hero {
    min-height: 130vh;
  }

  .hero-slide {
    background-position: center 45%;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(45, 20, 20, 0.2) 0%,
    rgba(45, 20, 20, 0.25) 40%,
    rgba(45, 20, 20, 0.65) 70%,
    rgba(45, 20, 20, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--on-primary);
  padding: 40px 25px 60px;
  max-width: 700px;
  width: 100%;
}

.hero-moon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.3;
  margin: 0 auto 20px;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-icon-batak {
  width: 80px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.4;
  position: relative;
  z-index: 3;
}

.hero-label {
  font-family: "Playfair Display", serif;
  font-size: 14px;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--on-primary);
}

.hero-names {
  font-family: "Great Vibes", cursive;
  font-size: 68px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--on-primary);
}

.hero-names span {
  color: var(--gold);
  display: inline-block;
  margin: 0 10px;
}

.hero-invite {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-date-main {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--gold);
}

/* ===== MUSIC BUTTON ===== */
.btn-music {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--on-primary);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  animation: pulse 2s infinite;
}

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

.btn-music.playing {
  animation: rotate 2s linear infinite;
}

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

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(187, 74, 74, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(187, 74, 74, 0.8);
  }
}

/* ===== COUPLE SECTION ===== */
.couple {
  padding: 80px 0;
  background: #fdf5f5;
}

.couple-label-top {
  font-family: "Great Vibes", cursive;
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 0;
}

.section-title-alt {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 4px;
  margin-bottom: 15px;
}

.couple-ornament-icon {
  width: 100px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  opacity: 0.4;
}

.couple-verse {
  font-size: 14px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: center;
  font-style: italic;
}

.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 50px;
}

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

.couple-ampersand span {
  font-family: "Great Vibes", cursive;
  font-size: 60px;
  color: var(--gold);
}

.couple-card {
  text-align: center;
  padding: 20px 15px;
}

.couple-photo-wrapper.oval {
  width: 220px;
  height: 300px;
  margin: 0 auto 25px;
  border-radius: 110px 110px 110px 110px;
  overflow: hidden;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 30px rgba(109, 30, 30, 0.15);
  position: relative;
  background: #e8e4df;
}

.couple-moon {
  position: absolute;
  top: -15px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  z-index: 2;
}

.couple-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.couple-name {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}

.couple-divider {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 10px auto;
}

.couple-child-info {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 5px;
}

.couple-parent {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 15px;
}

.couple-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--on-primary);
  text-decoration: none;
  transition: background 0.3s;
}

.couple-social a:hover {
  background: var(--accent);
}

/* ===== EVENT SECTION ===== */
.event {
  padding: 80px 0;
  background: #faf8f5;
}

.event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.event-grid.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.event-card {
  background: var(--background);
  padding: 35px 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px;
}

.event-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 15px;
}

.event-detail {
  margin-bottom: 20px;
  text-align: left;
}

.event-detail p {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.event-detail p i {
  color: var(--surface);
  width: 16px;
  min-width: 16px;
  margin-right: 0;
  margin-top: 3px;
  text-align: center;
}

.btn-map {
  display: inline-block;
  padding: 10px 20px;
  background: var(--surface);
  color: var(--on-primary);
  text-decoration: none;
  border-radius: 20px;
  font-size: 13px;
  transition: background 0.3s;
}

.btn-map:hover {
  background: var(--accent);
}

/* ===== COUNTDOWN SECTION (Full Background) ===== */

.countdown-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  z-index: 0;
}

/* Countdown section: konten di atas, foto terlihat di bawah */
.countdown-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 769px) {
  .countdown-section {
    min-height: 180vh;
    align-items: flex-start;
  }

  .countdown-bg {
    background-position: center 35%;
  }

  .countdown-content {
    padding-top: 60px;
    padding-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .countdown-section {
    min-height: 180vh;
    align-items: flex-start;
  }

  .countdown-bg {
    background-position: 65% center;
    background-size: cover;
  }

  .countdown-content {
    padding: 30px 20px 20px;
  }
}

.countdown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(30, 15, 15, 0.7) 0%,
    rgba(30, 15, 15, 0.55) 35%,
    rgba(30, 15, 15, 0.15) 60%,
    rgba(30, 15, 15, 0) 75%
  );
  z-index: 1;
}

.countdown-moon {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.2;
  z-index: 1;
}

.countdown-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--on-primary);
  padding: 60px 25px;
  max-width: 800px;
}

.countdown-icon {
  font-size: 32px;
  color: var(--on-primary);
  margin-bottom: 15px;
  opacity: 0.8;
}

.countdown-label-text {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 5px;
  color: var(--on-primary);
}

.countdown-heading {
  font-family: "Great Vibes", cursive;
  font-size: 52px;
  font-weight: 400;
  color: var(--surface);
  margin-bottom: 35px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  position: relative;
}

.countdown-number {
  font-family: "Playfair Display", serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--on-primary);
}

.countdown-sep {
  position: absolute;
  right: -12px;
  top: 12px;
  font-size: 40px;
  font-weight: 700;
  color: var(--on-primary);
  opacity: 0.6;
}

.countdown-item:last-child .countdown-sep {
  display: none;
}

.countdown-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
  color: var(--surface);
  font-weight: 500;
}

.btn-calendar {
  display: inline-block;
  padding: 12px 28px;
  background: var(--surface);
  color: var(--on-primary);
  text-decoration: none;
  border-radius: 25px;
  font-size: 13px;
  font-family: "Lora", serif;
  letter-spacing: 2px;
  transition: all 0.3s;
  margin-bottom: 35px;
}

.btn-calendar:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.countdown-verse {
  max-width: 650px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 25px;
}

.countdown-verse p {
  font-style: italic;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.countdown-verse span {
  font-size: 14px;
  color: var(--gold);
  font-weight: 500;
}

/* ===== PERJALANAN KAMI / STORY TIMELINE ===== */
.story {
  padding: 80px 0;
  background: var(--accent);
  position: relative;
  overflow: hidden;
}

.story-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.story-label {
  text-align: center;
  font-family: "Great Vibes", cursive;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 5px;
}

.story-title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--on-primary);
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.story-subtitle {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 15px auto 0;
}

.story .ornament-divider.light {
  background: var(--gold);
}

.story .ornament-divider.light::before {
  color: var(--gold);
  background: var(--accent);
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: 60px;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(201, 168, 76, 0.4);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 40px;
}

.timeline-item.left {
  left: 0;
  padding-right: 60px;
}

.timeline-item.right {
  left: 50%;
  padding-left: 60px;
}

.timeline-dot {
  position: absolute;
  top: 40px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-dot i {
  font-size: 10px;
  color: var(--on-primary);
}

.timeline-item.left .timeline-dot {
  right: -15px;
}

.timeline-item.right .timeline-dot {
  left: -15px;
}

.timeline-card {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.timeline-photo {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 5px 5px 0 rgba(187, 74, 74, 0.5);
  border: 3px solid rgba(201, 168, 76, 0.4);
}

.timeline-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.photo-moon {
  position: absolute;
  top: -20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
  z-index: 2;
}

.timeline-heading {
  font-family: "Great Vibes", cursive;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 400;
}

.timeline-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

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

  .timeline-item {
    width: 100%;
    padding-left: 55px !important;
    padding-right: 15px !important;
    left: 0 !important;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 5px;
    right: auto;
  }

  .timeline-photo img {
    height: auto;
  }

  .story-title {
    font-size: 26px;
    letter-spacing: 2px;
  }
}

/* ===== GALLERY VIDEO ===== */
.gallery-video {
  margin-bottom: 30px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== LAZY LOADING & PERFORMANCE ===== */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* Placeholder background saat gambar belum load */
.gallery-item,
.couple-photo-wrapper,
.timeline-photo {
  background: #e8e4df;
}

/* ===== GALLERY SECTION ===== */
.gallery {
  padding: 80px 0;
  background: var(--background);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
}

.gallery-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(109, 30, 30, 0);
  transition: background 0.3s ease;
}

.gallery-item:hover::after {
  background: rgba(109, 30, 30, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 5px;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 15px;
  transition: color 0.3s;
  z-index: 3;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--gold);
}

.lightbox-close {
  top: 20px;
  right: 25px;
}

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

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

/* ===== WISHES SECTION ===== */
.wishes {
  padding: 80px 0;
  background: #faf8f5;
}

.wishes-form {
  max-width: 550px;
  margin: 0 auto 40px;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: "Lora", serif;
  font-size: 14px;
  transition: border-color 0.3s;
  resize: vertical;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--surface);
  box-shadow: 0 0 0 3px rgba(187, 74, 74, 0.1);
}

.attendance-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--surface);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--surface);
  color: var(--on-primary);
  border: none;
  border-radius: 8px;
  font-family: "Lora", serif;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: var(--accent);
}

.btn-submit:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.wishes-list {
  max-width: 550px;
  margin: 0 auto;
  max-height: 400px;
  overflow-y: auto;
}

.wish-item {
  background: white;
  padding: 18px 20px;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 3px solid var(--surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  animation: fadeInUp 0.5s ease;
}

.wish-item .wish-author {
  font-weight: 600;
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 5px;
}

.wish-item .wish-text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.wish-item .wish-time {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

/* ===== GIFT SECTION ===== */
.gift {
  padding: 80px 0;
  background: var(--background);
}

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

.gift-card {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf8f5;
}

.bank-logo {
  height: 55px;
  margin: 0 auto 15px;
  object-fit: contain;
  display: block;
}

.qris-logo {
  height: 40px;
  margin: 0 auto 12px;
}

.qris-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.account-number {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.account-name {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

.btn-copy {
  padding: 8px 20px;
  background: var(--surface);
  color: var(--on-primary);
  border: none;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  font-family: "Lora", serif;
  transition: background 0.3s;
}

.btn-copy:hover {
  background: var(--accent);
}

.btn-copy.copied {
  background: #28a745;
}

/* ===== CLOSING SECTION ===== */
.closing {
  position: relative;
  height: 160vw;
  max-height: none;
  min-height: 500px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Foto sebagai <img> agar object-position bisa dikontrol presisi */
.closing-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Default (mobile): foto portrait tampil full */
  object-position: center 45%;
  z-index: 0;
  display: block;
}

.closing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gelap di atas untuk teks, makin transparan ke bawah agar pasangan kelihatan */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.3) 25%,
    rgba(0, 0, 0, 0.05) 55%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}

.closing-content {
  position: relative;
  z-index: 2;
  color: var(--on-primary);
  padding: 60px 20px 0;
  max-width: 600px;
  width: 100%;
}

.closing-thanks {
  max-width: 500px;
  margin: 0 auto 25px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--gold-light);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.closing-names {
  font-family: "Great Vibes", cursive;
  font-size: 64px;
  font-weight: 400;
  margin-bottom: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.closing-names span {
  color: var(--gold);
}

/* ===== CLOSING DESKTOP (laptop/PC) ===== */
@media (min-width: 769px) {
  .closing {
    /* 160vw = jika layar 1366px lebar, section ±2185px tinggi — cukup tampilkan full body */
    height: 160vw;
    max-height: none;
    min-height: 700px;
  }

  .closing-bg-img {
    object-position: center 50%;
  }

  .closing-content {
    padding-top: 40px;
  }
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 20px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
}

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

[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

[data-aos="fade-right"] {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s ease;
}

[data-aos="fade-left"] {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s ease;
}

[data-aos="zoom-in"] {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.7s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section-title {
    font-size: 40px;
  }

  .opening-names {
    font-size: 42px;
  }

  .hero-names {
    font-size: 50px;
  }

  .couple-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .couple-ampersand span {
    font-size: 40px;
  }

  .couple-photo-wrapper.oval {
    width: 180px;
    height: 250px;
  }

  .event-grid,
  .event-grid.three-col {
    grid-template-columns: 1fr;
  }

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

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

  .countdown-number {
    font-size: 40px;
  }

  .countdown-heading {
    font-size: 38px;
  }

  .countdown-sep {
    font-size: 30px;
    right: -8px;
  }

  .closing-names {
    font-size: 44px;
  }

  /* Mobile: pakai min-height 100vh karena layar portrait, foto muat lebih banyak */
  .closing {
    height: auto;
    min-height: 100vh;
    max-height: none;
  }

  .closing-bg-img {
    object-position: center 45%;
  }
}

@media (max-width: 480px) {
  .opening-names {
    font-size: 36px;
  }

  .hero-names {
    font-size: 38px;
  }

  .section-title {
    font-size: 34px;
  }

  .couple-name {
    font-size: 18px;
  }

  .countdown {
    gap: 8px;
  }

  .countdown-number {
    font-size: 32px;
  }

  .countdown-heading {
    font-size: 32px;
  }

  .countdown-sep {
    font-size: 24px;
    right: -6px;
    top: 8px;
  }

  .attendance-options {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== SCROLLBAR ===== */
.wishes-list::-webkit-scrollbar {
  width: 6px;
}

.wishes-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.wishes-list::-webkit-scrollbar-thumb {
  background: var(--surface);
  border-radius: 3px;
}
