/* ============================================
   WEDDING INVITATION — ENHANCED EDITION
   Style: Islamic Elegance with Advanced Animations
   ============================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #c9a84c;
  --gold-light: #e8c96b;
  --gold-dark: #a07828;
  --emerald: #2d6a4f;
  --emerald-mid: #52796f;
  --emerald-lite: #84a98c;
  --cream: #fdf6e3;
  --cream-dark: #f0e6c8;
  --parchment: #faf4e8;
  --brown-dark: #3d2b1f;
  --brown-mid: #7a5c3a;
  --text-main: #2b1f0e;
  --text-soft: #7a6a55;
  --white: #ffffff;
  --shadow-sm: 0 4px 15px rgba(60, 40, 10, 0.1);
  --shadow-md: 0 8px 30px rgba(60, 40, 10, 0.15);
  --shadow-lg: 0 20px 60px rgba(60, 40, 10, 0.2);
  --radius: 16px;
  --radius-lg: 28px;
  --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body.dark-theme {
  --cream: #1a1208;
  --cream-dark: #231808;
  --parchment: #1e1508;
  --text-main: #f0e6c8;
  --text-soft: #b8a882;
  --white: #2a1e10;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #100d05 0%, #1a1208 100%);
}

body {
  font-family: "Lato", sans-serif;
  background: linear-gradient(135deg, #fdf8ef 0%, #f5edd8 100%);
  color: var(--text-main);
  overflow-x: hidden;
  transition:
    background var(--transition),
    color var(--transition);
  opacity: 0;
  animation: fadeInBody 1.5s ease forwards;
}

@keyframes fadeInBody {
  to {
    opacity: 1;
  }
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #2c1a0e, var(--emerald));
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 1s ease,
    visibility 1s ease;
}

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

.preloader-content {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: var(--gold);
  border-right-color: var(--gold-light);
  border-radius: 50%;
  animation: preloaderSpin 1.5s linear infinite;
}

.preloader-ring-inner {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 4px solid transparent;
  border-bottom-color: var(--gold);
  border-left-color: var(--gold-light);
  border-radius: 50%;
  animation: preloaderSpin 1s linear infinite reverse;
}

.preloader-text {
  font-family: "Amiri", serif;
  font-size: 1.5rem;
  color: white;
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes preloaderSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ============ READING PROGRESS ============ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(201, 168, 76, 0.1);
  z-index: 1200;
}

.progress-bar-scroll {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
  overflow: hidden;
}

.progress-bar-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ============ FLOATING ORBS ============ */
.floating-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  animation: floatOrb 20s ease-in-out infinite;
}

.orb1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold), transparent);
  top: -100px;
  right: -100px;
  animation-delay: -2s;
}

.orb2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--emerald), transparent);
  bottom: -200px;
  left: -150px;
  animation-delay: -5s;
}

.orb3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--gold-light), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -8s;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.1);
  }

  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

/* ============ PARTICLES ============ */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(110vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.4;
  }

  90% {
    opacity: 0.2;
  }

  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* ============ PETALS ============ */
.petals-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 16px;
  border-radius: 50% 0 50% 0;
  opacity: 0;
  animation: fall-petal linear infinite;
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
}

@keyframes fall-petal {
  0% {
    transform: translateY(-20px) rotate(0deg) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(110vh) rotate(720deg) translateX(80px);
    opacity: 0;
  }
}

/* ============ NAV BUTTONS ============ */
.nav-buttons {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  display: flex;
  gap: 10px;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(253, 246, 227, 0.92);
  color: var(--gold-dark);
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition-bounce);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--gold-light), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-btn:hover {
  background: var(--gold);
  color: white;
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 0 20px var(--gold);
}

.nav-btn:hover::before {
  opacity: 0.3;
}

body.dark-theme .nav-btn {
  background: rgba(26, 18, 8, 0.92);
  color: var(--gold-light);
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-bounce);
  box-shadow: var(--shadow-md);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 0 30px var(--gold);
}

/* ============ MUSIC BAR ============ */
.music-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: linear-gradient(135deg, var(--brown-dark), var(--emerald));
  color: white;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.music-bar.show {
  transform: translateY(0);
}

.music-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.music-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}

.music-text {
  display: flex;
  flex-direction: column;
}

#songTitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
}

.music-artist {
  font-size: 0.7rem;
  opacity: 0.7;
}

.music-note-spin {
  color: var(--gold-light);
  animation: spin-note 2s linear infinite;
}

