/* ================================================
   WEDDING INVITATION - MAIN STYLESHEET
   Theme: Elegant Gold & Ivory
================================================ */

/* ---- VARIABLES ---- */
:root {
  --gold: #c9a96e;
  --gold-light: #e2c99a;
  --gold-dark: #a07840;
  --ivory: #fdf8f0;
  --cream: #f5edd8;
  --brown: #5c3d1e;
  --dark: #1a1008;
  --white: #ffffff;
  --text-dark: #2c1a0e;
  --text-mid: #6b4c2a;
  --text-light: #a0856a;
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Roboto', sans-serif;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-gold: 0 8px 32px rgba(201, 169, 110, 0.25);
  --shadow-dark: 0 4px 20px rgba(0,0,0,0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.hidden { display: none !important; }

/* ================================================
   LOADING SCREEN
================================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: loadingFadeIn 0.6s ease forwards;
}

@keyframes loadingFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.loading-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: rotateBorder 4s linear infinite;
  background: radial-gradient(circle at center, #fff8ee 60%, #f5e8cc);
  box-shadow: 0 0 30px rgba(201,169,110,0.3);
}

.loading-icon {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

@keyframes rotateBorder {
  0%   { box-shadow: 0 0 20px rgba(201,169,110,0.2); }
  50%  { box-shadow: 0 0 40px rgba(201,169,110,0.5); }
  100% { box-shadow: 0 0 20px rgba(201,169,110,0.2); }
}

.loading-monogram {
  display: flex;
  align-items: center;
  gap: 4px;
}

.l-letter {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  animation: shimmer 2s ease-in-out infinite;
}

.l-ampersand {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--gold-dark);
  line-height: 1;
}

@keyframes shimmer {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

.loading-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-dark);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-style: italic;
}

.loading-bar-wrap {
  width: 180px;
  height: 2px;
  background: rgba(201,169,110,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 2px;
  animation: loadingProgress 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loadingProgress {
  0%   { width: 0%; }
  60%  { width: 70%; }
  100% { width: 100%; }
}

/* ================================================
   COVER PAGE
================================================ */
.cover-section {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #fdf8f0 0%, #f0e4c8 50%, #fdf8f0 100%);
}

/* Background: animated texture */
.cover-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(201,169,110,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(201,169,110,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Corner ornaments */
.corner {
  position: absolute;
  width: 120px;
  height: 120px;
  z-index: 2;
  pointer-events: none;
}
.corner::before, .corner::after {
  content: '';
  position: absolute;
  background: var(--gold);
}
.corner-tl { top: 16px; left: 16px; border-top: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); }
.corner-tr { top: 16px; right: 16px; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); }
.corner-bl { bottom: 16px; left: 16px; border-bottom: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); }
.corner-br { bottom: 16px; right: 16px; border-bottom: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); }

/* Petal animations */
.petal-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.petal-container-invitation {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.petal {
  position: absolute;
  top: -40px;
  width: 12px;
  height: 18px;
  background: radial-gradient(ellipse at 30% 30%, #f7d4e0, #e8a0bc);
  border-radius: 50% 0 50% 0;
  opacity: 0.7;
  animation: petalFall linear infinite;
  transform-origin: center;
}

@keyframes petalFall {
  0%   { transform: translateY(0) rotate(0deg) translateX(0); opacity: 0.8; }
  50%  { transform: translateY(50vh) rotate(180deg) translateX(30px); opacity: 0.5; }
  100% { transform: translateY(100vh) rotate(360deg) translateX(-10px); opacity: 0; }
}

.cover-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 40px 24px;
  max-width: 600px;
  width: 100%;
  animation: coverFadeIn 1s ease 0.3s both;
}

@keyframes coverFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cover-label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.cover-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}

.cover-name-bride, .cover-name-groom {
  font-family: var(--font-script);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--text-dark);
  line-height: 1.1;
  display: block;
}

.cover-ampersand {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold);
  line-height: 1;
  display: block;
  margin: -4px 0;
}

.cover-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px auto;
}

.cover-divider-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.cover-divider-line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.cover-heart {
  color: var(--gold);
  font-size: 1rem;
  animation: heartBeat 1.5s ease-in-out infinite;
}

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

.cover-date {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-mid);
  letter-spacing: 2px;
  margin-bottom: 28px;
}

.cover-guest-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cover-guest-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 32px;
  line-height: 1.4;
}

.btn-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 2px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(160, 120, 64, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-open::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-open:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(160, 120, 64, 0.5);
}

.btn-open:hover::after {
  transform: translateX(100%);
}

