/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d4af37;
    --primary-dark: #a9822b;
    --primary-light: #f3dc9a;
    --primary-glow: rgba(212, 175, 55, 0.3);
    --secondary: #f5e6c8;
    --sogan-deep: #170c05;
    --sogan: #2b1608;
    --sogan-soft: #3d2110;
    --batik-base: #170c05;
    --batik-gold: #d4af37;
    --gold-gradient: linear-gradient(135deg, #b8860b 0%, #f3dc9a 45%, #d4af37 100%);
    --light: var(--batik-base);
    --text: #f5e6c8;
    --text-light: #f5e6c8;
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Poppins', sans-serif;
    --shadow: 0 10px 40px rgba(0,0,0,0.5);
    --radius: 12px;
    --corner-flower: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><defs><g id='fl'><ellipse rx='6' ry='14' cy='-15'/><ellipse rx='6' ry='14' cy='-15' transform='rotate(45)'/><ellipse rx='6' ry='14' cy='-15' transform='rotate(90)'/><ellipse rx='6' ry='14' cy='-15' transform='rotate(135)'/><ellipse rx='6' ry='14' cy='-15' transform='rotate(180)'/><ellipse rx='6' ry='14' cy='-15' transform='rotate(225)'/><ellipse rx='6' ry='14' cy='-15' transform='rotate(270)'/><ellipse rx='6' ry='14' cy='-15' transform='rotate(315)'/><circle r='4.5'/></g><g id='bd'><ellipse rx='3.4' ry='9' cy='-9'/><ellipse rx='3.4' ry='9' cy='-9' transform='rotate(72)'/><ellipse rx='3.4' ry='9' cy='-9' transform='rotate(144)'/><ellipse rx='3.4' ry='9' cy='-9' transform='rotate(216)'/><ellipse rx='3.4' ry='9' cy='-9' transform='rotate(288)'/><circle r='2.2'/></g><g id='cn' fill='none' stroke-width='1.8' stroke-linecap='round'><path d='M14 14 C 62 20 112 16 168 14'/><path d='M14 14 C 20 62 16 112 14 168'/><path d='M32 32 C 62 46 80 68 92 100'/><path d='M32 32 C 46 62 68 80 100 92'/><path d='M32 32 C 70 34 96 30 124 24'/><path d='M32 32 C 34 70 30 96 24 124'/><g transform='translate(32,32)'><use href='%23fl'/></g><g transform='translate(100,92) rotate(30)'><use href='%23bd'/></g><g transform='translate(92,100) rotate(-30)'><use href='%23bd'/></g><g transform='translate(124,24) rotate(12)'><use href='%23bd'/></g><g transform='translate(24,124) rotate(-12)'><use href='%23bd'/></g></g></defs><g stroke='%23000000' opacity='0.7' transform='translate(1.4,1.4)'><use href='%23cn'/></g><g stroke='%23fff4d2' opacity='0.35' transform='translate(-1.4,-1.4)'><use href='%23cn'/></g><g stroke='%23d4af37' opacity='0.9'><use href='%23cn'/></g></svg>");
    --batik-kawung: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%23d4af37' stroke-width='1.1'><circle cx='30' cy='30' r='17'/><circle cx='30' cy='30' r='9'/><circle cx='90' cy='30' r='17'/><circle cx='90' cy='30' r='9'/><circle cx='30' cy='90' r='17'/><circle cx='30' cy='90' r='9'/><circle cx='90' cy='90' r='17'/><circle cx='90' cy='90' r='9'/><circle cx='60' cy='60' r='5'/><circle cx='0' cy='60' r='5'/><circle cx='120' cy='60' r='5'/><circle cx='60' cy='0' r='5'/><circle cx='60' cy='120' r='5'/></g></svg>");
    --batik-parang: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><g fill='none' stroke='%23d4af37' stroke-width='2.4' stroke-linecap='round'><path d='M-30 60 C 5 25 25 5 60 -30'/><path d='M15 105 C 50 70 70 50 105 15'/><path d='M60 150 C 95 115 115 95 150 60'/><path d='M105 195 C 140 160 160 140 195 105'/><path d='M-10 120 C 10 100 20 90 40 70' stroke-width='1'/><path d='M35 165 C 55 145 65 135 85 115' stroke-width='1'/><path d='M80 210 C 100 190 110 180 130 160' stroke-width='1'/></g></svg>");
    --vintage-frond: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><defs><g id='fr' fill='none' stroke='%23e6cdb4' stroke-width='1.5' stroke-linecap='round'><path d='M0 0 C 3 -22 5 -44 0 -68'/><path d='M0 -12 C -11 -18 -18 -27 -20 -38'/><path d='M0 -12 C 11 -18 18 -27 20 -38'/><path d='M0 -25 C -10 -31 -16 -40 -18 -51'/><path d='M0 -25 C 10 -31 16 -40 18 -51'/><path d='M0 -38 C -8 -44 -12 -51 -13 -60'/><path d='M0 -38 C 8 -44 12 -51 13 -60'/><path d='M0 -50 C -5 -55 -8 -60 -9 -66'/><path d='M0 -50 C 5 -55 8 -60 9 -66'/></g></defs><g opacity='0.85'><use href='%23fr' transform='translate(30,230) rotate(-12) scale(1.05)'/><use href='%23fr' transform='translate(78,238) rotate(14) scale(0.85)'/><use href='%23fr' transform='translate(128,228) rotate(-20) scale(1.15)'/><use href='%23fr' transform='translate(186,240) rotate(10) scale(0.95)'/><use href='%23fr' transform='translate(228,222) rotate(24) scale(0.8)'/><use href='%23fr' transform='translate(10,120) rotate(-30) scale(0.75)'/><use href='%23fr' transform='translate(104,118) rotate(6) scale(0.7)'/><use href='%23fr' transform='translate(160,126) rotate(-16) scale(0.8)'/><use href='%23fr' transform='translate(56,112) rotate(28) scale(0.65)'/><use href='%23fr' transform='translate(212,110) rotate(-8) scale(0.7)'/></g></svg>");
    --vintage-sulur: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='none' stroke='%23e8d3ba' stroke-width='1.8' stroke-linecap='round'><path d='M4 4 C 56 22 96 62 118 116'/><path d='M4 4 C 22 56 62 96 116 118'/><path d='M26 10 C 54 26 70 48 76 74'/><path d='M10 26 C 26 54 48 70 74 76'/><path d='M40 18 C 34 34 38 48 52 58'/><path d='M18 40 C 34 34 48 38 58 52'/><path d='M84 52 C 78 66 82 78 94 86'/><path d='M52 84 C 66 78 78 82 86 94'/></g><g fill='%23e8d3ba' opacity='0.9'><ellipse cx='30' cy='30' rx='9' ry='4.5' transform='rotate(45 30 30)'/><ellipse cx='66' cy='40' rx='7' ry='3.5' transform='rotate(20 66 40)'/><ellipse cx='40' cy='66' rx='3.5' ry='7' transform='rotate(20 40 66)'/><ellipse cx='104' cy='84' rx='6' ry='3' transform='rotate(35 104 84)'/><ellipse cx='84' cy='104' rx='3' ry='6' transform='rotate(35 84 104)'/><circle cx='120' cy='120' r='3.5'/></g></svg>");
    --vintage-gunungan: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='110' height='150' viewBox='0 0 110 150'><g fill='none' stroke='%23f0dcc4' stroke-width='2' stroke-linejoin='round'><path d='M55 4 C 66 28 84 44 88 72 C 92 104 76 130 55 144 C 34 130 18 104 22 72 C 26 44 44 28 55 4 Z'/><path d='M55 18 C 63 36 76 50 79 72 C 82 98 70 118 55 130 C 40 118 28 98 31 72 C 34 50 47 36 55 18 Z' stroke-width='1.2'/><path d='M55 46 C 62 56 66 66 66 76 C 66 92 61 102 55 110 C 49 102 44 92 44 76 C 44 66 48 56 55 46 Z' stroke-width='1.2'/><path d='M40 84 C 46 88 50 94 51 102'/><path d='M70 84 C 64 88 60 94 59 102'/></g><g fill='%23f0dcc4'><circle cx='55' cy='76' r='4'/><circle cx='55' cy='34' r='2.6'/><circle cx='30' cy='108' r='2.2'/><circle cx='80' cy='108' r='2.2'/></g></svg>");
    --opening-floral: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><defs><g id='rose'><circle r='15' fill='%23e9a7ad'/><circle r='10' fill='%23f3c3c6'/><circle r='5.5' fill='%23fbe3d4'/><path d='M-7 1 A 7 7 0 1 1 7 1' fill='none' stroke='%23d98a92' stroke-width='1.4'/></g></defs><g fill='none' stroke='%23c9a24a' stroke-width='2' stroke-linecap='round' opacity='0.95'><path d='M8 8 C 62 32 92 72 112 132'/><path d='M8 8 C 32 62 72 92 132 112'/><path d='M34 16 C 62 24 86 42 102 68'/><path d='M16 34 C 24 62 42 86 68 102'/></g><g fill='%23a9bd93'><ellipse cx='66' cy='32' rx='16' ry='7' transform='rotate(18 66 32)'/><ellipse cx='32' cy='66' rx='7' ry='16' transform='rotate(-18 32 66)'/><ellipse cx='106' cy='60' rx='14' ry='6' transform='rotate(35 106 60)'/><ellipse cx='60' cy='106' rx='6' ry='14' transform='rotate(-35 60 106)'/><ellipse cx='130' cy='98' rx='12' ry='5.5' transform='rotate(48 130 98)'/><ellipse cx='98' cy='130' rx='5.5' ry='12' transform='rotate(-48 98 130)'/></g><g transform='translate(26,26) scale(1.15)'><use href='%23rose'/></g><g transform='translate(76,54) scale(0.8)'><use href='%23rose'/></g><g transform='translate(54,76) scale(0.8)'><use href='%23rose'/></g><g transform='translate(104,98) scale(0.6)'><use href='%23rose'/></g><g transform='translate(142,120) scale(0.68)'><use href='%23rose'/></g><g transform='translate(120,142) scale(0.68)'><use href='%23rose'/></g></svg>");
    --batik-bg:
        radial-gradient(ellipse at 50% -10%, rgba(212, 175, 55, 0.14) 0%, transparent 55%) fixed,
        radial-gradient(ellipse at 50% 110%, rgba(184, 134, 11, 0.12) 0%, transparent 55%) fixed,
        linear-gradient(180deg, #170c05 0%, #2b1608 35%, #1d0f06 70%, #120802 100%) fixed;
}

/* ===== Luxury Flower Corner Frame ===== */
.lux-frame {
    position: fixed;
    inset: 0;
    z-index: 905;
    pointer-events: none;
}

.lux-corner {
    position: absolute;
    width: 170px;
    height: 170px;
    background: var(--corner-flower) center / contain no-repeat;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
    animation: lux-glow 5s ease-in-out infinite;
}

.lux-tl { top: 0; left: 0; }
.lux-tr { top: 0; right: 0; transform: scaleX(-1); }
.lux-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.lux-br { bottom: 0; right: 0; transform: scale(-1, -1); }

@keyframes lux-glow {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .lux-corner { width: 110px; height: 110px; }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background-color: var(--light);
    background: var(--batik-bg);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Javanese Batik Background Layers ===== */
body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

body::before {
    background: var(--batik-kawung) repeat center / 120px 120px;
    opacity: 0.09;
}

body::after {
    background: var(--batik-parang) repeat center / 180px 180px;
    opacity: 0.07;
    mask-image: radial-gradient(ellipse at 50% 40%, transparent 8%, black 65%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, transparent 8%, black 65%);
}

::selection {
    background: rgba(212, 175, 55, 0.35);
    color: #fff8e1;
}

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #120802;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #8b5a2b);
    border-radius: 10px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: var(--font-sans);
    cursor: pointer;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 0;
}

/* ===== Music Toggle ===== */
.music-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    color: var(--text);
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.music-toggle:hover {
    transform: scale(1.1);
    background: rgba(212, 175, 55, 0.25);
}

.music-toggle.playing {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== Cover ===== */
.cover {
    position: fixed;
    inset: 0;
    z-index: 900;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    color: var(--text);
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

.cover-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cover-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(12, 8, 6, 0.85) 0%, rgba(12, 8, 6, 0.2) 50%, rgba(12, 8, 6, 0.4) 100%);
}

.cover.hidden-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cover-content {
    position: relative;
    z-index: 2;
    padding: 20px 20px 60px;
    width: 100%;
    max-width: 600px;
}

.cover-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.9);
}

