/* ============================================================
   WEDDING INVITATION - MAMAN & ROSI
   Premium Dark Gold Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --gold-primary: #D4AF37;
  --gold-light: #F5D97A;
  --gold-dark: #9B7E2A;
  --gold-gradient: linear-gradient(135deg, #9B7E2A 0%, #D4AF37 40%, #F5D97A 60%, #D4AF37 80%, #9B7E2A 100%);
  --gold-gradient-simple: linear-gradient(135deg, #D4AF37, #F5D97A, #D4AF37);
  --bg-dark: #080808;
  --bg-card: #111111;
  --bg-card2: #161616;
  --text-white: #F8F4EC;
  --text-muted: #A09070;
  --glass: rgba(212, 175, 55, 0.05);
  --glass-border: rgba(212, 175, 55, 0.2);
  --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.3);
  --shadow-glow: 0 0 60px rgba(212, 175, 55, 0.15);
  --radius: 16px;
  --radius-lg: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  line-height: 1.7;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-primary); border-radius: 2px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 6vw, 4rem);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  padding: 0.3em 0;
}

.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-primary);
  text-align: center;
  margin-bottom: 2rem;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto;
  max-width: 300px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
}

.divider-icon {
  color: var(--gold-primary);
  font-size: 1.2rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ============================================================
   PARTICLES CANVAS
   ============================================================ */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ============================================================
   COVER PAGE
   ============================================================ */
#cover {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1000;
  background: radial-gradient(ellipse at center, #1a1400 0%, #0a0800 40%, #000000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 1.2s ease;
  overflow: hidden;
}

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

.cover-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Ornamen Floral SVG */
.cover-ornament {
  width: clamp(200px, 45vw, 280px);
  height: clamp(200px, 45vw, 280px);
  object-fit: contain;
  margin-bottom: 0.5rem;
  animation: ornament-float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.4));
  position: relative;
  z-index: 1;
  background: transparent;
  opacity: 0; /* Hidden until JS process finishes */
  transition: opacity 0.8s ease;
}

@keyframes ornament-float {
  0%, 100% { transform: translateY(0px); filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6)); }
  50% { transform: translateY(-10px); filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.9)); }
}

.cover-ribbon {
  background: var(--gold-gradient);
  padding: 0.4rem 2rem;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: #1a1200;
  clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0% 50%);
  position: relative;
  z-index: 1;
}

.cover-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  padding: 0 1rem;
  width: 100%;
  margin-bottom: 1.2rem;
  animation: name-glow 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes name-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3)); }
  50% { filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.7)); }
}

.cover-invite-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.cover-recipient {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  position: relative;
  z-index: 1;
}

.cover-guest-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 7vw, 3rem);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.btn-open {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--gold-gradient);
  color: #1a1200;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 30px rgba(212, 175, 55, 0.4);
}

.btn-open::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}

.btn-open:hover::before { left: 100%; }
.btn-open:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(212, 175, 55, 0.6); }
.btn-open:active { transform: translateY(0); }

.btn-open .envelope-icon {
  font-size: 1.2rem;
  animation: envelope-shake 2s ease-in-out infinite;
}

@keyframes envelope-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
#main-content {
  position: relative;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.8s ease 0.5s;
}

#main-content.visible { opacity: 1; }

/* ============================================================
   SECTION - HERO (COUPLE + COUNTDOWN)
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('assets/couple.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  filter: brightness(0.35) saturate(0.75);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.2) 30%,
    rgba(0,0,0,0.2) 70%,
    rgba(0,0,0,0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  width: 100%;
}

.hero-ornament {
  width: clamp(90px, 22vw, 130px);
  height: clamp(90px, 22vw, 130px);
  object-fit: contain;
  margin: 0 auto 1.5rem;
  opacity: 0; /* Hidden until JS process finishes */
  animation: ornament-float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
  transition: opacity 0.8s ease;
}

.hero-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.hero-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 10vw, 5rem);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  padding: 0 1rem;
  width: 100%;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-white);
  opacity: 0.85;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  margin-bottom: 2.5rem;
}

.hero-date-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--gold-light);
  letter-spacing: 2px;
}

/* Countdown */
.countdown-wrap {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  margin-bottom: 2.5rem;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: clamp(0.75rem, 2vw, 1.2rem) clamp(1rem, 3vw, 1.8rem);
  min-width: clamp(60px, 16vw, 90px);
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(212, 175, 55, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.countdown-box:hover { transform: translateY(-5px) scale(1.05); }

.countdown-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold-gradient);
}

.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.25rem;
  transition: transform 0.3s ease;
}

