/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --primary-navy: #0B1E3F;
    --navy-light: #1A365D;
    --navy-accent: #2C5282;
    --primary-gold: #C5A880;
    --gold-light: #E2D1B9;
    --gold-dark: #A68A5E;
    --gold-gradient: linear-gradient(135deg, #C5A880 0%, #E2D1B9 50%, #A68A5E 100%);
    --bg-light-blue: #EBF2FC;
    --text-dark: #2D3748;
    --text-muted: #5A6A85;
    --white: #FFFFFF;
    --shadow-sm: 0 4px 8px rgba(11, 30, 63, 0.04);
    --shadow-md: 0 8px 20px rgba(11, 30, 63, 0.07);
    --shadow-lg: 0 16px 36px rgba(11, 30, 63, 0.12);
    --radius-sm: 8px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-script: 'Alex Brush', cursive;
}

/* ==========================================================================
   RESET & SYSTEM DEFINITIONS
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    background-color: #0E1522;
    /* Outer screen body */
    font-family: var(--font-sans);
    color: var(--text-dark);
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Desktop Mock Frame Container */
.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background: linear-gradient(135deg, #E9F1FC 0%, #FFFDF9 25%, #D2E0F4 50%, #FFF5E6 75%, #E9F1FC 100%);
    background-size: 400% 400%;
    animation: gradientShift 24s ease infinite;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

/* Paper grain overlay inside container to avoid background stretching distortion */
.app-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            #E9F1FC 0%,
            #FFFFFF 12%,
            #E9F1FC 25%,
            #FFFFFF 38%,
            #E9F1FC 50%,
            #FFFFFF 63%,
            #E9F1FC 75%,
            #FFFFFF 88%,
            #E9F1FC 100%);
    filter: url(#paper-grain);
    opacity: 0.22;
    z-index: 1;
    pointer-events: none;
}

/* Scroll Bar custom styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(11, 30, 63, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 3px;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-serif);
}

p {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==========================================================================
   FALLING PETALS & GOLD SHIMMER ANIMATION
   ========================================================================== */
.petals-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 998;
}

.petal {
    position: absolute;
    background: linear-gradient(135deg, rgba(165, 195, 245, 0.55) 0%, rgba(100, 149, 237, 0.35) 100%);
    box-shadow: 1px 1px 3px rgba(11, 30, 63, 0.05);
    border-radius: 100% 0 100% 100%;
    /* Perfect organic leaf petal curve */
    opacity: 0.8;
    pointer-events: none;
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    animation: fall linear infinite;
}

.petal:nth-child(2n) {
    background: linear-gradient(135deg, rgba(190, 215, 255, 0.6) 0%, rgba(135, 206, 250, 0.35) 100%);
    border-radius: 0 100% 100% 100%;
}

.petal:nth-child(3n) {
    background: linear-gradient(135deg, rgba(230, 240, 255, 0.65) 0%, rgba(200, 220, 255, 0.4) 100%);
    border-radius: 100% 100% 0 100%;
}

