/* ===================================================
   WEDDING INVITATION - SPECIAL 04 (HABIB & ADIBA)
   Inspired by inv.wekita.id/spesial-04
   Ultra-Smooth & Elegant Design
   =================================================== */

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

:root {
  --bg-main: #f5f2eb;
  --bg-card: #ffffff;
  --bg-accent: #ede7dc;
  --bg-soft: #fcfbfa;

  --color-gold: #a48450;
  --color-gold-dark: #7f6438;
  --color-gold-light: #cfb88f;
  --color-gold-gradient: linear-gradient(135deg, #c7aa76 0%, #a48450 50%, #836737 100%);
  --color-gold-shimmer: linear-gradient(90deg, #b89862, #dfc698, #b89862);

  --color-text-main: #2d2926;
  --color-text-muted: #6e6963;
  --color-text-light: #9a948b;

  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Playfair Display', serif;
  --font-title: 'Philosopher', serif;
  --font-sans: 'Poppins', sans-serif;

  --shadow-soft: 0 10px 30px rgba(78, 64, 46, 0.08);
  --shadow-medium: 0 15px 35px rgba(78, 64, 46, 0.12);
  --shadow-card: 0 12px 30px rgba(164, 132, 80, 0.12);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-arch: 160px 160px 20px 20px;
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: #1a1816; /* Dark background on desktop to frame the invitation cleanly */
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* APP WRAPPER (MOBILE FRAME) */
.invitation-frame {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-main);
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
  overflow-x: hidden;
}

/* REVEAL ANIMATIONS (SMOOTH TRANSITIONS - SLOW & ELEGANT) */
.reveal-el {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-el.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-el.zoom-in {
  transform: scale(0.88);
  transition: opacity 2.0s cubic-bezier(0.16, 1, 0.3, 1), transform 2.0s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-el.zoom-in.active {
  transform: scale(1);
}

.reveal-el.fade-left {
  transform: translateX(-35px);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-el.fade-left.active {
  transform: translateX(0);
}

.reveal-el.fade-right {
  transform: translateX(35px);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-el.fade-right.active {
  transform: translateX(0);
}

/* Staggered delay for card children so everything appears smoothly */
.event-card:nth-child(1), .bank-card:nth-child(1), .timeline-item:nth-child(1) {
  transition-delay: 0.15s;
}
.event-card:nth-child(2), .bank-card:nth-child(2), .timeline-item:nth-child(2) {
  transition-delay: 0.35s;
}
.timeline-item:nth-child(3) {
  transition-delay: 0.55s;
}
.gallery-item:nth-child(odd) {
  transition-delay: 0.15s;
}
.gallery-item:nth-child(even) {
  transition-delay: 0.3s;
}

/* FLORAL CORNER DECORATIONS */
.corner-floral {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  transition: opacity 2.5s cubic-bezier(0.16, 1, 0.3, 1), transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  width: 145px;
}

.corner-floral img {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center center;
}

.corner-floral.top-right {
  top: 0;
  right: 0;
}

.corner-floral.top-left {
  top: 0;
  left: 0;
}

.corner-floral.bottom-right {
  bottom: 0;
  right: 0;
}

.corner-floral.bottom-left {
  bottom: 0;
  left: 0;
}

/* Image flips & living breathing swaying animations */
@keyframes aliveSwayTopRight {
  0% { transform: rotate(0deg) translate(0, 0); }
  33% { transform: rotate(2.8deg) translate(-2px, 3px); }
  66% { transform: rotate(-1.6deg) translate(2px, -2px); }
  100% { transform: rotate(0deg) translate(0, 0); }
}

@keyframes aliveSwayTopLeft {
  0% { transform: scaleX(-1) rotate(0deg) translate(0, 0); }
  33% { transform: scaleX(-1) rotate(2.8deg) translate(-2px, 3px); }
  66% { transform: scaleX(-1) rotate(-1.6deg) translate(2px, -2px); }
  100% { transform: scaleX(-1) rotate(0deg) translate(0, 0); }
}

@keyframes aliveSwayBottomRight {
  0% { transform: scaleY(-1) rotate(0deg) translate(0, 0); }
  33% { transform: scaleY(-1) rotate(2.8deg) translate(-2px, -3px); }
  66% { transform: scaleY(-1) rotate(-1.6deg) translate(2px, 2px); }
  100% { transform: scaleY(-1) rotate(0deg) translate(0, 0); }
}

@keyframes aliveSwayBottomLeft {
  0% { transform: scale(-1, -1) rotate(0deg) translate(0, 0); }
  33% { transform: scale(-1, -1) rotate(2.8deg) translate(-2px, -3px); }
  66% { transform: scale(-1, -1) rotate(-1.6deg) translate(2px, 2px); }
  100% { transform: scale(-1, -1) rotate(0deg) translate(0, 0); }
}

.corner-floral.top-right img {
  animation: aliveSwayTopRight 6.2s ease-in-out infinite;
}

.corner-floral.top-left img {
  animation: aliveSwayTopLeft 6.8s ease-in-out infinite;
}

.corner-floral.bottom-right img {
  animation: aliveSwayBottomRight 7.4s ease-in-out infinite;
}

.corner-floral.bottom-left img {
  animation: aliveSwayBottomLeft 6.5s ease-in-out infinite;
}

.corner-floral.active {
  opacity: 0.95;
}

/* SLOW INITIAL ENTRANCE KEYFRAMES FOR COVER */
@keyframes slowFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowFadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(18px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slowFloralTop {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.92);
  }
  100% {
    opacity: 0.95;
    transform: translateY(0) scale(1);
  }
}

@keyframes slowFloralBottom {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  100% {
    opacity: 0.95;
    transform: translateY(0) scale(1);
  }
}

/* GENTLE LIVING BREATH FOR COUPLE PHOTOS */
@keyframes gentlePhotoBreathe {
  0%, 100% { transform: scale(1.02); }
  50% { transform: scale(1.06); }
}

/* ===================================================
   COVER SCREEN (BUKA UNDANGAN) - EXACT REFERENCE CENTERED
   =================================================== */
.cover-screen {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 100%;
  height: 100dvh;
  background: var(--bg-main);
  background-image: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.85) 0%, rgba(245,242,235,0.95) 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  text-align: center;
  transition: transform 1.5s cubic-bezier(0.65, 0, 0.15, 1), opacity 1.3s cubic-bezier(0.65, 0, 0.15, 1);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  overflow: hidden;
}

.cover-screen.opened {
  transform: translate(-50%, -100%);
  opacity: 0;
  pointer-events: none;
}

/* Clustered center wrapper */
.cover-inner-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  position: relative;
  z-index: 5;
  margin: auto 0;
}

.cover-screen .corner-floral.top-right {
  top: 0;
  right: 0;
  width: 145px;
  animation: slowFloralTop 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cover-screen .corner-floral.top-left {
  top: 0;
  left: 0;
  width: 145px;
  animation: slowFloralTop 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cover-screen .corner-floral.bottom-right {
  bottom: 0;
  right: 0;
  width: 145px;
  animation: slowFloralBottom 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cover-screen .corner-floral.bottom-left {
  bottom: 0;
  left: 0;
  width: 145px;
  animation: slowFloralBottom 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cover-photo-wrapper {
  position: relative;
  width: 172px;
  height: 232px;
  margin: 0 auto 18px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(78, 64, 46, 0.16);
  border: 3.5px solid #fff;
  outline: 1px solid rgba(164, 132, 80, 0.25);
  animation: slowFadeInScale 2.0s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.cover-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: gentlePhotoBreathe 8s ease-in-out infinite alternate;
}

.cover-names {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 400;
  color: #5B4447;
  letter-spacing: 0.3px;
  line-height: 1.2;
  margin: 0 0 14px;
  text-shadow: none;
  animation: slowFadeInUp 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.cover-names .ampersand-char,
.hero-names .ampersand-char {
  font-family: 'Elsie Swash Caps', 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  vertical-align: middle;
  padding: 0 4px;
}

.cover-guest-box {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 320px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guest-greeting {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  color: #5B4447;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  margin: 0 0 5px;
  line-height: 1.3;
  animation: slowFadeInUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.guest-name-badge {
  font-family: 'Poppins', sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  color: #5B4447;
  margin: 0 0 14px;
  word-break: break-word;
  text-transform: none;
  letter-spacing: 0.2px;
  line-height: 1.3;
  animation: slowFadeInUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.guest-note {
  display: none;
}

.btn-open-invitation {
  margin-top: 0;
  background: linear-gradient(180deg, #806C6F 0%, #5B4447 100%);
  color: #fff;
  border: none;
  padding: 9px 24px;
  border-radius: 27px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 5px 16px rgba(91, 68, 71, 0.35);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  animation: slowFadeInUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

.btn-open-invitation::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255,255,255,0) 20%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0) 80%
  );
  transform: rotate(30deg);
  animation: btnShimmer 3.5s infinite;
}

@keyframes btnShimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

.btn-open-invitation:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(164, 132, 80, 0.45);
}

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

/* ===================================================
   SECTION COMMON STYLES
   =================================================== */
.inv-section {
  position: relative;
  padding: 60px 24px;
  overflow: hidden;
  text-align: center;
}

.inv-section.bg-accent {
  background-color: var(--bg-accent);
}

.inv-section.bg-white {
  background-color: var(--bg-card);
}

.section-tag {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 14px;
}

.section-script-title {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--color-gold-dark);
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold-gradient);
  margin: 0 auto 24px;
  border-radius: 2px;
}

/* ===================================================
   SECTION 1: HERO / MAIN COVER
   =================================================== */
.hero-section {
  padding-top: 50px;
  padding-bottom: 45px;
  background: var(--bg-main);
}

.hero-gunungan {
  width: 55px;
  height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 3px 6px rgba(164, 132, 80, 0.2));
}

.hero-arch-photo {
  width: 220px;
  height: 310px;
  margin: 20px auto 25px;
  border-radius: 180px 180px 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 5px solid #fff;
  outline: 1.5px solid var(--color-gold-light);
  position: relative;
  transition: opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1), transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-arch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: gentlePhotoBreathe 8s ease-in-out infinite alternate;
}

#hero .reveal-el:not(.hero-arch-photo) {
  transition: opacity 2.0s cubic-bezier(0.16, 1, 0.3, 1), transform 2.0s cubic-bezier(0.16, 1, 0.3, 1);
}

#hero .corner-floral {
  transition: opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1), transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  border: 1px solid var(--color-gold-light);
  box-shadow: var(--shadow-soft);
  margin-top: 15px;
}

/* COUNTDOWN TIMER */
.countdown-container {
  margin: 30px 0 20px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}

.countdown-box {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 6px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(164, 132, 80, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  line-height: 1.1;
}

.countdown-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.btn-calendar {
  margin-top: 18px;
  background: #fff;
  color: var(--color-gold-dark);
  border: 1.5px solid var(--color-gold);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.btn-calendar:hover {
  background: var(--color-gold-gradient);
  color: #fff;
  border-color: transparent;
}

/* ===================================================
   SECTION 2: AYAT & OPENING
   =================================================== */
.bismillah-svg {
  width: 190px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.ayat-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--color-text-main);
  margin-bottom: 12px;
  padding: 0 10px;
}

.ayat-source {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  letter-spacing: 1px;
}

.greetings-p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-top: 25px;
  padding: 0 10px;
}

/* ===================================================
   SECTION 3: GROOM & BRIDE (MEMPELAI)
   =================================================== */
.couple-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(164, 132, 80, 0.2);
  margin-bottom: 25px;
  position: relative;
}

