* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --gold: #e8c77f;
  --gold-bright: #ffe6a4;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================
   LOCK SCROLL BEFORE OPENING INVITATION
========================================== */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
      -webkit-text-size-adjust: 100%;
}

/* Sebelum undangan dibuka */
body:not(.invitation-open) {
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
}

/* Setelah tombol TAP TO OPEN ditekan */
body.invitation-open {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: auto;
}

/* Opening tetap setinggi layar */
.opening-screen {
     height: 100svh;
    min-height: 100svh;
    overflow: hidden;
}

body {
    margin: 0;
    min-height: 100dvh;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
}

.invitation-shell {
    position: relative;
    width: min(100%, 430px);
    min-height: 100dvh;
    height: auto;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
    box-shadow: 0 0 60px rgba(0,0,0,.75);
}

button { font: inherit; }
.opening-screen {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  background: #080406;
  isolation: isolate;
  z-index: 1;
}

/* Video mengisi section opening, tetapi section tetap berada di alur halaman. */
.reveal-screen {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}
.opening-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.opening-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,2,4,.42), transparent 35%, transparent 58%, rgba(5,2,4,.42)),
    radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,.2) 100%);
  transition: opacity .8s ease;
}

/* Ornamen bunga berada di atas poster video, tetapi di bawah judul dan tombol. */
.flower-corner {
  position: absolute;
  z-index: 2;
  bottom: -2.5%;
  width: 70%;
  height: 45%;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.flower-left {
  left: -12%;
  justify-content: flex-start;
  transform-origin: 12% 100%;
  animation: flowerRiseLeft 3.6s cubic-bezier(.22, .61, .36, 1) .18s both;
}

.flower-right {
  right: -12%;
  justify-content: flex-end;
  transform-origin: 88% 100%;
  animation: flowerRiseRight 3.8s cubic-bezier(.22, .61, .36, 1) .38s both;
}
.flower-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 5px 14px rgba(0,0,0,.28));
  transform-origin: 50% 100%;
}
.flower-left .flower-art {
  animation: flowerSwayLeft 1.5s ease-in-out 1.3s infinite alternate;
}