/* Shimmering Golden Glitter Particles */
.petal.gold-glitter {
    background: radial-gradient(circle, #DFBA73 0%, #C5A880 70%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px #DFBA73;
    opacity: 0.85;
    animation: fall-glitter linear infinite, shimmer 2.2s infinite alternate;
}

@keyframes fall {
    0% {
        top: -8%;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.9;
    }

    100% {
        top: 108%;
        transform: translateX(90px) rotate(480deg);
        opacity: 0;
    }
}

@keyframes fall-glitter {
    0% {
        top: -8%;
        transform: translateX(0) scale(0.65);
        opacity: 0;
    }

    10% {
        opacity: 0.9;
    }

    90% {
        opacity: 0.85;
    }

    100% {
        top: 108%;
        transform: translateX(60px) scale(0.65);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        opacity: 0.45;
        filter: brightness(1);
    }

    100% {
        opacity: 0.95;
        filter: brightness(1.4);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================================================
   FLOATING BACKGROUND FLOWERS (Dynamic Sway & Parallax via JS)
   ========================================================================== */
.floating-bg-flower {
    position: absolute;
    width: 290px;
    height: 290px;
    mix-blend-mode: multiply;
    opacity: 0.28;
    /* Softened slightly for a premium, non-overwhelming look */
    z-index: 2;
    /* Sits above transparent section backgrounds, but below card overlays */
    pointer-events: none;
    will-change: transform;
    transition: transform 0.1s ease-out;
    /* Smooth lerp transition */
}

.floating-bg-flower.flower-1 {
    top: 520px;
    left: -70px;
}

.floating-bg-flower.flower-2 {
    top: 1600px;
    right: -80px;
}

.floating-bg-flower.flower-3 {
    top: 2650px;
    left: -80px;
}

.floating-bg-flower.flower-4 {
    top: 3750px;
    right: -90px;
}

.floating-bg-flower.flower-5 {
    top: 4700px;
    left: -60px;
}

.floating-bg-flower.flower-6 {
    top: 1050px;
    right: -60px;
}

.floating-bg-flower.flower-7 {
    top: 2150px;
    left: -90px;
}

.floating-bg-flower.flower-8 {
    top: 3200px;
    right: -70px;
}

/* ==========================================================================
   COVER PAGE / WELCOME SCREEN (Strictly Centered & Fits Viewport)
   ========================================================================== */
.cover-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 999;
    background-color: #D2E0F4;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
    overflow: hidden;
}

.cover-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('asset/bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    z-index: 1;
}

/* Blended Floral Corners (Multiplied) */
.cover-flower {
    position: absolute;
    width: 140px;
    height: 140px;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 3;
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cover-flower.top-left {
    top: 0;
    left: 0;
    transform: rotate(0deg);
}

.cover-flower.top-right {
    top: 0;
    right: 0;
    transform: rotate(90deg) scaleY(-1);
}

.cover-flower.bottom-left {
    bottom: 0;
    left: 0;
    transform: rotate(270deg) scaleX(-1);
}

.cover-flower.bottom-right {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

/* Cover dismissal animations */
.cover-overlay.fade-out {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.cover-overlay.fade-out .cover-flower.top-left {
    transform: translate(-80px, -80px);
}

.cover-overlay.fade-out .cover-flower.top-right {
    transform: translate(80px, -80px) rotate(90deg) scaleY(-1);
}

.cover-overlay.fade-out .cover-flower.bottom-left {
    transform: translate(-80px, 80px) rotate(270deg) scaleX(-1);
}

.cover-overlay.fade-out .cover-flower.bottom-right {
    transform: translate(80px, 80px) rotate(180deg);
}

.cover-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: min(86%, 400px);
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: var(--radius-lg);
    border: 3px double var(--primary-gold);
    box-shadow: var(--shadow-lg);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    gap: 12px;
}

.illustration-frame {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
}

.couple-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 1px solid var(--primary-gold);
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.flower-wreath-svg {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed var(--primary-gold);
    border-radius: 50%;
    animation: spin-slow 24s linear infinite;
    z-index: 1;
}

.wedding-subtitle {
    font-size: 0.75rem;
    letter-spacing: 5px;
    color: var(--primary-navy);
    font-weight: 700;
}

.wedding-title {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    color: var(--gold-dark);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.recipient-box {
    background: rgba(11, 30, 63, 0.05);
    border-radius: var(--radius-md);
    padding: 12px 15px;
    width: 100%;
    border-left: 4px solid var(--primary-gold);
    border-right: 4px solid var(--primary-gold);
}

.to-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.guest-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--primary-navy);
    font-weight: 700;
}

/* ==========================================================================
   MAIN LAYOUT & SCROLL CONTROL
   ========================================================================== */
.main-content {
    flex: 1;
    z-index: 2;
    padding-bottom: 60px;
    display: block;
}

.main-content.locked {
    display: none;
    height: 100vh;
    overflow: hidden;
}

/* Base section layout */
section:not(#cover),
.profile-section,
.events-section,
.story-section,
.gallery-section,
.gift-section,
.rsvp-section {
    padding: 75px 24px;
    position: relative;
    z-index: 3;
}

/* ---- Per-section floral gradient backgrounds ---- */

/* Profile Section: soft periwinkle garden with top flowers */
#profile {
    background:
        linear-gradient(180deg,
            rgba(209, 228, 255, 0.82) 0%,
            rgba(235, 242, 255, 0.92) 40%,
            rgba(255, 248, 235, 0.88) 100%) !important;
}

#profile::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url('asset/flower-corner.png'),
        url('asset/flower-corner.png');
    background-size: 230px 230px, 200px 200px;
    background-position: top -60px left -60px, bottom -50px right -60px;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.38;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

/* Events Section: warm cream with side flowers */
#events {
    background:
        linear-gradient(180deg,
            rgba(255, 245, 220, 0.88) 0%,
            rgba(240, 248, 255, 0.92) 50%,
            rgba(220, 235, 255, 0.88) 100%) !important;
}

#events::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url('asset/flower-corner.png'),
        url('asset/flower-corner.png');
    background-size: 210px 210px, 200px 200px;
    background-position: top -40px right -60px, bottom -60px left -70px;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.35;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
    transform: scaleX(-1);
}

/* Story Section: soft pink-blue watercolor */
#story {
    background:
        linear-gradient(160deg,
            rgba(225, 215, 255, 0.75) 0%,
            rgba(210, 232, 255, 0.88) 50%,
            rgba(255, 240, 225, 0.82) 100%) !important;
}

