:root{
  --duration-fade-out: 700ms;
  --duration-fade-in: 900ms;
  --duration-text-stagger: 550ms;
  --ease-standard: cubic-bezier(.4,0,.2,1);
  --color-ink: #f7f5f0;
  --color-ink-subtle: rgba(247, 245, 240, 0.85);
  --color-gold-tint: #f3e6cf;
  --font-serif: 'Cormorant Garamond', serif;
  --font-script: 'Great Vibes', cursive;
  --font-cute: 'Playball', cursive;
  --font-sans: 'Quicksand', sans-serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }

html, body{
  height:100%;
  overflow:hidden; /* locked until the hero section activates, see script.js */
  font-family: var(--font-serif);
  background-color: #050507;
  background-image: url('assets/images/hero-poster.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
}

/* On desktop, add dark ambient overlay on left side background */
@media (min-width: 768px){
  body::before{
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 0;
    pointer-events: none;
  }
}

/* ---------- SCREEN BASE (cover & hero share this class) ---------- */
.screen{
  position:fixed;
  inset:0;
  width:100%;
  height:100dvh; /* dynamic viewport height — important for mobile browser chrome */
  padding-top:env(safe-area-inset-top);
  padding-bottom:env(safe-area-inset-bottom);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:opacity var(--duration-fade-in) var(--ease-standard);
  z-index:1;
}

.screen.is-active{
  opacity:1;
  pointer-events:auto;
  z-index:2;
}

/* When hero transitions into normal scroll document flow */
#hero.in-flow{
  position:relative;
  inset:auto;
  height:100dvh;
  min-height:100dvh; /* Ensure it stays identical */
  width:100%;
  z-index:1;
}

@media (min-width: 768px) {
  #hero.in-flow{
    margin-left: auto;
    margin-right: 0;
    max-width: 480px; /* Force it to have the identical max-width as the cards and other screens */
  }
}

/* While the cover is fading out, use a shorter, snappier transition */
.screen.is-leaving{
  opacity:0;
  transition:opacity var(--duration-fade-out) var(--ease-standard);
  z-index:2; /* keep it stacked above briefly so the cross-fade reads as one blend */
}

