/* ===================================
   VARIABLES & BASE STYLES (PINK PASTEL THEME)
   =================================== */
:root {
  --bg-quote: #fff0f3;
  --bg-couple: #ffe5ec;
  --bg-event: #ffc2d1;
  --bg-gallery: #ffe5ec;
  --bg-gift: #fff0f3;
  --bg-rsvp: #ffe5ec;
  --bg-footer: #ffb3c1;

  --bg-card: #ffffff;
  --bg-input: #ffffff;

  --accent-gold: #ff4d6d;
  --accent-gold-light: #ff758f;
  --text-main: #4a3e3d;
  --text-muted: #8d7b7a;
  --border-gold: #ffccd5;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #fff0f3 !important;
  color: var(--text-main) !important;
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================================
   TOMBOL LOGO MUSIK MELAYANG
   =================================== */
.music-box {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
}

.music-btn-photo {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  background: #0d111e;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  outline: none;
}

.music-btn-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.music-icon-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--accent-gold);
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 1.5px solid #ffffff;
}

.music-btn-photo.playing img {
  animation: rotateDisc 5s linear infinite;
}

@keyframes rotateDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===================================
   ANIMASI BUNGA & ORNAMEN (FLORAL)
   =================================== */
.floral-bg {
  position: relative;
  overflow: hidden;
}

.floral-bg::before,
.floral-bg::after {
  content: "🌸";
  position: absolute;
  font-size: 4.5rem;
  opacity: 0.25;
  pointer-events: none;
}

.floral-bg::before {
  top: -10px;
  left: -10px;
  animation: floatFloralLeft 6s ease-in-out infinite alternate;
}

.floral-bg::after {
  bottom: -10px;
  right: -10px;
  animation: floatFloralRight 7s ease-in-out infinite alternate;
}

@keyframes floatFloralLeft {
  0% { transform: rotate(-20deg) translate(0, 0) scale(1); opacity: 0.2; }
  100% { transform: rotate(-10deg) translate(8px, 12px) scale(1.1); opacity: 0.35; }
}

@keyframes floatFloralRight {
  0% { transform: rotate(160deg) translate(0, 0) scale(1); opacity: 0.2; }
  100% { transform: rotate(175deg) translate(-10px, -10px) scale(1.12); opacity: 0.35; }
}

.petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -10%;
  color: rgba(255, 77, 109, 0.4);
  font-size: 1.2rem;
  user-select: none;
  animation: fall linear infinite;
}

@keyframes fall {
  0% { opacity: 0; transform: translateY(0) rotate(0deg) translateX(0); }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(105vh) rotate(720deg) translateX(80px); }
}

/* ===================================
   HERO / BUKA UNDANGAN
   =================================== */
.hero-prewedding-bg {
  background: linear-gradient(to bottom, rgba(74, 62, 61, 0.4), rgba(74, 62, 61, 0.7)), 
              url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat !important;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border-bottom: 2px solid var(--accent-gold);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.2) 0%, transparent 80%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  padding: 30px 20px;
  border-radius: 16px;
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-gold);
  max-width: 500px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(255, 182, 193, 0.4);
}

.sub-title {
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 12px;
}

.bride-groom {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--accent-gold);
  margin-bottom: 16px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.wedding-date {
  font-size: 1rem;
  letter-spacing: 6px;
  color: var(--text-main);
  margin-bottom: 24px;
  font-weight: 600;
}

/* COUNTDOWN TIMER */
.countdown-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.countdown-item {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  padding: 8px 12px;
  border-radius: 8px;
  min-width: 60px;
  box-shadow: 0 4px 10px rgba(255, 182, 193, 0.3);
}

.countdown-item span {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-gold);
  display: block;
}

.countdown-item p {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* BUTTONS */
.btn-primary {
  border: none;
  padding: 12px 32px;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 50px !important;
  font-weight: 600;
  background: linear-gradient(135deg, #ff758f, #ffb3c1) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(255, 117, 143, 0.4) !important;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  padding: 8px 18px;
  font-size: 0.8rem;
  color: #ff4d6d;
  background: #ffffff !important;
  border: 2px solid #ffb3c1 !important;
  border-radius: 50px !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #ff4d6d !important;
  color: #ffffff !important;
}

.btn-block {
  width: 100%;
}

/* ===================================
   SEKSI UMUM & STRUKTUR HALAMAN
   =================================== */
.content-container {
  width: 100%;
}

.section {
  padding: 70px 20px;
  text-align: center;
}

.section-title h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--accent-gold);
}