@keyframes spin-note {
  0%,
  100% {
    transform: rotate(-15deg) scale(1);
  }

  50% {
    transform: rotate(15deg) scale(1.1);
  }
}

.music-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.music-ctrl-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-ctrl-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.15);
  box-shadow: 0 0 15px var(--gold);
}

.play-btn {
  width: 40px;
  height: 40px;
  font-size: 0.95rem;
  background: var(--gold);
  border-color: var(--gold);
}

.music-progress {
  flex: 2;
  min-width: 150px;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  width: 0%;
  border-radius: 2px;
  transition: width 0.5s linear;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

.music-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  opacity: 0.7;
}

.music-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}

.music-volume i {
  color: var(--gold-light);
  font-size: 0.9rem;
}

.music-volume input {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
}

.music-volume input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  transition: transform 0.2s;
}

.music-volume input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ============ COVER ============ */
.cover {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(45, 106, 79, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(201, 168, 76, 0.1) 0%,
      transparent 60%
    ),
    linear-gradient(135deg, #fdf8ef 0%, #f5edd8 100%);
  overflow: hidden;
}

body.dark-theme .cover {
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(45, 106, 79, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(201, 168, 76, 0.1) 0%,
      transparent 60%
    ),
    linear-gradient(135deg, #100d05 0%, #1a1208 100%);
}

.cover-card {
  background:
    linear-gradient(rgba(253, 248, 239, 0.62), rgba(253, 248, 239, 0.92)),
    url("assets/cover-background.png") center/cover no-repeat;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: var(--radius-lg);
  padding: 3px;
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  max-width: 560px;
  width: 100%;
  position: relative;
  z-index: 5;
  animation: coverAppear 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: center;
}

body.dark-theme .cover-card {
  background:
    linear-gradient(rgba(26, 18, 8, 0.92), rgba(26, 18, 8, 0.92)),
    url("assets/cover-background.png") center/cover no-repeat;
  border-color: rgba(201, 168, 76, 0.3);
}

@keyframes coverAppear {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9) rotate(-2deg);
  }

  50% {
    transform: translateY(-10px) scale(1.02) rotate(1deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

.cover-inner {
  padding: 48px 40px;
  text-align: center;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: calc(var(--radius-lg) - 3px);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.5) 0%,
    transparent 60%
  );
  position: relative;
  overflow: hidden;
}

.cover-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(201, 168, 76, 0.1),
    transparent
  );
  animation: innerGlow 5s ease-in-out infinite;
}

@keyframes innerGlow {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.bismillah-cover {
  font-family: "Amiri", serif;
  font-size: 1.8rem;
  color: var(--brown-dark);
  margin-bottom: 5px;
  line-height: 1.8;
  animation: fadeInUp 1s ease forwards;
  position: relative;
  display: inline-block;
}

.bismillah-cover::before,
.bismillah-cover::after {
  content: "✦";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.8rem;
  opacity: 0;
  animation: starAppear 1s ease 0.5s forwards;
}

.bismillah-cover::before {
  left: -30px;
}

.bismillah-cover::after {
  right: -30px;
}

@keyframes starAppear {
  to {
    opacity: 0.5;
    left: -20px;
    right: -20px;
  }
}

.cover-tag {
  font-family: "Cinzel", serif;
  letter-spacing: 5px;
  font-size: 1rem;
  color: black;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cover-latin-names {
  font-family: "Carattere", cursive;
  font-size: 3rem;
  /* Diperbesar karena font script terlihat lebih kecil */
  font-weight: 400;
  font-style: normal;
  color: var(--text-soft);
  margin-bottom: 18px;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
  line-height: 1.2;
}

.cover-latin-names .ampersand {
  font-size: 0.6em;
  /* Make the ampersand smaller relative to the names */
  vertical-align: middle;
  /* Adjust alignment so it stays balanced */
  margin: 0 4px;
  /* Add slight spacing around the smaler ampersand */
}

.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  animation: fadeIn 1s ease 0.8s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.divider-line {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
  overflow: hidden;
}

.divider-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, white, transparent);
  animation: lineShimmer 2s linear infinite;
}

@keyframes lineShimmer {
  to {
    left: 100%;
  }
}

.divider-diamond {
  color: var(--gold);
  font-size: 0.6rem;
  animation: spin 4s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

.cover-date-wrap {
  margin-bottom: 18px;
  animation: fadeInUp 1s ease 1s forwards;
  opacity: 0;
}

.cover-date-day {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--text-soft);
  text-transform: uppercase;
}