.couple-avatar-arch {
  width: 150px;
  height: 200px;
  margin: 0 auto 18px;
  border-radius: var(--radius-arch);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 4px solid var(--bg-main);
  outline: 1.5px solid var(--color-gold-light);
}

.couple-avatar-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-names {
  font-family: 'Playfair Display', serif;
  font-size: 35px;
  font-weight: 400;
  color: #613536;
  letter-spacing: 0.5px;
  line-height: 1.25;
  margin: 12px 0 6px;
}

.hero-date-text {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #613536;
  font-weight: 400;
  margin-bottom: 18px;
}

.couple-fullname {
  font-family: 'Playball', cursive, sans-serif;
  font-size: 30px;
  font-weight: 500;
  color: #613536;
  margin-bottom: 6px;
  line-height: 1.3;
}

.couple-parents {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.btn-social-ig {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-soft);
  color: var(--color-gold-dark);
  border: 1px solid var(--color-gold-light);
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-social-ig:hover {
  background: var(--color-gold-gradient);
  color: #fff;
  border-color: transparent;
}

.couple-separator {
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: var(--color-gold);
  line-height: 1;
  margin: 10px 0 25px;
}

/* ===================================================
   SECTION 4: EVENT DETAILS (ACARA)
   =================================================== */
.event-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(164, 132, 80, 0.2);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.event-badge-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-accent);
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 14px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.event-card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  margin-bottom: 12px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--color-text-main);
  margin-bottom: 6px;
  font-weight: 500;
}