.title-divider {
  width: 50px;
  height: 2px;
  background-color: var(--accent-gold);
  margin: 12px auto 30px;
}

/* 1. QUOTE SECTION */
.quote-section {
  background-color: var(--bg-quote);
  border-bottom: 1px solid var(--border-gold);
}

.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 16px;
}

.quote-author {
  font-size: 0.85rem;
  color: var(--accent-gold-light);
}

/* 2. COUPLE SECTION */
.couple-section {
  background-color: var(--bg-couple);
  border-bottom: 1px solid var(--border-gold);
}

.couple-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.couple-card {
  flex: 1;
  min-width: 240px;
  background: var(--bg-card);
  padding: 36px 24px;
  border: 2px solid var(--border-gold) !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 20px rgba(255, 182, 193, 0.4) !important;
  transition: transform 0.3s ease;
}

.couple-card:hover {
  transform: translateY(-5px);
}

.avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: visible;
  margin-bottom: 18px;
}

.avatar-wrapper::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(gold, #fff8cc, gold, #ffffff, gold);
  animation: ringRotate 8s linear infinite;
  z-index: -1;
  filter: blur(2px);
}

.avatar-wrapper::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: white;
  z-index: -1;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.couple-photo {
  position: relative;
  display: inline-block;
}

.avatar-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #d4af37;
  transition: .5s;
  animation: floatPhoto 4s ease-in-out infinite;
  box-shadow: 0 0 25px rgba(212, 175, 55, .4), 0 15px 30px rgba(0, 0, 0, .1);
}

@keyframes floatPhoto {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Animasi Love Mengelilingi Foto */
.love {
  position: absolute;
  font-size: 22px;
  animation: loveFloat 3s infinite ease-in-out;
  z-index: 5;
}

.love.one { top: -10px; left: -10px; }
.love.two { top: 20px; right: -15px; animation-delay: .6s; }
.love.three { bottom: -5px; left: 10px; animation-delay: 1.2s; }

@keyframes loveFloat {
  0% { transform: translateY(0) scale(1); opacity: .4; }
  50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: .4; }
}

.couple-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
  animation: goldGlow 3s infinite;
}

@keyframes goldGlow {
  0%, 100% { text-shadow: 0 0 0px gold; }
  50% { text-shadow: 0 0 8px rgba(255, 77, 109, 0.4); }
}

.parents {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.couple-ampersand {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--accent-gold);
  animation: heartBeat 1.6s infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* 3. EVENT SECTION & MAPS */
.event-section {
  background-color: var(--bg-event);
  border-bottom: 1px solid var(--border-gold);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 850px;
  margin: 0 auto;
}

.event-card {
  background: var(--bg-card);
  padding: 28px 20px;
  border: 2px solid var(--border-gold) !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 20px rgba(255, 182, 193, 0.4) !important;
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-card.highlight {
  border-color: var(--accent-gold);
}

.map-container {
  margin-top: 15px;
  border-radius: 16px !important;
  overflow: hidden;
  border: 2px solid var(--border-gold);
  height: 180px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Animasi Joget Pin Lokasi */
.icon-pin {
  display: inline-block;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.btn-secondary:hover .icon-pin {
  animation: jogetLucu 0.4s ease-in-out infinite;
}

@keyframes jogetLucu {
  0%, 100% { transform: rotate(0deg) scale(1.15); }
  25% { transform: rotate(-20deg) scale(1.15); }
  75% { transform: rotate(20deg) scale(1.15); }
}

/* 4. GALERI PREWEDDING */
.gallery-section {
  background-color: var(--bg-gallery);
  border-bottom: 1px solid var(--border-gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  max-width: 850px;
  margin: 0 auto;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-gold);
  height: 240px;
  box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item img:hover {
  transform: scale(1.08);
}

/* 5. WEDDING GIFT SECTION */
.gift-section {
  background-color: var(--bg-gift);
  border-bottom: 1px solid var(--border-gold);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: -15px auto 30px;
}

.gift-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.gift-card {
  flex: 1;
  min-width: 260px;
  background: var(--bg-card);
  padding: 30px 20px;
  border: 2px solid var(--border-gold) !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 20px rgba(255, 182, 193, 0.4) !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 16px;
  border-radius: 8px;
}

.bca-logo { height: 28px; width: auto; }
.dana-logo { height: 24px; width: auto; }

.rekening-number {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-main);
  letter-spacing: 2px;
  margin: 8px 0 4px;
}

.account-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.qris-image-wrapper {
  width: 160px;
  height: 160px;
  margin: 10px auto;
  padding: 8px;
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid var(--accent-gold);
}

.qris-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qris-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* 6. RSVP SECTION */
.rsvp-section {
  background-color: var(--bg-rsvp);
}

.rsvp-form {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 36px 28px;
  border-radius: 24px !important;
  border: 2px solid var(--border-gold) !important;
  box-shadow: 0 8px 20px rgba(255, 182, 193, 0.4) !important;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--accent-gold);
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  border-radius: 12px;
  outline: none;
  font-family: var(--font-sans);
}

/* Animasi Success RSVP */
.rsvp-success {
  display: none;
  text-align: center;
  padding: 30px 20px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.rsvp-success.active {
  display: block;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #ff4d6d;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 15px;
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.4);
  animation: bounceCheck 0.8s ease infinite alternate;
}

.rsvp-success h3 {
  font-family: var(--font-serif);
  color: #ff4d6d;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.rsvp-success p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes bounceCheck {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.05); }
}

/* 7. FOOTER */
.footer {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--bg-footer);
  border-top: 2px solid var(--border-gold);
}

.footer p {
  font-family: var(--font-serif);
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
}

.footer small {
  color: #7a6867;
  font-size: 0.8rem;
}

/* ===================================
   OPENING MESSAGE & BISMILLAH ANIMATION
   =================================== */
.opening-message {
  margin: 25px auto;
  max-width: 720px;
  text-align: center;
}

.bismillah-wrapper {
  position: relative;
}

.gold-light {
  position: absolute;
  width: 250px;
  height: 250px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 182, 193, 0.4), transparent 70%);
  filter:blur(15px);
  animation: glow 4s infinite;
}

