/* ==========================================================================
   Design System & Styling Master -- Heritage Toraja Edition
   Digital Wedding Invitation - Iren & Febi
   File: assets/css/style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts Import & CSS Custom Properties
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Great+Vibes&family=Lato:wght@300;400;700&display=swap');

:root {
  /* Heritage Color Palette */
  --ivory:          #FCFAF4;
  --cream:          #F7F1E3;
  --cream-deep:     #EFE6D2;
  --cream-border:   #DDD4BE;
  --espresso:       #3E3528;
  --brown:          #514332;
  --brown-light:    #7A6248;
  --gold:           #A88A52;
  --gold-light:     #C4AA72;
  --gold-pale:      #E8D9B5;
  --sage:           #7E8A6A;
  --blush:          #D8B8AD;
  --white:          #FFFFFF;

  /* Legacy aliases — backward compatibility for inline styles in index.php */
  --color-gold:           var(--gold);
  --color-gold-light:     var(--gold-pale);
  --color-gold-dark:      var(--brown);
  --color-gold-gradient:  linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #7A6248 100%);
  --color-cream:          var(--ivory);
  --color-beige:          var(--cream);
  --color-beige-dark:     var(--cream-deep);
  --color-dark:           var(--espresso);
  --color-dark-muted:     var(--brown-light);
  --color-sage:           var(--sage);
  --color-sage-light:     rgba(126, 138, 106, 0.15);
  --color-rose:           var(--blush);
  --color-rose-light:     rgba(216, 184, 173, 0.20);
  --color-white:          var(--white);

  /* Surfaces */
  --glass-bg:       rgba(252, 250, 244, 0.92);
  --glass-dark-bg:  rgba(62, 53, 40, 0.88);
  --glass-border:   rgba(168, 138, 82, 0.28);

  /* Shadows */
  --shadow-sm:  0 4px 18px rgba(62, 53, 40, 0.07);
  --shadow-md:  0 10px 32px rgba(62, 53, 40, 0.10);
  --shadow-lg:  0 20px 50px rgba(168, 138, 82, 0.18);

  /* Typography */
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-script:  'Great Vibes', cursive;
  --font-sans:    'Lato', -apple-system, sans-serif;

  /* Transitions */
  --transition-fast:    all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-smooth:  all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & General Setup
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  background-color: var(--ivory);
  color: var(--espresso);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.lock-scroll { overflow: hidden; }
a { color: var(--brown); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--gold); }
img, video { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brown); }

/* --------------------------------------------------------------------------
   3. Utility Classes & Typography
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; }

.section { padding: 5.5rem 0; position: relative; }

.section-bg-beige { background-color: var(--cream); }
.section-bg-beige::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 2L38 20L20 38L2 20Z' fill='none' stroke='%23A88A52' stroke-width='0.6' opacity='0.35'/%3E%3Crect x='16' y='16' width='8' height='8' fill='none' stroke='%23A88A52' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  opacity: 0.45;
  pointer-events: none;
}

.section-title-wrapper { text-align: center; margin-bottom: 3.5rem; position: relative; }
.section-subtitle { font-family: var(--font-script); font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: -0.25rem; letter-spacing: 0.5px; }
.section-title { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 600; color: var(--espresso); letter-spacing: 3px; text-transform: uppercase; }

.title-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 0.75rem; }
.title-divider::before, .title-divider::after { content: ''; height: 1px; width: 55px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.title-divider span { color: var(--gold); font-size: 1.15rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.8rem 1.9rem; border-radius: 3px; font-family: var(--font-sans); font-weight: 700; font-size: 0.82rem; letter-spacing: 1.5px; cursor: pointer; border: none; transition: var(--transition-fast); text-transform: uppercase; }
.btn-gold { background: var(--espresso); color: var(--gold-light); border: 1px solid var(--gold); box-shadow: inset 0 0 0 1px rgba(196,170,114,0.15), var(--shadow-sm); }
.btn-gold:hover { background: var(--brown); color: var(--gold-pale); border-color: var(--gold-light); box-shadow: 0 6px 22px rgba(168,138,82,0.35); transform: translateY(-2px); color: var(--gold-pale); }
.btn-outline-gold { background: transparent; border: 1.5px solid var(--gold); color: var(--brown); }
.btn-outline-gold:hover { background: var(--espresso); color: var(--gold-light); border-color: var(--espresso); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------------------------
   4. Loading Screen & Scroll Progress Bar
   -------------------------------------------------------------------------- */
