/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #8b5e3c;
  --primary-light: #a97c5b;
  --secondary: #d4af37;
  --secondary-light: #e8c95a;
  --dark: #2c1a0e;
  --light-bg: #fdf8f3;
  --text-dark: #3d2b1f;
  --text-muted: #8a7060;
  --white: #ffffff;
  --font-serif: "Cormorant Garamond", serif;
  --font-script: "Great Vibes", cursive;
  --font-sans: "Lato", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--light-bg);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

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

/* ===== COVER SECTION ===== */
.cover-section {
  position: fixed;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1519741497674-611481863552?w=1920&q=80") center/cover no-repeat;
  z-index: 9999;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.cover-section.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 26, 14, 0.85) 0%, rgba(139, 94, 60, 0.75) 100%);
}

.cover-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 2rem;
}

.cover-subtitle {
  font-family: var(--font-sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--secondary-light);
  margin-bottom: 1rem;
}

.cover-names {
  font-family: var(--font-script);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.2;
  color: white;
  margin: 1rem 0;
}

.cover-names span {
  font-family: var(--font-script);
  color: var(--secondary-light);
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.cover-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--secondary-light), transparent);
  margin: 1rem auto;
}

.cover-guest-label {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.5rem 0 0.25rem;
}

.cover-guest-name {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--secondary-light);
  margin-bottom: 2rem;
}

.btn-open-invitation {
  background: transparent;
  border: 1.5px solid var(--secondary-light);
  color: white;
  padding: 0.8rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.btn-open-invitation:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Flower decorations */
.flower-tl,
.flower-br {
  position: absolute;
  width: 250px;
  height: 250px;
  background: url("https://www.transparentpng.com/thumb/flower/pink-flowers-clipart-png-download-1.png") center/contain no-repeat;
  opacity: 0.15;
  pointer-events: none;
}
.flower-tl {
  top: -30px;
  left: -30px;
  transform: rotate(20deg);
}
.flower-br {
  bottom: -30px;
  right: -30px;
  transform: rotate(200deg);
}

/* ===== NAVBAR ===== */
.wedding-navbar {
  background: rgba(44, 26, 14, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  transition: all 0.3s;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.wedding-brand {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--secondary) !important;
}

.wedding-navbar .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s;
}

.wedding-navbar .nav-link:hover {
  color: var(--secondary) !important;
}
.wedding-navbar .navbar-toggler {
  border-color: rgba(212, 175, 55, 0.5);
}
.wedding-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(212, 175, 55, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?w=1920&q=80") center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 26, 14, 0.8) 0%, rgba(139, 94, 60, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 2rem;
  padding-top: 80px;
}

.hero-bismillah {
  font-family: "Arial", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--secondary-light);
  margin-bottom: 1rem;
}

.hero-intro {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.hero-names {
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 8vw, 7rem);
  color: white;
  line-height: 1.1;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-names span {
  color: var(--secondary-light);
  font-size: 0.7em;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-style: italic;
  color: var(--secondary-light);
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
}

.scroll-indicator {
  margin-top: 3rem;
  color: var(--secondary-light);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

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

/* Flower decorations for hero */
.hero-flower-tl,
.hero-flower-tr,
.hero-flower-bl,
.hero-flower-br {
  position: absolute;
  width: 200px;
  height: 200px;
  opacity: 0.1;
  pointer-events: none;
}
.hero-flower-tl {
  top: 60px;
  left: 0;
  background: url("https://cdn-icons-png.flaticon.com/512/2454/2454292.png") center/contain no-repeat;
}
.hero-flower-tr {
  top: 60px;
  right: 0;
  transform: scaleX(-1);
  background: url("https://cdn-icons-png.flaticon.com/512/2454/2454292.png") center/contain no-repeat;
}
.hero-flower-bl {
  bottom: 0;
  left: 0;
  transform: rotate(180deg) scaleX(-1);
  background: url("https://cdn-icons-png.flaticon.com/512/2454/2454292.png") center/contain no-repeat;
}
.hero-flower-br {
  bottom: 0;
  right: 0;
  transform: rotate(180deg);
  background: url("https://cdn-icons-png.flaticon.com/512/2454/2454292.png") center/contain no-repeat;
}

.countdown-wrapper {
  margin-top: 10px;
}
/* ===== SECTION COMMON STYLES ===== */
.section-pre-title {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--primary);
  margin-bottom: 20px;
}
.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  margin: 1rem auto;
}
.section-divider.light {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

/* ===== COUNTDOWN ===== */
.countdown-section {
  background: var(--light-bg);
  border-top: 1px solid rgba(139, 94, 60, 0.1);
  border-bottom: 1px solid rgba(139, 94, 60, 0.1);
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.countdown-wrapper {
  margin-top: 20px;
}
.countdown-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.countdown-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--secondary);
  font-weight: bold;
}