#story::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url('asset/flower-corner.png'),
        url('asset/flower-corner.png');
    background-size: 220px 220px, 190px 190px;
    background-position: top -50px left -50px, bottom -40px right -50px;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.40;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

/* Gallery Section: cool blue-white with corner blooms */
#gallery {
    background:
        linear-gradient(180deg,
            rgba(235, 242, 255, 0.90) 0%,
            rgba(255, 253, 249, 0.95) 50%,
            rgba(230, 242, 255, 0.90) 100%) !important;
}

#gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url('asset/flower-corner.png'),
        url('asset/flower-corner.png');
    background-size: 200px 200px, 200px 200px;
    background-position: top -50px right -55px, bottom -55px left -55px;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.36;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

/* Gift Section: golden warm with full corner flowers */
#gift {
    background:
        linear-gradient(160deg,
            rgba(255, 245, 210, 0.90) 0%,
            rgba(235, 248, 255, 0.88) 50%,
            rgba(255, 245, 220, 0.90) 100%) !important;
}

#gift::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url('asset/flower-corner.png'),
        url('asset/flower-corner.png');
    background-size: 230px 230px, 210px 210px;
    background-position: top -40px left -55px, bottom -50px right -55px;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.42;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

/* RSVP Section: soft cloud-blue */
#rsvp {
    background:
        linear-gradient(180deg,
            rgba(220, 232, 255, 0.88) 0%,
            rgba(255, 250, 240, 0.92) 50%,
            rgba(215, 228, 255, 0.88) 100%) !important;
}

#rsvp::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url('asset/flower-corner.png'),
        url('asset/flower-corner.png');
    background-size: 220px 220px, 210px 210px;
    background-position: top -55px right -60px, bottom -60px left -55px;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.38;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

/* Section specific flowers overlay */
.section-flower-decor {
    position: absolute;
    width: 140px;
    height: 140px;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 3;
    opacity: 0.85;
}

