/* ==========================================================================
   TEMA PENDOPO (GAPURA SEKAR) - WEDDING INVITATION STYLESHEET
   Accurate 1:1 replica of Inveet Gapura Sekar Theme
   Refined to match video recording precisely:
   - Left panel 58% width, right panel 42% width on desktop
   - Horizontal Mempelai cards with arch frame & swaying corner bouquets
   - Arch cards for Save the Date & 5-stem swaying botanical divider
   - Top hanging garland swaying animations
   - Symmetrical Peacock animations in Gift section
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cormorant+Infant:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Gilda+Display&family=Manrope:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

@font-face {
    font-family: 'Pinyon Script';
    src: url('../fonts/pinyon-script.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #7C2438;
    --primary-light: #A24A5A;
    --primary-hover: #64192C;
    --accent: #B98A45;
    --accent-dark: #4E1624;
    --accent-gold: #D7BB83;
    --bg-main: #DECBB3;
    --bg-alt: #D5C0A6;
    --bg-card: #FFFFFF;
    --text-dark: #3F2328;
    --text-muted: #7A5B61;
    --text-light: #FBF5EC;
    --border-gold: rgba(185, 138, 69, 0.4);
    --border-gold-subtle: rgba(185, 138, 69, 0.2);

    --font-heading: 'Gilda Display', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-script: 'Pinyon Script', cursive;
    --font-script-calligraphy: 'Alex Brush', cursive;
    --font-quote: 'Cormorant Infant', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: #1A1315;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll Lock State - Active before invitation is opened */
html.invitation-locked,
body.invitation-locked {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: auto !important;
}

/* Master Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    background-color: var(--bg-main);
    position: relative;
}

/* ==========================================================================
   DESKTOP LEFT PANEL (WIDER ~58% AS IN RECORDING)
   ========================================================================== */
.desktop-left-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 58%;
    height: 100vh;
    background: url('../ornaments/gapura-sekar-left-panel-v2.webp') center center/cover no-repeat;
    z-index: 10;
    overflow: hidden;
    border-right: 1px solid rgba(185, 138, 69, 0.25);
}

.left-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(25, 8, 12, 0.65) 0%, rgba(25, 8, 12, 0.2) 45%, rgba(25, 8, 12, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 4.5rem 2rem;
    text-align: center;
    color: var(--text-light);
}

.left-panel-content {
    max-width: 560px;
    z-index: 2;
    animation: fadeIn 1.5s ease-out;
}

.left-panel-sub {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: #FBF5EC;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.left-panel-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.25;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.left-panel-date {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ==========================================================================
   RIGHT CONTENT CONTAINER (42% ON DESKTOP)
   ========================================================================== */
.main-invitation-wrapper {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-main);
    position: relative;
    overflow-x: hidden;
}

@media (min-width: 1024px) {
    .desktop-left-panel {
        display: block;
    }
    .main-invitation-wrapper {
        margin-left: 58%;
        width: 42%;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.35);
    }
}

/* Sections Common - Clean Luminous Ivory/Cream */
section {
    position: relative;
    width: 100%;
    padding: 4.5rem 1.75rem;
    background-color: var(--bg-main);
    overflow: hidden;
}

section.section-alt {
    background-color: var(--bg-main);
}

.section-inner {
    position: relative;
    z-index: 5;
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
}

/* Typography Standards */
.sub-heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.main-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.script-couple-name {
    font-family: var(--font-script);
    font-size: 3.4rem;
    color: var(--primary);
    line-height: 1.1;
    margin: 0.75rem 0;
    text-shadow: 0 1px 2px rgba(124, 36, 56, 0.1);
}

/* ==========================================================================
   1. COVER / WELCOME SCREEN
   ========================================================================== */
#cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 1.5rem 3.5rem;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(222, 203, 179, 0.45) 0%, rgba(222, 203, 179, 0.90) 45%, #DECBB3 100%), url('../ornaments/gapura-sekar-left-panel-v2.webp') center top/cover no-repeat;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease, visibility 1.2s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
    #cover {
        left: 58%;
        width: 42%;
    }
}

.cover-curtain-open {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Cover Hanging Flowers (Top) */
.cover-hanging-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 4;
    overflow: visible;
}