.cover-title {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text);
    text-shadow: 1px 1px 8px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.cover-date {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.85);
}

.cover-guest {
    margin-bottom: 25px;
}

.cover-guest-label {
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.75);
}

.cover-guest-name {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text);
}

.btn-open {
    padding: 12px 36px;
    background: var(--gold-gradient);
    color: #0c0806;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-open-icon {
    font-size: 1rem;
}

.btn-open:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.45);
}

.cover-volume {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 175, 55, 0.15);
    padding: 8px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    font-size: 0.8rem;
    color: var(--text);
}

.volume-bar {
    width: 80px;
    height: 4px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.volume-fill {
    display: block;
    height: 100%;
    background: var(--primary);
}

/* ===== Main Content ===== */
.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.main-content.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text);
    position: relative;
    background: transparent;
    padding: 80px 20px 60px;
    overflow: hidden;
}

.hero-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 3/4;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow:
        0 0 0 8px rgba(23, 12, 5, 0.9),
        0 0 0 9px rgba(212, 175, 55, 0.22),
        0 25px 60px rgba(0, 0, 0, 0.65);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-header {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 90%;
    max-width: 500px;
}

.hero-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.5);
    max-width: 120px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
}

.hero-vertical-date {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    z-index: 3;
    writing-mode: vertical-rl;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
}

