/* =====================================================================
   THE WEDDING OF IQBAL & THOYBAH
   Design system: "Liquid Glass" — frosted glass · liquid sheen · premium
   Palette: warm gold / champagne / ivory  ·  Type: Great Vibes + Cormorant Garamond + Montserrat
   NB: semua class & ID asli dipertahankan; preloader & fitur tidak diubah.
   ===================================================================== */

/* --- DESIGN TOKENS --- */
:root {
    --primary-color: #b08d57;              /* di-inject ulang oleh PHP (theme_color) */
    --gold: var(--primary-color);
    --gold-deep: #8a6a3f;                  /* aksen lebih dalam utk teks kontras */
    --gold-soft: #d8b98a;
    --gold-soft2: #e9cf9f;
    --gold-tint: rgba(176, 141, 87, 0.18); /* garis & isian halus */
    --gold-line: rgba(176, 141, 87, 0.35);

    --ivory: #fffdf7;
    --cream: #faf1e2;
    --champagne: #f3e7d3;
    --ink: #3d3427;                        /* teks utama hangat */
    --ink-soft: #5c5143;                   /* teks sekunder */
    --muted: #8b8070;

    /* Kaca (glass) */
    --glass-high: rgba(255, 255, 255, 0.58);   /* highlight tepi kaca */
    --glass-mid: rgba(255, 253, 247, 0.40);
    --glass-low: rgba(255, 255, 255, 0.20);
    --glass-border: rgba(255, 255, 255, 0.50);
    --glass-blur: blur(26px) saturate(180%);
    --glass-blur-sm: blur(14px) saturate(160%);

    --shadow-sm: 0 6px 18px rgba(43, 28, 12, 0.08);
    --shadow-md: 0 16px 44px rgba(43, 28, 12, 0.14);
    --shadow-lg: 0 28px 70px rgba(43, 28, 12, 0.20);
    --shadow-gold: 0 12px 32px rgba(176, 141, 87, 0.38);

    --radius-sm: 14px;
    --radius: 20px;
    --radius-lg: 30px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 180ms;
    --t-mid: 280ms;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.75;
    overflow-x: hidden;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* FALLBACK BACKGROUND (yang terlihat sesungguhnya adalah lapisan fog body::before) */
    background-image: url('content/wp.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #dce8d0;            /* fallback hijau sage muda senada gambar */
}
body.no-scroll { overflow: hidden; height: 100vh; }

/* --- FOG BACKDROP: wallpaper dikaburkan kuat = "kabut" cair di belakang kaca --- */
body::before {
    content: '';
    position: fixed;
    inset: -8%;
    z-index: 0;
    pointer-events: none;
    background-image: url('content/wp.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(28px) saturate(1.05) brightness(1.02);
    transform: scale(1.08);              /* tutupi tepi yang terkabur */
}

/* --- AURORA LIQUID + VIGNETTE: warna cair senada hijau pastel di atas fog --- */
body::after {
    content: '';
    position: fixed;
    inset: -12%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(42% 46% at 24% 18%, rgba(255, 240, 214, 0.60), transparent 62%),   /* krem emas hangat */
        radial-gradient(36% 40% at 76% 28%, rgba(205, 232, 188, 0.55), transparent 62%),   /* hijau sage muda */
        radial-gradient(42% 46% at 58% 76%, rgba(180, 208, 160, 0.42), transparent 62%),   /* hijau pastel */
        radial-gradient(30% 34% at 86% 82%, rgba(236, 214, 218, 0.34), transparent 62%),   /* rose lembut */
        radial-gradient(120% 90% at 50% 0%, transparent 58%, rgba(52, 68, 44, 0.18) 100%), /* vignette hijau-gelap lembut */
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 20%, transparent 80%, rgba(52, 68, 44, 0.22));
    filter: blur(14px);                  /* blur di-render sekali (statis) */
    animation: liquidDrift 30s ease-in-out infinite alternate;
    will-change: transform;              /* hanya transform = komposit GPU murah */
}
/* PENTING: keyframes HANYA transform. Dulu blur/hue-rotate ikut dianimasikan
   → GPU mobile re-blur seluruh layar tiap frame = lag. */
@keyframes liquidDrift {
    0%   { transform: scale(1.00) rotate(0deg); }
    50%  { transform: scale(1.16) rotate(3.5deg); }
    100% { transform: scale(1.06) rotate(-2.5deg); }
}

main { position: relative; z-index: 1; }

p { letter-spacing: 0.2px; }

/* Aksesibilitas: fokus terlihat utk navigasi keyboard */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.gallery-item:focus-visible {
    outline: 2px solid var(--gold-soft);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Label kecil (Montserrat) — dipakai berulang */
.sub-title,
.section-title,
.card h3,
.input-group label,
.timer-item p,
.btn-open,
.btn-send,
.btn-map,
.btn-calendar,
.date,
.surah {
    font-family: 'Montserrat', sans-serif;
}

/* =====================================================================
   GLASS PANEL — resep kaca utk semua section besar
   ===================================================================== */
.mempelai,
.quotes,
.lovestory,
.details,
.gallery,
.guest-book {
    position: relative;
    overflow: hidden;
    margin: 26px auto;
    width: min(1120px, calc(100% - 28px));
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow:
        inset 0 1px 0 var(--glass-high),
        inset 0 0 0 1px rgba(176, 141, 87, 0.10),
        0 24px 60px rgba(43, 28, 12, 0.22);
    /* Fallback bila backdrop-filter tidak didukung (tetap ada kilau) */
    background: linear-gradient(150deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 252, 244, 0.60) 30%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 252, 244, 0.55) 70%,
        rgba(255, 252, 244, 0.85) 100%);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .mempelai,
    .quotes,
    .lovestory,
    .details,
    .gallery,
    .guest-book {
        /* Lapisan 1 = kilau diagonal (gloss) seperti tombol
           Lapisan 2-3 = kaca buram tembus background */
        background:
            linear-gradient(150deg,
                rgba(255, 255, 255, 0.65) 0%,
                rgba(255, 255, 255, 0.16) 26%,
                rgba(255, 255, 255, 0.02) 46%,
                rgba(255, 255, 255, 0.30) 60%,
                rgba(255, 255, 255, 0.05) 100%),
            linear-gradient(152deg, rgba(255, 252, 246, 0.55), rgba(255, 255, 255, 0.20)),
            rgba(255, 252, 246, 0.30);
        -webkit-backdrop-filter: var(--glass-blur);
        backdrop-filter: var(--glass-blur);
    }
}