#loading-screen { position: fixed; inset: 0; background-color: var(--ivory); z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.9s ease, visibility 0.9s ease; }
#loading-screen::before { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; border: 1px solid var(--gold-pale); top: 50%; left: 50%; transform: translate(-50%, -50%); animation: pulseRing 2.5s ease-in-out infinite; }
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring { width: 64px; height: 64px; border: 2px solid var(--cream-border); border-top-color: var(--gold); border-radius: 50%; animation: spin 1.1s infinite linear; }
.loader-text { font-family: var(--font-script); font-size: 2rem; color: var(--gold); margin-top: 1.4rem; letter-spacing: 1px; }
.scroll-progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%); z-index: 9999; width: 0%; transition: width 0.12s ease-out; }

/* --------------------------------------------------------------------------
   5. Opening Cover Overlay
   -------------------------------------------------------------------------- */
#opening-cover {
  position: fixed; inset: 0; z-index: 9990;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background-color: var(--espresso); background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
  padding: 2rem 1rem;
}
#opening-cover::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Crect width='40' height='20' fill='%233E3528'/%3E%3Cpath d='M0 10L10 0L20 10L30 0L40 10L30 20L20 10L10 20Z' fill='%23A88A52' opacity='0.75'/%3E%3Cpath d='M10 10L20 0L30 10L20 20Z' fill='%23C4AA72' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 40px 20px; background-repeat: repeat-x;
}
#opening-cover.cover-opened { transform: translateY(-100%); opacity: 0; pointer-events: none; }

.cover-content-box {
  background: rgba(252, 250, 244, 0.93); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(196, 170, 114, 0.45); padding: 3rem 2.2rem 2.8rem; border-radius: 4px;
  max-width: 500px; width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.9);
  animation: floatAnim 5s ease-in-out infinite; position: relative;
}
.cover-content-box::before { content: ''; position: absolute; top: 12px; left: 12px; width: 28px; height: 28px; border-top: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); opacity: 0.55; }
.cover-content-box::after  { content: ''; position: absolute; bottom: 12px; right: 12px; width: 28px; height: 28px; border-bottom: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); opacity: 0.55; }

.cover-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.4rem auto; border: 2px solid var(--gold); box-shadow: 0 0 0 6px var(--gold-pale), 0 8px 24px rgba(0,0,0,0.20); }
.cover-subtitle { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--brown-light); display: block; margin-bottom: 0.4rem; }
.cover-title { font-family: var(--font-script); font-size: 3rem; color: var(--espresso); font-weight: 400; margin-bottom: 1.4rem; line-height: 1.1; }
.guest-invitation-box { background: rgba(168, 138, 82, 0.07); border: 1px solid rgba(168, 138, 82, 0.30); border-radius: 2px; padding: 1.1rem 1.4rem; margin: 1.4rem 0 1.8rem 0; }
.guest-label { font-size: 0.7rem; color: var(--brown-light); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.35rem; font-family: var(--font-sans); }
.guest-name { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--espresso); font-style: italic; }
.btn-open-invitation { animation: pulseGlow 2.5s infinite; }

/* --------------------------------------------------------------------------
   6. Floating Action Buttons & Audio Control
   -------------------------------------------------------------------------- */