.cover-hanging-left {
    position: absolute;
    top: -5px;
    left: -10px;
    width: 170px;
    animation: garlandSway 6s ease-in-out infinite alternate;
    transform-origin: top left;
}

.cover-hanging-right {
    position: absolute;
    top: -5px;
    right: -10px;
    width: 150px;
    animation: garlandSway 7s ease-in-out infinite alternate-reverse;
    transform-origin: top right;
}

/* Cover Stems (Bottom) */
.cover-stems-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    pointer-events: none;
    z-index: 4;
    overflow: visible;
}

.cover-stem-anggrek {
    position: absolute;
    bottom: -10px;
    left: -20px;
    width: 170px;
    animation: stemRise 1.2s ease-out 0.2s both, pendulumSwayLeft 6s ease-in-out 1.4s infinite alternate;
    transform-origin: bottom center;
}

.cover-stem-melati {
    position: absolute;
    bottom: -15px;
    left: 60px;
    width: 130px;
    animation: stemRise 1.2s ease-out 0.4s both, pendulumSwayLeft 5s ease-in-out 1.6s infinite alternate;
    transform-origin: bottom center;
}

.cover-stem-kantil {
    position: absolute;
    bottom: -15px;
    right: 70px;
    width: 130px;
    animation: stemRise 1.2s ease-out 0.5s both, pendulumSwayRight 7s ease-in-out 1.7s infinite alternate;
    transform-origin: bottom center;
}

.cover-stem-cempaka {
    position: absolute;
    bottom: -20px;
    right: -25px;
    width: 170px;
    animation: stemRise 1.2s ease-out 0.3s both, pendulumSwayRight 5.5s ease-in-out 1.5s infinite alternate;
    transform-origin: bottom center;
}

/* Cover Typography */
.cover-header {
    text-align: center;
    z-index: 6;
    margin-top: 1rem;
}

.cover-center {
    text-align: center;
    z-index: 6;
    margin: auto 0;
}

.cover-couple-names {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(124, 36, 56, 0.12);
}

.cover-couple-date {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary-light);
}

.cover-footer {
    text-align: center;
    z-index: 6;
    width: 100%;
    margin-bottom: 1.5rem;
}

.guest-card-inline {
    margin-bottom: 1.25rem;
}

.guest-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.guest-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

.btn-open-invitation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--primary);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.95rem 2.4rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(124, 36, 56, 0.35);
    transition: all 0.3s ease;
}

.btn-open-invitation:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 36, 56, 0.45);
}



/* ==========================================================================
   2. OPENING SECTION (Arch Window & Doa Restu)
   ========================================================================== */
#opening {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.opening-text-top {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 380px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.arch-frame-container {
    position: relative;
    width: 250px;
    height: 330px;
    margin: 0 auto 2.5rem;
}

.arch-photo-window {
    width: 100%;
    height: 100%;
    border-radius: 125px 125px 0 0;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(185, 138, 69, 0.45);
    box-shadow: 0 10px 30px rgba(124, 36, 56, 0.15);
}

.arch-photo-window img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.frame-crown-ornament {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 290px;
    pointer-events: none;
    z-index: 6;
}

.frame-side-ornament {
    position: absolute;
    top: 60px;
    left: -40px;
    width: 110px;
    pointer-events: none;
    z-index: 6;
    animation: pendulumSwayLeft 5s ease-in-out infinite alternate;
    transform-origin: top right;
}

.frame-base-ornament {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    pointer-events: none;
    z-index: 6;
}

.opening-couple-names {
    font-family: var(--font-script);
    font-size: 3.2rem;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.6rem;
}

.opening-date {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.scroll-indicator-arrow {
    display: inline-block;
    color: var(--primary);
    font-size: 1.25rem;
    animation: bounceDown 2s infinite;
}

/* ==========================================================================
   3. QUOTE SECTION (Q.S. Ar-Rum: 21)
   ========================================================================== */
#quote {
    background-color: var(--bg-alt);
    padding: 5rem 1.75rem;
}