/* Kilau cair mengalir (sheen) pada setiap panel — seperti tombol */
.mempelai::after,
.quotes::after,
.lovestory::after,
.details::after,
.gallery::after,
.guest-book::after {
    content: '';
    position: absolute;
    top: -60%; left: -70%;
    width: 45%; height: 220%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transform: skewX(-18deg);
    animation: cardSheen 7.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}
/* agar teks panel tetap di atas lapisan kilau */
.mempelai > *, .quotes > *, .lovestory > *, .details > *, .gallery > *, .guest-book > * { position: relative; z-index: 3; }

/* Cahaya cair yang mengalir lembut di tepi atas setiap panel kaca */
.mempelai::before,
.quotes::before,
.lovestory::before,
.details::before,
.gallery::before,
.guest-book::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), var(--gold-soft), rgba(255, 255, 255, 0.9), transparent);
    opacity: 0.8;
    pointer-events: none;
}

/* =====================================================================
   HERO / COVER
   ===================================================================== */
.hero {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; z-index: 9999;
    background: linear-gradient(rgba(28, 22, 16, 0.55), rgba(28, 22, 16, 0.65)), url('content/cover.jpg');
    background-size: cover; background-position: center;
    display: flex; justify-content: center; align-items: center; text-align: center; color: #fff;
    transition: transform 1s var(--ease), opacity 1s var(--ease);
    overflow: hidden;
}
.hero.hide { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.hero.hide::before { animation: none; }   /* shimmer mati setelah undangan dibuka */

/* Kilau permukaan cair — garis cahaya menyapu hero pelan-pelan */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
        transparent 32%,
        rgba(255, 255, 255, 0.14) 45%,
        rgba(255, 255, 255, 0.02) 52%,
        rgba(255, 255, 255, 0.08) 66%,
        transparent 78%);
    background-size: 260% 260%;
    animation: heroShimmer 11s linear infinite;
    pointer-events: none;
}
@keyframes heroShimmer {
    0%   { background-position: 130% 0; }
    100% { background-position: -130% 0; }
}