.floating-actions { position: fixed; bottom: 2rem; right: 1.5rem; z-index: 990; display: flex; flex-direction: column; gap: 0.75rem; }
.float-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--ivory); border: 1.5px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow-md); transition: var(--transition-fast); }
.float-btn:hover { background: var(--espresso); color: var(--gold-light); border-color: var(--espresso); transform: scale(1.08); }
.music-spin { animation: spin 3s linear infinite; }
#back-to-top { opacity: 0; visibility: hidden; transform: translateY(20px); }
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
  background-color: var(--espresso); background-size: cover; background-position: center; background-repeat: no-repeat;
  color: var(--ivory); position: relative; padding: 5rem 1rem 6rem;
}
#hero::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Crect width='40' height='20' fill='%233E3528'/%3E%3Cpath d='M0 10L10 0L20 10L30 0L40 10L30 20L20 10L10 20Z' fill='%23A88A52' opacity='0.75'/%3E%3Cpath d='M10 10L20 0L30 10L20 20Z' fill='%23C4AA72' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 40px 20px; background-repeat: repeat-x; z-index: 2;
}
#hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 200px; background: linear-gradient(to top, rgba(62, 53, 40, 0.65), transparent); pointer-events: none; }
.hero-content { max-width: 760px; position: relative; z-index: 1; }
.hero-subtitle { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-pale); margin-bottom: 0.6rem; display: block; }
.hero-couple-names { font-family: var(--font-script); font-size: 5rem; font-weight: 400; letter-spacing: 1px; margin-bottom: 0.2rem; text-shadow: 0 4px 20px rgba(0,0,0,0.5); color: var(--ivory); line-height: 1.1; }
.hero-date-badge { display: inline-block; padding: 0.45rem 2rem; border-top: 1px solid rgba(196,170,114,0.6); border-bottom: 1px solid rgba(196,170,114,0.6); font-family: var(--font-sans); font-size: 0.82rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 3rem; color: var(--gold-pale); }

.countdown-container { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.countdown-box { background: rgba(62, 53, 40, 0.55); backdrop-filter: blur(10px); border: 1px solid rgba(196,170,114,0.40); border-radius: 2px; width: 88px; height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0,0,0,0.30); position: relative; }
.countdown-box::before { content: ''; position: absolute; top: 4px; left: 4px; width: 10px; height: 10px; border-top: 1px solid var(--gold-light); border-left: 1px solid var(--gold-light); opacity: 0.6; }
.countdown-box::after  { content: ''; position: absolute; bottom: 4px; right: 4px; width: 10px; height: 10px; border-bottom: 1px solid var(--gold-light); border-right: 1px solid var(--gold-light); opacity: 0.6; }
.countdown-number { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--ivory); }
.countdown-label { font-family: var(--font-sans); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 0.4rem; color: var(--gold-light); }

/* --------------------------------------------------------------------------
   8. Bible Verse Section
   -------------------------------------------------------------------------- */
#verse { background-color: var(--ivory); }
.verse-card { background: var(--white); border: 1px solid var(--cream-border); border-radius: 2px; padding: 4rem 3rem; text-align: center; position: relative; box-shadow: var(--shadow-md); }
.verse-card::before { content: ''; position: absolute; top: 18px; left: 18px; width: 40px; height: 40px; border-top: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); opacity: 0.40; }
.verse-card::after  { content: ''; position: absolute; bottom: 18px; right: 18px; width: 40px; height: 40px; border-bottom: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); opacity: 0.40; }
.verse-quote-icon { font-size: 2.5rem; color: var(--gold); line-height: 1; margin-bottom: 1.5rem; opacity: 0.7; }
.verse-text { font-family: var(--font-serif); font-size: 1.45rem; font-style: italic; font-weight: 300; color: var(--espresso); line-height: 1.9; margin-bottom: 1.8rem; }
.verse-reference { font-family: var(--font-sans); font-weight: 700; font-size: 0.78rem; color: var(--gold); letter-spacing: 2.5px; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   9. Couple Profile Section
   -------------------------------------------------------------------------- */
.couple-wrapper { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2.5rem; align-items: center; }
.couple-card { background: var(--ivory); border: 1px solid var(--cream-border); border-radius: 2px; padding: 2.8rem 2rem; text-align: center; box-shadow: var(--shadow-md); transition: var(--transition-smooth); position: relative; }
.couple-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(168,138,82,0.18); border-radius: 1px; pointer-events: none; }
.couple-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.couple-img-wrapper { position: relative; width: 180px; height: 220px; margin: 0 auto 2rem auto; border-radius: 50% 50% 0 0; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 0 0 6px var(--cream-deep), var(--shadow-md); }
.couple-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; }
.couple-card:hover .couple-img { transform: scale(1.07); }
.couple-name { font-family: var(--font-serif); font-size: 1.85rem; font-weight: 600; color: var(--espresso); margin-bottom: 0.5rem; }
.couple-parents { font-size: 0.9rem; color: var(--brown-light); margin-bottom: 1.4rem; line-height: 1.6; }
.couple-ig { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px; }
.couple-divider { font-family: var(--font-script); font-size: 4.5rem; color: var(--gold); text-align: center; line-height: 1; text-shadow: 0 4px 16px rgba(168,138,82,0.25); }

