/* ==========================================================================
   LUXURY ISLAMIC WEDDING DIGITAL INVITATION
   Theme: Deep Royal Navy & Champagne Gold
   ========================================================================== */

:root {
  --bg-dark-primary: #04081c;
  --bg-dark-secondary: #080e2f;
  --bg-card: rgba(8, 14, 47, 0.85);
  
  --gold-primary: #d4af37;
  --gold-secondary: #c9a84c;
  --gold-light: #f4c04b;
  --gold-border: rgba(212, 175, 55, 0.4);
  --gold-glow: rgba(212, 175, 55, 0.3);
  
  --text-gold: #f4c04b;
  --text-cream: #f8f6f0;
  --text-muted: #a0aec0;
  --text-white: #ffffff;
  
  --font-arabic: 'Amiri', 'Noto Naskh Arabic', 'Scheherazade New', serif;
  --font-cursive: 'Great Vibes', cursive;
  --font-serif: 'Cinzel', 'Cormorant Garamond', serif;
  --font-sans: 'Poppins', sans-serif;

  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.15);
  --gold-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, rgba(4, 8, 28, 0.90), rgba(8, 14, 47, 0.85)), url('bg.jpg') center/cover no-repeat fixed;
  color: var(--text-cream);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* ================= BACKGROUND SPARKLES ================= */
.sparkles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  bottom: -30px;
  background: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-light), 0 0 20px var(--gold-primary);
  opacity: 0.7;
  animation: floatUp linear infinite;
}

.sparkle.circle {
  border-radius: 50%;
}

.sparkle.diamond {
  transform: rotate(45deg);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg);
    opacity: 0;
  }
}

/* ================= COVER / WELCOME OVERLAY ================= */
.cover-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-dark-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
  overflow-y: auto;
}

.cover-modal.hide {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.cover-photo-section {
  position: relative;
  width: 100%;
  height: 48vh;
  min-height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(4, 8, 28, 0.9) 100%);
  overflow: hidden;
}

.cover-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) contrast(1.1);
}

.cover-photo-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--bg-dark-primary));
}

.cover-ribbon-divider {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: -40px auto 0 auto;
  z-index: 30;
  text-align: center;
}

.touch-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-white);
  z-index: 40;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.cover-navy-section {
  position: relative;
  width: 100%;
  flex: 1;
  background: var(--bg-dark-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px 40px 20px;
  z-index: 10;
}

.cover-couple-script {
  font-family: var(--font-cursive);
  color: var(--text-gold);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px var(--gold-glow);
}

.cover-flourish-svg {
  width: 280px;
  max-width: 80%;
  height: auto;
}

.cover-recipient-section {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 20px 30px;
  max-width: 450px;
  width: 90%;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
}

.recipient-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.recipient-name {
  font-size: 1.8rem;
  font-family: var(--font-serif);
  color: var(--text-white);
  margin: 6px 0;
  font-weight: 700;
}

.recipient-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.guest-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--text-gold);
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: bold;
  padding: 5px 16px;
  border-radius: 20px;
  margin-top: 10px;
  letter-spacing: 1px;
}

/* ================= MAIN WRAPPER & SECTIONS ================= */
.main-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 15px 80px 15px;
}

.quran-quote {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 24px;
  padding: 30px 25px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quran-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.arabic-text, .hero-arabic {
  font-family: var(--font-arabic);
  color: var(--text-gold);
  direction: rtl;
  line-height: 1.8;
}

.quran-text {
  font-size: 1.25rem;
  font-family: var(--font-arabic);
  line-height: 2;
  margin: 15px 0;
}

.quran-source {
  font-size: 0.95rem;
  color: var(--gold-primary);
  font-weight: bold;
  letter-spacing: 1px;
}

/* ================= HERO SECTION ================= */
.hero-couple-names {
  font-family: var(--font-cursive);
  color: var(--text-gold);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 25px var(--gold-glow);
}

.event-header-badge {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
  color: #04081c;
  font-weight: 800;
  border-radius: 14px;
  padding: 10px 20px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.event-details-body {
  margin-top: 20px;
  text-align: left;
  padding: 10px 15px;
}

.event-date-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.event-icon-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ================= COUNTDOWN TIMER ================= */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(4, 8, 28, 0.8);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 12px 18px;
  min-width: 75px;
  text-align: center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.countdown-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-gold);
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ================= BUTTONS & ACTIONS ================= */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
  color: #04081c !important;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* ================= MEMPELAI SECTION ================= */
.couple-details-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: wrap;
}