.hero-watermark {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 0.65rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

/* ===== Section Titles ===== */
.section-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text);
    position: relative;
    letter-spacing: 2px;
}

.section-title {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after,
.gallery-title::after,
.rsvp-title::after,
.gift-title::after {
    content: '';
    display: block;
    width: 140px;
    height: 12px;
    background:
        linear-gradient(90deg, transparent, var(--primary) 20%, var(--primary) 80%, transparent) center / 100% 1px no-repeat,
        radial-gradient(circle, var(--primary-light) 0 3px, transparent 4px) center / 12px 12px no-repeat;
    margin: 18px auto 0;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
}

.section-title.light {
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255,255,255,0.75);
}

/* ===== Quote ===== */
.quote-section {
    background: transparent;
    text-align: center;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.quote-section .container {
    padding: 0 20px;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-style: italic;
    color: #f5f5f5;
    max-width: 680px;
    margin: 0 auto 15px;
    line-height: 1.9;
    letter-spacing: 0.5px;
}

.quote-source {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
}

.quote-invite {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.quote-invite p {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
}

.quote-photo {
    display: block;
    width: 90%;
    max-width: 480px;
    height: auto;
    margin: 30px auto 0;
}

/* ===== Photo Story ===== */
.photo-story-section {
    background: transparent;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.photo-story-section.right {
    justify-content: flex-end;
    padding-right: 5%;
}

.photo-story-wrapper {
    position: relative;
    width: 90%;
    max-width: 480px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow:
        0 0 0 6px rgba(23, 12, 5, 0.85),
        0 0 0 7px rgba(212, 175, 55, 0.25),
        0 18px 45px rgba(0, 0, 0, 0.6);
}

.photo-story-wrapper img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.photo-watermark {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

/* ===== Couple ===== */
.couple-section {
    background: transparent;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 0;
}

.couple-section .container {
    padding: 0 20px;
}

.couple-names-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.couple-person {
    text-align: center;
}

.couple-fullname {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 500;
    color: #f5f5f5;
    margin-bottom: 8px;
}

.couple-child {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 5px;
}

.couple-parents {
    font-size: 0.9rem;
    font-weight: 500;
    color: #f5f5f5;
    margin-bottom: 5px;
}

.couple-address {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    max-width: 280px;
    margin: 0 auto;
}

.couple-divider {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text);
    line-height: 1;
}

.save-the-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.save-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.3);
}

.save-text {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-style: italic;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
}

/* ===== Countdown ===== */
.countdown-section {
    background: transparent;
    color: var(--text);
    text-align: center;
    padding: 40px 0 80px;
}

.countdown-section .container {
    padding: 0 20px;
}

.countdown-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.countdown-line {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: rgba(255,255,255,0.25);
}

.countdown-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-style: italic;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
}

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