.cover-date-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 5rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-top: -20px;
  text-shadow: 2px 2px 10px rgba(201, 168, 76, 0.3);
}

.cover-date-month {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-soft);
  margin-top: 5px;
}

.cover-guest {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 30px;
  line-height: 14px;
  animation: fadeInUp 1s ease 1.2s forwards;
  opacity: 0;
}

.cover-guest span {
  font-weight: 700;
  color: var(--gold-dark);
  position: relative;
  display: inline-block;
  margin-top: 20px;
  font-size: 1rem;
}

.cover-guest span::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: underlineWidth 2s ease-in-out infinite;
}

@keyframes underlineWidth {
  0%,
  100% {
    width: 0;
    left: 50%;
  }

  50% {
    width: 100%;
    left: 0;
  }
}

.btn-open {
  position: relative;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
  color: white;
  border: none;
  padding: 0;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-bounce);
  box-shadow: 0 8px 25px rgba(45, 106, 79, 0.35);
  animation:
    fadeInUp 1s ease 1.4s forwards,
    btnPulse 2s ease-in-out infinite;
  opacity: 0;
  transform-origin: center;
}

@keyframes btnPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

.btn-open:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 35px rgba(45, 106, 79, 0.45);
}

.btn-open:hover .btn-glow {
  opacity: 1;
}

.btn-open-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: 50px;
}

/* ============ CONTAINER ============ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
}

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

.section-header::before,
.section-header::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.3;
}

.section-header::before {
  left: -50px;
}

.section-header::after {
  right: -50px;
}

.section-pre {
  font-family: "Cormorant Garamond", serif;
  font-size: 0, 75rem;

  color: var(--gold-dark);
  margin-bottom: 8px;
  animation: slideInDown 1s ease;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-ornament {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 8px;
  animation: fadeIn 1s ease;
  margin-bottom: 15px;
}

.section-header.light .section-title,
.section-header.light .section-ornament,
.section-header.light .section-pre {
  color: rgba(255, 255, 255, 0.9);
}

.section-header.light .section-pre {
  color: var(--gold-light);
}

.section-header.light .section-ornament {
  color: var(--gold-light);
}

/* ============ QURAN SECTION ============ */
.quran-section {
  position: relative;
  background: linear-gradient(135deg, var(--emerald) 0%, #1b4332 100%);
  padding: 0;
  overflow: hidden;
}

.quran-bg-text {
  position: absolute;
  font-family: "Amiri", serif;
  font-size: 24rem;
  color: rgba(255, 255, 255, 0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  animation: floatBg 20s ease-in-out infinite;
}

@keyframes floatBg {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.quran-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(4px);
  transition:
    transform 0.5s,
    box-shadow 0.5s;
  animation: cardFloat 6s ease-in-out infinite;
}

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

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.quran-ornament {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(201, 168, 76, 0.5);
  border-radius: 50%;
  margin: 0 auto 32px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateOrnament 10s linear infinite;
}

.quran-ornament i {
  color: var(--gold);
  font-size: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

.arabic-verse {
  font-family: "Amiri", serif;
  font-size: 2rem;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.95);
  direction: rtl;
  margin-bottom: 28px;
  animation: fadeInScale 1.5s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.verse-translation {
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  max-width: 680px;
  margin: 0 auto 16px;
  line-height: 1.9;
  animation: fadeInUp 1.5s ease 0.3s forwards;
  opacity: 0;
}

.verse-source {
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: var(--gold-light);
  animation: fadeIn 1.5s ease 0.6s forwards;
  opacity: 0;
}

/* ============ COUPLE SECTION ============ */
.couple-section {
  background: var(--parchment);
  position: relative;
  overflow: hidden;
}

body.dark-theme .couple-section {
  background: var(--cream-dark);
}

.couple-layout {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  gap: 30px;
  align-items: center;
  position: relative;
}

.couple-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(201, 168, 76, 0.15);
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.couple-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.5s;
  transform: rotate(30deg);
}

.couple-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.couple-card:hover::before {
  opacity: 1;
}

.couple-photo-frame {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
}

.frame-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  border-style: solid;
  transition: all 0.3s;
  z-index: 2;
}

.couple-card:hover .frame-corner {
  width: 30px;
  height: 30px;
}

.frame-corner.tl {
  top: -3px;
  left: -3px;
  border-width: 2px 0 0 2px;
}

.frame-corner.tr {
  top: -3px;
  right: -3px;
  border-width: 2px 2px 0 0;
}

.frame-corner.bl {
  bottom: -3px;
  left: -3px;
  border-width: 0 0 2px 2px;
}

.frame-corner.br {
  bottom: -3px;
  right: -3px;
  border-width: 0 2px 2px 0;
}

.photo-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow:
    0 0 0 8px rgba(201, 168, 76, 0.1),
    var(--shadow-md);
  transition: all var(--transition-bounce);
  position: relative;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent,
    rgba(0, 0, 0, 0.2)
  );
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.couple-card:hover .photo-circle {
  transform: scale(1.08) rotate(5deg);
  border-color: var(--gold-light);
}

