/* ==========================================================================
   VINTAGE ROYAL ELEGANCE - MASTER STYLESHEET
   17th Birthday Invitation - Khalillah Adelia Luvy
   Designed for High-End Elegance & Hostinger Deployment
   ========================================================================== */

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

:root {
  /* Monochrome Luxury Palette */
  --color-bg-dark: #0A0A0A;
  --color-bg-dark-elevated: #141414;
  --color-bg-card: rgba(20, 20, 20, 0.9);
  --color-bg-card-border: rgba(255, 255, 255, 0.18);
  
  --color-parchment: #FFFFFF;
  --color-parchment-soft: #F5F5F5;
  --color-parchment-text: #111111;

  --color-gold-light: #F0F0F0;
  --color-gold: #FFFFFF;
  --color-gold-deep: #8E8E8E;
  --color-gold-gradient: linear-gradient(135deg, #FFFFFF 0%, #D4D4D4 50%, #888888 100%);
  --color-gold-border: rgba(255, 255, 255, 0.22);

  --color-rose-velvet: #242424;
  --color-wax-seal: #1A1A1A;
  --color-wax-shadow: rgba(0, 0, 0, 0.7);

  --color-text-white: #FFFFFF;
  --color-text-light: #EDEDED;
  --color-text-muted: #A0A0A0;
  --color-text-muted-dark: #585858;

  /* Typography */
  --font-display: 'Cinzel Decorative', Georgia, serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Glow */
  --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.75);
  --shadow-gold: 0 4px 20px rgba(255, 255, 255, 0.15);
  --shadow-wax: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--color-bg-dark);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 45%);
}

body.locked {
  overflow: hidden;
  height: 100vh;
}

/* Selection */
::selection {
  background: #FFFFFF;
  color: #000000;
}

/* ==========================================================================
   PRELOADER / INTRO SCREEN
   ========================================================================== */
#intro-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #080808;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s ease;
}

#intro-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--color-gold-border);
  background: rgba(26, 17, 20, 0.6);
  backdrop-filter: blur(8px);
}

.intro-frame::before,
.intro-frame::after {
  content: "✦";
  position: absolute;
  color: var(--color-gold);
  font-size: 1.1rem;
}
.intro-frame::before { top: -10px; left: calc(50% - 8px); }
.intro-frame::after { bottom: -10px; left: calc(50% - 8px); }

.intro-monogram {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 6px;
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.intro-subtitle {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-gold-light);
  margin-bottom: 0.75rem;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-text-white);
  margin-bottom: 1.8rem;
}

.intro-progress-bar-container {
  width: 180px;
  height: 2px;
  background: rgba(205, 172, 114, 0.2);
  position: relative;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.intro-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-gold-gradient);
  transition: width 0.05s linear;
}

.intro-counter {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-gold);
}

/* ==========================================================================
   FLOATING AUDIO CONTROLLER
   ========================================================================== */
.floating-music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #141414;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 14px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.floating-music-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.9), 0 0 22px rgba(255, 255, 255, 0.45);
}

.music-disc-inner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 0.95rem;
}

/* ==========================================================================
   APP MAIN LAYOUT (DESKTOP SPLIT / MOBILE STACKED)
   ========================================================================== */
.invitation-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left Column: Sticky Visual Showcase (Desktop) */
.invitation-side-visual {
  width: 48%;
  position: sticky;
  top: 0;
  height: 100vh;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3.5rem;
  overflow: hidden;
  box-shadow: 10px 0 35px rgba(0,0,0,0.5);
  z-index: 10;
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(22, 15, 17, 0.2) 0%,
    rgba(22, 15, 17, 0.5) 50%,
    rgba(22, 15, 17, 0.92) 100%
  );
  z-index: 1;
}

.side-visual-content {
  position: relative;
  z-index: 2;
  border-left: 2px solid var(--color-gold);
  padding-left: 1.5rem;
}

.side-visual-tag {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
}

.side-visual-name {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.15;
  color: var(--color-text-white);
  margin-bottom: 0.6rem;
}

.side-visual-date {
  font-family: var(--font-editorial);
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--color-gold);
  font-style: italic;
}

/* Right Column: Scrollable Content Area */
.invitation-main-content {
  width: 52%;
  min-height: 100vh;
  position: relative;
  background: var(--color-bg-dark);
}

/* ==========================================================================
   COVER / HERO SECTION (FULL PHOTO BACKGROUND EDITORIAL STYLE)
   ========================================================================== */