.quote-box-card {
    background: rgba(255, 252, 247, 0.9);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    max-width: 440px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.quote-content {
    font-family: var(--font-quote);
    font-size: 0.98rem;
    font-style: italic;
    line-height: 1.75;
    color: var(--text-dark);
}

.quote-source {
    font-family: var(--font-quote);
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 600;
    color: var(--primary);
    margin-top: 1.25rem;
    display: block;
}

.quote-source-sub {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 0.75rem;
    display: block;
}

/* ==========================================================================
   4. MEMPELAI (THE BRIDE & GROOM) - REFINED HORIZONTAL LAYOUT
   Matches frame_5.jpg and frame_groom.jpg exactly:
   - Arch frame on the left with double gold line
   - Botanical corner flower cluster swaying continuously
   - Name, relation, parents, instagram on the right
   ========================================================================== */
#couple {
    padding: 2.25rem 1.25rem 2.5rem;
}

#couple .section-inner {
    border: 1px solid rgba(185, 138, 69, 0.28);
    border-radius: 200px 200px 20px 20px;
    padding: 3.25rem 1.5rem 2rem;
    max-width: 440px;
    margin: 0 auto;
    background: rgba(255, 252, 247, 0.65);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.couple-intro {
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 270px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    padding: 0 0.25rem;
    text-align: center;
}

.couple-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 420px;
    margin: 0 auto;
}

.couple-horizontal-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
    position: relative;
    width: 100%;
}

/* Arch Photo Column (Left side of card) */
.couple-arch-col {
    position: relative;
    width: 145px;
    height: 205px;
    flex-shrink: 0;
}

/* Double Gold Arch Frame */
.couple-arch-double-frame {
    width: 100%;
    height: 100%;
    border-radius: 76px 76px 0 0;
    border: 1.5px solid var(--accent);
    padding: 4px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: transform 0.4s ease;
}

.couple-arch-col:hover .couple-arch-double-frame {
    transform: translateY(-2px);
}

.couple-arch-box {
    width: 100%;
    height: 100%;
    border-radius: 70px 70px 0 0;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--accent);
    box-shadow: 0 8px 20px rgba(124, 36, 56, 0.1);
    background: #fff;
    animation: gentleFloatCard 6s ease-in-out infinite alternate;
}

.couple-arch-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.8s ease;
}

.couple-arch-col:hover .couple-arch-box img {
    transform: scale(1.05);
}

/* Swaying Corner Flower Clusters - EXACT SAME LOCATION FOR BRIDE & GROOM */
.couple-flower-kantil-sway,
.couple-flower-cempaka-sway {
    position: absolute;
    top: -26px;
    left: -24px;
    right: auto;
    width: 80px;
    pointer-events: none;
    z-index: 5;
    transform-origin: 20% 90%;
    animation: pendulumSwayBride 5s ease-in-out infinite alternate;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.couple-flower-cempaka-sway {
    animation-delay: -2.5s;
}

/* Text & Info Column (Right side of card) */
.couple-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.couple-person-name {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.couple-relation-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.couple-parents-names {
    font-size: 0.82rem;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.65rem;
}

.couple-instagram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-gold);
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s;
}

.couple-instagram-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.08);
}

/* Groom card: photo on the right side */
.couple-card-groom {
    flex-direction: row-reverse;
}

.couple-card-groom .couple-info-col-groom {
    text-align: right;
    align-items: flex-end;
}

.couple-card-groom .couple-flower-cempaka-sway {
    left: auto;
    right: -24px;
    transform-origin: 80% 90%;
}


/* ==========================================================================
   5. SAVE THE DATE (ARCH CARDS & BOTANICAL STEMS DIVIDER)
   Matches frame_6.jpg, frame_8.jpg and frame_divider.jpg
   ========================================================================== */
#event {
    padding: 4.5rem 1.5rem 1.5rem;
    position: relative;
}

.event-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 440px;
    margin: 3rem auto 3.5rem;
}

/* White Arch Card Shape */
.event-arch-card {
    background: rgba(255, 253, 249, 0.95);
    border: 1px solid var(--border-gold);
    border-radius: 200px 200px 24px 24px;
    padding: 3.5rem 1.75rem 2.25rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(124, 36, 56, 0.05);
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 5;
    transition: transform 0.3s ease;
}

.event-arch-card:hover {
    transform: translateY(-3px);
}