.couple-card:hover .photo-overlay {
  opacity: 0.3;
}

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

.couple-card:hover .couple-img {
  transform: scale(1.1);
}

.couple-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 8px;
  transition: color 0.3s;
}

.couple-card:hover .couple-name {
  color: var(--gold-dark);
}

.couple-sub {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.couple-parents {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 16px;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-bounce);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.social-btn:hover {
  background: var(--gold);
  color: white;
  transform: scale(1.15) rotate(360deg);
}

.social-btn:hover::before {
  opacity: 0.3;
}

/* Center symbol */
.couple-center {
  text-align: center;
}

.heart-ornament {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: pulse-ring 2s ease-out infinite;
}

.heart-ring.ring1 {
  width: 60px;
  height: 60px;
  opacity: 0.5;
}

.heart-ring.ring2 {
  width: 80px;
  height: 80px;
  opacity: 0.25;
  animation-delay: 0.5s;
}

.heart-ring.ring3 {
  width: 100px;
  height: 100px;
  opacity: 0.1;
  animation-delay: 1s;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.heart-core {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
  animation: beat 1.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes beat {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

/* ============ STORY SECTION ============ */
.story-section {
  background: linear-gradient(135deg, var(--cream), var(--parchment));
  position: relative;
  overflow: hidden;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin: 40px 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 20px var(--gold);
  z-index: 2;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 20px var(--gold);
  }

  50% {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 30px var(--gold-light);
  }
}

.timeline-content {
  width: 45%;
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(201, 168, 76, 0.15);
  position: relative;
  transition: all 0.5s;
  animation: contentAppear 0.8s ease forwards;
}

@keyframes contentAppear {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-content:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.timeline-year {
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.timeline-content h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  color: var(--emerald);
  margin-bottom: 10px;
}

.timeline-content p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.story-quote {
  margin-top: 15px;
  padding: 15px 20px;
  background: rgba(201, 168, 76, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--emerald);
  line-height: 1.6;
}

.story-quote span {
  display: block;
  margin-top: 10px;
  font-family: "Lato", sans-serif;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 700;
  color: var(--gold-dark);
}

/* ============ COUNTDOWN ============ */
.countdown-section {
  position: relative;
  background:
    linear-gradient(rgba(44, 24, 16, 0.8), rgba(44, 24, 16, 0.8)),
    url("assets/cover-background.png") center/cover no-repeat fixed;
  padding: 0;
  overflow: hidden;
}

.countdown-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 25% 40%,
      rgba(201, 168, 76, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 60%,
      rgba(45, 106, 79, 0.15) 0%,
      transparent 50%
    );
  animation: bgMove 20s ease-in-out infinite;
}

@keyframes bgMove {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.countdown-wrapper {
  text-align: center;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  /* Reduced gap to fit more elements */
  flex-wrap: nowrap;
  /* Prevent wrapping so they stay in one row */
  margin-bottom: 30px;
}

.countdown-item {
  text-align: center;
  perspective: 1000px;
}

.countdown-box {
  width: 75px;
  /* Reduced width */
  height: 75px;
  /* Reduced height */
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  backdrop-filter: blur(6px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.5s;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  animation: boxFloat 3s ease-in-out infinite;
}

@keyframes boxFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }

  50% {
    transform: translateY(-10px) rotateX(5deg);
  }
}

.countdown-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-light),
    transparent
  );
  opacity: 0.5;
}

.countdown-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(201, 168, 76, 0.2),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.countdown-box:hover {
  transform: translateY(-15px) rotateX(10deg) scale(1.05);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

.countdown-box:hover::after {
  opacity: 1;
}

.countdown-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  /* Reduced font size from 3rem */
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  transition: all 0.3s;
}

.countdown-box:hover .countdown-number {
  transform: scale(1.1);
  text-shadow: 0 0 20px var(--gold);
}