/* --------------------------------------------------------------------------
   10. Love Story Timeline
   -------------------------------------------------------------------------- */
#story { background-color: var(--ivory); }
.timeline-container { position: relative; max-width: 850px; margin: 0 auto; }
.timeline-container::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(to bottom, transparent, var(--gold) 10%, var(--gold) 90%, transparent); transform: translateX(-50%); opacity: 0.6; }
.timeline-item { position: relative; margin-bottom: 3.5rem; width: 50%; padding: 0 2.8rem; }
.timeline-item:nth-child(odd)  { left: 0;   text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left;  }
.timeline-badge { position: absolute; top: 15px; width: 40px; height: 40px; background: var(--espresso); border: 2px solid var(--gold); color: var(--gold-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; box-shadow: 0 0 0 4px var(--cream), 0 4px 12px rgba(0,0,0,0.15); z-index: 2; }
.timeline-item:nth-child(odd)  .timeline-badge { right: -20px; }
.timeline-item:nth-child(even) .timeline-badge { left: -20px; }
.timeline-card { background: var(--white); border: 1px solid var(--cream-border); border-radius: 2px; box-shadow: var(--shadow-md); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.timeline-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.timeline-img-wrapper { width: 100%; height: 200px; overflow: hidden; position: relative; }
.timeline-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; display: block; }
.timeline-card:hover .timeline-img { transform: scale(1.06); }
.timeline-card-body { padding: 1.5rem 1.8rem; }
.timeline-year { display: inline-block; padding: 0.25rem 0.9rem; background: rgba(168,138,82,0.12); color: var(--brown); font-family: var(--font-serif); font-weight: 600; font-size: 0.88rem; letter-spacing: 1px; border-radius: 2px; border: 1px solid rgba(168,138,82,0.25); margin-bottom: 0.8rem; }
.timeline-title { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--espresso); }
.timeline-desc { font-size: 0.92rem; color: var(--brown-light); line-height: 1.75; }
.timeline-left  { left: 0;   text-align: right; }
.timeline-right { left: 50%; text-align: left;  }
.timeline-left  .timeline-card-body, .timeline-right .timeline-card-body { text-align: left; }
.timeline-left  .timeline-badge { right: -20px; left: auto; }
.timeline-right .timeline-badge { left: -20px;  right: auto; }

/* --------------------------------------------------------------------------
   11. Event Cards & Google Maps
   -------------------------------------------------------------------------- */
.events-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3.5rem; }
.event-card { background: var(--ivory); border: 1px solid var(--cream-border); border-radius: 2px; padding: 3rem 2rem; text-align: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden; transition: var(--transition-fast); }
.event-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(168,138,82,0.18); border-radius: 1px; pointer-events: none; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.event-icon { font-size: 2.4rem; color: var(--gold); margin-bottom: 1.2rem; }
.event-title { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; color: var(--espresso); margin-bottom: 1.6rem; }
.event-details-list { list-style: none; margin-bottom: 2rem; }
.event-details-list li { margin-bottom: 0.8rem; font-size: 0.95rem; color: var(--brown-light); }
.event-details-list li strong { font-family: var(--font-sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--espresso); display: block; margin-bottom: 0.15rem; }
.maps-container { border-radius: 2px; overflow: hidden; border: 1px solid var(--gold); box-shadow: var(--shadow-lg); margin-bottom: 1.5rem; }
.maps-iframe { width: 100%; height: 370px; border: 0; display: block; }

/* --------------------------------------------------------------------------
   12. Gallery Grid & Lightbox
   -------------------------------------------------------------------------- */