/* Bingkai kaca dekoratif tipis di dalam hero */
.hero::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
    padding: 30px 22px;
    max-width: 560px;
    animation: heroRise 1.1s var(--ease) both;
}
@keyframes heroRise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3.4rem, 9vw, 5.6rem);
    font-weight: 400;
    line-height: 1.05;
    color: #fff;
    margin: 8px 0 6px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.sub-title {
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

/* Tanggal di hero dengan garis hias di kiri-kanan */
.hero .date {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    letter-spacing: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold-soft2);
    margin-top: 4px;
}
.hero .date::before,
.hero .date::after {
    content: '';
    width: 38px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.hero .date::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* --- GUEST BOX & COUNTDOWN (panel kaca utama, kini mengkilap) --- */
.guest-box {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.10) 32%,
        rgba(255, 255, 255, 0.34) 52%,
        rgba(255, 255, 255, 0.08) 100%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
    padding: 30px 26px;
    border-radius: var(--radius-lg);
    margin: 28px auto;
    max-width: 470px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.60),
        inset 0 -24px 40px -20px rgba(255, 255, 255, 0.25),
        0 22px 60px rgba(0, 0, 0, 0.30);
}
/* kilau bergerak menyapu panel — sama seperti tombol */
.guest-box::after {
    content: '';
    position: absolute; top: -60%; left: -70%; width: 45%; height: 220%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.50), transparent);
    transform: skewX(-18deg);
    animation: cardSheen 6.5s ease-in-out infinite;
    pointer-events: none;
}
/* teks tetap di atas kilau */
.guest-box > * { position: relative; z-index: 1; }
.guest-box > p { font-size: 1rem; color: rgba(255, 255, 255, 0.88); }
#guest-name {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold-soft2);
    font-size: 2rem;
    font-weight: 600;
    margin: 8px 0 6px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.countdown { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.timer-item {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.22));
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    backdrop-filter: blur(10px) saturate(160%);
    padding: 13px 6px; border-radius: var(--radius-sm); min-width: 66px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 8px 22px rgba(0, 0, 0, 0.18);
}
.timer-item span {
    display: block; font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem; font-weight: 700; color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.timer-item p { font-size: 0.55rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-soft2); margin-top: 4px; }

/* Tombol utama */
.btn-open {
    display: inline-block; padding: 15px 44px;
    background: linear-gradient(135deg, var(--gold-soft2), var(--gold));
    color: #fff; text-decoration: none; border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    font-size: 0.82rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    margin-top: 26px;
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative; overflow: hidden;
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.btn-open:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(176, 141, 87, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-open:active { transform: translateY(-1px) scale(0.99); }
/* kilau cair pada tombol */
.btn-open::after {
    content: '';
    position: absolute; top: 0; bottom: 0; width: 45%;
    left: -60%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: btnSheen 4.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes btnSheen {
    0%, 55% { left: -60%; }
    100%    { left: 130%; }
}

/* =====================================================================
   SECTION TITLES + ORNAMEN
   ===================================================================== */
.section-title__wrapper {
    position: relative; z-index: 1;
    display: flex; justify-content: center;
    padding: 4px 24px;
}
.section-title {
    font-size: clamp(1.4rem, 4.5vw, 1.85rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--gold-deep);
    margin-bottom: 42px;
    display: block; width: 100%; text-align: center;
    position: relative; z-index: 1;
}
.section-title::after {
    content: '';
    display: block;
    width: 120px; height: 12px;
    margin: 16px auto 0;
    background:
        radial-gradient(circle, var(--gold) 0 2.6px, transparent 3.2px) center / 10px 10px no-repeat,
        linear-gradient(90deg, transparent, var(--gold-line) 18%, var(--gold-line) 82%, transparent) center / 120px 1px no-repeat;
}

/* =====================================================================
   MEMPELAI
   ===================================================================== */
.mempelai {
    padding: 70px 22px 56px;
    text-align: center;
}
.greeting {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 6vw, 2.8rem);
    color: var(--gold-deep);
    line-height: 1.2;
    margin-bottom: 6px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.intro {
    max-width: 600px; margin: 0 auto;
    font-size: 1.08rem; color: var(--ink-soft);
}
.mempelai-flex {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 10px; margin-top: 10px;
}
.mempelai-detail { flex: 1 1 280px; max-width: 360px; padding: 10px 16px; }
.nama-lengkap {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.8rem, 9vw, 3.8rem);
    font-weight: 400; line-height: 1.1;
    color: var(--gold-deep); margin-bottom: 8px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.orang-tua { font-size: 1.02rem; color: var(--ink-soft); font-style: italic; }

/* Medali kaca pemisah "&" */
.separator {
    font-family: 'Great Vibes', cursive;
    font-size: 2.1rem; line-height: 1;
    color: var(--gold-deep);
    width: 62px; height: 62px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.65), rgba(176, 141, 87, 0.28));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 28px rgba(43, 28, 12, 0.16);
    margin: 6px 18px; flex: 0 0 auto;
}

/* =====================================================================
   QUOTES
   ===================================================================== */
.quotes {
    padding: 78px 22px 40px;
    text-align: center;
}
.quotes-container { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }
.arabic {
    font-size: clamp(1.5rem, 5vw, 1.9rem);
    line-height: 2.4;
    margin-bottom: 26px;
    color: var(--gold-deep);
    direction: rtl;
    font-family: 'Cormorant Garamond', 'Amiri', serif;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.translation {
    font-size: 1.12rem; line-height: 1.85; color: var(--ink-soft);
    font-style: italic; margin-bottom: 12px; padding: 0 10px;
}
.surah {
    font-weight: 600; font-size: 0.78rem;
    color: var(--gold-deep); text-transform: uppercase; letter-spacing: 3px;
}

/* Divider dekoratif */
.divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 42px; }
.divider span {
    display: block; width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-line));
}
.divider span:last-child { background: linear-gradient(90deg, var(--gold-line), transparent); }
.divider .icon { font-style: normal; font-size: 1.25rem; line-height: 1; }