.countdown-label {
  font-family: "Cinzel", serif;
  font-size: 0.55rem;
  /* Reduced font size */
  letter-spacing: 2px;
  /* Reduced letter spacing */
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-top: 5px;
  /* Added margin to separate from numbber */
  animation: fadeIn 1s ease;
}

.countdown-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-style: italic;
  animation: messageGlow 2s ease-in-out infinite;
}

@keyframes messageGlow {
  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

.countdown-message i {
  color: var(--gold);
}

/* === EVENT SECTION === */
.event-section {
  background: var(--cream);
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.event-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(201, 168, 76, 0.05) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(45, 94, 90, 0.05) 0%,
      transparent 35%
    );
  pointer-events: none;
}

/* === EVENT GRID === */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}

/* === EVENT CARD === */
.event-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 32px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(201, 168, 76, 0.2);
  overflow: hidden;
  transition: var(--transition-bounce);
  transform-origin: center;
  backdrop-filter: blur(2px);
  isolation: isolate;
}

/* Pattern Latar */
.event-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 10px 10px,
      rgba(201, 168, 76, 0.08) 2px,
      transparent 2px
    ),
    linear-gradient(45deg, transparent 65%, rgba(201, 168, 76, 0.03) 100%);
  background-size:
    30px 30px,
    100%;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.15),
    rgba(201, 168, 76, 0.08)
  );
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.event-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 168, 76, 0.4);
}

.event-card:hover::before {
  transform: translateY(0);
}

.event-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Efek Glow */
.event-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 30px;
  background: radial-gradient(
    ellipse at center,
    rgba(201, 168, 76, 0.3) 0%,
    transparent 70%
  );
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}

.event-card:hover .event-glow {
  opacity: 1;
}

/* === ICON WRAP === */
.event-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.event-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  opacity: 0.5;
  animation: rotate-ring 12s linear infinite;
}

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

.event-icon {
  font-size: 2.2rem;
  color: var(--gold-dark);
  position: relative;
  z-index: 2;
  animation: iconPulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(201, 168, 76, 0.3));
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* === TAG & DIVIDER === */
.event-tag {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 14px;
  transition: color 0.3s;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 3;
}

.event-card:hover .event-tag {
  color: var(--gold-dark);
  text-shadow: 0 2px 4px rgba(201, 168, 76, 0.2);
}

.event-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  margin: 0 auto 22px;
  border-radius: 2px;
  transition: width 0.4s ease;
  position: relative;
  z-index: 3;
}

.event-card:hover .event-divider {
  width: 100px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
}

/* === DETAIL === */
.event-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--text-soft);
  transition: color 0.3s; /* Hanya transisi warna yang dipertahankan */
  position: relative;
  z-index: 3;
}

.event-detail i {
  color: var(--gold);
  font-size: 0.95rem;
  transition: color 0.3s;
}

.event-card:hover .event-detail {
  /* transform: translateX(6px); -> DIHAPUS agar teks tidak bergeser */
  color: #2a2a2a; /* Warna saat hover, sesuaikan dengan tema */
}
body.dark-theme .event-card:hover .event-detail {
  color: var(--gold-light); /* Warna teks saat hover untuk tema gelap */
}

.event-card:hover .event-detail i {
  color: var(--emerald);
}

/* Responsive */
@media (max-width: 640px) {
  .event-grid {
    gap: 24px;
  }
  .event-card {
    padding: 36px 20px 30px;
  }
  .event-tag {
    font-size: 1.8rem;
  }
}

/* ============ MODERN LOCATION SECTION ============ */
.map-modern-container {
  margin-top: 50px;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.map-modern-container:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.map-illustration {
  width: 100%;
  height: 350px;
  background: var(--parchment);
  position: relative;
}

.map-illustration iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.1) opacity(0.9);
  transition: filter 0.5s ease;
}

.map-illustration:hover iframe {
  filter: grayscale(0) contrast(1) opacity(1);
}

body.dark-theme .map-illustration iframe {
  filter: grayscale(0.6) contrast(1.2) invert(0.9) hue-rotate(180deg)
    opacity(0.8);
}

body.dark-theme .map-illustration:hover iframe {
  filter: grayscale(0.4) contrast(1.2) invert(0.9) hue-rotate(180deg) opacity(1);
}

.location-card-modern {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: linear-gradient(to top, var(--white), rgba(255, 255, 255, 0.95));
  position: relative;
  z-index: 2;
}