.btn-open:active {
  transform: translateY(0);
}

.cover-bottom-floral {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  opacity: 0.5;
  z-index: 2;
}

/* ================================================
   GENERAL SECTION STYLES
================================================ */
.inv-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 2;
}

.label-script {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--gold);
  text-align: center;
  display: block;
  margin-bottom: 8px;
  line-height: 1.2;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--text-dark);
  text-align: center;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ================================================
   SECTION 1: BISMILLAH
================================================ */
.section-bismillah {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 50%, var(--ivory) 100%);
  text-align: center;
}

.bismillah-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 10% 50%, rgba(201,169,110,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 50%, rgba(201,169,110,0.05) 0%, transparent 50%);
}

.bismillah-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.arabic-text {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--gold-dark);
  font-family: 'Traditional Arabic', 'Scheherazade New', serif;
  line-height: 1.6;
  direction: rtl;
  letter-spacing: 2px;
}

.divider-ornament {
  width: 100%;
  display: flex;
  justify-content: center;
}

.ornament-svg {
  width: 200px;
}

.quran-verse {
  max-width: 900px;
  color: var(--text-dark);
  font-family: 'Traditional Arabic', 'Scheherazade New', serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 2;
  text-align: center;
  direction: rtl;
}

.opening-quote {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-mid);
  font-style: italic;
  line-height: 1.9;
  max-width: 640px;
  text-align: center;
}

.quote-source {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 2px;
}

/* ================================================
   SECTION 2: COUPLE
================================================ */
.section-couple {
  background: var(--white);
  position: relative;
}

.couple-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a96e' fill-opacity='0.04'%3E%3Cpath d='M30 30 L25 20 L30 10 L35 20 Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.section-label-top {
  text-align: center;
}

.couple-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.person-card {
  flex: 1;
  min-width: 240px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.person-photo-frame {
  position: relative;
  width: 220px;
  height: 280px;
}

.photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}

.photo-inner:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(201,169,110,0.4);
}

.photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}

.photo-inner:hover img {
  transform: scale(1.05);
}

.photo-border-ornament {
  position: absolute;
  inset: -8px;
  border-radius: 55% 55% 55% 55% / 45% 45% 65% 65%;
  border: 1px solid var(--gold);
  opacity: 0.5;
  z-index: 0;
  animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.02); }
}

.person-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.person-role {
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
}

.person-name-full {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.person-name-call {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}

.person-parents {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.btn-ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 1px solid var(--gold);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold-dark);
  transition: var(--transition);
  margin-top: 4px;
}

.btn-ig:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201,169,110,0.3);
}

.couple-amp-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  gap: 12px;
  flex-shrink: 0;
}

.big-amp {
  font-family: var(--font-script);
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--gold);
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(201,169,110,0.4));
}

.amp-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ================================================
   SECTION 3: SAVE THE DATE / COUNTDOWN
================================================ */
.section-savethedate {
  background: var(--dark);
  background-image:
    url("background/savethedate.webp"),
    linear-gradient(160deg, #1a1008, #2c1a0e);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  color: var(--white);
}

.savethedate-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    rgba(20, 10, 0, 0.82) 0%,
    rgba(30, 15, 5, 0.75) 50%,
    rgba(20, 10, 0, 0.85) 100%);
}

.save-script {
  color: var(--gold-light);
  margin-bottom: 8px;
}

.std-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--white);
  letter-spacing: 8px;
  font-weight: 300;
  margin-bottom: 12px;
}

.std-subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 3px;
  margin-bottom: 40px;
}

.countdown-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 12px;
  padding: 20px 24px;
  min-width: 80px;
  transition: var(--transition);
}

.countdown-box:hover {
  border-color: var(--gold);
  background: rgba(201,169,110,0.1);
  transform: translateY(-4px);
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  display: block;
  text-align: center;
}

.countdown-label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

.countdown-sep {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 30px;
  opacity: 0.7;
  animation: sepBlink 1.5s ease-in-out infinite;
}

@keyframes sepBlink {
  0%,100% { opacity: 0.7; }
  50%      { opacity: 0.2; }
}

.std-caption {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  letter-spacing: 2px;
}

/* ================================================
   SECTION 4: EVENT DETAILS
================================================ */
.section-event {
  background: var(--ivory);
  text-align: center;
}

.event-cards-wrapper {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.event-card {
  flex: 1;
  min-width: 260px;
  max-width: 360px;
  background: var(--white);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(201,169,110,0.2);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(201,169,110,0.2);
  border-color: var(--gold);
}

.event-card-ornament-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.event-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(201,169,110,0.4);
}