/* =====================================================================
   LOVE STORY TIMELINE — rail kiri, rapi & terkurung utk berapa pun item
   (mengganti model zig-zag yang menyebabkan overflow di mobile)
   ===================================================================== */
.lovestory { padding: 80px 22px; text-align: center; }
.timeline {
    position: relative;
    max-width: 600px;
    margin: 42px auto 0;
    text-align: left;
}
.timeline-item {
    position: relative;
    padding: 0 4px 30px 38px;     /* ruang utk rail + titik di kiri */
    box-sizing: border-box;
    width: 100%;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute; left: 8px; top: 10px; bottom: -10px; width: 2px;
    background: linear-gradient(180deg, var(--gold), var(--gold-line));
    border-radius: 2px;
}
.timeline-item:last-child::before { display: none; }
.timeline-item::after {
    content: '';
    position: absolute; left: 1px; top: 8px; width: 16px; height: 16px;
    background: radial-gradient(circle at 35% 30%, #fff, var(--gold-soft));
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--gold-tint), 0 4px 12px rgba(176, 141, 87, 0.5);
    z-index: 1;
}
.timeline-content {
    padding: 22px;
    background: rgba(255, 253, 247, 0.45);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    backdrop-filter: blur(10px) saturate(150%);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 26px rgba(43, 28, 12, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.45);
    position: relative;
}
.timeline-content h3 { color: var(--gold-deep); margin-bottom: 6px; font-size: 1.35rem; font-weight: 600; }
.timeline-content span.date {
    display: block; font-family: 'Montserrat', sans-serif; font-size: 0.72rem; color: var(--muted);
    margin-bottom: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}
.timeline-content p { color: var(--ink-soft); }

/* =====================================================================
   EVENT / DETAILS + CARDS
   ===================================================================== */
.details { padding: 80px 22px; text-align: center; }
.info-grid {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
    gap: 24px; margin: 42px auto; max-width: 1000px;
}
.card {
    position: relative;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.58), rgba(255, 251, 242, 0.30));
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    padding: 44px 32px; border-radius: var(--radius-lg); width: 330px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 18px 44px rgba(43, 28, 12, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.55);
    display: flex; flex-direction: column; justify-content: center;
    overflow: hidden;
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
/* aksen emas tipis di atas kartu */
.card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-soft2), transparent);
    opacity: 0.9;
}
/* kilau cair yang menyapu kartu */
.card::after {
    content: '';
    position: absolute; top: -60%; left: -70%; width: 40%; height: 220%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-18deg);
    animation: cardSheen 6.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes cardSheen {
    0%, 55% { left: -70%; }
    100%    { left: 150%; }
}
.card:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 26px 60px rgba(43, 28, 12, 0.24); }
.card h3 {
    font-size: 0.9rem; color: var(--gold-deep);
    letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-bottom: 16px;
}
.card p { color: var(--ink-soft); }
.card p strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--ink); margin: 10px 0; font-weight: 700; }
/* Logo bank / QRIS */
.card img { max-width: 150px; margin: 0 auto; }