.countdown-number {
  display: flex;
  align-items: center;
  justify-content: center;

  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--primary);

  height: 90px;
  min-width: 90px;

  background: white;
  border: 2px solid var(--secondary);
  border-radius: 12px;

  box-shadow: 0 4px 15px rgba(139, 94, 60, 0.1);

  font-variant-numeric: tabular-nums;

  line-height: 1; /* ✅ penting */
  padding-bottom: 4px; /* ✅ ini kunci */
}
.countdown-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== MEMPELAI ===== */
.mempelai-section {
  background: white;
}

.mempelai-card {
  padding: 2rem 1rem;
}

.mempelai-photo-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--secondary);
  box-shadow: 0 8px 30px rgba(139, 94, 60, 0.25);
  position: relative;
}

.mempelai-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mempelai-photo-wrapper:hover .mempelai-photo {
  transform: scale(1.05);
}

.mempelai-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto 1rem;
}

.mempelai-icon.female {
  background: var(--secondary);
  color: var(--dark);
}

/* ===== FIX ALIGN NAMA MEMPELAI ===== */
.mempelai-name {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--primary);

  display: flex;
  flex-direction: column;
  justify-content: center;

  min-height: 80px; /* ini kunci biar semua sejajar */
  line-height: 1.2;
}

.mempelai-name .line {
  display: block;
}

.mempelai-name .line.empty {
  visibility: hidden; /* tetap makan space */
}

.mempelai-parents {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.ampersand-divider {
  font-family: var(--font-script);
  font-size: clamp(4rem, 8vw, 6rem);
  color: var(--secondary);
  line-height: 1;
}

/* ===== ACARA ===== */
.acara-section {
  background: url("https://images.unsplash.com/photo-1519167758481-83f550bb49b3?w=1920&q=80") center/cover no-repeat fixed;
  position: relative;
}

.acara-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 26, 14, 0.88), rgba(139, 94, 60, 0.82));
}

.event-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: white;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.event-icon {
  font-size: 2.5rem;
  color: var(--secondary-light);
  margin-bottom: 1rem;
}

.event-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  color: white;
}

.event-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.event-detail i {
  color: var(--secondary-light);
  width: 16px;
}

.venue-address {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
}

.btn-maps {
  display: inline-block;
  background: var(--secondary);
  color: var(--dark);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}

.btn-maps:hover {
  background: var(--secondary-light);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* ===== LOVE STORY ===== */
.cerita-section {
  background: var(--light-bg);
}

.love-story-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(139, 94, 60, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: hidden;
}

.love-story-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.love-quote-icon {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.love-story-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 2rem;
}

.love-verse {
  border-top: 1px solid rgba(139, 94, 60, 0.2);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.love-verse p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.love-verse span {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== GALLERY ===== */
.galeri-section {
  background: white;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139, 94, 60, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* ===== UCAPAN ===== */
.ucapan-section {
  background: var(--light-bg);
}

.wish-form-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(139, 94, 60, 0.1);
}

.wedding-input {
  border: 1.5px solid rgba(139, 94, 60, 0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  background: #fdfaf7;
}

.wedding-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.12);
  outline: none;
  background: white;
}

.wish-item {
  background: white;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 3px 12px rgba(139, 94, 60, 0.08);
  border-left: 3px solid var(--secondary);
  animation: fadeInUp 0.4s ease forwards;
}

.wish-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.wish-text {
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.wish-time {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ===== RSVP ===== */
.rsvp-section {
  background: url("https://images.unsplash.com/photo-1507504031003-b417219a0fde?w=1920&q=80") center/cover no-repeat fixed;
  position: relative;
}

.rsvp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 26, 14, 0.9), rgba(139, 94, 60, 0.85));
}

.rsvp-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.attendance-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.attendance-option {
  flex: 1;
  cursor: pointer;
  min-width: 150px;
}

.attendance-option input {
  display: none;
}

.attendance-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(139, 94, 60, 0.25);
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.3s;
  cursor: pointer;
  background: #fdfaf7;
  color: var(--text-dark);
  text-align: center;
}

.attendance-option input:checked + .attendance-box {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.attendance-option:has(input[value="tidak_hadir"]) input:checked + .attendance-box {
  border-color: #dc3545;
  background: #dc3545;
  color: white;
}

.btn-wedding-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.05em;
}

.btn-wedding-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 94, 60, 0.35);
}

.btn-wedding-gold {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--dark);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.05em;
}

.btn-wedding-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* ===== FOOTER ===== */
.wedding-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-names {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.footer-date {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 500px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.footer-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  margin: 1.5rem auto;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TOAST ===== */
.toast {
  background: var(--primary) !important;
  min-width: 280px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .countdown-wrapper {
    gap: 0.5rem;
  }
  .countdown-item {
    min-width: 60px;
  }
  .countdown-number {
    font-size: 2rem;
    padding: 0.4rem 0.75rem;
  }
  .love-story-card {
    padding: 2rem 1.5rem;
  }
  .rsvp-card {
    padding: 1.75rem 1.25rem;
  }
  .attendance-options {
    flex-direction: column;
  }
  .mempelai-photo-wrapper {
    width: 160px;
    height: 160px;
  }
}