.countdown-item {
    text-align: center;
}

.countdown-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
}

.countdown-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

/* ===== Event ===== */
.event-section {
    background: transparent;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.event-section .container {
    padding: 0 20px;
}

.event-card {
    background: linear-gradient(155deg, rgba(61, 33, 16, 0.85) 0%, rgba(35, 18, 8, 0.9) 55%, rgba(18, 8, 2, 0.92) 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: var(--radius);
    box-shadow:
        inset 0 1px 0 rgba(255, 244, 210, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.7),
        0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    padding: 40px 20px;
    text-align: center;
    color: var(--text);
    max-width: 500px;
    margin: 0 auto;
}

.event-name {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text);
}

.event-date {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text);
}

.event-time {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 25px;
}

.event-venue {
    margin-bottom: 6px;
}

.event-place {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-address {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 25px;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--primary);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.map-icon {
    font-size: 0.8rem;
}

.btn-map:hover {
    background: var(--primary);
    color: #0c0806;
}

/* ===== Gallery ===== */
.gallery-section {
    background: transparent;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.gallery-section .container {
    padding: 0 20px;
}

.gallery-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text);
    letter-spacing: 3px;
}

.gallery-title {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    overflow: hidden;
    aspect-ratio: 4/5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.gallery-item:hover {
    box-shadow: 0 14px 35px rgba(212, 175, 55, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* ===== RSVP ===== */
.rsvp-section {
    background: transparent;
    color: var(--text);
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.rsvp-section .container {
    padding: 0 20px;
}

.rsvp-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text);
}

.rsvp-title,
.gift-title,
.closing-title,
.closing-couple {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rsvp-card {
    background: linear-gradient(150deg, #3d2110 0%, #241206 55%, #120802 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: var(--radius);
    padding: 30px 20px;
    max-width: 520px;
    margin: 0 auto;
    box-shadow:
        inset 0 1px 0 rgba(255, 244, 210, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0,0,0,0.45);
}

.rsvp-count {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
}

.rsvp-counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.counter-box {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 12px 5px;
    text-align: center;
}

.counter-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.counter-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    outline: none;
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.rsvp-form select option {
    color: #121212;
}

.btn-submit {
    padding: 12px;
    background: var(--gold-gradient);
    color: #0c0806;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.messages-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.message-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
}

.message-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.message-status {
    font-size: 0.75rem;
    color: rgba(245, 230, 200, 0.6);
    margin-bottom: 6px;
}

.message-text {
    color: rgba(245, 230, 200, 0.8);
    font-size: 0.9rem;
}

/* ===== Gift ===== */
.gift-section {
    background: transparent;
    text-align: center;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.gift-section .container {
    padding: 0 20px;
}

.gift-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text);
}

.gift-title::after {
    margin-bottom: 25px;
}

.gift-desc {
    max-width: 520px;
    margin: 0 auto 35px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 560px;
    margin: 0 auto;
}

.gift-card {
    background: linear-gradient(150deg, #3d2110 0%, #241206 55%, #120802 100%);
    padding: 30px 20px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: var(--radius);
    box-shadow:
        inset 0 1px 0 rgba(255, 244, 210, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0,0,0,0.45);
    color: var(--text);
}

.gift-bank {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.gift-number {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #d4af37;
    margin-bottom: 5px;
}

.gift-name {
    color: rgba(245, 230, 200, 0.6);
    margin-bottom: 18px;
    font-size: 0.85rem;
}

.btn-copy {
    padding: 10px 24px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--primary);
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--primary);
    color: #0c0806;
}

/* ===== Closing ===== */
.closing-section {
    background: transparent;
    color: var(--text);
    text-align: center;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.closing-section .container {
    padding: 0 20px;
}

.closing-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text);
}

.closing-text {
    max-width: 520px;
    margin: 0 auto 15px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.closing-wassalam {
    font-style: italic;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.closing-couple {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text);
    letter-spacing: 2px;
}

/* ===== Footer ===== */
.footer {
    background: transparent;
    color: rgba(245, 230, 200, 0.5);
    text-align: center;
    padding: 20px 0 40px;
    font-size: 0.75rem;
    position: relative;
    z-index: 2;
}

.footer-credit {
    margin: 18px auto 0;
    max-width: 320px;
    padding: 16px 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.footer-maker {
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: rgba(245, 230, 200, 0.6);
    margin-bottom: 8px;
}

.footer-maker span {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.footer-sponsor {
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(245, 230, 200, 0.45);
}

.footer-sponsor span {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: none;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.footer-sponsor-desc {
    font-family: var(--font-script);
    font-size: 1rem;
    color: rgba(245, 230, 200, 0.65);
    margin-top: 2px;
}

/* ===== Opening Wedding Animation ===== */
.opening-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 950;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(24, 14, 9, 0.55) 0%, rgba(24, 14, 9, 0.15) 45%, rgba(20, 11, 7, 0.85) 100%),
        var(--vintage-frond) repeat center / 240px 240px,
        linear-gradient(170deg, #6d4f3d 0%, #55392c 40%, #3a251b 75%, #24150f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    padding-bottom: 190px;
    pointer-events: none;
    transition: opacity 1s ease, visibility 1s ease;
    overflow: hidden;
}

.opening-animation.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.opening-animation.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.opening-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vmin;
    height: 120vmin;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(240, 220, 196, 0.18) 0%, 
        rgba(201, 169, 143, 0.12) 28%, 
        rgba(90, 60, 44, 0.1) 48%, 
        transparent 70%);
    filter: blur(20px);
    animation: glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes glow-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.opening-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.25;
    z-index: 0;
}

.opening-stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 10vw 10vh #fff1e2, 15vw 80vh #f5e6c8, 20vw 35vh #f5e6c8, 25vw 60vh #f5e6c8, 30vw 20vh #f5e6c8, 35vw 90vh #f5e6c8, 40vw 45vh #f5e6c8, 45vw 70vh #f5e6c8, 50vw 15vh #f5e6c8, 55vw 50vh #f5e6c8, 60vw 85vh #f5e6c8, 65vw 30vh #f5e6c8, 70vw 65vh #f5e6c8, 75vw 25vh #f5e6c8, 80vw 75vh #f5e6c8, 85vw 40vh #f5e6c8, 90vw 95vh #f5e6c8, 95vw 55vh #f5e6c8, 5vw 45vh #f5e6c8, 12vw 65vh #f5e6c8, 22vw 15vh #f5e6c8, 32vw 75vh #f5e6c8, 42vw 25vh #f5e6c8, 52vw 85vh #f5e6c8, 62vw 35vh #f5e6c8, 72vw 95vh #f5e6c8, 82vw 20vh #f5e6c8, 92vw 70vh #f5e6c8;
    animation: star-twinkle 3s infinite ease-in-out;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ===== Gunungan Wayang (Opening) ===== */
.opening-gunungan {
    position: relative;
    width: 150px;
    max-width: 42vw;
    margin-bottom: 6px;
    z-index: 2;
    animation: gunungan-float 5s ease-in-out 1.8s infinite;
}

@keyframes gunungan-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.gunungan-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 220, 196, 0.2) 0%, rgba(201, 169, 143, 0.1) 42%, transparent 72%);
    filter: blur(16px);
    animation: glow-pulse 5s ease-in-out infinite;
}