/* =====================================================================
   GALLERY
   ===================================================================== */
.gallery { padding: 80px 22px; text-align: center; }
.gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 1100px; margin: 0 auto; }
.gallery-item {
    position: relative;
    width: 260px; height: 260px; border-radius: var(--radius); overflow: hidden; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 30px rgba(43, 28, 12, 0.16);
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(43, 28, 12, 0.35));
    opacity: 0; transition: opacity var(--t-mid) var(--ease);
}
.gallery-item:hover { transform: translateY(-4px) scale(1.015); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 22px 48px rgba(43, 28, 12, 0.26); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }

/* Ikon zoom (kaca pembesar) saat hover */
.gallery-zoom {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.30);
    -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 26px rgba(43, 28, 12, 0.28);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    opacity: 0; transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
    z-index: 2; pointer-events: none;
}
.gallery-item:hover .gallery-zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* =====================================================================
   GUEST BOOK & FORM
   ===================================================================== */
.guest-book { padding: 90px 22px; text-align: center; }
.guest-book-container { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.rsvp-form {
    background: rgba(255, 255, 255, 0.42);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    padding: 44px; border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 18px 44px rgba(43, 28, 12, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: left;
    position: relative; overflow: hidden;
}
/* kilau cair pada form */
.rsvp-form::after {
    content: '';
    position: absolute; top: -70%; left: -70%; width: 35%; height: 240%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    animation: cardSheen 8s ease-in-out infinite;
    pointer-events: none;
}
.input-row { display: flex; gap: 22px; }
.input-group { flex: 1; margin-bottom: 22px; }
.input-group label {
    display: block; font-size: 0.72rem; font-weight: 600; color: var(--gold-deep);
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 9px;
}
.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 15px 16px; border-radius: var(--radius-sm);
    font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--ink);
    background: rgba(255, 255, 255, 0.40);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 3px rgba(43, 28, 12, 0.06);
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.input-group input::placeholder, .input-group textarea::placeholder { color: var(--muted); }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none; border-color: var(--gold-soft);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 3px rgba(43, 28, 12, 0.04), 0 0 0 4px var(--gold-tint);
}
.input-group input[readonly] { background: rgba(241, 236, 226, 0.7); color: var(--muted); }
.input-group textarea { resize: vertical; }