.event-script-type {
    font-family: var(--font-script-calligraphy);
    font-size: 3.2rem;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.event-date-text {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.event-time-text {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--primary-light);
    margin-bottom: 1.75rem;
}

.event-venue-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.event-venue-address {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.btn-view-map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border: 1.5px solid var(--text-dark);
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.btn-view-map:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.calendar-sync-row {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
}

.btn-cal-sync {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.btn-cal-sync:hover {
    color: var(--accent);
}

/* 5-Stem Botanical Divider (frame_divider.jpg) */
.event-botanical-divider {
    position: relative;
    width: 100%;
    max-width: 460px;
    height: 110px;
    margin: 0.5rem auto 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    overflow: visible;
}

.event-divider-stem {
    position: absolute;
    bottom: -10px;
    transform-origin: bottom center;
}

.stem-1-sirih {
    left: 2%;
    width: 140px;
    animation: pendulumSwayLeft 6s ease-in-out infinite alternate;
}

.stem-2-melati {
    left: 20%;
    width: 130px;
    animation: pendulumSwayLeft 5s ease-in-out infinite alternate;
}

.stem-3-kantil {
    left: 38%;
    width: 125px;
    animation: pendulumSwayRight 7s ease-in-out infinite alternate;
}

.stem-4-cempaka {
    left: 54%;
    width: 135px;
    animation: pendulumSwayRight 5.5s ease-in-out infinite alternate;
}

.stem-5-anggrek {
    left: 70%;
    width: 145px;
    animation: pendulumSwayRight 6.5s ease-in-out infinite alternate;
}

/* ==========================================================================
   6. COUNTDOWN & CALENDAR (HARI BAHAGIA TELAH TIBA) - frame_9.jpg
   ========================================================================== */
#countdown {
    background-color: var(--bg-alt);
    padding: 2rem 1.5rem 4rem;
}

.bloom-flower-wrap {
    position: relative;
    width: 135px;
    height: 135px;
    margin: 0 auto 1.5rem;
}

.bloom-petals-rotate {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: spinClockwise 25s linear infinite;
    will-change: transform;
}

.bloom-center-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.countdown-sub-quote {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Calendar Card */
.calendar-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 1.75rem;
    max-width: 360px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(185, 138, 69, 0.2);
    padding-bottom: 0.75rem;
}

.calendar-month {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
}

.calendar-year {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
    text-align: center;
}

.cal-day-header {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    padding-bottom: 0.5rem;
}

.cal-date-cell {
    font-size: 0.82rem;
    padding: 0.45rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cal-date-cell.other-month {
    opacity: 0.3;
}

.cal-date-cell.target-date {
    border: 1.5px solid var(--accent);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50%;
    animation: targetPulse 2s infinite;
}

/* ==========================================================================
   7. OUR MOMENTS (GALLERY & LIGHTBOX) - frame_10.jpg
   ========================================================================== */
#gallery {
    padding: 5rem 1.5rem 6rem;
    position: relative;
}

.gallery-grid-featured {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 0.85rem;
    max-width: 460px;
    margin: 2.5rem auto 3rem;
}

.gallery-thumb-big {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    position: relative;
}

.gallery-thumb-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-thumb-big:hover img {
    transform: scale(1.04);
}

.gallery-sub-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.gallery-thumb-small {
    width: 100%;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.gallery-thumb-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-thumb-small:hover img {
    transform: scale(1.06);
}

/* Gallery Bottom Botanical Accents */
.gallery-bottom-accents {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.gallery-accent-left {
    width: 140px;
    margin-left: -20px;
    animation: pendulumSwayLeft 6s ease-in-out infinite alternate;
    transform-origin: bottom left;
}

.gallery-accent-right {
    width: 130px;
    margin-right: -20px;
    animation: pendulumSwayRight 5.5s ease-in-out infinite alternate;
    transform-origin: bottom right;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 8, 10, 0.95);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 210;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 210;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.4); }

.lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   8. LOVE STORY - frame_story.jpg
   ========================================================================== */
#story {
    background-color: var(--bg-alt);
    padding: 5rem 1.5rem 6rem;
    position: relative;
}

/* Top Hanging Floral Garland across full width */
.story-hanging-garland {
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 140px;
    pointer-events: none;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    overflow: visible;
}

.story-garland-item {
    transform-origin: top center;
    animation: garlandSway 6s ease-in-out infinite alternate;
}

.story-garland-item:nth-child(2) { animation-duration: 7s; animation-delay: 0.5s; }
.story-garland-item:nth-child(3) { animation-duration: 5.5s; animation-delay: 1s; }
.story-garland-item:nth-child(4) { animation-duration: 6.5s; animation-delay: 1.5s; }
.story-garland-item:nth-child(5) { animation-duration: 5.8s; animation-delay: 0.8s; }

.story-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    overflow: hidden;
    max-width: 440px;
    margin: 3.5rem auto 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.story-photo-side {
    width: 45%;
    height: 220px;
}

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

.story-text-side {
    width: 55%;
    padding: 1.5rem;
    text-align: left;
}

.story-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.story-desc {
    font-family: var(--font-quote);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.5;
}


/* ==========================================================================
   10. HADIAH (WEDDING GIFT / CASHLESS ENVELOPE) - frame_gift.jpg
   ========================================================================== */
#gift {
    padding: 5rem 1.5rem 6rem;
    position: relative;
}