.countdown-label {
  font-size: clamp(0.5rem, 1.5vw, 0.65rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-btn-wrap {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-calendar:hover {
  background: var(--gold-primary);
  color: #1a1200;
  box-shadow: var(--shadow-gold);
}

/* ============================================================
   SECTION - COUPLE PROFILES
   ============================================================ */
#couple {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #000 0%, #0d0900 50%, #000 100%);
  position: relative;
  overflow: hidden;
}

#couple::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.couple-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.quran-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.quran-source {
  font-size: 0.75rem;
  color: var(--gold-primary);
  letter-spacing: 2px;
}

.couple-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .couple-cards {
    flex-direction: row;
    align-items: stretch;
  }
}

.couple-card {
  flex: 1;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.couple-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-gradient);
}

.couple-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold);
}

.couple-photo-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
}

.couple-photo-ring {
  position: absolute;
  top: -6px; left: -6px;
  right: -6px; bottom: -6px;
  border-radius: 50%;
  background: var(--gold-gradient);
  animation: ring-spin 8s linear infinite;
  z-index: 0;
}

.couple-photo-ring::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border-radius: 50%;
  background: var(--bg-card);
}

@keyframes ring-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.couple-photo {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  z-index: 1;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.couple-role {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.couple-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.couple-parents {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.couple-parents strong {
  color: var(--text-white);
  font-weight: 500;
}

.couple-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
}

@media (min-width: 768px) {
  .couple-divider { padding: 0 1rem; }
}

.heart-icon {
  font-size: 2.5rem;
  animation: heartbeat 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
}

.and-text {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   SECTION - EVENT DETAILS
   ============================================================ */
#event {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #000 0%, #060400 100%);
  position: relative;
  overflow: hidden;
}

.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.event-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-gradient);
}

.event-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.event-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.event-type {
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.event-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.event-detail-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.event-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  text-align: left;
  font-size: clamp(0.82rem, 2vw, 0.9rem);
  color: var(--text-white);
}

.event-detail-list li:last-child { border-bottom: none; }

.event-detail-list li .icon {
  color: var(--gold-primary);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: var(--gold-gradient);
  color: #1a1200;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-maps:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ============================================================
   SECTION - GALLERY
   ============================================================ */
#gallery {
  padding: 5rem 2rem;
  background: #000;
}

.gallery-quote {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text-white);
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  line-height: 1.8;
  position: relative;
}

.gallery-quote::before {
  content: '"';
  font-size: 5rem;
  color: var(--gold-primary);
  opacity: 0.3;
  position: absolute;
  top: -1.5rem;
  left: 1rem;
  font-family: Georgia, serif;
  line-height: 1;
}

.gallery-quote-source {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--gold-primary);
  margin-top: 0.75rem;
  font-style: normal;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  background: var(--bg-card);
}

.gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 1/1; /* Square on mobile to prevent extreme crop */
}

@media (min-width: 600px) {
  .gallery-item:first-child { grid-column: span 2; aspect-ratio: 4/3; }
}

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

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

.gallery-item-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

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

.gallery-zoom-icon {
  color: var(--gold-primary);
  font-size: 1.5rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: var(--gold-primary);
  font-size: 2rem;
  cursor: pointer;
  background: none; border: none;
  line-height: 1;
  transition: transform 0.3s ease;
}

.lightbox-close:hover { transform: rotate(90deg) scale(1.2); }

/* ============================================================
   SECTION - RSVP / UCAPAN
   ============================================================ */
#rsvp {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #000 0%, #050300 100%);
}

.rsvp-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.rsvp-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.rsvp-stat {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  text-align: center;
  min-width: 100px;
}

.rsvp-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

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

.rsvp-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text-white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-textarea { min-height: 120px; resize: vertical; }

.form-select option { background: #1a1a1a; color: var(--text-white); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2rem;
  padding-right: 3rem; /* Make room for the arrow */
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--gold-gradient);
  color: #1a1200;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.btn-submit:hover::before { left: 100%; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }

/* Ucapan List */
.ucapan-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.ucapan-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  animation: slide-in 0.4s ease;
}

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

.ucapan-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1200;
  flex-shrink: 0;
}

.ucapan-body {}
.ucapan-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.ucapan-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
}