.section-cover {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.8rem 4.8rem 1.8rem;
  position: relative;
  background-image: url('../images/4.webp');
  background-size: cover;
  background-position: center 5%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--color-gold-border);
  overflow: hidden;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.0) 0%,
    rgba(10, 10, 10, 0.1) 35%,
    rgba(10, 10, 10, 0.65) 60%,
    rgba(10, 10, 10, 0.95) 85%,
    rgba(10, 10, 10, 0.98) 100%
  );
  z-index: 1;
}

.cover-content-inner {
  position: relative;
  z-index: 2;
  max-width: 540px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cover-invited-tag {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 2.8px;
  line-height: 1.45;
  color: #E0E0E0;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.cover-main-name {
  font-family: var(--font-editorial);
  font-size: 2.15rem;
  font-weight: 500;
  letter-spacing: 3.5px;
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 0.9rem;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.95);
}

.cover-recipient-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.9rem;
}

.cover-dear-text {
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  font-style: italic;
  color: #CCCCCC;
  margin-bottom: 0.15rem;
}

.cover-guest-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* Elegant Outline Box Button */
.btn-open-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(18, 12, 14, 0.65);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-open-outline:hover {
  background: #FFFFFF;
  color: #160F11;
  border-color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.btn-open-outline:active {
  transform: translateY(1px);
}

/* ==========================================================================
   CONTENT SECTIONS COMMON
   ========================================================================== */
.invitation-section {
  padding: 4.5rem 2.5rem;
  border-bottom: 1px solid rgba(205, 172, 114, 0.15);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.section-category {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-gold);
  margin-bottom: 0.6rem;
  display: block;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--color-text-white);
  line-height: 1.25;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.8rem;
  color: var(--color-gold);
}

.section-divider::before,
.section-divider::after {
  content: "";
  width: 45px;
  height: 1px;
  background: var(--color-gold-border);
}

/* ==========================================================================
   SECTION: THE BIRTHDAY GIRL
   ========================================================================== */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold-border);
  padding: 3rem 2rem;
  border-radius: 6px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(205, 172, 114, 0.2);
  pointer-events: none;
  border-radius: 4px;
}

.profile-frame {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 6px;
  background: var(--color-gold-gradient);
  margin-bottom: 1.8rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.profile-card:hover .profile-frame {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 28px rgba(255, 255, 255, 0.35);
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(108%) brightness(0.96);
  transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card:hover .profile-photo,
.profile-photo:hover {
  filter: grayscale(0%) contrast(102%) brightness(1);
  transform: scale(1.04);
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold-light);
  margin-bottom: 0.4rem;
}

.profile-age-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 0.4rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.profile-quote-box {
  max-width: 480px;
  margin-bottom: 2rem;
  position: relative;
}

.profile-quote-text {
  font-family: var(--font-editorial);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.profile-quote-author {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--color-gold);
  margin-top: 0.6rem;
  display: block;
}

.btn-social-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--color-gold);
  border-radius: 30px;
  color: var(--color-gold-light);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-social-gold:hover {
  background: var(--color-gold);
  color: var(--color-bg-dark);
  box-shadow: 0 4px 18px rgba(205, 172, 114, 0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTION: COUNTDOWN TIMER & CALENDAR
   ========================================================================== */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto 2.4rem auto;
}

.countdown-unit {
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold-border);
  padding: 1.2rem 0.5rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold-light);
  line-height: 1;
  margin-bottom: 0.4rem;
  display: block;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
}

.calendar-action-wrapper {
  text-align: center;
}

.btn-gold-filled {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 2rem;
  background: var(--color-gold-gradient);
  border: none;
  border-radius: 4px;
  color: #1A1214;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold-filled:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(205, 172, 114, 0.45);
}

/* ==========================================================================
   SECTION: EVENT DETAILS & LOCATION
   ========================================================================== */
.event-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold-border);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  text-align: center;
}

.event-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(205, 172, 114, 0.12);
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.25rem;
  margin: 0 auto 1.5rem auto;
}

.event-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-text-white);
  margin-bottom: 1.5rem;
}

.event-detail-item {
  margin-bottom: 1.4rem;
}

.event-detail-label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--color-gold);
  margin-bottom: 0.3rem;
  display: block;
}