.section-flower-decor.top-decor {
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.section-flower-decor.bottom-decor {
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
}

/* Gold Separator Lines */
.gold-divider-wrap {
    margin: 15px auto;
    width: 80%;
}

.gold-divider {
    width: 100%;
    height: 12px;
}

/* Section Title layout */
.section-title-wrap {
    margin-bottom: 40px;
    position: relative;
}

.brush-accent {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--primary-gold);
    display: block;
    margin-bottom: -15px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    color: var(--primary-navy);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 var(--white);
}

/* ==========================================================================
   FLOATING MUSIC CONTROLLER
   ========================================================================== */
.music-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--primary-navy);
    border: 2px solid var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.music-btn:active {
    transform: scale(0.88);
}

.icon-spin {
    animation: spin 4s linear infinite;
}

/* ==========================================================================
   HERO / COUNTDOWN SECTION (With Custom Wedding Photo Background)
   ========================================================================== */
.hero-section {
    min-height: 95vh;
    min-height: 95dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('asset/4.jpeg');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    padding-top: 100px;
    position: relative;
    z-index: 4;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 30, 63, 0.45) 0%, rgba(11, 30, 63, 0.72) 100%);
    z-index: 1;
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shining-text {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--gold-light) !important;
    animation: float 5s ease-in-out infinite;
}

.couple-name {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--white) !important;
    margin: 8px 0;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.date-text {
    font-size: 1.05rem;
    letter-spacing: 3px;
    color: var(--gold-light) !important;
    font-weight: 600;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Countdown Styles */
.countdown-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-md);
    padding: 22px 16px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    z-index: 3;
}

.countdown-title {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--navy-accent);
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 700;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.countdown-item {
    background: var(--primary-navy);
    border-radius: var(--radius-sm);
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--primary-gold);
}

.time-num {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.time-label {
    font-size: 0.65rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

/* ==========================================================================
   BRIDE & GROOM PROFILE
   ========================================================================== */
.profile-card {
    background: rgba(255, 255, 255, 0.94);
    /* Solid glass card overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 35px 20px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 3;
    /* Placed above background flowers */
}

/* Floral corner decorations inside cards */
.card-flower-decor {
    position: absolute;
    width: 90px;
    height: 90px;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 4;
    opacity: 0.8;
}

.card-flower-decor.top-left {
    top: 0;
    left: 0;
}

.card-flower-decor.bottom-right {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

/* Mempelai Large Portrait Avatar Styling */
.portrait-avatar-frame {
    width: 200px;
    height: 275px;
    border-radius: var(--radius-md);
    margin: 0 auto 20px auto;
    border: 3px double var(--primary-gold);
    position: relative;
    z-index: 3;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-light-blue);
}

.mempelai-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.profile-card:hover .mempelai-portrait {
    transform: scale(1.08);
}

.portrait-gold-trim {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1.5px solid rgba(197, 168, 128, 0.45);
    border-radius: calc(var(--radius-md) - 6px);
    pointer-events: none;
    z-index: 2;
}

.mempelai-name {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 3;
}

.parents-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    position: relative;
    z-index: 3;
}

.parents-names {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-top: 3px;
    position: relative;
    z-index: 3;
}

.origin {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
    position: relative;
    z-index: 3;
}

.love-divider {
    margin: 25px 0;
    color: var(--primary-gold);
}

.gold-heart {
    animation: heartBeat 2s infinite;
}

/* ==========================================================================
   EVENT DETAILS
   ========================================================================== */
.event-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 35px 22px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.double-gold-border {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid var(--primary-gold);
    outline: 2px solid var(--primary-gold);
    outline-offset: -5px;
    pointer-events: none;
    border-radius: calc(var(--radius-md) - 8px);
    z-index: 1;
}

.card-header-accent {
    border-bottom: 1.5px solid var(--primary-gold);
    padding-bottom: 14px;
    margin-bottom: 22px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.event-tag {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--primary-navy);
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 3;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.detail-icon {
    color: var(--primary-gold);
    flex-shrink: 0;
}

.detail-val {
    line-height: 1.6;
}

.event-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 35px;
    padding: 0 10px;
    position: relative;
    z-index: 3;
}

/* ==========================================================================
   OUR STORY CAROUSEL SECTION
   ========================================================================== */
.carousel-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    z-index: 3;
    overflow: hidden;
}