.event-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.event-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
}

.event-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.event-info-row i {
  color: var(--gold);
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
}

.event-info-row strong {
  color: var(--text-dark);
  font-family: var(--font-serif);
  font-size: 1rem;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--white);
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-top: 24px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(201,169,110,0.3);
}

.btn-maps:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,169,110,0.5);
}

.add-calendar-wrapper {
  text-align: center;
  margin-top: 16px;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn-calendar:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ================================================
   GUEST WISHES
================================================ */
.section-wishes {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 52%, var(--ivory) 100%);
}

.wishes-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 42px;
  max-width: 900px;
  margin: 0 auto;
}

.wish-form {
  padding-right: 36px;
  border-right: 1px solid rgba(160, 120, 64, 0.28);
}

.wish-field {
  margin-bottom: 20px;
}

.wish-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.wish-field input,
.wish-field textarea {
  display: block;
  width: 100%;
  border: 1px solid rgba(160, 120, 64, 0.32);
  border-radius: 4px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-dark);
  font: inherit;
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wish-field textarea {
  min-height: 142px;
  resize: vertical;
}

.wish-field input:focus,
.wish-field textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.16);
}

.wish-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.btn-wish-submit {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--gold-dark);
  border-radius: 3px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--white);
  font: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.btn-wish-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(160, 120, 64, 0.24);
}

.btn-wish-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.wish-form-status {
  min-height: 1.6em;
  margin-top: 12px;
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.5;
}

.wishes-board {
  min-width: 0;
  padding: 22px 24px 12px;
  border: 1px solid rgba(160, 120, 64, 0.34);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 28px rgba(90, 68, 38, 0.07);
}

.wishes-board-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(160, 120, 64, 0.24);
}

.wishes-board-heading h3 {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.wishes-board-heading span {
  flex-shrink: 0;
  color: var(--text-mid);
  font-size: 0.82rem;
}

.wishes-list {
  max-height: 390px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0 8px 0 0;
  list-style: none;
  scrollbar-color: var(--gold-light) transparent;
  scrollbar-width: thin;
}

.wish-entry {
  padding: 17px 2px 18px;
  border-bottom: 1px solid rgba(160, 120, 64, 0.2);
}

.wish-entry:last-child {
  border-bottom: 0;
}

.wish-entry-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.wish-sender {
  color: var(--gold-dark);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.wish-approved-at {
  color: var(--text-mid);
  font-size: 0.74rem;
}

.wish-message {
  margin: 7px 0 0;
  color: var(--text-dark);
  font-size: 0.93rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wish-empty-item {
  padding: 24px 2px;
  color: var(--text-mid);
  font-family: var(--font-serif);
  font-size: 1rem;
  text-align: center;
}

/* ================================================
   SECTION 5: OUR STORY TIMELINE
================================================ */
.section-story {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  text-align: center;
}

.story-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at center, rgba(201,169,110,0.05) 0%, transparent 70%);
}

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

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

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 48px;
}

.timeline-item.left {
  left: 0;
  text-align: right;
  padding-right: 50px;
}

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

.timeline-dot {
  position: absolute;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201,169,110,0.2);
  z-index: 2;
  transition: var(--transition);
}

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

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

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(201,169,110,0.3), 0 0 20px rgba(201,169,110,0.4);
}

.timeline-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid rgba(201,169,110,0.15);
  transition: var(--transition);
}

.timeline-item:hover .timeline-card {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(201,169,110,0.15);
  transform: translateY(-4px);
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-event-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ================================================
   SECTION 6: PHOTO GALLERY
================================================ */
.section-gallery {
  background: var(--dark);
  text-align: center;
}

.section-gallery .label-script {
  color: var(--gold-light);
}

.section-gallery .section-title {
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 32px;
  grid-auto-rows: 200px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4));
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-item-tall {
  grid-row: span 2;
}

.gallery-item-wide {
  grid-column: span 2;
}

/* ================================================
   SECTION 7: GIFT / AMPLOP DIGITAL
================================================ */
.section-gift {
  background: var(--ivory);
  text-align: center;
  position: relative;
}

.gift-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(201,169,110,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(201,169,110,0.06) 0%, transparent 50%);
}

.gift-cards-wrapper {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.gift-card {
  flex: 1;
  min-width: 240px;
  max-width: 300px;
  background: var(--white);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.07);
  border: 1px solid rgba(201,169,110,0.2);
  transition: var(--transition);
}

.gift-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(201,169,110,0.2);
  border-color: var(--gold);
}

.gift-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 1.3rem;
  box-shadow: 0 6px 20px rgba(201,169,110,0.35);
}