.event-meta-item i {
  color: var(--color-gold);
}

.event-venue-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-top: 14px;
  margin-bottom: 4px;
}

.event-venue-address {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-maps {
  background: var(--color-gold-gradient);
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(164, 132, 80, 0.3);
  transition: all 0.3s ease;
}

.btn-maps:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(164, 132, 80, 0.4);
}

/* ===================================================
   SECTION 5: LOVE STORY TIMELINE
   =================================================== */
.timeline-wrapper {
  position: relative;
  max-width: 380px;
  margin: 30px auto 0;
  padding: 10px 0;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-gold-light), var(--color-gold), var(--color-gold-light));
}

.timeline-item {
  position: relative;
  padding-left: 55px;
  margin-bottom: 30px;
  text-align: left;
}

.timeline-node {
  position: absolute;
  left: 14px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--color-gold);
  box-shadow: 0 0 10px rgba(164, 132, 80, 0.4);
  z-index: 2;
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-gold-gradient);
  padding: 3px 12px;
  border-radius: 15px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.timeline-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(164, 132, 80, 0.15);
}

.timeline-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

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

/* ===================================================
   SECTION 6: PHOTO GALLERY & LIGHTBOX
   =================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 25px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  background: #e4dec8;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 41, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* LIGHTBOX MODAL */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.lightbox-img-wrapper {
  max-width: 90%;
  max-height: 80vh;
  position: relative;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  object-fit: contain;
}