.bismillah {
  font-size: 32px;
  color: var(--accent-gold);
  position: relative;
  opacity: 0;
  animation: zoomFade 2s ease forwards;
  text-shadow: 0 0 10px rgba(255, 77, 109, 0.3);
}

.gold-divider {
  width: 0;
  height: 2px;
  margin: 15px auto;
  background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
  animation: divider 1.5s ease forwards;
  animation-delay: 1.5s;
}

.opening-text {
  opacity: 0;
  transform: translateY(20px);
  color: var(--text-main);
  line-height: 1.8;
  animation: fadeUp 1s forwards;
  font-size: 0.95rem;
}

.delay1 { animation-delay: 2.2s; }
.delay2 { animation-delay: 2.8s; }
.delay3 { animation-delay: 3.4s; }

@keyframes zoomFade {
  0% { opacity: 0; transform: scale(.5); }
  70% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes divider {
  100% { width: 220px; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  0%, 100% { transform: translate(-50%, -50%) scale(.9); opacity: .5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* ===================================
   RESPONSIVE DESIGN (MOBILE)
   =================================== */
@media (max-width: 600px) {
  .bride-groom {
    font-size: 2.2rem;
  }
  .section {
    padding: 50px 16px;
  }
  .countdown-item {
    min-width: 50px;
    padding: 6px 8px;
  }
}
/* ===================================
   OPENING MESSAGE & BISMILLAH ANIMATION
   =================================== */
.opening-message {
  margin: 25px auto;
  max-width: 720px;
  text-align: center;
}

.bismillah-wrapper {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
}

.gold-light {
  position: absolute;
  width: 250px;
  height: 250px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 182, 193, 0.6), transparent 70%);
  filter: blur(15px);
  animation: glow 4s infinite ease-in-out;
  z-index: 0;
}

.bismillah {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--accent-gold);
  position: relative;
  z-index: 1;
  opacity: 0;
  /* Kombinasi animasi masuk (zoomFade) dan animasi kilau terus-menerus (bismillahGlimmer) */
  animation: zoomFade 2s ease forwards, bismillahGlimmer 3s ease-in-out infinite alternate;
  animation-delay: 0s, 2s; /* Glimmer mulai aktif setelah animasi masuk selesai */
  text-shadow: 0 0 12px rgba(255, 77, 109, 0.3);
}

/* Animasi Kilau / Glimmer pada teks Bismillah */
@keyframes bismillahGlimmer {
  0% {
    transform: scale(1);
    text-shadow: 0 0 8px rgba(255, 77, 109, 0.3), 0 0 20px rgba(255, 182, 193, 0.2);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.03);
    text-shadow: 0 0 18px rgba(255, 77, 109, 0.7), 0 0 30px rgba(255, 117, 143, 0.5);
    filter: brightness(1.15);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 8px rgba(255, 77, 109, 0.3), 0 0 20px rgba(255, 182, 193, 0.2);
    filter: brightness(1);
  }
}