.gift-bank-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.gift-account-number {
  font-family: 'Roboto Mono', monospace, var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.gift-account-owner {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold-dark);
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.btn-copy:hover, .btn-copy.copied {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(201,169,110,0.3);
}

.gift-address {
  background: var(--white);
  border-radius: 20px;
  padding: 36px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  border: 1px solid rgba(201,169,110,0.2);
}

.gift-address-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--white);
  font-size: 1.2rem;
}

.gift-address h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.gift-address p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 10px;
}

.gift-address a {
  color: var(--gold-dark);
  font-weight: 500;
  transition: var(--transition);
}
.gift-address a:hover { color: var(--gold); text-decoration: underline; }

/* ================================================
   SECTION 8: CLOSING
================================================ */
.section-closing {
  background: var(--dark);
  background-image: url("background/closing.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  color: var(--white);
  position: relative;
}

.closing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    rgba(10, 5, 0, 0.88) 0%,
    rgba(20, 10, 5, 0.80) 50%,
    rgba(10, 5, 0, 0.90) 100%);
}

.closing-floral-top {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 40px;
}

.closing-script {
  color: var(--gold-light);
}

.closing-names {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 7vw, 4rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.closing-amp {
  font-size: 0.6em;
  color: var(--gold-light);
}

.closing-divider {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.closing-divider svg {
  width: 300px;
}

.closing-date {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-light);
  letter-spacing: 6px;
  margin-bottom: 28px;
}

.closing-message {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.9;
  max-width: 560px;
  margin: 0 auto 28px;
  font-style: italic;
}

.closing-doa {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 40px;
}

.closing-doa strong {
  color: var(--gold-light);
  font-family: var(--font-serif);
}

.closing-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-closing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: var(--transition);
  font-family: var(--font-serif);
}

.btn-closing-maps {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
}

.btn-closing-maps:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.btn-closing-wa {
  background: #25D366;
  border: 1.5px solid #25D366;
  color: var(--white);
}

.btn-closing-wa:hover {
  background: #1da851;
  border-color: #1da851;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
}

.closing-footer {
  border-top: 1px solid rgba(201,169,110,0.2);
  padding-top: 24px;
}

.closing-footer p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}

/* ================================================
   MUSIC PLAYER (FLOATING)
================================================ */
.music-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.music-btn {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(201,169,110,0.5);
  transition: var(--transition);
  position: relative;
}

.music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(201,169,110,0.6);
}

.music-btn.playing {
  animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
  0%,100% { box-shadow: 0 6px 24px rgba(201,169,110,0.5); }
  50%      { box-shadow: 0 6px 40px rgba(201,169,110,0.8), 0 0 0 10px rgba(201,169,110,0.1); }
}

/* ================================================
   LIGHTBOX
================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12,8,4,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9998;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox.hidden {
  display: none !important;
}

.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

@media (max-width: 600px) {
  .lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

}

/* ================================================
   SCROLL ANIMATIONS (custom)
================================================ */
[data-aos] {
  pointer-events: none;
}
[data-aos].aos-animate {
  pointer-events: all;
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 768px) {
  .section-inner {
    padding: 60px 20px;
  }

  /* Cover */
  .corner {
    width: 70px;
    height: 70px;
  }

  /* Couple */
  .couple-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .couple-amp-divider {
    width: 100%;
    padding-top: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
  }

  .big-amp {
    grid-column: 2;
  }

  .amp-line {
    display: none;
  }

  /* Timeline */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding: 0 0 40px 50px !important;
    text-align: left !important;
  }

  .timeline-item .timeline-dot {
    left: 12px !important;
    right: auto !important;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-item-wide {
    grid-column: span 2;
  }

  /* Countdown */
  .countdown-box {
    padding: 16px 16px;
    min-width: 64px;
  }

  /* Event */
  .event-card {
    min-width: 100%;
  }

  .wishes-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .wish-form {
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(160, 120, 64, 0.28);
  }

  .wishes-board {
    padding: 18px 16px 10px;
  }

  .wishes-list {
    max-height: 340px;
  }

  /* Closing */
  .closing-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
  }

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

  .person-photo-frame {
    width: 180px;
    height: 230px;
  }

  .countdown-sep {
    font-size: 1.4rem;
    margin-bottom: 24px;
  }
}

/* ================================================
   UTILITIES
================================================ */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }

/* Smooth scroll for anchors */
html { scroll-behavior: smooth; }

/* Selection */
::selection {
  background: rgba(201,169,110,0.3);
  color: var(--text-dark);
}