.ucapan-badge {
  font-size: 0.6rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-hadir { background: rgba(76, 175, 80, 0.2); color: #81c784; border: 1px solid rgba(76, 175, 80, 0.3); }
.badge-tidak-hadir { background: rgba(244, 67, 54, 0.2); color: #e57373; border: 1px solid rgba(244, 67, 54, 0.3); }
.badge-ragu { background: rgba(255, 193, 7, 0.2); color: #ffd54f; border: 1px solid rgba(255, 193, 7, 0.3); }

.ucapan-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   SECTION - AMPLOP DIGITAL
   ============================================================ */
#amplop {
  padding: 5rem 2rem;
  background: #000;
}

.amplop-intro {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.amplop-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .amplop-cards { grid-template-columns: 1fr 1fr; }
}

.amplop-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amplop-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-gradient);
}

.amplop-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.bank-logo {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-primary);
  border: 1px solid var(--glass-border);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1rem;
}

.bank-owner {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.bank-number {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 3px;
  margin-bottom: 1.2rem;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-copy:hover {
  background: var(--gold-primary);
  color: #1a1200;
}

.btn-copy.copied {
  background: rgba(76, 175, 80, 0.2);
  border-color: #81c784;
  color: #81c784;
}

/* ============================================================
   SECTION - FOOTER
   ============================================================ */
#footer {
  padding: 5rem 2rem 8rem;
  background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0.95) 100%), url('assets/bgfooter.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-ornament {
  width: 80px;
  margin: 0 auto 1.5rem;
  opacity: 0.6;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.footer-closing {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 8vw, 4rem);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.footer-message {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.footer-credit {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ============================================================
   MUSIC BUTTON (FLOATING)
   ============================================================ */
#music-btn {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 500;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #1a1200;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  transition: transform 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

#music-btn.visible {
  opacity: 1;
  pointer-events: all;
}

#music-btn:hover { transform: scale(1.1); }
#music-btn.playing { animation: music-spin 4s linear infinite; }

@keyframes music-spin {
  0% { box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 4px 40px rgba(212, 175, 55, 0.8); }
  100% { box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4); }
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */
#bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#bottom-nav.visible {
  opacity: 1;
  pointer-events: all;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.75rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.55rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-item .nav-icon { font-size: 1.2rem; }
.nav-item:hover, .nav-item.active { color: var(--gold-primary); }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(212, 175, 55, 0.95);
  color: #1a1200;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  white-space: nowrap;
}

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

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   PULSE GLOW ANIMATION
   ============================================================ */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ============================================================
   SECTION HEADINGS WRAPPER
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* ============================================================
   TRADITIONAL SECTION BORDERS (TOP / BOTTOM)
   ============================================================ */
.section-border-top,
.section-border-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 45px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50' width='100' height='50'%3E%3Cline x1='0' y1='2' x2='100' y2='2' stroke='%23D4AF37' stroke-width='1.5'/%3E%3Cline x1='0' y1='6' x2='100' y2='6' stroke='%23D4AF37' stroke-width='0.5'/%3E%3Cpattern id='circles' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='5' cy='5' r='2.5' fill='none' stroke='%23D4AF37' stroke-width='0.75'/%3E%3Ccircle cx='5' cy='5' r='1' fill='%23D4AF37'/%3E%3C/pattern%3E%3Crect x='0' y='8' width='100' height='10' fill='url(%23circles)'/%3E%3Cline x1='0' y1='20' x2='100' y2='20' stroke='%23D4AF37' stroke-width='0.5'/%3E%3Cpattern id='teardrop' width='20' height='26' patternUnits='userSpaceOnUse'%3E%3Cpath d='M10,4 Q15,14 15,19 A5,5 0 0,1 5,19 Q5,14 10,4 Z' fill='none' stroke='%23D4AF37' stroke-width='1'/%3E%3Ccircle cx='10' cy='18' r='1.5' fill='%23D4AF37'/%3E%3Cpath d='M0,26 Q10,-2 20,26' fill='none' stroke='%23D4AF37' stroke-width='1'/%3E%3C/pattern%3E%3Crect x='0' y='22' width='100' height='26' fill='url(%23teardrop)'/%3E%3Cline x1='0' y1='49' x2='100' y2='49' stroke='%23D4AF37' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: auto 100%;
  pointer-events: none;
  z-index: 10;
  opacity: 0.15;
}

.section-border-top {
  top: 0;
}

.section-border-bottom {
  bottom: 0;
  transform: rotate(180deg);
}

/* ============================================================
   FLOATING PETALS
   ============================================================ */
.petal {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  animation: petal-fall linear infinite;
}

@keyframes petal-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0.8; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .countdown-wrap { gap: 0.5rem; }
  .countdown-box { padding: 0.75rem 0.75rem; min-width: 55px; }
  .hero-btn-wrap { flex-direction: column; align-items: center; }
  .rsvp-form { padding: 1.5rem; }
  .event-card { padding: 1.8rem 1.5rem; }
}

@media (min-width: 1024px) {
  .event-grid { grid-template-columns: 1fr; max-width: 500px; }
}