.gunungan-svg {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    overflow: visible;
    fill: none;
    stroke: #f0dcc4;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 4px 14px rgba(20, 11, 7, 0.65));
}

.gunungan-svg .gn-outer {
    fill: rgba(240, 220, 196, 0.07);
    stroke-width: 2.4;
    stroke-dasharray: 460;
    stroke-dashoffset: 460;
    animation: gn-draw 2.2s ease-out 0.6s forwards;
}

.gunungan-svg .gn-inner {
    stroke-width: 1.2;
    opacity: 0;
    animation: gn-fade 1.2s ease-out 1.6s forwards;
}

.gunungan-svg .gn-tree,
.gunungan-svg .gn-branch,
.gunungan-svg .gn-gate,
.gunungan-svg .gn-wing {
    stroke-width: 1.4;
    opacity: 0;
    animation: gn-fade 1.2s ease-out 1.9s forwards;
}

.gunungan-svg .gn-dot {
    fill: #f0dcc4;
    stroke: none;
    opacity: 0;
    animation: gn-fade 1.2s ease-out 2.1s forwards;
}

@keyframes gn-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes gn-fade {
    from { opacity: 0; }
    to { opacity: 0.9; }
}

/* ===== Joglo Silhouette (Opening) ===== */
.opening-joglo {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, 88vw);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    animation: joglo-in 1.6s ease-out 1.2s forwards;
}