.event-detail-value {
  font-family: var(--font-editorial);
  font-size: 1.35rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

.event-detail-value strong {
  font-family: var(--font-serif);
  color: var(--color-gold-light);
  font-size: 1.45rem;
}

.event-address {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 440px;
  margin: 0 auto 1.8rem auto;
  line-height: 1.6;
}

.event-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.8rem;
  border: 1px solid var(--color-gold);
  border-radius: 4px;
  background: transparent;
  color: var(--color-gold-light);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gold-outline:hover {
  background: rgba(205, 172, 114, 0.15);
  color: var(--color-text-white);
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
}

/* Event Timeline / Rundown */
.timeline-wrapper {
  margin-top: 3rem;
  border-top: 1px dashed rgba(205, 172, 114, 0.3);
  padding-top: 2.2rem;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-gold-light);
  margin-bottom: 1.5rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  text-align: left;
}

.timeline-card {
  background: rgba(20, 14, 16, 0.6);
  border-left: 2px solid var(--color-gold);
  padding: 1rem 1.2rem;
  border-radius: 0 4px 4px 0;
}

.timeline-time {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 1px;
}

.timeline-activity {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* ==========================================================================
   SECTION: DRESSCODE & DOORPRIZE
   ========================================================================== */
.dresscode-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold-border);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}

.dresscode-theme {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
}

.dresscode-desc {
  font-family: var(--font-editorial);
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 1.8rem;
}

.color-swatches {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.swatch-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.swatch-item:hover .swatch-circle {
  transform: scale(1.1);
}

.swatch-circle.c-jetblack { background-color: #0A0A0A; border-color: #FFFFFF; }
.swatch-circle.c-charcoal { background-color: #2B2B2B; border-color: #A0A0A0; }
.swatch-circle.c-silver { background-color: #8E8E8E; border-color: #D6D6D6; }
.swatch-circle.c-platinum { background-color: #D6D6D6; border-color: #FFFFFF; }
.swatch-circle.c-purewhite { background-color: #FFFFFF; border-color: #B0B0B0; }

.swatch-name {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
}

/* Doorprize Banner */
.doorprize-banner {
  background: linear-gradient(135deg, rgba(38, 38, 38, 0.7) 0%, rgba(16, 16, 16, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.doorprize-badge {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}

.doorprize-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-text-white);
  line-height: 1.4;
}

/* ==========================================================================
   SECTION: PHOTO GALLERY (MASONRY GRID & LIGHTBOX)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  background: #111111;
  aspect-ratio: 4 / 5;
}

.gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: grayscale(100%) contrast(108%) brightness(0.96);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
  filter: grayscale(40%) contrast(105%) brightness(1);
}

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #FFFFFF;
  font-size: 1.4rem;
}

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

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.15);
}

.lightbox-img-wrapper {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  object-fit: contain;
  filter: grayscale(0%) contrast(100%) brightness(1);
}

/* ==========================================================================
   SECTION: RSVP FORM
   ========================================================================== */
.rsvp-container {
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold-border);
  border-radius: 6px;
  padding: 2.8rem 2.2rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(18, 12, 14, 0.75);
  border: 1px solid rgba(205, 172, 114, 0.35);
  border-radius: 4px;
  color: var(--color-text-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(205, 172, 114, 0.3);
}

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

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

.form-btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--color-gold-gradient);
  border: none;
  border-radius: 4px;
  color: #160F11;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.form-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(205, 172, 114, 0.45);
}

/* ==========================================================================
   SECTION: BEST WISHES / GUESTBOOK
   ========================================================================== */
.guestbook-container {
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold-border);
  border-radius: 6px;
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
}

.guestbook-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.wishes-list {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Custom Scrollbar */
.wishes-list::-webkit-scrollbar {
  width: 5px;
}
.wishes-list::-webkit-scrollbar-track {
  background: rgba(18, 12, 14, 0.5);
}
.wishes-list::-webkit-scrollbar-thumb {
  background: var(--color-gold-border);
  border-radius: 10px;
}

.wish-item {
  background: rgba(22, 15, 17, 0.65);
  border-left: 2px solid var(--color-gold);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.2rem;
  text-align: left;
  transition: transform 0.2s ease;
}

.wish-item:hover {
  transform: translateX(3px);
}

.wish-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.wish-author {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-gold-light);
}

.wish-status {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
}

.status-hadir {
  background: rgba(61, 140, 80, 0.25);
  border: 1px solid rgba(61, 140, 80, 0.5);
  color: #79D992;
}

.status-tidak-hadir {
  background: rgba(140, 61, 61, 0.25);
  border: 1px solid rgba(140, 61, 61, 0.5);
  color: #FFA5A5;
}

.wish-content {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

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

/* ==========================================================================
   SECTION: DIGITAL ENVELOPE / GIFT (TANDA KASIH)
   ========================================================================== */
.gift-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold-border);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.gift-intro {
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 460px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.bank-account-box {
  background: rgba(22, 15, 17, 0.75);
  border: 1px solid var(--color-gold-border);
  border-radius: 6px;
  padding: 1.5rem;
  max-width: 400px;
  margin: 0 auto 1.5rem auto;
  text-align: center;
  position: relative;
}

.bank-logo-text {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-gold-light);
  margin-bottom: 0.4rem;
}

.bank-acc-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-text-white);
  margin-bottom: 0.3rem;
}

.bank-acc-holder {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.4rem;
  border-radius: 30px;
  border: 1px solid var(--color-gold);
  background: transparent;
  color: var(--color-gold-light);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-copy:hover {
  background: var(--color-gold);
  color: var(--color-bg-dark);
}

/* ==========================================================================
   FOOTER & CLOSING
   ========================================================================== */
.footer-section {
  padding: 5rem 2rem;
  text-align: center;
  background: #110B0D;
  border-top: 1px solid var(--color-gold-border);
  position: relative;
}

.footer-quote {
  font-family: var(--font-editorial);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 1.8rem auto;
  line-height: 1.6;
}

.footer-gratitude {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-gold-light);
  margin-bottom: 0.6rem;
}

.footer-name {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text-white);
  margin-bottom: 1.5rem;
}

/* CASA Organizer Branding */
.organizer-brand-badge {
  margin: 2.5rem auto 3rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.organizer-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 280px;
  margin-bottom: 1.2rem;
}

.organizer-divider::before,
.organizer-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.organizer-divider span {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
}

.organizer-brand-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: none;
}