body.dark-theme .location-card-modern {
  background: linear-gradient(to top, var(--white), rgba(42, 30, 16, 0.95));
}

@media (min-width: 992px) {
  .map-modern-container {
    flex-direction: row;
  }
  .map-illustration {
    flex: 1;
    height: auto;
    min-height: 450px;
  }
  .location-card-modern {
    width: 450px;
    padding: 50px 40px;
    flex-shrink: 0;
    justify-content: center;
    border-left: 1px solid rgba(201, 168, 76, 0.15);
  }
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold-dark);
  border-radius: 50px;
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

body.dark-theme .location-badge {
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.2);
}

.location-info-modern h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 15px;
  line-height: 1.2;
}

body.dark-theme .location-info-modern h3 {
  color: var(--emerald-lite);
}

.location-info-modern p {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 30px;
}

.location-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-maps-modern {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff !important;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: "Lato", sans-serif;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 20px rgba(201, 168, 76, 0.3);
}

.btn-maps-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(201, 168, 76, 0.4);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.qr-card-modern {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-top: 30px;
  margin-top: 10px;
  border-top: 1px dashed rgba(201, 168, 76, 0.4);
}

.qr-label-modern {
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-main);
  text-transform: uppercase;
  line-height: 1.4;
}

.qr-card-inner {
  padding: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  transition: transform 0.4s;
}

.qr-card-modern:hover .qr-card-inner {
  transform: scale(1.05) rotate(3deg);
}

.qr-card-inner img {
  width: 90px;
  height: 90px;
  display: block;
  border-radius: 8px;
}

/* ============ GALLERY SECTION ============ */
.gallery-section {
  background: var(--parchment);
  overflow: hidden;
}

.gallery-swiper {
  padding: 20px 10px 50px;
}

.swiper-slide {
  transition: all 0.5s;
  opacity: 0.7;
  transform: scale(0.9);
}

.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1/1;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

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

.gallery-overlay span {
  color: white;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

.swiper-pagination-bullet {
  background: var(--gold) !important;
  opacity: 0.5;
  transition: all 0.3s;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.3);
}