.gift-intro {
    font-size: 0.88rem;
    color: var(--text-dark);
    max-width: 400px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.bank-card-container {
    max-width: 380px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 5;
}

.bca-logo-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0.25rem 0.5rem;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0.85rem;
}

.bca-logo-pill span {
    color: #005EAA;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    font-style: italic;
}

.bca-logo-pill img {
    height: 36px;
    max-width: 140px;
    object-fit: contain;
    display: block;
    background: transparent;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.08));
    transition: transform 0.25s ease;
}

.bca-logo-pill img:hover {
    transform: scale(1.06);
}

.bank-title-gold {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.bank-num-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.bank-account-num {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.bank-holder-name {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
}

.bank-action-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-pill-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-pill-action:hover {
    background: var(--primary);
    color: #fff;
}

/* Peacocks & Center Flower Ornament (frame_gift.jpg) */
.gift-peacocks-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 220px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    overflow: visible;
}

.gift-peacock-left {
    position: absolute;
    bottom: -15px;
    left: -10px;
    width: 175px;
    transform-origin: bottom center;
    animation: peacockSwayLeft 6.5s ease-in-out infinite alternate;
    will-change: transform;
    z-index: 3;
}

.gift-center-stems {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
}

.gift-stem-sirih {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 110px;
    transform-origin: bottom center;
    animation: pendulumSwayLeft 5.5s ease-in-out infinite alternate;
    will-change: transform;
}

.gift-stem-cempaka {
    position: absolute;
    bottom: 0;
    left: 45px;
    width: 115px;
    transform-origin: bottom center;
    animation: pendulumSwayRight 5s ease-in-out infinite alternate;
    will-change: transform;
}

.gift-stem-anggrek {
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 120px;
    transform-origin: bottom center;
    animation: pendulumSwayRight 6s ease-in-out infinite alternate;
    will-change: transform;
}

.gift-peacock-right {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 175px;
    transform-origin: bottom center;
    animation: peacockSwayRight 6s ease-in-out infinite alternate;
    will-change: transform;
    z-index: 3;
}

/* ==========================================================================
   11. WISHES & RSVP - frame_comments.jpg
   ========================================================================== */
#wishes {
    background-color: var(--bg-alt);
    padding: 5rem 1.5rem 6rem;
}

.wishes-container {
    max-width: 440px;
    margin: 0 auto;
    text-align: left;
}

.rsvp-form-minimal {
    margin-bottom: 3.5rem;
}

.form-group-clean {
    margin-bottom: 1.75rem;
}

.form-label-clean {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.form-input-line {
    width: 100%;
    padding: 0.6rem 0;
    border: none;
    border-bottom: 1px solid rgba(185, 138, 69, 0.45);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
}

.form-input-line:focus {
    border-bottom-color: var(--primary);
}

.voice-note-recorder-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-gold-subtle);
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.btn-rekam-voice {
    background: #fff;
    border: 1px solid var(--border-gold);
    color: var(--text-dark);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.btn-pilih-stiker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--border-gold);
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.btn-kirim-konfirmasi {
    width: 100%;
    padding: 0.9rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124, 36, 56, 0.25);
    transition: all 0.3s;
}