.lightbox-close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close-btn:hover {
  background: var(--color-gold);
}

/* ===================================================
   SECTION 7: WEDDING GIFT (AMPLOP DIGITAL)
   =================================================== */
.gift-intro {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 25px;
  padding: 0 10px;
}

/* ATM BANK CARD */
.bank-card {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #2b2824 0%, #3e3933 60%, #1f1d1a 100%);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  color: #fff;
  text-align: left;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bank-card:hover {
  transform: translateY(-4px);
}

/* DANA CARD THEME */
.bank-card.dana {
  background: linear-gradient(135deg, #0e629d 0%, #118eea 55%, #054877 100%);
  box-shadow: 0 15px 35px rgba(17, 142, 234, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.bank-card.dana::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
}

.bank-card.dana .btn-copy-acc {
  background: linear-gradient(135deg, #00528a 0%, #00375c 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.bank-card.dana .btn-copy-acc:hover {
  background: linear-gradient(135deg, #00416e 0%, #002640 100%);
}

/* SEABANK CARD THEME */
.bank-card.seabank {
  background: linear-gradient(135deg, #c43209 0%, #ff5722 55%, #a82703 100%);
  box-shadow: 0 15px 35px rgba(255, 87, 34, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.bank-card.seabank::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
}

.bank-card.seabank .btn-copy-acc {
  background: linear-gradient(135deg, #871c00 0%, #571200 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.bank-card.seabank .btn-copy-acc:hover {
  background: linear-gradient(135deg, #6e1700 0%, #450e00 100%);
}

.bank-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(164, 132, 80, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bank-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.bank-logo-img {
  height: 30px;
  max-height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.bank-logo-dana {
  height: 28px;
}

.bank-logo-seabank {
  height: 32px;
}

.bank-name-text {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

.chip-img {
  width: 42px;
  height: auto;
}

.bank-acc-number {
  font-family: monospace;
  font-size: 1.35rem;
  letter-spacing: 3px;
  font-weight: 600;
  color: #f7ede2;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.bank-acc-holder {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #d1cbc4;
  margin-bottom: 18px;
}

.btn-copy-acc {
  background: var(--color-gold-gradient);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 12px rgba(164, 132, 80, 0.35);
  transition: all 0.3s ease;
}

.btn-copy-acc:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* PHYSICAL GIFT ACCORDION */
.gift-physical-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(164, 132, 80, 0.2);
  max-width: 340px;
  margin: 15px auto 0;
  text-align: center;
}

.btn-toggle-gift {
  background: transparent;
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold-dark);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.btn-toggle-gift:hover {
  background: var(--bg-accent);
}

.gift-address-content {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(164, 132, 80, 0.3);
  text-align: left;
}

.gift-address-content.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

.gift-address-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gift-address-text {
  font-size: 0.85rem;
  color: var(--color-text-main);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ===================================================
   SECTION 8: RSVP & WISHES GUESTBOOK
   =================================================== */
.rsvp-stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid rgba(164, 132, 80, 0.2);
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.rsvp-stats-pill span strong {
  color: var(--color-gold-dark);
}

.rsvp-form-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(164, 132, 80, 0.2);
  text-align: left;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #dfd9ce;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  background: #faf8f5;
  color: var(--color-text-main);
  transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(164, 132, 80, 0.15);
}

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

.btn-submit-rsvp {
  width: 100%;
  background: var(--color-gold-gradient);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(164, 132, 80, 0.3);
  transition: all 0.3s ease;
}

.btn-submit-rsvp:hover {
  box-shadow: 0 8px 24px rgba(164, 132, 80, 0.4);
}

.btn-submit-rsvp:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* WISHES STREAM */
.wishes-stream-container {
  text-align: left;
}

.wishes-stream-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wishes-count-tag {
  font-size: 0.8rem;
  background: var(--bg-accent);
  color: var(--color-gold-dark);
  padding: 3px 10px;
  border-radius: 12px;
  font-family: var(--font-sans);
}

.wishes-scroll-box {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.wishes-scroll-box::-webkit-scrollbar {
  width: 5px;
}
.wishes-scroll-box::-webkit-scrollbar-thumb {
  background: var(--color-gold-light);
  border-radius: 10px;
}

.wish-bubble {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(164, 132, 80, 0.12);
  margin-bottom: 12px;
  position: relative;
  animation: fadeIn 0.5s ease;
}

.wish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wish-author {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.wish-presence-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.wish-presence-badge.hadir {
  background: #e8f5e9;
  color: #2e7d32;
}

.wish-presence-badge.tidak {
  background: #ffebee;
  color: #c62828;
}

.wish-presence-badge.ragu {
  background: #fff8e1;
  color: #f57f17;
}

.wish-message {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
  word-break: break-word;
}

.wish-time {
  font-size: 0.72rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===================================================
   SECTION 9: CLOSING & PROTOCOL
   =================================================== */
.closing-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-main);
  margin-bottom: 25px;
}

.closing-salutation {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 15px;
}

.closing-names {
  font-family: var(--font-script);
  font-size: 3.2rem;
  color: var(--color-gold-dark);
  line-height: 1.1;
  margin-bottom: 30px;
}

.closing-footer-note {
  font-size: 0.75rem;
  color: var(--color-text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-top: 1px solid rgba(164, 132, 80, 0.15);
  padding-top: 25px;
  padding-bottom: 50px;
}

/* ===================================================
   FLOATING MUSIC PLAYER
   =================================================== */
.floating-music-btn {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 46px;
  height: 46px;
  background: var(--color-gold-gradient);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(164, 132, 80, 0.45);
  z-index: 9999;
  transition: all 0.3s ease;
  outline: 2px solid rgba(255,255,255,0.6);
}

.floating-music-btn.playing {
  animation: musicSpin 6s linear infinite;
}

@keyframes musicSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===================================================
   FLOATING BOTTOM NAVIGATION
   =================================================== */
.bottom-nav-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(164, 132, 80, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border-radius: 35px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9998;
  max-width: 90%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
}

.bottom-nav-bar.show {
  opacity: 1;
  pointer-events: auto;
}

.nav-item {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.25s ease;
  padding: 4px;
}

.nav-item:hover, .nav-item.active {
  color: var(--color-gold-dark);
  transform: scale(1.15);
}

/* TOAST NOTIFICATION */
.toast-msg {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: #2d2926;
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* KEYFRAMES */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