.opening-joglo svg {
    width: 100%;
    height: auto;
    display: block;
}

.joglo-shape {
    fill: rgba(26, 15, 10, 0.9);
    stroke: rgba(240, 220, 196, 0.55);
    stroke-width: 1.6;
    stroke-linejoin: round;
}

.joglo-line {
    fill: none;
    stroke: rgba(240, 220, 196, 0.4);
    stroke-width: 1.2;
    stroke-linecap: round;
}

@keyframes joglo-in {
    0% { opacity: 0; transform: translateX(-50%) translateY(30px); }
    100% { opacity: 0.85; transform: translateX(-50%) translateY(0); }
}

/* ===== Floral Corners (Opening) ===== */
.opening-florals {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.floral {
    position: absolute;
    width: 230px;
    height: 230px;
    max-width: 44vw;
    max-height: 44vw;
    background: var(--vintage-sulur) center / contain no-repeat;
    opacity: 0;
    filter: drop-shadow(0 2px 8px rgba(30, 18, 12, 0.6));
    animation: floral-in 1.6s ease-out forwards;
}

.floral-tl { top: 8px; left: 8px; animation-delay: 0.2s; }
.floral-tr { top: 8px; right: 8px; transform: scaleX(-1); animation-delay: 0.4s; }
.floral-bl { bottom: 8px; left: 8px; transform: scaleY(-1); animation-delay: 0.6s; }
.floral-br { bottom: 8px; right: 8px; transform: scale(-1, -1); animation-delay: 0.8s; }

@keyframes floral-in {
    0% { opacity: 0; }
    100% { opacity: 0.5; }
}

/* ===== Vintage Jawa Frame (Opening) ===== */
.opening-frame {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(420px, 84vw);
    padding: 26px 24px 30px;
    border-radius: 18px;
    background:
        linear-gradient(170deg, rgba(78, 53, 40, 0.82) 0%, rgba(48, 31, 23, 0.88) 60%, rgba(32, 20, 14, 0.92) 100%);
    border: 1px solid rgba(240, 220, 196, 0.55);
    box-shadow:
        0 0 0 6px rgba(32, 20, 14, 0.35),
        0 0 0 7px rgba(240, 220, 196, 0.28),
        0 26px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    animation: frame-in 1.4s ease-out 0.3s forwards;
}

.opening-frame::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(240, 220, 196, 0.3);
    border-radius: 12px;
    pointer-events: none;
}