.carousel-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    padding: 10px 15px;
    opacity: 0.25;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-md);
    padding: 35px 22px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.slide-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 5px 20px;
    border-radius: 14px;
    border: 1.5px solid var(--white);
    box-shadow: var(--shadow-md);
}

.slide-title {
    margin-top: 10px;
    margin-bottom: 12px;
    color: var(--primary-navy);
    font-size: 1.25rem;
    font-weight: 700;
}

.slide-desc {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.75;
    text-align: justify;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary-gold);
    color: var(--primary-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 5;
    transition: all 0.2s ease;
}

.carousel-control:active {
    transform: translateY(-50%) scale(0.9);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gold-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--primary-gold);
}

/* ==========================================================================
   PHOTO GALLERY SECTION
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 25px;
    z-index: 3;
    position: relative;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 2px solid var(--white);
    outline: 1px solid rgba(197, 168, 128, 0.25);
    background-color: var(--bg-light-blue);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 30, 63, 0.45);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-hover-overlay {
    opacity: 1;
}

.zoom-icon {
    color: var(--white);
}

/* ==========================================================================
   FULLSCREEN LIGHTBOX POPUP
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 30, 63, 0.94);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border: 3px solid var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--primary-gold);
}

/* ==========================================================================
   DIGITAL ENVELOPE / GIFTS
   ========================================================================== */
.gift-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    z-index: 3;
}

.card-bank-header {
    background-color: var(--primary-navy);
    padding: 14px;
    color: var(--gold-light);
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
    z-index: 3;
}

.bank-details {
    padding: 24px 20px;
    position: relative;
    z-index: 3;
}

.holder-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.holder-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-top: 3px;
    margin-bottom: 16px;
}

.account-number-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light-blue);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--primary-gold);
}

.account-number {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-light);
    letter-spacing: 1px;
}

.btn-copy {
    margin-left: 15px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    color: var(--primary-navy);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-copy:active {
    transform: scale(0.95);
}

/* ==========================================================================
   WISHES & RSVP FORM
   ========================================================================== */
.form-container {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    position: relative;
    z-index: 3;
}

.input-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.input-group input,
.input-group select,
.input-group textarea {
    font-family: var(--font-sans);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(197, 168, 128, 0.4);
    background-color: var(--white);
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--navy-accent);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.12);
}

.btn-submit {
    display: flex;
    width: 100%;
}

.wishes-wall {
    text-align: left;
    position: relative;
    z-index: 3;
}

.wishes-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--primary-navy);
    margin-bottom: 20px;
    border-bottom: 2.5px solid var(--primary-gold);
    padding-bottom: 8px;
}

.wishes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.wish-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px;
    border-left: 4px solid var(--primary-gold);
    box-shadow: var(--shadow-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.02);
    border-right: 1px solid rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wish-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-navy);
}

.wish-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.badge-hadir {
    background-color: #C6F6D5;
    color: #22543D;
}

.badge-tidak {
    background-color: #FED7D7;
    color: #742A2A;
}

.badge-ragu {
    background-color: #FEFCBF;
    color: #744210;
}

.wish-message {
    font-size: 0.85rem;
    color: var(--text-dark);
    white-space: pre-line;
    line-height: 1.5;
}

.wish-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 6px;
}

/* ==========================================================================
   FOOTER & OUTRO
   ========================================================================== */
.footer {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 80px 24px;
    overflow: hidden;
    position: relative;
    z-index: 3;
}

.thank-you-arabic {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--gold-light);
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    z-index: 3;
}

.thank-you-text {
    font-size: 0.85rem;
    line-height: 1.75;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    z-index: 3;
}

.signature-label {
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.55);
    position: relative;
    z-index: 3;
}