.btn-send {
    width: 100%;
    background: linear-gradient(135deg, var(--gold-soft2), var(--gold));
    color: #fff; padding: 17px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative; overflow: hidden;
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.btn-send:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(176, 141, 87, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-send:active { transform: translateY(-1px); }
.btn-send::after {
    content: '';
    position: absolute; top: 0; bottom: 0; width: 45%;
    left: -60%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    animation: btnSheen 4.2s ease-in-out infinite;
    pointer-events: none;
}

.message-wall { margin-top: 34px; max-height: 420px; overflow-y: auto; text-align: left; padding: 6px 10px; }
.msg-card {
    background: rgba(255, 255, 255, 0.40);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    backdrop-filter: blur(10px) saturate(150%);
    padding: 18px 20px; border-radius: var(--radius-sm);
    margin-bottom: 12px; border: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 3px solid var(--gold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px rgba(43, 28, 12, 0.10);
    animation: slideIn 0.5s var(--ease);
}
.msg-card strong { color: var(--gold-deep); font-size: 1.1rem; }
.msg-card p { margin: 6px 0; color: var(--ink); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Scrollbar halus utk dinding ucapan */
.message-wall::-webkit-scrollbar { width: 8px; }
.message-wall::-webkit-scrollbar-thumb { background: var(--gold-line); border-radius: 8px; }

/* =====================================================================
   MAP & TOMBOL SEKUNDER
   ===================================================================== */
.map-container { margin-top: 18px; position: relative; z-index: 1; }
/* Bungkus peta dalam panel kaca agar serasi dgn kartu lainnya */
.map-box {
    max-width: 840px;
    margin: 24px auto;
    padding: 14px;
    border-radius: calc(var(--radius-lg) + 8px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 253, 247, 0.30);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 18px 44px rgba(43, 28, 12, 0.18);
}
.map-wrapper {
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.35);
}
.map-wrapper iframe { display: block; }

.btn-map, .btn-calendar {
    display: inline-block; padding: 13px 28px;
    background: linear-gradient(135deg, var(--gold-soft2), var(--gold));
    color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase;
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative; overflow: hidden;
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.btn-map:hover, .btn-calendar:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(176, 141, 87, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-map:active, .btn-calendar:active { transform: translateY(0); }
.btn-map::after, .btn-calendar::after {
    content: '';
    position: absolute; top: 0; bottom: 0; width: 45%;
    left: -60%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    animation: btnSheen 4.2s ease-in-out infinite;
    pointer-events: none;
}

/* =====================================================================
   MUSIC CONTROL & LIGHTBOX
   ===================================================================== */
.music-control {
    position: fixed; bottom: 26px; right: 26px;
    display: none;                 /* JS → flex saat undangan dibuka */
    flex-direction: column; align-items: center; gap: 10px;
    z-index: 1000;
}

/* Tombol speaker (lingkaran kaca emas) */
.music-btn {
    order: 2; flex: 0 0 auto;
    position: relative;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft2), var(--gold));
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.music-btn:hover { transform: scale(1.08); box-shadow: 0 16px 38px rgba(176, 141, 87, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.music-btn:active { transform: scale(1.02); }
.music-btn .ic { width: 26px; height: 26px; display: block; }
.music-btn .ic-muted { display: none; }
.music-btn.is-muted .ic-speaker { display: none; }
.music-btn.is-muted .ic-muted { display: block; }

/* Denyut halus saat musik berputar */
.music-control.playing .music-btn::after {
    content: ''; position: absolute; inset: -1px; border-radius: 50%;
    border: 2px solid var(--gold-soft2);
    animation: musicRipple 1.9s ease-out infinite;
    pointer-events: none;
}
@keyframes musicRipple {
    0%   { transform: scale(1);   opacity: 0.55; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* Panel volume (muncul ke atas saat speaker ditekan) — kaca */
.volume-popover {
    order: 1;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16));
    -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 30px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 34px rgba(0, 0, 0, 0.22);
    max-height: 0; padding: 0; opacity: 0;
    overflow: hidden; pointer-events: none;
    transform: translateY(14px);
    transition: max-height var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease),
                transform var(--t-mid) var(--ease), padding var(--t-mid) var(--ease);
}
.music-control.open .volume-popover {
    max-height: 230px; opacity: 1; pointer-events: auto;
    transform: translateY(0);
    padding: 18px 10px 14px;
}
.volume-popover .volume-slider { order: 1; }   /* slider di atas */
.volume-popover .vp-toggle { order: 2; }       /* play/jeda di bawah */

/* Play / Jeda di dalam panel */
.vp-toggle {
    flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft2), var(--gold));
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform var(--t-fast) var(--ease);
}
.vp-toggle:hover { transform: scale(1.1); }
.vp-toggle .ic { width: 15px; height: 15px; display: block; }
.vp-toggle .ic-play { display: none; }
.vp-toggle.is-paused .ic-pause { display: none; }
.vp-toggle.is-paused .ic-play { display: block; }

/* Slider volume (vertikal) */
.volume-slider {
    -webkit-appearance: none; appearance: none;
    writing-mode: vertical-lr; direction: rtl;   /* 0 di bawah, maks di atas */
    width: 6px; height: 120px; border-radius: 6px;
    background: rgba(255, 255, 255, 0.55);
    outline: none; cursor: pointer; margin: 0;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 2px solid var(--gold);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); cursor: pointer;
}
.volume-slider::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 2px solid var(--gold); cursor: pointer;
}

.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(20, 14, 8, 0.86);
    -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
    display: none; justify-content: center; align-items: center; z-index: 10000;
    opacity: 0; transform: scale(0.94); transition: opacity .26s var(--ease), transform .26s var(--ease);
}
.lightbox.lb-open { opacity: 1; transform: scale(1); }