#gallery { background-color: var(--ivory); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; border-radius: 2px; overflow: hidden; height: 255px; cursor: pointer; box-shadow: var(--shadow-sm); border: 1px solid var(--cream-border); }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s ease; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(62,53,40,0.45); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; color: var(--gold-pale); font-size: 1.8rem; }
.gallery-item:hover .gallery-img     { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

#lightbox-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(30,24,17,0.95); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; padding: 2rem; }
#lightbox-modal.active { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 2px; box-shadow: 0 12px 50px rgba(0,0,0,0.8); border: 1px solid rgba(168,138,82,0.3); }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; color: var(--gold-pale); font-size: 1.8rem; cursor: pointer; background: rgba(62,53,40,0.75); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition-fast); border: 1px solid rgba(168,138,82,0.35); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); color: var(--espresso); }
.lightbox-close { top: 2rem; right: 2rem; }
.lightbox-prev  { left: 2rem; }
.lightbox-next  { right: 2rem; }

/* --------------------------------------------------------------------------
   14. Wedding Gift / Digital Envelope
   -------------------------------------------------------------------------- */
#gift { background-color: var(--ivory); }
.gift-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
.bank-card { background: var(--white); border: 1px solid var(--cream-border); border-radius: 2px; padding: 2.5rem 2rem; text-align: center; box-shadow: var(--shadow-md); position: relative; transition: var(--transition-fast); }
.bank-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(168,138,82,0.15); border-radius: 1px; pointer-events: none; }
.bank-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bank-logo-text { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; color: var(--espresso); margin-bottom: 1rem; }
.account-number { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 3px; color: var(--espresso); margin-bottom: 0.3rem; }
.account-holder { font-size: 0.9rem; color: var(--brown-light); margin-bottom: 1.5rem; }
.shipping-address-box { background: var(--white); border: 1px solid rgba(168,138,82,0.35); border-radius: 2px; padding: 2rem; text-align: center; box-shadow: var(--shadow-sm); }
.toast-alert { position: fixed; bottom: 6rem; left: 50%; transform: translateX(-50%) translateY(50px); background: var(--espresso); color: var(--gold-pale); border: 1px solid var(--gold); padding: 0.75rem 1.8rem; border-radius: 2px; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.5px; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 9999; box-shadow: var(--shadow-md); }
.toast-alert.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* --------------------------------------------------------------------------
   15. Live RSVP Form & Guestbook
   -------------------------------------------------------------------------- */