.btn-kirim-konfirmasi:hover {
    background: var(--primary-hover);
}

/* Comments Feed */
.wishes-feed-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
}

.wish-comment-item {
    border-bottom: 1px solid rgba(185, 138, 69, 0.2);
    padding-bottom: 1.5rem;
}

.wish-comment-author {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.wish-comment-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.wish-comment-sticker {
    max-height: 90px;
    margin: 0.5rem 0;
    display: block;
}

.wish-attendance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.btn-load-more-wishes {
    display: block;
    width: 100%;
    max-width: 240px;
    margin: 2rem auto 0;
    background: #fff;
    border: 1px solid var(--border-gold);
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.btn-load-more-wishes:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ==========================================================================
   12. CLOSING - frame_16.jpg
   ========================================================================== */
#closing {
    padding: 5.5rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Top Grand Gate Floral Valances (Proportional Corner Accents matching frame_16.jpg) */
.closing-valance-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 175px;
    pointer-events: none;
    z-index: 4;
    overflow: visible;
}

.closing-gate-left {
    position: absolute;
    top: -5px;
    left: -8px;
    width: 42%;
    max-width: 185px;
    transform-origin: top left;
    animation: garlandSway 6.5s ease-in-out infinite alternate;
    will-change: transform;
}

.closing-gate-right {
    position: absolute;
    top: -5px;
    right: -8px;
    width: 42%;
    max-width: 185px;
    transform-origin: top right;
    animation: garlandSway 7s ease-in-out infinite alternate;
    will-change: transform;
}

.closing-thanks-sub {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.closing-paragraph {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 420px;
    margin: 0 auto 2.5rem;
}

.closing-monogram {
    font-family: var(--font-script);
    font-size: 4.2rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.closing-monogram span {
    font-family: var(--font-script-calligraphy);
    color: var(--accent);
    font-size: 2.6rem;
    margin: 0 0.5rem;
}

/* Twin Peacocks & Botanical Stems at Bottom of Closing (frame_16.jpg) */
.closing-peacocks-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 220px;
    margin: 1.5rem auto 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    overflow: visible;
}

.closing-peacock-left {
    position: absolute;
    bottom: -15px;
    left: -10px;
    width: 180px;
    transform-origin: bottom center;
    animation: peacockSwayLeft 6.5s ease-in-out infinite alternate;
    will-change: transform;
    z-index: 3;
}

.closing-peacock-right {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 180px;
    transform-origin: bottom center;
    animation: peacockSwayRight 6s ease-in-out infinite alternate;
    will-change: transform;
    z-index: 3;
}

.closing-center-stems {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
}

.closing-stem-sirih {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 110px;
    transform-origin: bottom center;
    animation: pendulumSwayLeft 5.5s ease-in-out infinite alternate;
    will-change: transform;
}

.closing-stem-melati {
    position: absolute;
    bottom: 0;
    left: 35px;
    width: 105px;
    transform-origin: bottom center;
    animation: pendulumSwayLeft 6s ease-in-out infinite alternate;
    will-change: transform;
}

.closing-stem-cempaka {
    position: absolute;
    bottom: 0;
    left: 55px;
    width: 115px;
    transform-origin: bottom center;
    animation: pendulumSwayRight 5s ease-in-out infinite alternate;
    will-change: transform;
}

.closing-stem-anggrek {
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 120px;
    transform-origin: bottom center;
    animation: pendulumSwayRight 6s ease-in-out infinite alternate;
    will-change: transform;
}

.closing-footer-branding {
    margin-top: 2rem;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.closing-footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-top: 0.4rem;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.closing-footer-logo:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.closing-footer-logo-img {
    height: 22px;
    width: auto;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

/* ==========================================================================
   FLOATING BUTTONS (AUDIO & BOTTOM DOCK)
   ========================================================================== */
.floating-audio-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1C1517;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.floating-audio-btn.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.audio-disc-spinning {
    animation: spinDisc 4s linear infinite;
}

.audio-disc-paused {
    animation-play-state: paused;
}

.bottom-dock-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 20, 22, 0.94);
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    z-index: 85;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (min-width: 1024px) {
    .bottom-dock-nav {
        left: calc(58% + 21%);
    }
}

.bottom-dock-nav.active {
    opacity: 1;
    pointer-events: auto;
}

.dock-item {
    color: rgba(251, 245, 236, 0.65);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.2s;
}

.dock-item svg {
    width: 18px;
    height: 18px;
}

.dock-item:hover, .dock-item.current {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Toast */
.toast-notice {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(30, 20, 22, 0.95);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.82rem;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

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

/* Canvas Petal Burst */
#petal-burst-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 150;
}

/* Sticker Modal */
.sticker-picker-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.sticker-picker-container {
    background: var(--bg-main);
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

.sticker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.sticker-item {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticker-item:hover {
    background: rgba(185, 138, 69, 0.15);
}

.sticker-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS - CONTINUOUS ACCURATE PENDULUM SWAY & GENTLE FLOAT
   ========================================================================== */
@keyframes pendulumSwayBride {
    0% { transform: rotate(-6deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pendulumSwayGroom {
    0% { transform: rotate(4deg); }
    100% { transform: rotate(-4deg); }
}

@keyframes pendulumSwayLeft {
    0% { transform: rotate(-4.5deg); }
    100% { transform: rotate(4.5deg); }
}

@keyframes pendulumSwayRight {
    0% { transform: rotate(4.5deg); }
    100% { transform: rotate(-4.5deg); }
}

@keyframes garlandSway {
    0% { transform: rotate(-3.5deg) scale(0.99); }
    100% { transform: rotate(3.5deg) scale(1.01); }
}

@keyframes peacockSwayLeft {
    0% { transform: rotate(-2.5deg); }
    100% { transform: rotate(2.5deg); }
}

@keyframes peacockSwayRight {
    0% { transform: rotate(2.5deg); }
    100% { transform: rotate(-2.5deg); }
}

@keyframes gentleFloatCard {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

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

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

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

@keyframes soundWave {
    0% { height: 4px; }
    100% { height: 22px; }
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

@keyframes targetPulse {
    0% { box-shadow: 0 0 0 0 rgba(185, 138, 69, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(185, 138, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(185, 138, 69, 0); }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SCROLL REVEAL TRANSITIONS & ENTRANCE ANIMATIONS
   Smooth, GPU-accelerated entrance transitions on scroll
   ========================================================================== */

/* Base initial hidden state */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1), transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-zoom-in {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1), transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* Active / In-view state */
.reveal-fade-up.is-visible,
.reveal-fade-left.is-visible,
.reveal-fade-right.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.reveal-zoom-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay utilities */
.delay-100 { transition-delay: 0.18s; }
.delay-200 { transition-delay: 0.32s; }
.delay-300 { transition-delay: 0.46s; }

/* Special Stagger for Gallery Grid */
.gallery-grid-featured.reveal-fade-up .gallery-main-col,
.gallery-grid-featured.reveal-fade-up .gallery-thumb-small {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1), transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.gallery-grid-featured.reveal-fade-up.is-visible .gallery-main-col,
.gallery-grid-featured.reveal-fade-up.is-visible .gallery-thumb-small {
    opacity: 1;
    transform: translateY(0);
}

.gallery-grid-featured.reveal-fade-up.is-visible .gallery-main-col { transition-delay: 0.08s; }
.gallery-grid-featured.reveal-fade-up.is-visible .gallery-sub-grid .gallery-thumb-small:nth-child(1) { transition-delay: 0.22s; }
.gallery-grid-featured.reveal-fade-up.is-visible .gallery-sub-grid .gallery-thumb-small:nth-child(2) { transition-delay: 0.36s; }
.gallery-grid-featured.reveal-fade-up.is-visible .gallery-sub-grid .gallery-thumb-small:nth-child(3) { transition-delay: 0.5s; }

/* Accessibility fallback */
@media (prefers-reduced-motion: reduce) {
    .reveal-fade-up,
    .reveal-fade-left,
    .reveal-fade-right,
    .reveal-zoom-in,
    .gallery-grid-featured.reveal-fade-up .gallery-main-col,
    .gallery-grid-featured.reveal-fade-up .gallery-thumb-small {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE VIEWPORTS)
   ========================================================================== */
@media (max-width: 1023px) {
    .main-invitation-wrapper {
        margin-left: 0;
        width: 100%;
    }
    .desktop-left-panel {
        display: none !important;
    }
    .bottom-dock-nav {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 480px) {
    section {
        padding: 4rem 1.25rem;
    }
    .cover-couple-names {
        font-size: 3.2rem;
    }
    .main-heading {
        font-size: 1.75rem;
    }
    .script-couple-name {
        font-size: 2.8rem;
    }
    .couple-horizontal-card {
        gap: 1rem;
    }
    .couple-arch-col {
        width: 120px;
        height: 170px;
    }
    .couple-arch-double-frame {
        border-radius: 64px 64px 0 0;
        padding: 3px;
    }
    .quote-box-card {
        padding: 1.75rem 1.25rem;
    }
    .quote-content {
        font-size: 0.9rem;
        line-height: 1.68;
    }
    .quote-source {
        font-size: 0.88rem;
        margin-top: 1rem;
    }
    #couple {
        padding: 2rem 1rem 2.5rem;
    }
    #couple .section-inner {
        padding: 3.25rem 1.15rem 1.75rem;
        border-radius: 170px 170px 20px 20px;
    }
    .couple-intro {
        max-width: 250px;
        font-size: 0.8rem;
        line-height: 1.55;
    }
    .couple-flower-kantil-sway {
        width: 70px;
        top: -18px;
        left: -18px;
        right: auto;
    }
    .couple-flower-cempaka-sway {
        width: 70px;
        top: -18px;
        left: auto;
        right: -18px;
    }
    .reveal-fade-left {
        transform: translateX(-30px);
    }
    .reveal-fade-right {
        transform: translateX(30px);
    }
    .couple-person-name {
        font-size: 1.45rem;
    }
    .couple-parents-names {
        font-size: 0.75rem;
    }
    .event-arch-card {
        padding: 2.75rem 1.25rem 2rem;
        border-radius: 160px 160px 20px 20px;
    }
    .event-script-type {
        font-size: 2.7rem;
    }
    .event-botanical-divider {
        height: 140px;
    }
    .stem-1-sirih { width: 105px; }
    .stem-2-melati { width: 95px; }
    .stem-3-kantil { width: 90px; }
    .stem-4-cempaka { width: 100px; }
    .stem-5-anggrek { width: 110px; }
    .gift-peacocks-wrap {
        height: 170px;
    }
    .gift-peacock-left { width: 135px; }
    .gift-peacock-right { width: 135px; }
    .gift-center-stems { width: 150px; height: 140px; }
    .gift-stem-sirih { width: 85px; }
    .gift-stem-cempaka { width: 90px; }
    .gift-stem-anggrek { width: 95px; }
    .bloom-flower-wrap {
        width: 140px;
        height: 140px;
        margin: 0 auto 1.25rem;
    }
    .bloom-center-img {
        width: 60px;
        height: 60px;
    }
    #closing {
        padding: 4.5rem 1.25rem 4rem;
    }
    .closing-valance-top {
        height: 130px;
    }
    .closing-gate-left,
    .closing-gate-right {
        width: 44%;
        max-width: 140px;
    }
    .closing-peacocks-wrap {
        height: 170px;
    }
    .closing-peacock-left,
    .closing-peacock-right {
        width: 135px;
    }
    .closing-center-stems {
        width: 150px;
        height: 140px;
    }
    .closing-stem-sirih { width: 85px; }
    .closing-stem-melati { width: 80px; }
    .closing-stem-cempaka { width: 90px; }
    .closing-stem-anggrek { width: 95px; }
}

@media (max-width: 360px) {
    #couple .section-inner {
        padding: 3rem 0.85rem 1.5rem;
        border-radius: 150px 150px 16px 16px;
    }
    .couple-intro {
        max-width: 220px;
        font-size: 0.77rem;
    }
    .couple-horizontal-card {
        gap: 0.75rem;
    }
    .couple-arch-col {
        width: 115px;
        height: 165px;
    }
    .couple-flower-kantil-sway {
        width: 68px;
        top: -14px;
        left: -14px;
    }
    .couple-flower-cempaka-sway {
        width: 70px;
        top: -13px;
        left: auto;
        right: -14px;
    }
    .couple-person-name {
        font-size: 1.45rem;
    }
}