.profile-img-frame {
  width: 180px;
  height: 230px;
  margin: 0 auto 15px auto;
  border-radius: 20px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  overflow: hidden;
  position: relative;
}

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

.profile-img-frame:hover .profile-img {
  transform: scale(1.05);
}

.mempelai-fullname {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-gold);
  margin-bottom: 5px;
}

.child-status {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.parent-names {
  font-size: 1.05rem;
  color: var(--text-cream);
  font-weight: 500;
}

.parent-conjunction {
  color: var(--gold-primary);
  font-style: italic;
}

/* ================= DIGITAL ENVELOPE / GIFT ================= */
.gifts-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.gift-card {
  background: linear-gradient(135deg, rgba(8, 14, 47, 0.95), rgba(4, 8, 28, 0.95));
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 25px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--card-shadow);
  text-align: left;
  position: relative;
}

.bank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bank-card-icon {
  font-size: 1.8rem;
  color: var(--gold-primary);
}

.card-number {
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--text-gold);
  margin: 10px 0;
  font-family: monospace;
}

.btn-copy-account {
  width: 100%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--text-gold);
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-copy-account:hover {
  background: var(--gold-primary);
  color: #04081c;
}

/* ================= CLOSING & FAMILY HONORS ================= */
.parents-columns {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.parent-col {
  flex: 1;
  min-width: 220px;
}

.parent-lead {
  font-size: 1.1rem;
  color: var(--text-cream);
  font-weight: 600;
  margin-bottom: 4px;
}

.closing-section-title {
  color: var(--text-gold);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 20px 0 10px 0;
}

/* ================= RSVP & WISHES FEED ================= */
.rsvp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

@media (max-width: 768px) {
  .rsvp-grid {
    grid-template-columns: 1fr;
  }
}

.rsvp-card-form {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 25px;
  box-shadow: var(--card-shadow);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;

}

.form-control {
  width: 100%;
  background: rgba(4, 8, 28, 0.7);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 12px 15px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.btn-submit-rsvp {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
  color: #04081c;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--gold-shadow);

}

.rsvp-stats-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.stat-badge {
  flex: 1;
  background: rgba(4, 8, 28, 0.8);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-gold);
  display: block;
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.wishes-wall {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wishes-wall::-webkit-scrollbar {
  width: 6px;
}

.wishes-wall::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 3px;
}

.wish-item {
  background: rgba(8, 14, 47, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: left;
}

.wish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.wish-author {
  font-weight: 700;
  color: var(--text-gold);
  font-size: 0.95rem;
}

.wish-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.badge-hadir {
  background: rgba(72, 187, 120, 0.2);
  color: #68d391;
  border: 1px solid #48bb78;
}

.badge-tidak {
  background: rgba(245, 101, 101, 0.2);
  color: #fc8181;
  border: 1px solid #f56565;
}

.wish-text {
  font-size: 0.9rem;
  color: var(--text-cream);
  line-height: 1.5;
}

.wish-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}

/* ================= FLOATING MUSIC CONTROLLER ================= */
.music-toggle-btn {
  position: fixed;
  bottom: 85px;
  right: 20px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(8, 14, 47, 0.9);
  border: 1.5px solid var(--gold-primary);
  color: var(--text-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 15px var(--gold-glow);
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease;
}

.music-toggle-btn.playing {
  animation: spinMusic 4s linear infinite;
}

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

/* ================= TOAST NOTIFICATION ================= */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--gold-primary);
  color: var(--text-white);
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Scroll Top Button */
#floatingScrollIndicator {
  position: fixed;
  bottom: 25px;
  right: 20px;
  z-index: 900;
  background: rgba(8, 14, 47, 0.85);
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5), 0 0 15px var(--gold-glow);
  backdrop-filter: blur(5px);
  color: var(--gold-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
  text-decoration: none;
}