.rsvp-card { background: var(--ivory); border: 1px solid var(--cream-border); border-radius: 2px; padding: 3rem 2.5rem; box-shadow: var(--shadow-md); margin-bottom: 3.5rem; position: relative; }
.rsvp-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(168,138,82,0.18); border-radius: 1px; pointer-events: none; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-family: var(--font-sans); font-weight: 700; font-size: 0.76rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--espresso); margin-bottom: 0.6rem; }
.form-control { width: 100%; padding: 0.85rem 1.2rem; border: 1px solid var(--cream-border); border-radius: 2px; background: var(--white); color: var(--espresso); outline: none; transition: var(--transition-fast); }
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168,138,82,0.15); }
.radio-group { display: flex; gap: 1.5rem; margin-top: 0.5rem; }
.radio-label { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.92rem; }
.guestbook-feed { max-height: 500px; overflow-y: auto; padding-right: 0.5rem; display: flex; flex-direction: column; gap: 1rem; }
.guestbook-item { background: var(--white); border: 1px solid var(--cream-border); border-radius: 2px; padding: 1.4rem; display: flex; gap: 1.1rem; }
.guestbook-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--espresso); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; flex-shrink: 0; border: 1px solid var(--gold); }
.guestbook-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; flex-wrap: wrap; gap: 0.4rem; }
.guestbook-name { font-family: var(--font-serif); font-weight: 600; font-size: 1rem; color: var(--espresso); display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; }
.guestbook-group-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.74rem; font-weight: 700; color: var(--sage); background: rgba(126,138,106,0.12); border: 1px solid rgba(126,138,106,0.28); padding: 0.15rem 0.55rem; border-radius: 2px; vertical-align: middle; letter-spacing: 0.04em; }
.badge-attendance { font-family: var(--font-sans); font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-hadir       { background: rgba(126,138,106,0.15); color: var(--sage); }
.badge-tidak_hadir { background: rgba(216,184,173,0.2);  color: #9B7062; }
.guestbook-msg  { font-size: 0.92rem; color: var(--brown-light); font-style: italic; line-height: 1.65; }
.guestbook-time { font-family: var(--font-sans); font-size: 0.72rem; color: var(--cream-border); margin-top: 0.45rem; letter-spacing: 0.5px; }

/* --------------------------------------------------------------------------
   16. Denah Lokasi
   -------------------------------------------------------------------------- */
.denah-box { border-radius: 2px; overflow: hidden; border: 1px solid var(--gold); cursor: pointer; position: relative; box-shadow: var(--shadow-md); }
.denah-img { width: 100%; height: auto; transition: transform 0.5s ease; }
.denah-box:hover .denah-img { transform: scale(1.03); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
#footer {
  background: linear-gradient(rgba(40,32,22,0.90), rgba(30,24,15,0.97)), url('../images/hero-bg.jpg') center/cover no-repeat;
  color: var(--ivory); text-align: center; padding: 5rem 1rem 2.5rem; position: relative; overflow: hidden;
}
#footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Crect width='40' height='20' fill='%233E3528'/%3E%3Cpath d='M0 10L10 0L20 10L30 0L40 10L30 20L20 10L10 20Z' fill='%23A88A52' opacity='0.75'/%3E%3Cpath d='M10 10L20 0L30 10L20 20Z' fill='%23C4AA72' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 40px 20px; background-repeat: repeat-x;
}
#footer::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 2L38 20L20 38L2 20Z' fill='none' stroke='%23A88A52' stroke-width='0.5' opacity='0.12'/%3E%3C/svg%3E");
  background-size: 40px 40px; pointer-events: none;
}
.footer-thanks { font-family: var(--font-serif); font-size: 1.3rem; font-style: italic; font-weight: 300; max-width: 620px; margin: 2rem auto; line-height: 1.9; color: var(--cream-deep); position: relative; z-index: 1; }
.footer-couple { font-family: var(--font-script); font-size: 3.8rem; color: var(--gold-light); margin-bottom: 2.5rem; text-shadow: 0 4px 20px rgba(168,138,82,0.35); position: relative; z-index: 1; }
.footer-copy { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 1px; color: rgba(196,170,114,0.55); border-top: 1px solid rgba(168,138,82,0.20); padding-top: 1.5rem; position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   18. Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes spin        { from{transform:rotate(0deg)}   to{transform:rotate(360deg)} }
@keyframes floatAnim   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes pulseGlow   { 0%,100%{box-shadow:0 0 12px rgba(168,138,82,0.35)} 50%{box-shadow:0 0 28px rgba(168,138,82,0.75)} }
@keyframes pulseRing   { 0%,100%{transform:translate(-50%,-50%) scale(1);opacity:0.4} 50%{transform:translate(-50%,-50%) scale(1.15);opacity:0.1} }
@keyframes musicPulse  { 0%{transform:scale(1);box-shadow:0 0 0 0 rgba(168,138,82,0.65)} 100%{transform:scale(1.18);box-shadow:0 0 0 16px rgba(168,138,82,0)} }
@keyframes spin-record { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity 0.85s ease-out, transform 0.85s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.btn-pulse-highlight { animation: musicPulse 1.2s infinite alternate !important; background: var(--gold) !important; color: var(--espresso) !important; }
.music-playing { background: var(--espresso) !important; color: var(--gold-light) !important; }

/* --------------------------------------------------------------------------
   19. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .couple-wrapper { grid-template-columns: 1fr; }
  .couple-divider { margin: 0.5rem 0; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .section-title { font-size: 1.9rem; }
  .section-subtitle { font-size: 2rem; }
  .hero-couple-names { font-size: 3.4rem; }
  .hero-date-badge { font-size: 0.75rem; }
  .verse-card { padding: 2.8rem 1.8rem; }
  .verse-text { font-size: 1.25rem; }
  .rsvp-card { padding: 2rem 1.5rem; }
  .cover-title { font-size: 2.4rem; }
  .timeline-container::before { left: 18px; }
  .timeline-item,
  .timeline-item.timeline-left,
  .timeline-item.timeline-right { width: 100%; left: 0 !important; padding-left: 56px; padding-right: 0; text-align: left !important; }
  .timeline-item:nth-child(even) { left: 0; }
  .timeline-item:nth-child(odd) .timeline-badge,
  .timeline-item:nth-child(even) .timeline-badge,
  .timeline-left .timeline-badge,
  .timeline-right .timeline-badge { left: 0 !important; right: auto !important; }
  .timeline-img-wrapper { height: 155px; }
}

@media (max-width: 480px) {
  .countdown-box { width: 76px; height: 78px; }
  .countdown-number { font-size: 1.7rem; }
  .hero-couple-names { font-size: 2.8rem; }
  .cover-title { font-size: 2rem; }
}