.flower-right .flower-art {
  animation: flowerSwayRight 1s ease-in-out 1.5s infinite alternate;
}
@keyframes flowerRiseLeft {
  0% {
    opacity: 0;
    transform: translate3d(-4px, 72%, 0) rotate(-0.5deg) scale(.985);
  }
  75% {
    opacity: 1;
    transform: translate3d(0, 1%, 0) rotate(-0.2deg) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes flowerRiseRight {
  0% {
    opacity: 0;
    transform: translate3d(4px, 72%, 0) rotate(0.5deg) scale(.985);
  }
  75% {
    opacity: 1;
    transform: translate3d(0, 1%, 0) rotate(0.2deg) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}
@keyframes flowerSwayLeft {
  from {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  to {
    transform: rotate(0.9deg) translate3d(1px, -2px, 0);
  }
}

@keyframes flowerSwayRight {
  from {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  to {
    transform: rotate(-0.9deg) translate3d(-1px, -2px, 0);
  }
}
.opening-copy {
  position: absolute;
  z-index: 4;
  top: 7%;
  left: 6%;
  right: 6%;
  text-align: center;
  color: var(--gold-bright);
  text-shadow: 0 2px 16px rgba(0,0,0,.85);
  transition: opacity .7s ease, transform .8s ease;
}
.crown {
  display: block;
  color: var(--gold);
  font-size: 39px;
  line-height: 1;
  margin-bottom: 10px;
}
.eyebrow {
  font: 9px Arial, sans-serif;
  letter-spacing: .24em;
  color: #e4c88c;
}
.opening-copy h1 {
  margin: 12px 0;
  font-size: clamp(39px, 10vw, 51px);
  line-height: .91;
  font-weight: 400;
  font-style: italic;
}
.ornament {
  color: var(--gold);
  margin: 18px 0;
  letter-spacing: .12em;
}
.play-area {
  position: absolute;
  z-index: 5;
  left: 7%;
  right: 7%;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity .55s ease, transform .65s ease;
}
.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: min(100%, 300px);
  min-height: 62px;
  padding: 12px 24px;
  border: 1.5px solid #f4ca75;
  border-radius: 60px;
  color: #ffdfa0;
  background: linear-gradient(110deg, rgba(43,8,14,.94), rgba(12,4,7,.96));
  box-shadow: 0 0 10px rgba(241,179,78,.9), 0 0 28px rgba(224,151,52,.42), inset 0 0 14px rgba(255,207,123,.1);
  font: 14px Arial, sans-serif;
  letter-spacing: .2em;
  cursor: pointer;
  animation: buttonGlow 2.4s ease-in-out infinite alternate;
  -webkit-tap-highlight-color: transparent;
}
.play-symbol { font-size: 13px; }
@keyframes buttonGlow {
  to { box-shadow: 0 0 15px #ffdc91, 0 0 38px rgba(224,151,52,.68), inset 0 0 18px rgba(255,207,123,.16); }
}
.play-hint {
  margin: 13px 0 0;
  color: rgba(255,224,165,.9);
  font: 10px Arial, sans-serif;
  letter-spacing: .13em;
  text-shadow: 0 2px 8px #000;
  text-align: center;
}
.opening-screen.is-playing .play-area,
.opening-screen.is-playing .opening-copy {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.opening-screen.is-playing .opening-shade { opacity: .35; }
.skip-button {
  position: absolute;
  z-index: 6;
  top: max(18px, env(safe-area-inset-top));
  right: 16px;
  padding: 9px 15px;
  color: #f5d995;
  background: rgba(20,5,10,.62);
  border: 1px solid rgba(232,199,127,.65);
  border-radius: 30px;
  font: 12px Arial, sans-serif;
  cursor: pointer;
}
.skip-button span { font-size: 18px; margin-left: 4px; }
.video-fallback {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at center, #3b0a18, #080406 70%);
}
.fallback-card {
  width: 100%;
  padding: 30px 22px;
  text-align: center;
  border: 1px solid rgba(232,199,127,.65);
  border-radius: 18px;
  background: rgba(15,5,9,.92);
}
.fallback-crown { color: var(--gold); font-size: 36px; }
.fallback-card h2 { font-size: 27px; font-weight: 500; }
.fallback-card p { color: #d8c6a7; font: 13px/1.65 Arial,sans-serif; }
.fallback-card code { color: var(--gold-bright); }
.retry-button {
  display: block;
  width: 100%;
  margin-top: 13px;
  padding: 12px;
  border: 1px solid var(--gold);
  border-radius: 30px;
  color: #210a0e;
  background: linear-gradient(110deg,#f8d995,#b98235);
  cursor: pointer;
}
.reveal-screen {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(111,18,39,.8), transparent 52%),
    linear-gradient(180deg,#10060a,#050304 80%);
}
.reveal-glow {
  position: absolute;
  width: 85%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(220,157,65,.12);
  filter: blur(55px);
  animation: breathe 4s ease-in-out infinite alternate;
}
@keyframes breathe { to { transform: scale(1.18); opacity: .5; } }
.reveal-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px;
  animation: revealUp 1.1s both;
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal-content h1 {
  font-size: clamp(43px,12vw,60px);
  line-height: .9;
  font-weight: 400;
  font-style: italic;
  margin: 20px 0;
  color: #f5d99e;
}
.birthday-name { font-size: 36px; font-style: italic; color: #fff0d0; margin: 12px 0; }
.birthday-age { font: 9px Arial,sans-serif; letter-spacing: .24em; color: #d9bd81; }
.continue-button {
  margin-top: 32px;
  padding: 14px 28px;
  border: 1px solid var(--gold);
  border-radius: 40px;
  color: #ffe8b6;
  background: linear-gradient(110deg,rgba(116,14,36,.85),rgba(32,5,12,.9));
  cursor: pointer;
  font-size: 17px;
}
.continue-button span { margin-left: 12px; }
.replay-button {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  border: 0;
  color: #cbb78e;
  background: transparent;
  font: 12px Arial,sans-serif;
  cursor: pointer;
}
[hidden] { display: none !important; }
@media (min-width: 600px) {
  .invitation-shell {
    border-left: 1px solid rgba(232,199,127,.12);
    border-right: 1px solid rgba(232,199,127,.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 360px) {
  .flower-corner { width: 74%; height: 39%; bottom: -1.5%; }
  .play-area { bottom: 7%; }
}
@media (min-width: 600px) {
  .flower-corner { height: 43%; }
}
@media (prefers-reduced-motion: reduce) {
  .flower-left, .flower-right, .flower-art { animation: none !important; opacity: 1; transform: none; }
}


/* =================================
   FALLING ROSE PETALS
================================= */

.petal-rain {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
    opacity: 1;
    transition: opacity 1s ease;
}

/* Bentuk dasar kelopak */
.petal {
    position: absolute;
    top: -12%;
    display: block;
    border-radius: 85% 15% 70% 30% / 65% 35% 65% 35%;

    background:
        radial-gradient(
            ellipse at 35% 25%,
            #ff8991 0%,
            #e83b4c 22%,
            #a80025 62%,
            #570012 100%
        );

    box-shadow:
        inset 1px 1px 3px rgba(255,255,255,.25),
        1px 2px 5px rgba(0,0,0,.2);

    opacity: 0;
    will-change: transform, opacity;

    animation:
        petalFall var(--fall-time) linear
        var(--fall-delay) infinite;
}

/* Kelopak kecil */
.petal-1 {
    left: 16%;
    width: 9px;
    height: 16px;

    --fall-time: 9s;
    --fall-delay: -2s;

    --drift-a: 15px;
    --drift-b: -10px;
    --drift-c: 18px;
    --drift-d: -5px;
}

/* Kelopak sedang */
.petal-2 {
    left: 36%;
    width: 13px;
    height: 21px;

    --fall-time: 12s;
    --fall-delay: -7s;

    --drift-a: -18px;
    --drift-b: 12px;
    --drift-c: -15px;
    --drift-d: 8px;
}

/* Kelopak kecil */
.petal-3 {
    left: 57%;
    width: 8px;
    height: 14px;

    --fall-time: 10s;
    --fall-delay: -4s;

    --drift-a: 12px;
    --drift-b: -14px;
    --drift-c: 10px;
    --drift-d: -12px;
}

/* Kelopak besar */
.petal-4 {
    left: 76%;
    width: 15px;
    height: 25px;

    --fall-time: 14s;
    --fall-delay: -10s;

    --drift-a: -20px;
    --drift-b: 16px;
    --drift-c: -12px;
    --drift-d: 15px;
}

/* Kelopak sedang */
.petal-5 {
    left: 91%;
    width: 11px;
    height: 18px;

    --fall-time: 8.5s;
    --fall-delay: -5s;

    --drift-a: -12px;
    --drift-b: 15px;
    --drift-c: -18px;
    --drift-d: 10px;
}

/* Gerakan jatuh dan berputar */
@keyframes petalFall {

    0% {
        transform: translate3d(0, -5vh, 0) rotate(0deg);
        opacity: 0;
    }

    8% {
        opacity: .9;
    }

    25% {
        transform: translate3d(var(--drift-a), 25vh, 0)
                   rotate(120deg);
        opacity: .85;
    }

    50% {
        transform: translate3d(var(--drift-b), 50vh, 0)
                   rotate(250deg);
        opacity: .9;
    }

    75% {
        transform: translate3d(var(--drift-c), 75vh, 0)
                   rotate(390deg);
        opacity: .8;
    }

    100% {
        transform: translate3d(var(--drift-d), 112vh, 0)
                   rotate(540deg);
        opacity: 0;
    }
}

/* Kelopak menghilang ketika video mulai */
.opening-screen.is-playing .petal-rain {
    opacity: 0;
}

/* Konten tetap berada di depan kelopak */
.opening-copy {
    z-index: 3;
}

.play-area {
    z-index: 4;
}

.skip-button {
    z-index: 5;
}

/* Pengaturan aksesibilitas */
@media (prefers-reduced-motion: reduce) {
    .petal {
        animation: none;
        display: none;
    }
}


/* Royal Gold Button */

.btn-royal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 175px;
    padding: 11px 25px;

    border: 1px solid #D9B77B;
    border-radius: 50px;

    background: rgba(20, 5, 9, 0.55);
    color: #F4DDB2;

    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .3px;

    text-decoration: none;
    cursor: pointer;

    box-shadow:
        0 0 8px rgba(218, 174, 104, .15),
        inset 0 0 8px rgba(218, 174, 104, .05);

    transition:
        background .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.btn-royal:hover {
    background: rgba(117, 30, 44, .45);
    border-color: #F4DDB2;

    box-shadow:
        0 0 14px rgba(218, 174, 104, .4),
        inset 0 0 12px rgba(218, 174, 104, .1);
}

.btn-royal .arrow {
    font-size: 19px;
    transition: transform .3s ease;
}

.btn-royal:hover .arrow {
    transform: translateX(4px);
}


.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: min(100%, 430px);
    display: flex;
    justify-content: space-around;

    padding: 12px 8px 18px;

    background: linear-gradient(
        to top,
        rgba(10, 3, 5, .96),
        rgba(10, 3, 5, .65),
        transparent
    );

    border-top: 1px solid rgba(217,183,123,.15);
    z-index: 30;
}

.bottom-navigation a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;

    color: #BDA98C;
    text-decoration: none;
    font-size: 12px;
}

.bottom-navigation a.active {
    color: #F4DDB2;
}

.bottom-navigation a.active::before {
    content: "";
    position: absolute;
    top: -3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #F4DDB2;
    box-shadow: 0 0 8px #E8C77F;
}


/* Section lain mengikuti tinggi konten */
.invitation-content section {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
/* =================================
   NORMAL PAGE FLOW & MUSIC CONTROL
================================= */

.invitation-content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 1px 0 110px;
    background: #080406;
}

/* Tombol musik tetap tersedia ketika pengguna scroll ke section lain. */
.music-control {
    position: fixed;
    z-index: 50;
    right: max(18px, calc((100vw - 430px) / 2 + 18px));
    bottom: max(22px, env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(232,199,127,.72);
    border-radius: 50%;
    color: var(--gold-bright);
    background: rgba(20,5,9,.88);
    box-shadow: 0 0 14px rgba(218,174,104,.2);
    font: 24px 'Cormorant Garamond', serif;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .45s ease, transform .45s ease, background .3s ease, visibility .45s;
    -webkit-tap-highlight-color: transparent;
}

body.invitation-open .music-control {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.music-control.music-active {
    background: rgba(117,30,44,.92);
    box-shadow: 0 0 18px rgba(232,199,127,.38);
}

.music-control:focus-visible,
.btn-royal:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 4px;
}

@media (max-width: 360px) {
    .opening-screen { min-height: 540px; }
    .music-control { width: 42px; height: 42px; }
}


/* ==========================================
   BOTTOM NAVIGATION
========================================== */

.bottom-navigation {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);

    width: min(100%, 430px);

    display: flex;
    justify-content: space-around;
    align-items: center;

    padding: 10px 5px calc(12px + env(safe-area-inset-bottom));

    background: linear-gradient(
        to top,
        rgba(12, 4, 7, .98),
        rgba(25, 7, 13, .96)
    );

    border-top: 1px solid rgba(232, 199, 127, .25);

    box-shadow: 0 -5px 25px rgba(0, 0, 0, .25);

    z-index: 100;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .5s ease, visibility .5s ease;
}

/* Menu muncul setelah undangan dibuka */
body.invitation-open .bottom-navigation {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bottom-navigation a {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    min-width: 52px;

    color: #aa987e;
    text-decoration: none;

    font-family: 'Cormorant Garamond', serif;
    font-size: 12px;

    transition: color .3s ease;
}

.bottom-navigation .nav-icon {
    font-size: 21px;
    line-height: 1;
    transition: transform .3s ease;
}

.bottom-navigation a.active {
    color: #f4ddb2;
}

.bottom-navigation a.active .nav-icon {
    transform: translateY(-3px);
    text-shadow: 0 0 12px rgba(232, 199, 127, .65);
}

.bottom-navigation a.active::before {
    content: "";

    position: absolute;
    top: -10px;

    width: 22px;
    height: 2px;

    border-radius: 10px;

    background: #e8c77f;
    box-shadow: 0 0 8px #e8c77f;
}

/* Ruang agar konten tidak tertutup menu */
.invitation-content {
    padding-bottom: 100px;
}



/* ==========================================
   FLOATING MUSIC CONTROL
========================================== */

.music-control {
    position: fixed;

    /* Posisi di atas bottom navigation */
    bottom: calc(90px + env(safe-area-inset-bottom));
    right: max(16px, calc((100vw - 430px) / 2 + 16px));

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(232, 199, 127, .7);
    border-radius: 50%;

    background: rgba(20, 5, 9, .92);
    color: #f4ddb2;

    font-size: 23px;

    box-shadow:
        0 0 12px rgba(232, 199, 127, .2),
        inset 0 0 8px rgba(232, 199, 127, .08);

    z-index: 110;

    cursor: pointer;

    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}

.music-control:hover {
    transform: scale(1.08);

    background: rgba(80, 15, 30, .95);

    box-shadow:
        0 0 16px rgba(232, 199, 127, .4);
}

.music-control.music-active {
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(232, 199, 127, .2);
    }

    50% {
        box-shadow: 0 0 18px rgba(232, 199, 127, .55);
    }
}


/* ==========================================
   GUEST NAME ON COVER
========================================== */

.guest-invitation {
    margin-top: 22px;
    text-align: center;
    color: #f4ddb2;
    animation: guestFadeIn 1.2s ease both;
}

.guest-label {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 4px;
    color: #d9b77b;
    margin-bottom: 7px;
}

.guest-invitation h2 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 27px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

.guest-message {
    display: block;
    margin-top: 6px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-style: italic;
    letter-spacing: 1px;
    color: rgba(244,221,178,.8);
}

@keyframes guestFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ==========================================
   SMOOTH TRANSITION OPENING TO NEXT SECTION
========================================== */

.opening-screen {
    position: relative;
    isolation: isolate;
    background: #080406;
}

/* Gradasi transisi bagian bawah Cover */
.opening-screen::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 250px;

    z-index: 3;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(8, 4, 6, 0) 0%,
        rgba(8, 4, 6, 0.08) 20%,
        rgba(8, 4, 6, 0.25) 45%,
        rgba(8, 4, 6, 0.65) 75%,
        #080406 100%
    );
}

/* Background section berikutnya */
.invitation-content {
    position: relative;
    background: #080406;
    min-height: 100vh;
}

/* Gradasi lembut di awal section berikutnya */
.invitation-content::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;

    height: 100px;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        #080406,
        rgba(8, 4, 6, 0)
    );

    z-index: 1;
}



/* ==========================================
   NAIA SECTION - ROYAL FRAME DESIGN
========================================== */

.naia-section {
    position: relative;
    isolation: isolate;
       --frame-top: 2%;
    --frame-bottom: 2%;

    width: 100%;
    min-height: 100dvh;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        #080406 url('assets/images/naia-background.webp')
        center center / cover no-repeat;
}

/* Gradasi hanya di bagian atas dan bawah */
.naia-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        #080406 0%,
        rgba(8,4,6,.35) 5%,
        transparent 16%,
        transparent 84%,
        rgba(8,4,6,.35) 95%,
        #080406 100%
    );
}

/* ==========================================
   FRAME
========================================== */


/* FRAME PNG NAIA */

.naia-frame {
    position: absolute;
    top: var(--frame-top);
    bottom: var(--frame-bottom);
    left: 3%;
    right: 3%;
    z-index: 2;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;
}

.naia-frame img {
    width: 120%;
    height: 80%;
    object-fit: fill;
}


/* Animasi frame */
.naia-section.is-visible .naia-frame {
    animation: frameReveal 1.3s ease forwards;
}


.frame-top-ornament,
.frame-bottom-ornament {
    position: absolute;
    left: 50%;

    color: #e8c77f;
    font-size: 35px;

    text-shadow: 0 0 12px rgba(232,199,127,.5);

    transform: translateX(-50%);
}

.frame-top-ornament {
    top: 10%;
}

.frame-bottom-ornament {
    bottom: 10%;
    transform: translateX(-50%) rotate(180deg);
}


/* ==========================================
   FLOWER DECORATIONS
========================================== */

.naia-flower {
    position: absolute;
    z-index: 3;
    width: 48%;
    pointer-events: none;
    opacity: 0;
}

.naia-flower img {
    display: block;
    width: 100%;
    height: auto;
}

.naia-flower-top {
    top: 20%;
    left: 10%;
    transform: translate(0%, 0%);
}

.naia-flower-bottom {
    bottom: 20%;
    right: 10%;
    transform: translate(0%, 0%);
}
/* ==========================================
   TEXT CONTENT
========================================== */

.naia-content {
    position: absolute;
    z-index: 4;

    width: 78%;
    max-width: 350px;

    height: 68%;
    top: 55%;
    left: 50%;

    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 2% 3%;

    text-align: center;
    color: #f5e6d0;
}

/* Heading */
.naia-heading {
    opacity: 0;
    transform: translateY(22px);
}

.naia-eyebrow {
    display: block;
    margin-bottom: 16px;

    color: #d9b77b;

    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 4px;
}

.naia-heading h2 {
    margin: 0;

    color: #f5ddb9;

    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    font-style: italic;
    font-weight: 400;
}

.naia-heading h1 {
    margin: -3px 0 0;

    color: #f5ddb9;

    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.05;
}

/* Divider */
.naia-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin: 23px auto;

    color: #e8c77f;
    font-size: 18px;

    opacity: 0;
    transform: translateY(15px);
}

.naia-divider span {
    width: 55px;
    height: 1px;

    background: linear-gradient(
        to right,
        transparent,
        #d9b77b
    );
}

.naia-divider span:last-child {
    transform: rotate(180deg);
}

/* Description */
.naia-description {
    opacity: 0;
    transform: translateY(18px);
}

.naia-description p {
    margin: 0 0 20px;

    color: #f1e6da;

    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
}

/* Signature */
.naia-signature {
    margin-top: 25px;

    opacity: 0;
    transform: translateY(18px);
}

.naia-signature span {
    display: block;

    color: #d9bd91;

    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-style: italic;
}

.naia-signature h3 {
    margin: 3px 0 0;

    color: #f4d9b0;

    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 400;
    font-style: italic;
}

/* ==========================================
   ENTRANCE ANIMATIONS
========================================== */

.naia-section.is-visible .naia-frame {
    animation: frameReveal 1.2s ease forwards;
}

.naia-section.is-visible .naia-flower-top {
    animation: flowerFromLeft 1.4s cubic-bezier(.2,.7,.2,1) .35s both;
}

.naia-section.is-visible .naia-flower-bottom {
    animation: flowerFromRight 1.4s cubic-bezier(.2,.7,.2,1) .55s both;
}

.naia-section.is-visible .naia-heading {
    animation: textReveal .9s ease .7s forwards;
}

.naia-section.is-visible .naia-divider {
    animation: textReveal .8s ease 1s forwards;
}

.naia-section.is-visible .naia-description {
    animation: textReveal .9s ease 1.2s forwards;
}

.naia-section.is-visible .naia-signature {
    animation: textReveal .9s ease 1.5s forwards;
}

@keyframes frameReveal {
    from {
        opacity: 0;
        transform: scale(.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes flowerFromLeft {
    from {
        opacity: 0;
        transform: translate(calc(-15% - 70px), -10%);
    }

    to {
        opacity: 1;
        transform: translate(-15%, -10%);
    }
}

@keyframes flowerFromRight {
    from {
        opacity: 0;
        transform: translate(calc(15% + 70px), 10%);
    }

    to {
        opacity: 1;
        transform: translate(15%, 10%);
    }
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 360px) {
    .naia-content {
        padding: 45px 24px;
    }

    .naia-description p {
        font-size: 16px;
    }

    .naia-flower {
        width: 45%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .naia-section [data-animate],
    .naia-section .naia-frame,
    .naia-section .naia-flower {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =================================
   GLOBAL VIEWPORT STABILIZATION
================================= */

html {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100%;
    overflow-x: hidden;
}

/* Section yang memang didesain satu layar penuh */
.opening-screen,
.naia-section {
    height: 100svh !important;
    min-height: 100svh !important;
    max-height: 100svh !important;
}

/* Hindari perubahan ukuran akibat animasi */
.opening-screen,
.naia-section {
    box-sizing: border-box;
}


/* ==========================================
   EVENT SECTION
========================================== */

/* ==========================================
   EVENT SECTION BACKGROUND
========================================== */

.event-section {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100svh;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #080406 url('assets/images/naia-background.webp')
                center center / cover no-repeat;
}

.event-background,
.event-overlay {
    display: none;
}

.event-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.15),
        transparent 20%,
        transparent 80%,
        rgba(0,0,0,.5)
    );
}

/* ==========================================
   CHANDELIER
========================================== */

.event-chandelier {
    position: absolute;
    z-index: 4;

    top: 3%;
    left: 50%;

    width: 42%;
    max-width: 190px;

    transform: translateX(-50%);
    transform-origin: 50% 0%;

    opacity: 0;
}

.event-chandelier img {
    position: relative;
    z-index: 2;

    display: block;
    width: 100%;
    height: auto;

    filter: drop-shadow(0 5px 15px rgba(255,190,80,.4));
}

.chandelier-glow {
    position: absolute;
    z-index: 1;

    width: 180%;
    height: 180%;

    left: -40%;
    top: 15%;

    border-radius: 50%;

    background: rgba(255,184,75,.2);
    filter: blur(45px);

    opacity: 0;
    pointer-events: none;
}

/* ==========================================
   GOLD FRAME
========================================== */

.event-frame {
    position: absolute;
    z-index: 2;

    inset: 15% 8% 12%;

    opacity: 0;
    transform: scale(.94);

    pointer-events: none;
}

.event-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}

/* ==========================================
   FLOWERS
========================================== */


.event-flower {
    position: absolute;
    z-index: 5;
    bottom: 0;
    width: 30%;
    opacity: 0;
    pointer-events: none;
}

.event-flower img {
    display: block;
    width: 100%;
    height: auto;
}

/* Kiri bawah */
.event-flower-left {
    left: -8%;
}

/* Kanan bawah */
.event-flower-right {
    right: -8%;
}

/* ==========================================
   EVENT CONTENT
========================================== */

.event-content {
    position: relative;
    z-index: 6;

    width: 76%;
    max-width: 350px;

    margin-top: 20%;
    padding: 0;

    color: #f8e8d2;
    text-align: center;
}

.event-heading {
    opacity: 0;
    transform: translateY(20px);
}

.event-eyebrow {
    color: #e8c77f;
    font: 10px Arial, sans-serif;
    letter-spacing: 5px;
}

.event-heading h2,
.event-heading h1 {
    margin: 0;
    color: #f4d9a5;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: italic;
}

.event-heading h2 {
    font-size: 48px;
    line-height: .95;
}

.event-heading h1 {
    font-size: 55px;
    line-height: .95;
}

.event-divider {
    margin: 20px auto;
    color: #e8c77f;
    font-size: 23px;
}

/* Detail */
.event-details {
    width: 100%;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 20px;

    padding: 16px 0;

    border-bottom: 1px solid rgba(232,199,127,.3);

    text-align: left;
    opacity: 0;
    transform: translateY(15px);
}

.event-icon {
    flex: 0 0 48px;
    color: #edc77e;
    font-size: 38px;
    text-align: center;
}

.event-detail span,
.event-detail p {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 1.3;
}

/* Location button */
.event-location-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    width: 100%;
    margin-top: 28px;
    padding: 13px 18px;

    border: 1.5px solid #edc77e;
    border-radius: 50px;

    color: #f8e8d2;
    background: rgba(30,5,10,.6);

    font: 21px 'Cormorant Garamond', serif;
    text-decoration: none;

    box-shadow:
        0 0 12px rgba(255,190,80,.3),
        inset 0 0 10px rgba(255,190,80,.08);

    opacity: 0;
    transform: translateY(15px);
}

.event-location-button > span:first-child {
    color: #edc77e;
    font-size: 28px;
}

.event-arrow {
    margin-left: auto;
    color: #edc77e;
    font-size: 30px;
}

/* ==========================================
   EVENT ENTRANCE ANIMATIONS
========================================== */

/* Chandelier turun */
.event-section.is-visible .event-chandelier {
    animation:
        chandelierDrop 1.5s cubic-bezier(.2,.7,.2,1) .1s forwards,
        chandelierSwing 4s ease-in-out 1.6s infinite;
}

/* Cahaya lampu */
.event-section.is-visible .chandelier-glow {
    animation: chandelierGlow 2s ease-in-out 1.3s infinite alternate;
}

/* Frame muncul */
.event-section.is-visible .event-frame {
    animation: eventFrameReveal 1.4s ease .8s forwards;
}

/* Animasi */
.event-section.is-visible .event-flower-left {
    animation: eventFlowerLeft 1.5s ease 1.6s both;
}

.event-section.is-visible .event-flower-right {
    animation: eventFlowerRight 1.5s ease 1.9s both;
}

/* Konten */
.event-section.is-visible .event-heading {
    animation: eventTextReveal .9s ease 2.3s forwards;
}

.event-section.is-visible .event-detail:nth-child(1) {
    animation: eventTextReveal .8s ease 2.6s forwards;
}

.event-section.is-visible .event-detail:nth-child(2) {
    animation: eventTextReveal .8s ease 2.8s forwards;
}

.event-section.is-visible .event-detail:nth-child(3) {
    animation: eventTextReveal .8s ease 3s forwards;
}

.event-section.is-visible .event-location-button {
    animation: eventTextReveal .9s ease 3.3s forwards;
}

/* Keyframes */

@keyframes chandelierDrop {
    from {
        opacity: 0;
        transform: translate(-50%, -100px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes chandelierSwing {
    0%, 100% {
        rotate: 0deg;
    }
    25% {
        rotate: 2deg;
    }
    75% {
        rotate: -2deg;
    }
}

@keyframes chandelierGlow {
    from {
        opacity: .25;
        transform: scale(.8);
    }
    to {
        opacity: .8;
        transform: scale(1.1);
    }
}

@keyframes eventFrameReveal {
    from {
        opacity: 0;
        transform: scale(.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



@keyframes eventFlowerLeft {
    from {
        opacity: 0;
        transform: translate(-50px, 40px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes eventFlowerRight {
    from {
        opacity: 0;
        transform: translate(50px, 40px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes eventTextReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 360px) {
    .event-content {
        width: 78%;
    }

    .event-heading h2 {
        font-size: 42px;
    }

    .event-heading h1 {
        font-size: 48px;
    }

    .event-detail {
        gap: 12px;
        padding: 12px 0;
    }

    .event-detail span,
    .event-detail p {
        font-size: 17px;
    }

    .event-icon {
        flex-basis: 40px;
        font-size: 32px;
    }

    .event-flower {
        width: 30%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .event-section.is-visible * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================
   EVENT SECTION GRADIENT TRANSITION
========================================== */

.event-section {
    position: relative;
    isolation: isolate;
}

/* Gradasi bagian atas */
.event-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;

    z-index: 8;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        #080406 0%,
        rgba(8, 4, 6, .75) 25%,
        rgba(8, 4, 6, .35) 60%,
        transparent 100%
    );
}

/* Gradasi bagian bawah */
.event-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 170px;

    z-index: 8;
    pointer-events: none;

    background: linear-gradient(
        to top,
        #080406 0%,
        rgba(8, 4, 6, .75) 25%,
        rgba(8, 4, 6, .35) 60%,
        transparent 100%
    );
}


/* ==========================================
   GALLERY SECTION
========================================== */

.gallery-section {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100svh;
    box-sizing: border-box;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 35px 0 120px;

    background: #080406 url('assets/images/naia-background.webp')
        center center / cover no-repeat;
}

/* Background overlay */
.gallery-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background: rgba(8, 4, 6, .12);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(8, 4, 6, .45) 0%,
        transparent 18%,
        transparent 75%,
        rgba(8, 4, 6, .55) 100%
    );
}

/* ==========================================
   THE BIG DAY
========================================== */

.gallery-countdown-heading {
    position: relative;
    z-index: 3;

    width: 100%;
    margin: 0 auto 20px;
    text-align: center;

    opacity: 0;
    transform: translateY(20px);
}

.gallery-countdown-heading h2 {
    margin: 0;

    color: #f5dcae;
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;

    text-shadow: 0 0 15px rgba(225, 171, 91, .35);
}

/* ==========================================
   COUNTDOWN
========================================== */

.gallery-countdown {
    position: relative;
    z-index: 3;

    width: 90%;
    max-width: 390px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;

    opacity: 0;
    transform: translateY(20px);
}

.countdown-item {
    min-width: 0;
    aspect-ratio: 1 / 1.08;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 5px;

    border: 1px solid #dcb875;
    border-radius: 13px;

    background: linear-gradient(
        145deg,
        rgba(65, 22, 18, .65),
        rgba(15, 4, 7, .9)
    );

    box-shadow:
        0 0 7px rgba(237, 192, 115, .55),
        inset 0 0 9px rgba(237, 192, 115, .12);
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;

    color: #f8e8d2;
    text-align: center;
}

.countdown-box span {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(25px, 7vw, 39px);
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-box small {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(11px, 3vw, 16px);
    line-height: 1.1;
}

/* ==========================================
   GOLD DIVIDER
========================================== */

.gallery-divider {
    position: relative;
    z-index: 3;

    width: 86%;
    max-width: 380px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin: 28px auto 15px;

    color: #edc77e;
    font-size: 30px;

    opacity: 0;
    transform: translateY(12px);
}

.gallery-divider span {
    flex: 1;
    height: 1px;

    background: linear-gradient(
        to right,
        transparent,
        #d9b77b,
        #fff0c5
    );

    box-shadow: 0 0 7px rgba(255, 205, 120, .7);
}

.gallery-divider span:last-child {
    transform: rotate(180deg);
}

/* ==========================================
   GALLERY TITLE
========================================== */

.gallery-title {
    position: relative;
    z-index: 3;

    margin: 0 0 18px;

    opacity: 0;
    transform: translateY(18px);
}

.gallery-title h2 {
    margin: 0;

    color: #f5dcae;
    font-family: 'Cormorant Garamond', serif;
    font-size: 58px;
    font-weight: 400;
    font-style: italic;
    line-height: 1;

    text-shadow: 0 0 15px rgba(225, 171, 91, .35);
}

/* ==========================================
   PHOTO CAROUSEL
========================================== */

.gallery-carousel-wrapper {
    position: relative;
    z-index: 4;

    width: 100%;
    margin: 0 auto;

    opacity: 0;
    transform: translateY(20px);
}

.gallery-carousel {
    position: relative;

    width: 100%;
    height: clamp(230px, 78vw, 360px);

    display: flex;
    align-items: center;
    justify-content: center;

    touch-action: pan-y;
    user-select: none;
}

.gallery-main {
    position: relative;
    z-index: 3;

    width: 76%;
    height: 100%;

    overflow: hidden;
    border: 2px solid #edc77e;
    border-radius: 20px;

    background: #160609;

    box-shadow:
        0 0 10px rgba(255, 195, 105, .7),
        0 0 25px rgba(255, 160, 70, .22);
}

.gallery-main img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    cursor: zoom-in;
    transition: opacity .25s ease;
}

.gallery-side {
    position: absolute;
    top: 12%;

    width: 24%;
    height: 76%;

    overflow: hidden;
    border: 1px solid rgba(237, 199, 126, .75);
    border-radius: 15px;

    background: #160609;
    opacity: .65;

    transition: opacity .3s ease;
}

.gallery-side img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-side-left {
    left: 0;
}

.gallery-side-right {
    right: 0;
}

/* Panah carousel */
.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 38px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: none;
    border-radius: 10px;

    color: #fff4dc;
    background: rgba(20, 5, 8, .5);

    font-size: 38px;
    line-height: 1;

    transform: translateY(-50%);
    cursor: pointer;
}

.gallery-prev {
    left: 2%;
}

.gallery-next {
    right: 2%;
}

/* ==========================================
   CAROUSEL INDICATORS
========================================== */

.gallery-indicators {
    position: relative;
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    margin: 20px auto 0;

    opacity: 0;
}

.gallery-dot {
    width: 11px;
    height: 11px;

    padding: 0;
    border: 1px solid #f2d39b;
    border-radius: 50%;

    background: transparent;
    cursor: pointer;

    transition: .25s ease;
}

.gallery-dot.active {
    width: 15px;
    height: 15px;

    border-color: #fff0c5;
    background: #fff0c5;

    box-shadow: 0 0 12px #edc77e;
}

/* ==========================================
   GALLERY FLOWERS - SECTION BOTTOM CORNERS
========================================== */

.gallery-flower {
    position: absolute;
    z-index: 5;

    bottom: 0;
    width: 50%;

    opacity: 0;
    pointer-events: none;
}

.gallery-flower img {
    display: block;
    width: 100%;
    height: auto;
}

/* Bunga pojok kiri bawah */
.gallery-flower-left {
    left: 0;
}

/* Bunga pojok kanan bawah */
.gallery-flower-right {
    right: 0;
}

/* Animasi masuk */
.gallery-section.is-visible .gallery-flower-left {
    animation: galleryFlowerLeft 1.3s ease 1.5s both;
}

.gallery-section.is-visible .gallery-flower-right {
    animation: galleryFlowerRight 1.3s ease 1.7s both;
}

/* ==========================================
   GALLERY ENTRANCE ANIMATIONS
========================================== */

.gallery-section.is-visible .gallery-countdown-heading {
    animation: galleryReveal .9s ease .2s both;
}

.gallery-section.is-visible .gallery-countdown {
    animation: galleryReveal .9s ease .5s both;
}

.gallery-section.is-visible .gallery-divider {
    animation: galleryReveal .8s ease .9s both;
}

.gallery-section.is-visible .gallery-title {
    animation: galleryReveal .9s ease 1.1s both;
}

.gallery-section.is-visible .gallery-carousel-wrapper {
    animation: galleryReveal .9s ease 1.4s both;
}

.gallery-section.is-visible .gallery-indicators {
    animation: galleryFade .8s ease 1.8s both;
}


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

@keyframes galleryFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes galleryFlowerLeft {
    from {
        opacity: 0;
        transform: translate(-45px, 35px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes galleryFlowerRight {
    from {
        opacity: 0;
        transform: translate(45px, 35px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* ==========================================
   LIGHTBOX
========================================== */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(0, 0, 0, .94);

    opacity: 0;
    visibility: hidden;

    transition: opacity .25s ease, visibility .25s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;

    border: 1px solid #d9b77b;
    border-radius: 8px;
}

.gallery-lightbox-close {
    position: absolute;
    top: 18px;
    right: 20px;

    width: 42px;
    height: 42px;

    border: 1px solid #d9b77b;
    border-radius: 50%;

    color: #fff0d0;
    background: rgba(30, 5, 10, .8);

    font-size: 28px;
    cursor: pointer;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 360px) {
    .gallery-section {
        padding-top: 28px;
    }

    .gallery-countdown-heading h2 {
        font-size: 42px;
    }

    .gallery-title h2 {
        font-size: 50px;
    }

    .gallery-countdown {
        gap: 6px;
        width: 92%;
    }

    .countdown-item {
        border-radius: 10px;
    }

    .gallery-carousel {
        height: 230px;
    }

    .gallery-flower {
        width: 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-section.is-visible .gallery-countdown-heading,
    .gallery-section.is-visible .gallery-countdown,
    .gallery-section.is-visible .gallery-divider,
    .gallery-section.is-visible .gallery-title,
    .gallery-section.is-visible .gallery-carousel-wrapper,
    .gallery-section.is-visible .gallery-indicators,
    .gallery-section.is-visible .gallery-flower {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================
   GALLERY SECTION GRADIENT TRANSITION
========================================== */

.gallery-section {
    position: relative;
    isolation: isolate;
}

/* Gradasi batas atas */
.gallery-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    z-index: 2;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        #080406 0%,
        rgba(8, 4, 6, .75) 25%,
        rgba(8, 4, 6, .35) 60%,
        transparent 100%
    );
}

/* Gradasi batas bawah */
.gallery-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 170px;
    z-index: 2;
    pointer-events: none;

    background: linear-gradient(
        to top,
        #080406 0%,
        rgba(8, 4, 6, .75) 25%,
        rgba(8, 4, 6, .35) 60%,
        transparent 100%
    );
}

/* Judul The Big Day */
.gallery-countdown-heading {
    position: relative;
    z-index: 5;
    isolation: isolate;
    text-align: center;
    margin-bottom: 25px;
}

/* Cahaya gradasi di bawah judul */
.gallery-countdown-heading::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 25px;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;

    background: radial-gradient(
        ellipse,
        rgba(220, 174, 105, 0.35) 0%,
        rgba(220, 174, 105, 0.12) 45%,
        transparent 75%
    );
}

/* Gradasi batas atas - di belakang konten */
.gallery-section::before {
    z-index: 2;
}

/* Gradasi batas bawah - di depan bunga */
.gallery-section::after {
    z-index: 6;
}

/* Konten utama */
.gallery-countdown-heading,
.gallery-countdown,
.gallery-divider,
.gallery-title,
.gallery-carousel-wrapper,
.gallery-indicators {
    position: relative;
    z-index: 5;
}

/* Bunga bawah */
.gallery-flower {
    position: absolute;
    z-index: 4;
    bottom: 0;
    pointer-events: none;
}


/* ==========================================
   RSVP SECTION
========================================== */

.rsvp-section {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100svh;
    box-sizing: border-box;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 115px 24px 145px;

    background:
        #080406
        url("assets/images/naia-background.webp")
        center center / cover no-repeat;
}

/* Gradient transition */
.rsvp-section::before,
.rsvp-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 145px;
    z-index: 2;
    pointer-events: none;
}

.rsvp-section::before {
    top: 0;
    background: linear-gradient(
        to bottom,
        #080406,
        transparent
    );
}

.rsvp-section::after {
    bottom: 0;
    background: linear-gradient(
        to top,
        #080406,
        transparent
    );
}

/* FRAME */

.rsvp-frame {
    position: absolute;
    inset: 8% 5% 9%;
    z-index: 1;
    pointer-events: none;

    opacity: 0;
    transform: scale(.96);
}

.rsvp-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* FLOWERS */

/* ==========================================
   RSVP FLOWERS
========================================== */

.rsvp-flower {
    position: absolute;
    height: auto;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
}

/* FLOWER TOP - MASUK DARI KIRI */

.rsvp-flower-top {
    width: 48%;
    top: 15%;
    left: 0;
    z-index: 3;
    transform-origin: 15% 85%;
}

/* FLOWER BOTTOM - MENEMPEL DI BAWAH SECTION */

.rsvp-flower-left {
    width: 47%;
    bottom: 0;
    left: -3%;
    z-index: 7;
    transform-origin: 20% 90%;
}

.rsvp-flower-right {
    width: 44%;
    bottom: 0;
    right: -3%;
    z-index: 7;
    transform-origin: 80% 90%;
}

.rsvp-flower img {
    display: block;
    width: 100%;
    height: auto;
}

/* CONTENT */

.rsvp-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 350px;
    text-align: center;
    color: #f5e6d0;

    opacity: 0;
    transform: translateY(25px);
}

.rsvp-title {
    margin: 0 0 18px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(65px, 19vw, 92px);
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    color: #eac49b;
}

.rsvp-description {
    margin: 0 0 30px;
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    line-height: 1.35;
    color: #fff5ed;
}

/* FORM */

.rsvp-form {
    width: 100%;
}

.rsvp-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 58px;
    margin-bottom: 14px;

    border: 1.5px solid #dcb383;
    border-radius: 40px;

    background: rgba(14, 4, 7, .62);
}

.rsvp-input-group > i:first-child {
    position: absolute;
    left: 20px;
    color: #e9c59d;
    font-size: 19px;
}

.rsvp-input-group input,
.rsvp-input-group select {
    width: 100%;
    height: 100%;
    padding: 0 42px 0 57px;
    box-sizing: border-box;

    border: none;
    outline: none;
    background: transparent;

    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    color: #fff6ed;
}

.rsvp-input-group input::placeholder {
    color: #f5e6d0;
    opacity: 1;
}

.rsvp-input-group select {
    appearance: none;
    cursor: pointer;
}

.rsvp-input-group select option {
    color: #fff;
    background: #25080e;
}

.rsvp-select-arrow {
    position: absolute;
    right: 20px;
    color: #e9c59d;
    pointer-events: none;
}

/* RADIO */

.rsvp-attendance {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin: 28px 0 34px;
    padding-left: 12px;
}

.rsvp-radio {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;

    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    color: #fff6ed;
}

.rsvp-radio input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.rsvp-radio-circle {
    position: relative;
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    border: 1.5px solid #e6b985;
    border-radius: 50%;
}

.rsvp-radio input:checked + .rsvp-radio-circle {
    border-color: #fff;
    box-shadow: 0 0 12px rgba(255, 160, 75, .55);
}

.rsvp-radio input:checked + .rsvp-radio-circle::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #fff;
}

.rsvp-radio input:focus-visible + .rsvp-radio-circle {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* SUBMIT BUTTON */

.rsvp-submit {
    width: 82%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 0 auto;

    border: 2px solid #fff3e3;
    border-radius: 45px;

    background: rgba(65, 13, 10, .55);
    color: #fff;

    font-family: "Cormorant Garamond", serif;
    font-size: 29px;

    box-shadow:
        0 0 10px rgba(255, 110, 30, .8),
        0 0 25px rgba(255, 90, 20, .35),
        inset 0 0 12px rgba(255, 120, 45, .2);

    cursor: pointer;
    transition: .3s ease;
}

.rsvp-submit:hover {
    background: rgba(130, 32, 20, .75);
    box-shadow: 0 0 24px rgba(255, 110, 30, .8);
}

.rsvp-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.rsvp-message {
    margin: 14px 0 0;
    font-size: 13px;
    color: #eac49b;
}

.rsvp-message:empty {
    display: none;
}

/* ANIMATION */

.rsvp-section.is-visible .rsvp-frame {
    animation: rsvpFrameIn 1.3s ease forwards;
}

.rsvp-section.is-visible .rsvp-flower-top {
    animation:
        flowerTopEnter 1.5s cubic-bezier(.22,.61,.36,1) forwards,
        flowerTopWind 5s ease-in-out 1.5s infinite;
}

/* Bunga kiri masuk dari bawah */
.rsvp-section.is-visible .rsvp-flower-left {
    animation:
        flowerBottomEnter 1.5s cubic-bezier(.22,.61,.36,1) .3s forwards,
        flowerLeftWind 5.5s ease-in-out 1.8s infinite;
}

/* Bunga kanan masuk dari bawah */
.rsvp-section.is-visible .rsvp-flower-right {
    animation:
        flowerBottomEnter 1.5s cubic-bezier(.22,.61,.36,1) .6s forwards,
        flowerRightWind 6s ease-in-out 2.1s infinite;
}

.rsvp-section.is-visible .rsvp-content {
    animation: rsvpContentIn 1s .8s ease forwards;
}

@keyframes rsvpFrameIn {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}


@keyframes rsvpContentIn {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Masuk dari kiri */
@keyframes flowerTopEnter {
    from {
        opacity: 0;
        transform: translate(-110%, 15px) rotate(-8deg);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Masuk dari bawah */
@keyframes flowerBottomEnter {
    from {
        opacity: 0;
        transform: translateY(110%) rotate(5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* Gerakan tertiup angin - atas */
@keyframes flowerTopWind {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    25% {
        transform: rotate(1.5deg) translateY(-3px);
    }
    50% {
        transform: rotate(-1deg) translateY(1px);
    }
    75% {
        transform: rotate(1deg) translateY(-2px);
    }
}

/* Gerakan tertiup angin - kiri */
@keyframes flowerLeftWind {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    30% {
        transform: rotate(1.8deg) translateY(-2px);
    }
    60% {
        transform: rotate(-1deg) translateY(1px);
    }
    80% {
        transform: rotate(1deg) translateY(-2px);
    }
}

/* Gerakan tertiup angin - kanan */
@keyframes flowerRightWind {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    30% {
        transform: rotate(-1.8deg) translateY(-3px);
    }
    60% {
        transform: rotate(1.2deg) translateY(1px);
    }
    80% {
        transform: rotate(-1deg) translateY(-2px);
    }
}

@media (max-width: 360px) {
    .rsvp-flower-top {
        width: 43%;
        top: 15%;
    }

    .rsvp-flower-left {
        width: 50%;
        left: -4%;
    }

    .rsvp-flower-right {
        width: 50%;
        right: -4%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rsvp-section .rsvp-frame,
    .rsvp-section .rsvp-flower,
    .rsvp-section .rsvp-content {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}


/* RSVP - EXTRA COMPACT */

.rsvp-content {
    width: 76%;
    max-width: 290px;
}

.rsvp-title {
    font-size: clamp(48px, 13vw, 60px);
    margin-bottom: 8px;
}

.rsvp-description {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.rsvp-input-group {
    height: 43px;
    margin-bottom: 9px;
}

.rsvp-input-group > i:first-child {
    left: 15px;
    font-size: 15px;
}

.rsvp-input-group input,
.rsvp-input-group select {
    padding-left: 43px;
    padding-right: 34px;
    font-size: 17px;
}

.rsvp-select-arrow {
    right: 16px;
    font-size: 13px;
}

.rsvp-attendance {
    gap: 11px;
    margin: 18px 0 21px;
    padding-left: 8px;
}

.rsvp-radio {
    gap: 10px;
    font-size: 17px;
}

.rsvp-radio-circle {
    width: 18px;
    height: 18px;
}

.rsvp-radio input:checked + .rsvp-radio-circle::after {
    inset: 4px;
}

.rsvp-submit {
    width: 76%;
    min-height: 45px;
    gap: 13px;
    font-size: 21px;
}

@media (max-width: 360px) {
    .rsvp-content {
        width: 80%;
    }

    .rsvp-title {
        font-size: 46px;
    }

    .rsvp-description {
        font-size: 15px;
    }

    .rsvp-radio {
        font-size: 16px;
    }

    .rsvp-submit {
        font-size: 20px;
    }
}


/* ==========================================
   WISHES SECTION
========================================== */

.wishes-section {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100svh;
    box-sizing: border-box;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 75px 0 150px;

    background:
        #080406
        url("assets/images/wishes-background.webp")
        center center / cover no-repeat;
}

.wishes-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: rgba(8, 4, 6, .25);
}

/* GRADIENT TRANSITION */

.wishes-section::before,
.wishes-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 150px;
    z-index: 2;
    pointer-events: none;
}

.wishes-section::before {
    top: 0;
    background: linear-gradient(
        to bottom,
        #080406 0%,
        rgba(8, 4, 6, .55) 40%,
        transparent 100%
    );
}

.wishes-section::after {
    bottom: 0;
    background: linear-gradient(
        to top,
        #080406 0%,
        rgba(8, 4, 6, .5) 45%,
        transparent 100%
    );
}

/* Crown */
.wishes-crown {
    position: relative;
    z-index: 4;
    width: 100px;
    margin-bottom: 8px;

    opacity: 0;
    transform: translateY(-25px);
}

.wishes-crown img {
    display: block;
    width: 100%;
    height: auto;
}

/* Content */
.wishes-content {
    position: relative;
    z-index: 5;
    width: 86%;
    max-width: 350px;
    margin: 0 auto;
    text-align: center;
    color: #f5e6d0;

    opacity: 0;
    transform: translateY(35px);
    will-change: opacity, transform;
}

/* TITLE */

.wishes-title {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(39px, 10.5vw, 51px);
    line-height: 1.05;
    font-weight: 400;
    font-style: italic;
    color: #f3d8a8;
}

.wishes-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 75%;
    margin: 12px auto 15px;
    color: #e9bd7c;
}

.wishes-divider span {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        #d9a45f
    );
}

.wishes-divider span:last-child {
    background: linear-gradient(
        to left,
        transparent,
        #d9a45f
    );
}

.wishes-divider b {
    font-size: 19px;
    font-weight: 400;
}

.wishes-description {
    max-width: 330px;
    margin: 0 auto 24px;
    font-family: "Cormorant Garamond", serif;
    font-size: 19px;
    line-height: 1.25;
    color: #fff5ed;
}

/* FORM */

.wishes-form {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 16px 18px;

    border: 1.5px solid #d9a45f;
    border-radius: 18px;

    background: rgba(25, 5, 9, .58);

    box-shadow:
        0 0 12px rgba(255, 133, 40, .15),
        inset 0 0 15px rgba(255, 133, 40, .06);
}

.wishes-input,
.wishes-textarea {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;

    border: 1.5px solid #e1bd83;
    border-radius: 28px;
    background: rgba(12, 3, 5, .65);
}

.wishes-input {
    height: 48px;
    align-items: center;
    margin-bottom: 14px;
}

.wishes-input i,
.wishes-textarea i {
    position: absolute;
    left: 16px;
    color: #f0d19e;
    font-size: 17px;
}

.wishes-input input {
    width: 100%;
    height: 100%;
    padding: 0 15px 0 48px;
    box-sizing: border-box;

    border: none;
    outline: none;
    background: transparent;

    color: #fff5ed;
    font-family: "Cormorant Garamond", serif;
    font-size: 19px;
}

.wishes-input input::placeholder,
.wishes-textarea textarea::placeholder {
    color: #f5e6d0;
    opacity: 1;
}

.wishes-textarea {
    min-height: 115px;
    margin-bottom: 18px;
}

.wishes-textarea i {
    top: 17px;
}

.wishes-textarea textarea {
    display: block;
    width: 100%;
    min-height: 115px;
    resize: vertical;
    padding: 14px 12px 12px 48px;
    box-sizing: border-box;

    border: none;
    outline: none;
    background: transparent;

    color: #fff5ed;
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    line-height: 1.35;
}

.wishes-submit {
    width: 76%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 0 auto;

    border: 2px solid #fff0dc;
    border-radius: 40px;
    background: rgba(65, 13, 10, .55);

    color: #fff;
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;

    box-shadow:
        0 0 10px rgba(255, 110, 30, .8),
        0 0 22px rgba(255, 90, 20, .3);

    cursor: pointer;
    transition: .3s ease;
}

.wishes-submit:hover {
    background: rgba(130, 32, 20, .75);
    box-shadow: 0 0 22px rgba(255, 110, 30, .8);
}

.wishes-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.wishes-form-message {
    margin: 10px 0 0;
    font-size: 13px;
    color: #f3d8a8;
}

.wishes-form-message:empty {
    display: none;
}

/* GUEST MESSAGE HEADING */

.wishes-list-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 22px auto 18px;
}

.wishes-list-heading h3 {
    flex-shrink: 0;
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    font-weight: 500;
    color: #f3d8a8;
}

.wishes-list-heading span {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        #d9a45f
    );
}

.wishes-list-heading span:last-child {
    background: linear-gradient(
        to left,
        transparent,
        #d9a45f
    );
}

/* MESSAGE LIST */

.wishes-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    width: 100%;
}

.wishes-card {
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center;
    width: 100%;
    min-height: 105px;
    box-sizing: border-box;
    padding: 14px 12px;

    border: 1px solid rgba(222, 166, 105, .8);
    border-radius: 25px;

    background: linear-gradient(
        135deg,
        rgba(80, 20, 20, .65),
        rgba(25, 5, 9, .85)
    );

    box-shadow:
        0 0 12px rgba(255, 120, 40, .15),
        inset 0 0 12px rgba(255, 120, 40, .08);
}

.wishes-guest {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    height: 100%;
    padding-right: 9px;
    border-right: 1px solid #d9a45f;
    text-align: left;
}

.wishes-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;

    border: 1.5px solid #e4bd80;
    border-radius: 50%;

    color: #f5e6d0;
    font-family: "Cormorant Garamond", serif;
    font-size: 27px;
}

.wishes-guest-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.wishes-guest-info strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 15px;
    line-height: 1.1;
    color: #fff5ed;
    overflow-wrap: anywhere;
}

.wishes-guest-info small {
    font-family: "Cormorant Garamond", serif;
    font-size: 13px;
    color: #eac17e;
}

.wishes-card-message {
    padding-left: 11px;
    text-align: left;

    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
    line-height: 1.25;
    color: #fff5ed;

    overflow-wrap: anywhere;
}

/* FLOWERS */

/* Flowers */
.wishes-flower {
    position: absolute;
    height: auto;
    pointer-events: none;
    opacity: 0;
    will-change: opacity, transform;
}

/* Top flower */
.wishes-flower-top {
    z-index: 4;
    width: 38%;
    top: 5%;
    left: 0;

    transform: translate(-120px, 15px) rotate(-5deg);
}

/* Bottom left */
.wishes-flower-left {
    z-index: 7;
    width: 40%;
    bottom: 0;
    left: -3%;

    transform: translate(-15px, 130px) rotate(5deg);
}

.wishes-flower-right {
    z-index: 7;
    width: 38%;
    bottom: 0;
    right: -3%;

    transform: translate(15px, 130px) rotate(-5deg);
}

/* ANIMATIONS */


/* ==========================================
   WISHES - ENTRANCE ANIMATION
========================================== */

/* Crown */
.wishes-section.is-visible .wishes-crown {
    animation: wishesCrownReveal 1.5s
        cubic-bezier(.16, 1, .3, 1) .2s both;
}

/* Flower top */
.wishes-section.is-visible .wishes-flower-top {
    animation: wishesFlowerTopReveal 2s
        cubic-bezier(.16, 1, .3, 1) .3s both;
}

/* Flower bottom left */
.wishes-section.is-visible .wishes-flower-left {
    animation: wishesFlowerBottomLeftReveal 2s
        cubic-bezier(.16, 1, .3, 1) .6s both;
}

/* Flower bottom right */
.wishes-section.is-visible .wishes-flower-right {
    animation: wishesFlowerBottomRightReveal 2s
        cubic-bezier(.16, 1, .3, 1) .8s both;
}

/* Main content */
.wishes-section.is-visible .wishes-content {
    animation: wishesContentReveal 1.7s
        cubic-bezier(.16, 1, .3, 1) .7s both;
}

/* KEYFRAMES */

@keyframes wishesCrownReveal {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wishesFlowerTopReveal {
    from {
        opacity: 0;
        transform: translate(-120px, 15px) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes wishesFlowerBottomLeftReveal {
    from {
        opacity: 0;
        transform: translate(-15px, 130px) rotate(5deg);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes wishesFlowerBottomRightReveal {
    from {
        opacity: 0;
        transform: translate(15px, 130px) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes wishesContentReveal {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* RESPONSIVE */

@media (max-width: 360px) {
    .wishes-section {
        padding-top: 65px;
    }

    .wishes-content {
        width: 88%;
    }

    .wishes-title {
        font-size: 36px;
    }

    .wishes-description {
        font-size: 17px;
    }

    .wishes-list-heading h3 {
        font-size: 20px;
    }

    .wishes-card {
        grid-template-columns: 40% 60%;
        padding: 11px 9px;
    }

    .wishes-avatar {
        width: 35px;
        height: 35px;
        font-size: 23px;
    }

    .wishes-guest-info strong {
        font-size: 13px;
    }

    .wishes-guest-info small {
        font-size: 11px;
    }

    .wishes-card-message {
        font-size: 14px;
    }

    .wishes-flower-left,
    .wishes-flower-right {
        width: 50%;
    }
}


/* ==========================================
   WISHES - COMPACT CONTENT
========================================== */

.wishes-content {
    width: 80%;
    max-width: 310px;
}

/* Crown */
.wishes-crown {
    width: 80px;
    margin-bottom: 5px;
}

/* Title */
.wishes-title {
    font-size: clamp(34px, 9vw, 43px);
}

/* Divider */
.wishes-divider {
    width: 70%;
    margin: 9px auto 11px;
}

.wishes-divider b {
    font-size: 16px;
}

/* Description */
.wishes-description {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 18px;
}

/* Form container */
.wishes-form {
    padding: 15px 12px 14px;
    border-radius: 15px;
}

/* Name input */
.wishes-input {
    height: 42px;
    margin-bottom: 10px;
}

.wishes-input i,
.wishes-textarea i {
    left: 13px;
    font-size: 15px;
}

.wishes-input input {
    padding-left: 40px;
    font-size: 17px;
}

/* Message textarea */
.wishes-textarea {
    min-height: 95px;
    margin-bottom: 13px;
}

.wishes-textarea textarea {
    min-height: 95px;
    padding: 12px 10px 10px 40px;
    font-size: 16px;
}

/* Submit button */
.wishes-submit {
    width: 72%;
    min-height: 42px;
    gap: 10px;
    font-size: 19px;
}

/* Guest list heading */
.wishes-list-heading {
    gap: 7px;
    margin: 18px auto 14px;
}

.wishes-list-heading h3 {
    font-size: 20px;
}

/* Guest message cards */
.wishes-list {
    gap: 10px;
}

.wishes-card {
    min-height: 88px;
    padding: 10px 9px;
    border-radius: 19px;
    grid-template-columns: 40% 60%;
}

.wishes-guest {
    gap: 7px;
    padding-right: 7px;
}

.wishes-avatar {
    width: 35px;
    height: 35px;
    font-size: 23px;
}

.wishes-guest-info strong {
    font-size: 13px;
}

.wishes-guest-info small {
    font-size: 11px;
}

.wishes-card-message {
    padding-left: 9px;
    font-size: 14px;
    line-height: 1.2;
}

/* Small screens */
@media (max-width: 360px) {
    .wishes-content {
        width: 84%;
    }

    .wishes-title {
        font-size: 33px;
    }

    .wishes-description {
        font-size: 15px;
    }

    .wishes-list-heading h3 {
        font-size: 18px;
    }

    .wishes-card-message {
        font-size: 13px;
    }
}

/* ==========================================
   COVER NAIA PHOTO
========================================== */

.cover-naia-photo {
    position: relative;
    width: clamp(110px, 34vw, 145px);
    margin: 12px auto 8px;
    opacity: 0;
    transform: translateY(20px) scale(.95);
    animation: naiaPhotoReveal 1.2s .5s ease forwards;
}

.cover-naia-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@keyframes naiaPhotoReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ==========================================
   QR BUTTON - ABOVE MUSIC CONTROL
========================================== */

.qr-floating-button {
    position: fixed !important;

    right: max(16px, calc((100vw - 430px) / 2 + 16px)) !important;

    /* Music: bottom 90px, tinggi 46px, jarak 10px */
    bottom: calc(146px + env(safe-area-inset-bottom, 0px)) !important;

    width: 46px !important;
    height: 46px !important;

    display: grid !important;
    place-items: center;

    padding: 0 !important;

    border: 1px solid rgba(232,199,127,.72);
    border-radius: 50%;

    color: var(--gold-bright);
    background: rgba(20,5,9,.95);

    box-shadow: 0 0 14px rgba(218,174,104,.3);

    z-index: 111;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(8px);

    transition:
        opacity .45s ease,
        transform .45s ease,
        visibility .45s ease;
}

/* Muncul setelah undangan dibuka */
body.invitation-open .qr-floating-button {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.qr-floating-button svg {
    display: block;
    width: 23px;
    height: 23px;
}

.qr-floating-button:hover {
    background: #5a1726;
    color: #fff0d0;
    box-shadow: 0 0 15px rgba(221,164,95,.5);
}

@keyframes qrButtonReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qr-floating-button:hover {
    background: #5a1726;
    color: #fff0d0;

    box-shadow:
        0 0 15px rgba(221, 164, 95, .5);

    transform: scale(1.08);
}

.qr-floating-button i {
    pointer-events: none;
}


/* ==========================================
   QR MODAL
========================================== */

.qr-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .4s ease, visibility .4s ease;
}

.qr-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.qr-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 2, 4, .88);
    backdrop-filter: blur(7px);
}

.qr-modal-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 340px;
    box-sizing: border-box;
    padding: 35px 25px 28px;

    text-align: center;

    border: 1.5px solid #d9b477;
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(76, 18, 30, .98),
            rgba(20, 5, 10, .99)
        );

    box-shadow:
        0 0 20px rgba(222, 166, 105, .18),
        inset 0 0 20px rgba(222, 166, 105, .06);

    transform: translateY(30px) scale(.96);
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.qr-modal.active .qr-modal-content {
    transform: translateY(0) scale(1);
}

/* Close */
.qr-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;

    width: 34px;
    height: 34px;

    border: 1px solid rgba(220, 180, 120, .5);
    border-radius: 50%;

    background: transparent;
    color: #f5dfba;
    font-size: 17px;

    cursor: pointer;
}

/* Heading */
.qr-modal-decoration {
    margin-bottom: 8px;
    color: #e8c18b;
    font-size: 25px;
}

.qr-modal-eyebrow {
    margin: 0 0 5px;
    font-size: 9px;
    letter-spacing: 3px;
    color: #dcb77f;
}

.qr-modal-content h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 43px;
    font-weight: 400;
    font-style: italic;
    color: #f5dfba;
}

.qr-modal-description {
    margin: 10px 0 22px;
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    line-height: 1.3;
    color: #f5e6d0;
}

/* QR Image */
.qr-image-wrapper {
    width: 205px;
    height: 205px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 10px;

    border: 1px solid #d9b477;
    border-radius: 12px;

    background: #fff;
}

.qr-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-modal-footer {
    margin: 20px 0 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
    font-style: italic;
    color: #e7c18e;
}

/* Mobile */
@media (max-width: 360px) {
    .qr-floating-button {
        right: 12px;
        bottom: 100px;
        padding: 9px 12px;
        font-size: 12px;
    }

    .qr-image-wrapper {
        width: 185px;
        height: 185px;
    }
}

body.qr-modal-open {
    overflow: hidden;
}