/* ---------- COVER ---------- */
.cover__bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.cover__content{
  position:relative;
  z-index:2;
  text-align:center;
  color:var(--color-ink);
  padding:0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow{
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 2.8vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold-tint);
  opacity: 0.9;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.title-romantic,
.title-serif{
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 14vw, 5.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: #fffaf0;
  text-shadow: 0 3px 18px rgba(0,0,0,0.6), 0 0 30px rgba(255, 238, 205, 0.25);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

.section-title{
  font-family: var(--font-cute);
  font-size: clamp(2.2rem, 8vw, 2.8rem);
  color: var(--color-gold-tint);
  margin-top: 8px;
}

.cover__to-label{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--color-ink-subtle);
  margin-bottom: 6px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.cover__guest-name{
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.btn-open{
  position:relative;
  padding:14px 34px;
  border:1px solid rgba(255, 255, 255, 0.4);
  border-radius:999px;
  background: rgba(247, 243, 235, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color:#24201c;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor:pointer;
  transition: transform .25s var(--ease-standard), background .25s, box-shadow .25s, opacity .25s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.btn-open:hover{
  background: #ffffff;
  transform: scale(1.03);
}
.btn-open:active{ transform:scale(.97); }

.btn-open.is-loading .btn-open__label{ opacity:.4; }
.btn-open.is-loading{ pointer-events:none; }

.btn-open__spinner{
  display:none;
  position:absolute;
  right:14px; top:50%;
  width:14px; height:14px;
  margin-top:-7px;
  border:2px solid transparent;
  border-top-color:#2a2a2a;
  border-radius:50%;
}
.btn-open.is-loading .btn-open__spinner{
  display:inline-block;
  animation:spin .6s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ---------- HERO ---------- */
.hero__bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover; /* prevents letterboxing/pillarboxing on any device */
  object-position:center;
}

.hero__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(10, 10, 14, 0.4) 0%,
    rgba(10, 10, 14, 0.25) 45%,
    rgba(10, 10, 14, 0.65) 100%
  );
  z-index:1;
}
/* ---------- BIRDS ANIMATION LAYER ---------- */
.birds-layer{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden;
  pointer-events:none;
  z-index:1;
  opacity:0;
  transition:opacity 1.2s var(--ease-standard) 0.3s;
}

#hero.is-active .birds-layer,
.hero.is-active .birds-layer{
  opacity:1;
}

.bird{
  position:absolute;
  top:0;
  left:0;
  width:38px;
  height:20px;
  pointer-events:none;
  will-change:transform, opacity;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.bird__svg{
  width:100%;
  height:100%;
  overflow:visible;
}

.bird__wing,
.bird__body{
  fill:#ffffff;
}

.bird__body{
  fill:#f4f4f6;
}

.bird__wing--left{
  transform-origin: 32px 16px;
  animation: wingFlapLeft 0.32s ease-in-out infinite alternate;
}

.bird__wing--right{
  transform-origin: 32px 16px;
  animation: wingFlapRight 0.32s ease-in-out infinite alternate;
}

@keyframes wingFlapLeft{
  0%{ transform: rotate(-24deg) scaleY(0.7); }
  100%{ transform: rotate(32deg) scaleY(1.15); }
}

@keyframes wingFlapRight{
  0%{ transform: rotate(24deg) scaleY(0.7); }
  100%{ transform: rotate(-32deg) scaleY(1.15); }
}

/* Individual Bird Flight Paths & Timings */
.bird--1{
  animation: birdFlight1 9.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  animation-delay: 0.2s;
}

.bird--2{
  width:30px;
  height:16px;
  opacity:0.85;
  animation: birdFlight2 12s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  animation-delay: 2.2s;
}
.bird--2 .bird__wing--left{ animation-duration: 0.28s; }
.bird--2 .bird__wing--right{ animation-duration: 0.28s; }

.bird--3{
  width:22px;
  height:12px;
  opacity:0.75;
  animation: birdFlight3 14s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  animation-delay: 4.5s;
}
.bird--3 .bird__wing--left{ animation-duration: 0.24s; }
.bird--3 .bird__wing--right{ animation-duration: 0.24s; }

.bird--4{
  width:34px;
  height:18px;
  opacity:0.9;
  animation: birdFlight4 10.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  animation-delay: 1.0s;
}
.bird--4 .bird__wing--left{ animation-duration: 0.35s; }
.bird--4 .bird__wing--right{ animation-duration: 0.35s; }

.bird--5{
  width:26px;
  height:14px;
  opacity:0.8;
  animation: birdFlight5 13s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  animation-delay: 6.8s;
}
.bird--5 .bird__wing--left{ animation-duration: 0.3s; }
.bird--5 .bird__wing--right{ animation-duration: 0.3s; }

@keyframes birdFlight1{
  0%{
    transform: translate3d(-60px, 32vh, 0) scale(0.6) rotate(-8deg);
    opacity: 0;
  }
  12%{
    opacity: 0.95;
  }
  50%{
    transform: translate3d(48vw, 20vh, 0) scale(0.85) rotate(-3deg);
  }
  85%{
    opacity: 0.9;
  }
  100%{
    transform: translate3d(calc(100vw + 60px), 10vh, 0) scale(1.05) rotate(4deg);
    opacity: 0;
  }
}

@keyframes birdFlight2{
  0%{
    transform: translate3d(-60px, 45vh, 0) scale(0.5) rotate(-12deg);
    opacity: 0;
  }
  15%{
    opacity: 0.85;
  }
  45%{
    transform: translate3d(40vw, 26vh, 0) scale(0.65) rotate(-5deg);
  }
  85%{
    opacity: 0.8;
  }
  100%{
    transform: translate3d(calc(100vw + 60px), 14vh, 0) scale(0.8) rotate(2deg);
    opacity: 0;
  }
}

@keyframes birdFlight3{
  0%{
    transform: translate3d(-50px, 22vh, 0) scale(0.4) rotate(-4deg);
    opacity: 0;
  }
  15%{
    opacity: 0.75;
  }
  55%{
    transform: translate3d(52vw, 15vh, 0) scale(0.48) rotate(-1deg);
  }
  85%{
    opacity: 0.7;
  }
  100%{
    transform: translate3d(calc(100vw + 50px), 9vh, 0) scale(0.55) rotate(3deg);
    opacity: 0;
  }
}

@keyframes birdFlight4{
  0%{
    transform: translate3d(-60px, 38vh, 0) scale(0.65) rotate(-10deg);
    opacity: 0;
  }
  10%{
    opacity: 0.9;
  }
  50%{
    transform: translate3d(45vw, 22vh, 0) scale(0.8) rotate(-2deg);
  }
  85%{
    opacity: 0.85;
  }
  100%{
    transform: translate3d(calc(100vw + 60px), 12vh, 0) scale(0.95) rotate(5deg);
    opacity: 0;
  }
}

@keyframes birdFlight5{
  0%{
    transform: translate3d(-50px, 50vh, 0) scale(0.45) rotate(-14deg);
    opacity: 0;
  }
  15%{
    opacity: 0.8;
  }
  50%{
    transform: translate3d(42vw, 30vh, 0) scale(0.58) rotate(-6deg);
  }
  85%{
    opacity: 0.75;
  }
  100%{
    transform: translate3d(calc(100vw + 50px), 18vh, 0) scale(0.7) rotate(0deg);
    opacity: 0;
  }
}


.hero__content{
  position:relative;
  z-index:2;
  text-align:center;
  color:var(--color-ink);
  padding:0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__date{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
  letter-spacing: 0.08em;
  color: var(--color-gold-tint);
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* hero text fades in later, and staggered — not all at once */
.hero__fade-item{
  opacity:0;
  transform:translateY(12px);
  transition:opacity var(--duration-text-stagger) var(--ease-standard),
             transform var(--duration-text-stagger) var(--ease-standard);
}
.hero.is-revealed .hero__fade-item,
#hero.is-revealed .hero__fade-item{
  opacity:1;
  transform:translateY(0);
}
.hero__fade-item:nth-child(1){ transition-delay:.1s; }
.hero__fade-item:nth-child(2){ transition-delay:.25s; }
.hero__fade-item:nth-child(3){ transition-delay:.4s; }

.scroll-cue{
  position:absolute;
  bottom:28px;
  left:50%;
  transform:translateX(-50%);
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  background:transparent;
  border:none;
  padding:8px;
  cursor:pointer;
  opacity:0;
  transition:opacity .6s ease 1.6s, transform 0.3s ease;
}
#hero.is-revealed .scroll-cue,
.hero.is-revealed .scroll-cue{
  opacity:1;
}
.scroll-cue:hover{
  transform:translateX(-50%) translateY(3px);
}

/* Mouse outline */
.mouse-icon{
  width:22px;
  height:36px;
  border:2px solid #fffaf0;
  border-radius:12px;
  position:relative;
  display:flex;
  justify-content:center;
  background:rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 3px 18px rgba(0,0,0,0.6), 0 0 15px rgba(255, 238, 205, 0.25);
}

/* Mouse wheel scroll dot */
.mouse-wheel{
  width:3px;
  height:6px;
  background:#fffaf0;
  border-radius:2px;
  margin-top:6px;
  box-shadow: 0 0 8px rgba(255, 250, 240, 0.8);
  animation:mouseWheel 1.8s ease-in-out infinite;
}

@keyframes mouseWheel{
  0%{
    opacity:1;
    transform:translateY(0);
  }
  60%{
    opacity:0;
    transform:translateY(10px);
  }
  100%{
    opacity:0;
    transform:translateY(0);
  }
}

/* Chevron arrow below mouse */
.scroll-chevrons{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.chevron{
  width:7px;
  height:7px;
  border-right:2px solid #fffaf0;
  border-bottom:2px solid #fffaf0;
  transform:rotate(45deg);
  opacity:0.8;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  animation:chevronPulse 1.8s ease-in-out infinite;
}

@keyframes chevronPulse{
  0%, 100%{
    opacity:0.3;
    transform:rotate(45deg) translate(0, 0);
  }
  50%{
    opacity:1;
    transform:rotate(45deg) translate(2px, 2px);
  }
}

/* ---------- MUSIC TOGGLE BUTTON ---------- */
.music-toggle{
  position:fixed;
  bottom:24px;
  right:24px;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.3);
  background:rgba(18, 20, 24, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99;
  cursor:pointer;
  box-shadow:0 4px 20px rgba(0,0,0,0.4);
  opacity:0;
  pointer-events:none;
  transition:opacity 0.6s ease, transform 0.3s ease;
}
.music-toggle.is-visible{
  opacity:1;
  pointer-events:auto;
}
.music-toggle.is-playing .music-toggle__icon{
  animation:spin 4s linear infinite;
}

/* ---------- MAIN CONTENT WRAPPER & SECTIONS ---------- */
.main-content{
  position:relative;
  z-index:2;
  display:none;
  background-color: #0b0e12;
  background-image:
    linear-gradient(180deg, rgba(8, 10, 14, 0.55) 0%, rgba(13, 16, 22, 0.65) 40%, rgba(8, 10, 14, 0.75) 100%),
    url('assets/images/content-bg.webp');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color:var(--color-ink);
  overflow-x:hidden;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.6);
}

.main-content.is-visible{
  display:block;
}

/* ---------- BUTTERFLIES ANIMATION LAYER ---------- */
.butterflies-layer{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:1; /* stays behind content cards so text remains 100% legible */
  overflow:hidden;
}

.butterfly{
  position:absolute;
  width:24px;
  height:20px;
  opacity:0.6;
  filter: drop-shadow(0 2px 6px rgba(243, 230, 207, 0.4));
  pointer-events:none;
  will-change:transform, opacity;
}

.butterfly__svg{
  width:100%;
  height:100%;
}

.butterfly__wing{
  fill: #f3e6cf;
}
.butterfly__body{
  fill: #d4c29d;
}

.butterfly__wing--left{
  transform-origin: 25px 20px;
  animation: bFlapLeft 0.28s ease-in-out infinite alternate;
}
.butterfly__wing--right{
  transform-origin: 25px 20px;
  animation: bFlapRight 0.28s ease-in-out infinite alternate;
}

@keyframes bFlapLeft{
  0%{ transform: scaleX(0.2) rotate(-10deg); }
  100%{ transform: scaleX(1.0) rotate(15deg); }
}
@keyframes bFlapRight{
  0%{ transform: scaleX(0.2) rotate(10deg); }
  100%{ transform: scaleX(1.0) rotate(-15deg); }
}

/* Butterfly Gentle Flight Paths */
.butterfly--1{
  top: 8%;
  left: 5%;
  animation: bFlight1 14s ease-in-out infinite;
}
.butterfly--2{
  top: 32%;
  right: 6%;
  width: 20px;
  height: 16px;
  opacity: 0.5;
  animation: bFlight2 18s ease-in-out infinite 2s;
}
.butterfly--3{
  top: 58%;
  left: 8%;
  width: 26px;
  height: 22px;
  opacity: 0.55;
  animation: bFlight1 16s ease-in-out infinite 5s;
}
.butterfly--4{
  top: 82%;
  right: 8%;
  width: 22px;
  height: 18px;
  opacity: 0.45;
  animation: bFlight2 15s ease-in-out infinite 1s;
}

@keyframes bFlight1{
  0%{ transform: translate(0, 0) rotate(0deg); }
  25%{ transform: translate(35px, -45px) rotate(15deg); }
  50%{ transform: translate(70px, -20px) rotate(-10deg); }
  75%{ transform: translate(30px, 35px) rotate(10deg); }
  100%{ transform: translate(0, 0) rotate(0deg); }
}

@keyframes bFlight2{
  0%{ transform: translate(0, 0) rotate(0deg); }
  25%{ transform: translate(-40px, -30px) rotate(-15deg); }
  50%{ transform: translate(-65px, 25px) rotate(12deg); }
  75%{ transform: translate(-25px, 45px) rotate(-8deg); }
  100%{ transform: translate(0, 0) rotate(0deg); }
}

.section{
  padding: 64px 24px;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* Scroll reveal effect */
.reveal-on-scroll{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-standard), transform 0.9s var(--ease-standard);
}
.reveal-on-scroll.is-revealed{
  opacity: 1;
  transform: translateY(0);
}

.section-header{
  text-align: center;
  margin-bottom: 36px;
}
.section-title{
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  margin-top: 4px;
  margin-bottom: 12px;
}
.section-desc{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-ink-subtle);
  max-width: 440px;
  margin: 0 auto;
}

/* Quote Section */
.section--quote{
  padding-top: 80px;
  padding-bottom: 40px;
}
.quote-card{
  text-align: center;
  padding: 32px 24px;
  background: rgba(12, 14, 18, 0.45);
  border: 1px solid rgba(243, 230, 207, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.ornament{
  color: var(--color-gold-tint);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  opacity: 0.7;
}
.ornament--top{ margin-bottom: 16px; }
.ornament--bottom{ margin-top: 16px; }
.quote-text{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #f0ece1;
  margin-bottom: 14px;
}
.quote-source{
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-tint);
  opacity: 0.85;
}

/* Mempelai / Couple Section */
.couple-grid{
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
.couple-card{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.couple-card__avatar-wrap{
  position: relative;
  width: 170px;
  height: 220px;
  border-radius: 100px 100px 20px 20px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.couple-card__avatar{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.couple-card__ring{
  position: absolute;
  inset: 0;
  border: 1px solid rgba(243, 230, 207, 0.3);
  border-radius: inherit;
  pointer-events: none;
}
.couple-card__name{
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.couple-card__parent{
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-ink-subtle);
  margin-bottom: 14px;
}
/* Couple Instagram Button */
.btn-social{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(243, 230, 207, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.btn-social::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(45deg, rgba(243, 230, 207, 0.15), rgba(225, 48, 108, 0.2));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn-social:hover::before{
  opacity: 1;
}

.btn-social:hover{
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(243, 230, 207, 0.7);
  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.25), 0 2px 10px rgba(243, 230, 207, 0.2);
}

.btn-social__icon{
  font-size: 1.15rem;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(220, 39, 67, 0.35));
  transition: transform 0.35s ease;
}

.btn-social:hover .btn-social__icon{
  transform: rotate(8deg) scale(1.15);
}

.btn-social__text{
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-ink);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

/* Couple Divider Symbol */
.couple-divider{
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.couple-divider__symbol{
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--color-gold-tint);
  opacity: 0.85;
  text-shadow: 0 0 16px rgba(243, 230, 207, 0.5);
}

.section--couple{
  padding-bottom: 40px;
}
.section--events{
  padding-top: 40px;
}
/* Acara / Events Section */
.countdown-card{
  background: rgba(12, 14, 18, 0.45);
  border: 1px solid rgba(243, 230, 207, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px 16px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.countdown-label{
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-tint);
  margin-bottom: 16px;
}
.countdown-grid{
  display: flex;
  justify-content: center;
  gap: 12px;
}
.countdown-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 64px;
}
.countdown-number{
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
}
.countdown-unit{
  font-family: var(--font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink-subtle);
  margin-top: 2px;
}

.events-grid{
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.event-card{
  background: rgba(12, 14, 18, 0.45);
  border: 1px solid rgba(243, 230, 207, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.event-card__badge{
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-tint);
  background: rgba(243, 230, 207, 0.08);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid rgba(243, 230, 207, 0.2);
}
.event-card__day{
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 6px;
}
.event-card__time{
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-gold-tint);
  margin-bottom: 16px;
}
.event-card__divider{
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 16px;
}
.event-card__venue{
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.event-card__address{
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-ink-subtle);
  margin-bottom: 20px;
}
.btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-secondary:hover{
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Gallery Section */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery-item{
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img{
  transform: scale(1.06);
}

/* RSVP / Reservasi & Wishes Forms */
.rsvp-card,
.wishes-wrapper{
  background: rgba(12, 14, 18, 0.45);
  border: 1px solid rgba(243, 230, 207, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 28px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.rsvp-form,
.wishes-form{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group{
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.form-group label{
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-subtle);
}
.form-group input,
.form-group select,
.form-group textarea{
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline: none;
  border-color: var(--color-gold-tint);
}
.form-group select option{
  background: #15181e;
  color: #fff;
}
.btn-primary{
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: var(--color-gold-tint);
  color: #1a1714;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.btn-primary:hover{
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.2);
}
.form-status{
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(46, 125, 50, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #a5d6a7;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  text-align: center;
}

/* Wishes List */
.wishes-list{
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}
.wishes-list::-webkit-scrollbar{
  width: 4px;
}
.wishes-list::-webkit-scrollbar-thumb{
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.wish-item{
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
}
.wish-item__header{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.wish-item__author{
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-gold-tint);
}
.wish-item__time{
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
}
.wish-item__text{
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-ink-subtle);
}

/* Footer */
.wedding-footer{
  text-align: center;
  padding: 80px 24px 60px;
  background: #060709;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-thankyou{
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-tint);
  margin-bottom: 8px;
}
.footer-couple{
  font-size: 3.2rem;
  color: #fff;
  margin-bottom: 10px;
}
.footer-family{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-ink-subtle);
  margin-bottom: 36px;
}
.footer-copy{
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- CARAOKE SUBTITLES WIDGET ---------- */
.lyrics-container {
  position: fixed;
  bottom: 80px;
  right: 24px;
  left: 24px;
  height: auto;
  min-height: 48px;
  padding: 10px 18px;
  background: rgba(12, 14, 18, 0.78);
  border: 1px solid rgba(243, 230, 207, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 98;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lyrics-container.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lyrics-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 16px;
  height: 16px;
}

.lyrics-wave span {
  display: block;
  width: 3px;
  height: 4px;
  background-color: var(--color-gold-tint);
  border-radius: 3px;
  animation: wave 1.2s ease-in-out infinite;
}

.lyrics-wave span:nth-child(2) {
  animation-delay: 0.2s;
}

.lyrics-wave span:nth-child(3) {
  animation-delay: 0.4s;
}

.lyrics-container:not(.is-playing) .lyrics-wave span {
  animation-play-state: paused;
  height: 4px;
}

@keyframes wave {
  0%, 100% {
    height: 4px;
  }
  50% {
    height: 16px;
  }
}

.lyrics-text {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  flex: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lyrics-text.changing {
  opacity: 0;
  transform: translateY(-4px);
}

/* ---------- AMBIENT FLOATING LYRICS ---------- */
.ambient-lyrics-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.ambient-lyric-item {
  position: fixed;
  bottom: 15dvh; /* Start lower */
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 5.5vw, 2.3rem);
  color: var(--color-gold-tint);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(243, 230, 207, 0.2);
  animation: driftUp 8.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; /* Longer, smoother float */
  z-index: 1;
}

@keyframes driftUp {
  0% {
    opacity: 0;
    transform: translateY(150px) rotate(-5deg);
  }
  20% {
    opacity: 0.22; /* Elegant gold whisper */
  }
  80% {
    opacity: 0.22;
  }
  100% {
    opacity: 0;
    transform: translateY(-50dvh) rotate(5deg); /* Floats up to 70% height before fading */
  }
}

/* ---------- FLOATING BOTTOM NAV BAR ---------- */
.floating-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  width: calc(100% - 48px);
  max-width: 400px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(12, 14, 18, 0.75);
  border: 1px solid rgba(243, 230, 207, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 10px 14px;
  border-radius: 35px;
  z-index: 97;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.floating-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.floating-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.floating-nav__link i {
  font-size: 1.15rem;
  transition: transform 0.3s ease;
}

.floating-nav__link:hover,
.floating-nav__link.is-active {
  color: var(--color-gold-tint);
}

.floating-nav__link:hover i,
.floating-nav__link.is-active i {
  transform: translateY(-2px);
}

/* ---------- RESPONSIVE ---------- */
@media (min-width:768px){
  /* Desktop layout: align invitation container to right edge, aligned like mobile frame */
  .screen{
    max-width: 480px;
    margin: 0;
    left: auto;
    right: 0;
    transform: none;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
  }
  
  .lyrics-container{
    max-width: 432px;
    margin: 0;
    left: auto;
    right: 24px;
  }
  .floating-nav{
    left: auto;
    right: 40px;
    transform: translateY(30px);
    width: 400px;
  }
  .floating-nav.is-visible {
    transform: translateY(0);
  }
  
  .main-content{
    max-width: 480px;
    margin-left: auto;
    margin-right: 0;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
  }
}

@media (prefers-reduced-motion: reduce){
  .screen, .hero__fade-item, .scroll-cue__icon, .bird, .bird__wing--left, .bird__wing--right{
    transition:none !important;
    animation:none !important;
  }
}