/* Bungkus gambar dalam panel kaca */
.lightbox-panel {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    max-width: 94vw; max-height: 90vh;
    padding: 14px;
    border-radius: calc(var(--radius-lg) + 8px);
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: linear-gradient(150deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.06) 45%,
        rgba(255, 255, 255, 0.16) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.40), 0 40px 110px rgba(0, 0, 0, 0.55);
}
.lb-figure { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.lightbox-img-shell { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.35); }
.lightbox img {
    display: block;
    max-width: 82vw; max-height: 72vh;
    width: auto; height: auto;
    border-radius: var(--radius);
    object-fit: contain;
    transform-origin: center center;
    transition: transform .5s var(--ease);
    user-select: none; -webkit-user-drag: none;
}
/* zoom-in penuh (anti-double-tap) */
.lightbox img.lb-zoomed {
    transform: scale(1.9);
    cursor: zoom-out;
}
/* animasi pertukaran gambar kiri/kanan */
.lightbox img.lb-swoop {
    animation: lbSwoop .42s var(--ease);
}
@keyframes lbSwoop {
    0%   { opacity: .15; transform: scale(.86) translateX(38px); }
    60%  { opacity: 1; transform: scale(1.03) translateX(-4px); }
    100% { opacity: 1; transform: scale(1) translateX(0); }
}

/* Navigasi + meta */
.lb-btn {
    flex: 0 0 auto;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
    -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
    color: #fff; font-size: 1.6rem; line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px rgba(0, 0, 0, 0.35);
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.lb-btn:hover { transform: scale(1.08); background: linear-gradient(150deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16)); }
.lb-btn:active { transform: scale(0.96); }
.lb-close { position: absolute; top: -18px; right: -18px; z-index: 2; background: rgba(40, 26, 12, 0.55); }
.lb-prev { order: 0; }
.lb-next { order: 2; }
.lb-meta {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    width: 100%;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
}
.lb-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-counter { flex: 0 0 auto; opacity: .85; }

/* Mobile: panel tanpa tombol panah (pakai swipe) */
@media (max-width: 600px) {
    .lb-prev, .lb-next { display: none; }
    .lightbox-panel { padding: 10px; gap: 6px; }
    .lb-close { top: -14px; right: -14px; }
}

/* =====================================================================
   AOS guard
   ===================================================================== */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 600px) {
    body { font-size: 17px; }
    .mempelai, .quotes, .lovestory, .details, .gallery, .guest-book {
        width: calc(100% - 20px);
        margin: 18px auto;
        border-radius: 24px;
    }
    .input-row { flex-direction: column; gap: 0; }
    .card {
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.58), rgba(255, 251, 242, 0.30));
        -webkit-backdrop-filter: blur(16px) saturate(160%);
        backdrop-filter: blur(16px) saturate(160%);
        padding: 38px 26px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 18px 44px rgba(43, 28, 12, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.55);
        width: 100%;
    }
    .rsvp-form { padding: 30px 22px; }
    .gallery-item { width: 100%; height: 300px; }
    .separator { margin: 6px 0; flex-basis: 100%; width: 100%; text-align: center; }
    .section-title { letter-spacing: 2.5px; }   /* cegah judul terpotong di layar kecil */
    .hero::after { inset: 12px; }

    /* --- OPTIMASI MOBILE: kurangi beban GPU --- */
    .mempelai, .quotes, .lovestory, .details, .gallery, .guest-book {
        -webkit-backdrop-filter: blur(10px) saturate(150%);
        backdrop-filter: blur(10px) saturate(150%);
    }
    body::before { filter: blur(18px) saturate(1.05) brightness(1.02); }
    /* aurora: berhenti drift di HP (layer fullscreen, paling mahal) */
    body::after { animation: none; }
    /* kilau sheen: jalankan sekali saja, bukan infinite */
    .mempelai::after, .quotes::after, .lovestory::after, .details::after,
    .gallery::after, .guest-book::after,
    .guest-box::after, .card::after, .rsvp-form::after,
    .btn-open::after, .btn-send::after, .btn-map::after, .btn-calendar::after {
        animation-iteration-count: 2;
    }
    .hero::before { animation: none; }
}

/* =====================================================================
   REDUCED MOTION (aksesibilitas)
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .music-control.playing .music-btn::after { animation: none; }
    body::before, body::after { animation: none; }
    .hero::before { animation: none; }
    .btn-open::after, .btn-send::after, .btn-map::after, .btn-calendar::after,
    .card::after, .rsvp-form::after { animation: none; }
}