@keyframes frame-in {
    0% { opacity: 0; transform: translateY(24px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.frame-ornament {
    display: block;
    opacity: 0;
    animation: fade-up 1.2s ease-out 1s forwards;
}

.frame-bottom {
    width: 160px;
    height: 16px;
    margin-top: 14px;
    background:
        linear-gradient(90deg, transparent, rgba(240, 220, 196, 0.7) 20%, rgba(240, 220, 196, 0.7) 80%, transparent) center / 100% 1px no-repeat,
        radial-gradient(circle, rgba(240, 220, 196, 0.9) 0 3px, transparent 4px) center / 16px 16px no-repeat;
    animation-delay: 2.8s;
}

/* ===== Falling Petals (Opening) ===== */
.opening-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

.petal {
    position: absolute;
    top: -8%;
    color: rgba(240, 220, 196, 0.75);
    font-size: 1.2rem;
    opacity: 0;
    text-shadow: 0 2px 8px rgba(30, 18, 12, 0.6);
    animation: petal-fall 11s linear infinite;
}

.petal:nth-child(1) { left: 6%; animation-delay: 0s; font-size: 0.9rem; }
.petal:nth-child(2) { left: 18%; animation-delay: 1.4s; font-size: 1.3rem; }
.petal:nth-child(3) { left: 31%; animation-delay: 2.8s; font-size: 1rem; }
.petal:nth-child(4) { left: 44%; animation-delay: 4.1s; font-size: 1.5rem; }
.petal:nth-child(5) { left: 57%; animation-delay: 0.9s; font-size: 1.1rem; }
.petal:nth-child(6) { left: 70%; animation-delay: 3.4s; font-size: 1.25rem; }
.petal:nth-child(7) { left: 83%; animation-delay: 5.2s; font-size: 0.95rem; }
.petal:nth-child(8) { left: 94%; animation-delay: 2.1s; font-size: 1.4rem; }

@keyframes petal-fall {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.7); opacity: 0; }
    12% { opacity: 0.9; }
    50% { transform: translate(-30px, 55vh) rotate(180deg) scale(1); }
    88% { opacity: 0.85; }
    100% { transform: translate(25px, 115vh) rotate(360deg) scale(0.8); opacity: 0; }
}

.opening-text {
    position: relative;
    z-index: 4;
    margin-top: 6px;
    padding: 0 6px;
}

.opening-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: rgba(240, 220, 196, 0.85);
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(20, 11, 7, 0.8);
    opacity: 0;
    animation: fade-up 1s ease-out 2.2s forwards;
}