/* ===== section styles ===== */
.gift-section {
  background: var(--cream);
  padding: 60px 24px;
  box-shadow:
    inset 0 -2px 10px rgba(0, 0, 0, 0.02),
    0 20px 30px -10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-title {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--emerald);
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.section-ornament {
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: 6px;
  margin-top: 6px;
}

.gift-subtitle {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gift-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201, 168, 76, 0.2);
  transition: all 0.4s var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.gift-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.gift-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gift-card:hover::before {
  transform: translateX(0);
}

/* ===== Card Header with Logo and Badge ===== */
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

/* ===== Bank/E-Wallet Logos ===== */
.card-logo {
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: all 0.3s ease;
}

.card-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Logo specific adjustments */
.logo-bsi img {
  object-fit: contain;
}

.logo-bri img {
  object-fit: contain;
}

.logo-dana img {
  object-fit: contain;
}

.logo-gopay img {
  object-fit: contain;
}

.gift-type {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 15px;
  font-weight: 500;
}

.gift-type i {
  color: var(--gold);
  margin-right: 8px;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(201, 168, 76, 0.05);
  border-radius: 50px;
  padding: 8px 15px;
  margin-bottom: 10px;
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.account-num {
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 5px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-copy:hover {
  background: var(--gold);
  color: white;
  transform: scale(1.1);
}

.account-holder {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-left: 5px;
}

.ewallet-qr {
  margin-top: 20px;
  text-align: center;
  padding: 15px;
  background: rgba(201, 168, 76, 0.03);
  border-radius: 16px;
  border: 1px dashed rgba(201, 168, 76, 0.3);
}

.ewallet-qr img {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  transition: transform 0.3s;
}

.ewallet-qr img:hover {
  transform: scale(1.05);
}

.gift-note {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-soft);
  font-size: 0.95rem;
  border: 1px solid rgba(201, 168, 76, 0.2);
  box-shadow: var(--shadow-sm);
}

.gift-note i {
  color: var(--gold);
  margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gift-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .card-header {
    gap: 8px;
  }

  .card-logo {
    width: 100px;
    height: 40px;
  }

  .gift-badge {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
}

/* badge default (gold) */
.gift-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%,
  100% {
    box-shadow: 0 0 10px var(--gold);
  }
  50% {
    box-shadow: 0 0 20px var(--gold-light);
  }
}

.gift-badge.dana {
  background: linear-gradient(135deg, #118ef5, #0066cc);
}

.gift-badge.gopay {
  background: linear-gradient(135deg, #00aed6, #007da8);
}

.gift-type {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gift-type i {
  color: var(--gold);
}

.account-row {
  background: var(--parchment);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
  transition: all 0.3s;
}

.gift-card:hover .account-row {
  border-color: var(--gold);
  background: var(--cream);
}

.account-num {
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
}

.btn-copy {
  background: var(--emerald);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s var(--transition-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.btn-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-copy:hover {
  transform: scale(1.15) rotate(360deg);
  box-shadow: 0 0 15px var(--emerald);
}

.btn-copy:hover::before {
  opacity: 0.3;
}

.btn-copy.copied {
  background: #22c55e;
  animation: copiedJump 0.5s ease;
}

@keyframes copiedJump {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.account-holder {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.ewallet-qr {
  margin-top: 14px;
  text-align: center;
  padding: 10px;
  background: var(--parchment);
  border-radius: 8px;
  transition: all 0.3s;
}

.gift-card:hover .ewallet-qr {
  background: var(--cream);
}

.ewallet-qr img {
  border-radius: 6px;
  transition: transform 0.5s;
  max-width: 80px;
  height: auto;
}

.ewallet-qr img:hover {
  transform: scale(1.1) rotate(5deg);
}

.gift-note {
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(45, 106, 79, 0.06),
    rgba(201, 168, 76, 0.06)
  );
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 50px;
  padding: 18px 32px;
  font-size: 0.92rem;
  color: var(--text-soft);
  font-style: italic;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  animation: noteGlow 3s ease-in-out infinite;
}

@keyframes noteGlow {
  0%,
  100% {
    border-color: rgba(201, 168, 76, 0.2);
  }
  50% {
    border-color: var(--gold);
  }
}

.gift-note i {
  color: #e74c7c;
  margin-right: 8px;
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* small extra style for bank BRI/BSI consistency */
.gift-card:first-child .gift-badge {
  background: linear-gradient(135deg, #008b4b, #006837); /* BSI green nuance */
}
.gift-card:nth-child(2) .gift-badge {
  background: linear-gradient(135deg, #003b7a, #002856); /* BRI blue */
}

/* keep dana & gopay badges overridden */
.gift-badge.dana,
.gift-badge.gopay {
  background: var(--gold-dark); /* fallback, but specific classes already */
}

/* mobile fine-tune */
@media (max-width: 650px) {
  .section-title {
    font-size: 2rem;
  }
  .gift-card {
    padding: 22px;
  }
  .gift-note {
    border-radius: 28px;
  }
}

/* dummy font fallback for Cinzel */
h2,
.gift-badge {
  font-family: "Cinzel", "Georgia", serif;
}

/* ============ RSVP SECTION ============ */
.rsvp-section {
  position: relative;
  background: linear-gradient(135deg, #2c1a0e 0%, var(--emerald) 100%);
  overflow: hidden;
}

.rsvp-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 70% 30%,
    rgba(201, 168, 76, 0.08) 0%,
    transparent 50%
  );
  animation: bgPulse 5s ease-in-out infinite;
}

@keyframes bgPulse {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.rsvp-form {
  max-width: 620px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  backdrop-filter: blur(10px);
  animation: formAppear 1s ease;
}

@keyframes formAppear {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 15px;
}

.form-field {
  position: relative;
}

.form-field label {
  display: block;
  font-size: 0.78rem;
  font-family: "Cinzel", serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.form-field:focus-within label {
  transform: translateX(5px);
  color: var(--gold);
}

.form-field label i {
  font-size: 0.75rem;
  animation: labelIconSpin 2s linear infinite;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 168, 76, 0.2);
}

.form-field select option {
  background: var(--brown-dark);
  color: white;
}

.form-field textarea {
  height: 110px;
  resize: vertical;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff !important;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: "Lato", sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 20px rgba(201, 168, 76, 0.3);

  /* Menambahkan properti untuk posisi tengah */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.btn-submit:hover {
  transform: translateY(-3px) translateX(-50%);
  box-shadow: 0 15px 25px rgba(201, 168, 76, 0.4);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.btn-submit:active {
  transform: translateY(-1px) translateX(-50%);
  box-shadow: 0 12px 20px rgba(201, 168, 76, 0.35);
}

.btn-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.3);
}

@keyframes paperPlane {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(5px);
  }
}

.rsvp-message {
  text-align: center;
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-style: italic;
  animation: messagePop 0.5s ease;
}

@keyframes messagePop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============ WISHES SECTION ============ */
.wishes-section {
  background: var(--parchment);
  position: relative;
  overflow: hidden;
}

.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.wish-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold);
  animation: wishAppear 0.8s ease forwards;
  transform-origin: left;
  transition: all 0.3s;
}

@keyframes wishAppear {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wish-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-left-width: 5px;
}

.wish-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 8px;
}

.wish-text {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 10px;
}

.wish-date {
  font-size: 0.75rem;
  color: var(--gold);
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
}

/* ============ CLOSING SECTION ============ */
.closing-section {
  position: relative;
  background: linear-gradient(
    160deg,
    var(--cream-dark) 0%,
    var(--parchment) 100%
  );
  overflow: hidden;
}

.closing-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 80%,
      rgba(201, 168, 76, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(45, 106, 79, 0.06) 0%,
      transparent 40%
    );
  animation: bgFloat 15s ease-in-out infinite;
}

@keyframes bgFloat {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.closing-wrap {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  animation: closingAppear 1.5s ease;
}

@keyframes closingAppear {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.closing-bismillah {
  font-family: "Amiri", serif;
  font-size: 2.4rem;
  color: var(--gold-dark);
  margin-bottom: 24px;
  line-height: 1.7;
  animation: bismillahGlow 3s ease-in-out infinite;
}

@keyframes bismillahGlow {
  0%,
  100% {
    text-shadow: 0 0 10px var(--gold);
  }

  50% {
    text-shadow: 0 0 30px var(--gold-light);
  }
}

.closing-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-bottom: 28px;
}

.closing-divider span {
  display: block;
  width: 80px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  position: relative;
  overflow: hidden;
}

.closing-divider span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, white, transparent);
  animation: dividerShimmer 2s linear infinite;
}

@keyframes dividerShimmer {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

.closing-divider i {
  color: var(--gold);
  font-size: 0.75rem;
  animation: starSpin 4s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

.closing-text {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 14px;
  animation: fadeInUp 1s ease;
}

.closing-thanks {
  font-size: 1rem;
  color: var(--emerald-mid);
  margin-bottom: 28px;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

.closing-salam {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 20px;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

.closing-family {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 36px;
  line-height: 1.7;
  animation: fadeInUp 1s ease 0.9s forwards;
  opacity: 0;
}

.closing-family strong {
  color: var(--gold-dark);
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.share-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 1.2s forwards;
  opacity: 0;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  padding: 12px 24px;
  border-radius: 50px;
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-share::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-share:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(201, 168, 76, 0.3);
}

.btn-share:hover::before {
  opacity: 0.2;
}

.btn-share.wa {
  border-color: #25d366;
  color: #25d366;
}

.btn-share.wa:hover {
  background: #25d366;
  color: white;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* ============ FOOTER ============ */
footer {
  background: var(--brown-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(201, 168, 76, 0.1),
    transparent
  );
  animation: footerGlow 5s ease-in-out infinite;
}

@keyframes footerGlow {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.7;
  }
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-names {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 4px;
  animation: namesFloat 3s ease-in-out infinite;
}

@keyframes namesFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.footer-date {
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

footer p {
  font-size: 0.82rem;
  line-height: 1.6;
}

footer i {
  color: #e74c7c;
  animation: heartBeat 1.5s ease-in-out infinite;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--brown-dark);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .couple-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .couple-center {
    order: -1;
  }

  .location-wrap {
    grid-template-columns: 1fr;
  }

  .qr-card {
    display: none;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px !important;
  }
}

@media (max-width: 768px) {
  .cover-inner {
    padding: 36px 24px;
  }

  .cover-date-num {
    font-size: 3.8rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .rsvp-form {
    padding: 28px 20px;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .arabic-verse {
    font-size: 1.6rem;
  }

  .countdown-box {
    width: 80px;
    height: 80px;
  }

  .countdown-number {
    font-size: 2.2rem;
  }

  .couple-card {
    padding: 24px 18px;
  }

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

  .music-bar-inner {
    gap: 10px;
  }

  .music-volume {
    display: none;
  }

  .section-header::before,
  .section-header::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .quran-card {
    padding: 36px 20px;
  }

  .closing-bismillah {
    font-size: 1.8rem;
  }

  .share-row {
    flex-direction: column;
    align-items: center;
  }

  .nav-buttons {
    top: 10px;
    right: 10px;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--parchment);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--gold), var(--emerald));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--emerald-mid));
}