.gold-divider {
  width: 0;
  height: 2px;
  margin: 15px auto;
  background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
  animation: divider 1.5s ease forwards;
  animation-delay: 1.5s;
}

.opening-text {
  opacity: 0;
  transform: translateY(20px);
  color: var(--text-main);
  line-height: 1.8;
  animation: fadeUp 1s forwards;
  font-size: 0.95rem;
}

.delay1 { animation-delay: 2.2s; }
.delay2 { animation-delay: 2.8s; }
.delay3 { animation-delay: 3.4s; }

@keyframes zoomFade {
  0% { opacity: 0; transform: scale(.5); }
  70% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes divider {
  100% { width: 220px; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  0%, 100% { transform: translate(-50%, -50%) scale(.9); opacity: .5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}
/* ===================================
   COUPLE SECTION (FOTO WAJAH JELAS & TIDAK TERPOTONG)
   =================================== */
.couple-section {
  background-color: var(--bg-couple);
  border-bottom: 1px solid var(--border-gold);
}

.couple-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.couple-card {
  flex: 1;
  min-width: 240px;
  background: var(--bg-card);
  padding: 36px 24px;
  border: 2px solid var(--border-gold) !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 20px rgba(255, 182, 193, 0.4) !important;
  transition: transform 0.3s ease;
}

.couple-card:hover {
  transform: translateY(-5px);
}

.avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  margin-bottom: 18px;
}

.avatar-wrapper::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(gold, #fff8cc, gold, #ffffff, gold);
  animation: ringRotate 8s linear infinite;
  z-index: -1;
  filter: blur(2px);
}

.couple-photo {
  position: relative;
  display: inline-block;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  padding: 4px; /* Memberikan jarak agar border emas tidak menutupi wajah */
  background: #ffffff;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), 0 15px 30px rgba(0, 0, 0, 0.1);
  animation: floatPhoto 4s ease-in-out infinite;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Mengatur posisi fokus gambar agar pas di bagian wajah (ubah nilai center top jika ingin digeser) */
  object-position: center 20%; 
  border-radius: 50%;
  border: 4px solid #d4af37;
  display: block;
}

@keyframes floatPhoto {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Animasi Love Mengelilingi Foto */
.love {
  position: absolute;
  font-size: 22px;
  animation: loveFloat 3s infinite ease-in-out;
  z-index: 5;
}

.love.one { top: -5px; left: 0px; }
.love.two { top: 20px; right: -5px; animation-delay: .6s; }
.love.three { bottom: 0px; left: 15px; animation-delay: 1.2s; }

@keyframes loveFloat {
  0% { transform: translateY(0) scale(1); opacity: .4; }
  50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: .4; }
}

.couple-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
  animation: goldGlow 3s infinite;
}

@keyframes goldGlow {
  0%, 100% { text-shadow: 0 0 0px gold; }
  50% { text-shadow: 0 0 8px rgba(255, 77, 109, 0.4); }
}

.parents {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.couple-ampersand {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--accent-gold);
  animation: heartBeat 1.6s infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
/* ===================================
   OUR STORY / LOVE STORY SECTION (ANIMASI LUCU)
   =================================== */
.story-section {
  background-color: var(--bg-quote);
  border-bottom: 1px solid var(--border-gold);
  position: relative;
  overflow: hidden;
}

.story-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Garis tengah timeline */
.story-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-gold), #ffb3c1, var(--accent-gold));
  transform: translateX(-50%);
  animation: lineGlow 3s ease-in-out infinite alternate;
}

@keyframes lineGlow {
  0% { opacity: 0.5; box-shadow: 0 0 5px rgba(255, 77, 109, 0.2); }
  100% { opacity: 1; box-shadow: 0 0 15px rgba(255, 77, 109, 0.6); }
}