.opening-ornament {
    display: block;
    width: 130px;
    height: 12px;
    margin: 0 auto 10px;
    background:
        linear-gradient(90deg, transparent, rgba(240, 220, 196, 0.6) 22%, rgba(240, 220, 196, 0.6) 78%, transparent) center / 100% 1px no-repeat,
        radial-gradient(circle, rgba(240, 220, 196, 0.9) 0 2.8px, transparent 3.8px) center / 12px 12px no-repeat;
    opacity: 0;
    animation: fade-up 1s ease-out 2.35s forwards;
}

.opening-couple {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #f7ead6;
    text-shadow: 0 3px 14px rgba(20, 11, 7, 0.85);
    opacity: 0;
    animation: fade-up 1.2s ease-out 2.4s forwards;
}

.opening-message {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(240, 220, 196, 0.8);
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(20, 11, 7, 0.8);
    opacity: 0;
    animation: fade-up 1s ease-out 2.6s forwards;
}

@keyframes fade-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .opening-animation { padding-bottom: 150px; }
    .opening-frame { padding: 20px 18px 24px; }
    .opening-gunungan { width: 118px; }
    .opening-joglo { width: 94vw; }
    .opening-couple { font-size: 2.1rem; }
    .opening-label { font-size: 0.62rem; letter-spacing: 5px; }
    .opening-message { font-size: 0.72rem; letter-spacing: 2px; }
    .opening-ornament { width: 110px; }
    .floral { width: 160px; height: 160px; }
}

/* ===== Starfield & Space Effects ===== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.5s ease-out;
}

.star {
    position: absolute;
    background: #fff6dc;
    border-radius: 50%;
    opacity: 0.85;
    animation: twinkle 3s infinite ease-in-out;
    box-shadow: 0 0 6px rgba(255, 232, 168, 0.9), 0 0 14px rgba(212, 175, 55, 0.6);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.7); }
    50% { opacity: 1; transform: scale(1.35); }
}

.nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 18% 25%, rgba(212, 175, 55, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 82% 68%, rgba(139, 90, 43, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 50% 95%, rgba(243, 220, 154, 0.08) 0%, transparent 40%);
}

.meteor {
    position: fixed;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 244, 210, 1), rgba(212, 175, 55, 0));
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transform: rotate(-45deg);
    animation: meteor-fall 2s linear forwards;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.9);
}

@keyframes meteor-fall {
    0% { opacity: 1; transform: translateX(0) translateY(0) rotate(-45deg); }
    100% { opacity: 0; transform: translateX(-300px) translateY(300px) rotate(-45deg); }
}

/* ===== Love Story Timeline ===== */
.love-story-section {
    background: transparent;
    position: relative;
    z-index: 2;
    padding: 80px 0;
    overflow: hidden;
}

.love-story-section .container {
    padding-top: 0;
    padding-bottom: 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary), var(--primary-dark), transparent);
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 50px 50px 0;
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s ease;
}

.timeline-item.right {
    left: 50%;
    padding: 0 0 50px 50px;
    transform: translateX(60px);
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    right: -20px;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0c0806;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--primary-glow);
    z-index: 2;
}

.timeline-item.right .timeline-dot {
    right: auto;
    left: -20px;
}

.timeline-content {
    background: linear-gradient(150deg, rgba(61, 33, 16, 0.85) 0%, rgba(24, 12, 5, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius);
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.timeline-year {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.timeline-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: #f5e6c8;
    margin-bottom: 10px;
}

.timeline-text {
    color: #f5e6c8;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .cover-bg img {
        transform: scale(1.08);
        transform-origin: bottom center;
    }

    .cover-title,
    .hero-names {
        font-size: 3rem;
    }

    .container {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .event-grid,
    .gift-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .couple-grid {
        flex-direction: column;
    }

    .couple-divider {
        order: 2;
    }

    .groom {
        order: 1;
    }

    .bride {
        order: 3;
    }

    .hero {
        background-attachment: scroll;
    }

    .timeline-line {
        left: 25px;
    }

    .timeline-item,
    .timeline-item.right {
        width: 100%;
        left: 0;
        padding: 0 0 40px 70px;
        transform: translateX(-40px);
    }

    .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 0;
        right: auto;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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