.signature-names {
    font-family: var(--font-script);
    font-size: 3.2rem;
    color: var(--primary-gold);
    margin-top: 5px;
    margin-bottom: 22px;
    position: relative;
    z-index: 3;
}

.signature-parents {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 4px;
    position: relative;
    z-index: 3;
}

.footer-credit {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    position: relative;
    z-index: 3;
}

.footer-credit p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
}

.sub-credit {
    margin-top: 5px;
    font-size: 0.65rem;
    color: var(--primary-gold) !important;
}

/* ==========================================================================
   SCROLL REVEAL & FLOAT ANIMATIONS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

.scroll-reveal.active {
    opacity: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4.5s ease-in-out infinite;
    position: relative;
    z-index: 3;
    margin-top: 12px;
}

.animate-float-delay {
    animation: float 4.5s ease-in-out infinite;
    animation-delay: 2.2s;
    position: relative;
    z-index: 3;
    margin-top: 12px;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.15);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* ==========================================================================
   INTERACTIVE TOUCH SPARKLE TRAIL
   ========================================================================== */
.trail-particle {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: particleFade 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

.trail-particle.sparkle-gold {
    background: radial-gradient(circle, #FFFFFF 10%, #DFBA73 60%, rgba(197, 168, 128, 0) 100%);
    box-shadow: 0 0 8px #DFBA73, 0 0 15px rgba(255, 255, 255, 0.6);
}

.trail-particle.sparkle-blue {
    background: radial-gradient(circle, #FFFFFF 10%, #87CEFA 60%, rgba(100, 149, 237, 0) 100%);
    box-shadow: 0 0 8px #6495ED, 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes particleFade {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translate(calc(-50% + var(--drift-x, 0px)), calc(-50% + var(--drift-y, 0px))) scale(0) rotate(180deg);
        opacity: 0;
    }
}

/* ==========================================================================
   SCROLL-TRIGGERED FLOWER BLOOMING
   ========================================================================== */
.section-flower-decor,
.card-flower-decor,
.cover-flower {
    opacity: 0;
    transition: transform 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 1.2s ease;
}

/* Initial state scales */
.section-flower-decor.top-decor {
    transform: translateX(-50%) scale(0.4);
}

.section-flower-decor.bottom-decor {
    transform: translateX(-50%) rotate(180deg) scale(0.4);
}

.card-flower-decor.top-left {
    transform: scale(0.4);
}

.card-flower-decor.bottom-right {
    transform: rotate(180deg) scale(0.4);
}

.cover-flower.top-left {
    transform: scale(0.4) rotate(0deg);
}

.cover-flower.top-right {
    transform: scale(0.4) rotate(90deg) scaleY(-1);
}

.cover-flower.bottom-left {
    transform: scale(0.4) rotate(270deg) scaleX(-1);
}

.cover-flower.bottom-right {
    transform: scale(0.4) rotate(180deg);
}

/* Bloomed state classes (added via JS when in viewport) */
.section-flower-decor.top-decor.bloomed {
    transform: translateX(-50%) scale(1);
    opacity: 0.85;
}

.section-flower-decor.bottom-decor.bloomed {
    transform: translateX(-50%) rotate(180deg) scale(1);
    opacity: 0.85;
}

.card-flower-decor.top-left.bloomed {
    transform: scale(1);
    opacity: 0.85;
}

.card-flower-decor.bottom-right.bloomed {
    transform: rotate(180deg) scale(1);
    opacity: 0.85;
}

.cover-flower.top-left.bloomed {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

.cover-flower.top-right.bloomed {
    transform: scale(1) rotate(90deg) scaleY(-1);
    opacity: 1;
}

.cover-flower.bottom-left.bloomed {
    transform: scale(1) rotate(270deg) scaleX(-1);
    opacity: 1;
}

.cover-flower.bottom-right.bloomed {
    transform: scale(1) rotate(180deg);
    opacity: 1;
}

/* ==========================================================================
   SHIMMERING CARD BORDERS
   ========================================================================== */
.profile-card,
.event-card,
.gift-card,
.form-container,
.countdown-container {
    position: relative;
    overflow: hidden;
}

.profile-card::after,
.event-card::after,
.gift-card::after,
.form-container::after,
.countdown-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.15) 30%,
            rgba(197, 168, 128, 0.3) 50%,
            rgba(255, 255, 255, 0.15) 70%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 5;
    animation: borderShine 7s ease-in-out infinite;
}

.event-card::after {
    animation-delay: 1.5s;
}

.gift-card::after {
    animation-delay: 3s;
}

.form-container::after {
    animation-delay: 4.5s;
}

.countdown-container::after {
    animation-delay: 5.5s;
}

@keyframes borderShine {
    0% {
        left: -150%;
    }

    25% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

/* ==========================================================================
   ENHANCED FALLING PARTICLES
   ========================================================================== */
.petal.green-leaf {
    background: linear-gradient(135deg, rgba(168, 218, 220, 0.55) 0%, rgba(69, 123, 157, 0.32) 100%);
    border-radius: 80% 0 100% 30%;
    transform: rotate(15deg);
}

.petal.bokeh-orb {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(200, 220, 255, 0.3) 60%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    animation: fall-glitter linear infinite, shimmer 3s infinite alternate;
}

/* ==========================================================================
   PREMIUM BUTTON STYLES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn:hover::after {
    transform: translateX(100%);
}

/* Gold Gradient Button (Main CTA) */
.btn-gold {
    background: linear-gradient(135deg, #C5A052 0%, #E8CF84 35%, #C5A052 65%, #9E7D3A 100%);
    background-size: 200% 200%;
    animation: goldShimmerBtn 4s ease infinite;
    color: #2D1F00;
    box-shadow:
        0 4px 20px rgba(197, 160, 82, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset,
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
    border: 1.5px solid rgba(255, 220, 100, 0.4);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
}

.btn-gold:active {
    transform: scale(0.94);
    box-shadow: 0 2px 8px rgba(197, 160, 82, 0.4);
}

@keyframes goldShimmerBtn {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Navy Button */
.btn-navy {
    background: linear-gradient(135deg, #0B1E3F 0%, #1A365D 50%, #0B1E3F 100%);
    background-size: 200% 200%;
    color: var(--gold-light);
    box-shadow:
        0 4px 20px rgba(11, 30, 63, 0.5),
        0 0 0 1.5px rgba(197, 168, 128, 0.35) inset;
    border: 1px solid var(--primary-gold);
}

.btn-navy:hover {
    background-position: right;
    box-shadow:
        0 6px 28px rgba(11, 30, 63, 0.6),
        0 0 0 1.5px rgba(197, 168, 128, 0.6) inset;
}

.btn-navy:active {
    transform: scale(0.94);
}

/* Gold Outline Button */
.btn-gold-outline {
    background: rgba(255, 255, 255, 0.85);
    color: var(--gold-dark);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 4px 16px rgba(197, 168, 128, 0.25);
}

.btn-gold-outline:hover {
    background: rgba(197, 168, 128, 0.12);
    box-shadow: 0 6px 24px rgba(197, 168, 128, 0.45);
}

.btn-gold-outline:active {
    transform: scale(0.94);
}

/* Pulsing Cover CTA Button */
.btn-pulse {
    animation: btnPulseGlow 2.4s ease-in-out infinite;
}

@keyframes btnPulseGlow {

    0%,
    100% {
        box-shadow:
            0 4px 20px rgba(197, 160, 82, 0.55),
            0 0 0 0 rgba(197, 160, 82, 0);
    }

    50% {
        box-shadow:
            0 6px 30px rgba(197, 160, 82, 0.75),
            0 0 0 10px rgba(197, 160, 82, 0);
    }
}

.btn-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

/* Full-width utility */
.w-full {
    width: 100%;
}