.story-item {
  position: relative;
  margin-bottom: 35px;
  width: 50%;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Posisi kiri dan kanan untuk timeline */
.story-item:nth-child(odd) {
  left: 0;
  text-align: right;
  animation: slideInLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.story-item:nth-child(even) {
  left: 50%;
  text-align: left;
  animation: slideInRight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-50px) scale(0.9); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(50px) scale(0.9); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* Kotak Kartu Cerita dengan Efek Lucu & Membal */
.story-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 20px;
  border: 2px solid var(--border-gold) !important;
  box-shadow: 0 8px 20px rgba(255, 182, 193, 0.4) !important;
  position: relative;
  transition: all 0.3s ease;
}

.story-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-gold) !important;
  box-shadow: 0 12px 25px rgba(255, 77, 109, 0.3) !important;
}

/* Titik / Ikon Penghubung di Tengah Garis */
.story-item::after {
  content: "💖";
  position: absolute;
  top: 15px;
  width: 35px;
  height: 35px;
  background: #ffffff;
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 2;
  box-shadow: 0 0 10px rgba(255, 77, 109, 0.4);
  animation: heartBounce 2s infinite ease-in-out;
}

.story-item:nth-child(odd)::after {
  right: -17.5px;
}

.story-item:nth-child(even)::after {
  left: -17.5px;
}

@keyframes heartBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(10deg); }
}

/* Badge Tanggal / Tahun yang Lucu */
.story-date {
  display: inline-block;
  background: linear-gradient(135deg, #ff758f, #ffb3c1);
  color: #ffffff;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 8px;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(255, 117, 143, 0.4);
}

.story-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.story-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Responsif untuk HP / Layar Kecil */
@media (max-width: 600px) {
  .story-timeline::before {
    left: 20px;
  }
  .story-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 10px;
    text-align: left !important;
  }
  .story-item:nth-child(even) {
    left: 0;
  }
  .story-item:nth-child(odd)::after,
  .story-item:nth-child(even)::after {
    left: 2.5px;
    right: auto;
  }
}
/* ===================================
   LIVE STREAMING SECTION (ANIMASI LIVE)
   =================================== */
.live-section {
  background-color: var(--bg-event);
  border-bottom: 1px solid var(--border-gold);
  text-align: center;
}

.live-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 30px 24px;
  border-radius: 24px !important;
  border: 2px solid var(--border-gold) !important;
  box-shadow: 0 8px 20px rgba(255, 182, 193, 0.4) !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.live-card:hover {
  transform: translateY(-5px);
}

/* Badge "LIVE" Berkedip Merah/Pink */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ff4d6d;
  color: #ffffff;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 14px;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 10px rgba(255, 77, 109, 0.4);
  animation: livePulse 1.5s infinite;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  animation: dotBlink 1s infinite alternate;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes dotBlink {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.live-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.live-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Ikon Kamera Joget / Animasi Tombol Live */
.btn-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff758f, #ff4d6d) !important;
  color: #ffffff !important;
  padding: 12px 28px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-radius: 50px !important;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
  transition: all 0.3s ease;
}

.btn-live:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  color: #ffffff !important;
}

.btn-live .icon-cam {
  animation: camBounce 1.2s infinite ease-in-out;
}

@keyframes camBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
/* ===================================
   SAVE TO CALENDAR SECTION
   =================================== */
.calendar-section {
  text-align: center;
  margin-top: 25px;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff !important;
  color: var(--accent-gold) !important;
  border: 2px solid var(--accent-gold) !important;
  padding: 10px 24px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-radius: 50px !important;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
  transition: all 0.3s ease;
}

.btn-calendar:hover {
  background: var(--accent-gold) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-calendar .icon-cal {
  animation: calShake 1.5s infinite ease-in-out;
}

@keyframes calShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}
/* Sembunyikan navbar di awal sebelum undangan dibuka */
.floating-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px); /* Geser ke bawah agar tersembunyi */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 50px;
  display: flex;
  gap: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  z-index: 999;
  border: 1px solid var(--border-gold);
  opacity: 0;
  transition: all 0.4s ease; /* Efek transisi muncul */
  pointer-events: none;
}

/* Kelas ini akan aktif saat undangan dibuka */
.floating-nav.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
/* ==========================================
   IMAGE LIGHTBOX MODAL
   ================================---------- */
.gallery-item img {
  cursor: pointer; /* Mengubah kursor jadi pointer saat diarahkan ke foto */
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.image-modal.active {
  display: flex;
}

.image-modal img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.image-modal-close:hover {
  color: var(--accent-gold);
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}