.organizer-brand-card:hover {
  background: transparent;
  border: none;
  transform: translateY(-2px);
  box-shadow: none;
}

.organizer-logo {
  max-width: 145px;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.organizer-brand-card:hover .organizer-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 15px rgba(255, 255, 255, 0.25));
}

.organizer-brand-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: #8E8E8E;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.organizer-brand-card:hover .organizer-brand-ig {
  color: #FFFFFF;
}

.footer-credits {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--color-text-muted-dark);
  text-transform: uppercase;
}

/* ==========================================================================
   FLOATING TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 1000000;
  background: #181818;
  border: 1px solid #FFFFFF;
  color: #FFFFFF;
  padding: 0.9rem 1.8rem;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 15px rgba(255, 255, 255, 0.25);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE OPTIMIZATIONS)
   ========================================================================== */
@media (max-width: 1024px) {
  .invitation-container {
    flex-direction: column;
  }
  
  .invitation-side-visual {
    display: none; /* In mobile/tablet, side visual merges cleanly into the single scroll layout */
  }

  .invitation-main-content {
    width: 100%;
  }

  .section-cover {
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: flex-end;
    padding: 2.5rem 1.5rem 5.2rem 1.5rem;
    background-position: center top;
  }

  .cover-main-name {
    font-size: 2rem;
    letter-spacing: 3.5px;
  }

  .invitation-section {
    padding: 3.5rem 1.5rem;
  }

  .countdown-grid {
    gap: 0.6rem;
  }

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

@media (max-width: 480px) {
  .section-cover {
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: flex-end;
    padding: 2rem 1.2rem 4.8rem 1.2rem;
    background-position: center top;
  }

  .cover-invited-tag {
    font-size: 0.72rem;
    letter-spacing: 2.2px;
    margin-bottom: 0.5rem;
  }

  .cover-main-name {
    font-size: 1.68rem;
    letter-spacing: 2.8px;
    line-height: 1.15;
    margin-bottom: 0.95rem;
  }

  .cover-recipient-block {
    margin-bottom: 0.95rem;
  }

  .cover-dear-text {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
  }

  .cover-guest-name {
    font-size: 1.22rem;
  }

  .btn-open-outline {
    padding: 0.75rem 2rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .scroll-down-indicator {
    bottom: 12px;
  }

  .profile-frame {
    width: 180px;
    height: 180px;
  }

  .profile-name {
    font-size: 1.8rem;
  }

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

  .gallery-item:first-child {
    grid-column: span 1;
  }

  .countdown-number {
    font-size: 1.5rem;
  }
  
  .countdown-label {
    font-size: 0.65rem;
    letter-spacing: 1px;
  }
}
