        /* --- DESIGN SYSTEM & RESET --- */
        /* :root {
            --bg-cream: #faf8f5;
            --gold-primary: #c5a059;
            --gold-light: #e5c983;
            --text-dark: #2c2a27;
            --text-muted: #6e6a64;
            --font-serif: 'Cormorant Garamond', serif;
            --font-sans: 'Montserrat', sans-serif;
        } */

        :root {
    /* --- COUTOUR BURGUNDY & BLOSSOM PALETTE --- */
    --bg-cream: #fbf9f6;          /* Clean, warm off-white background canvas */
    --bg-card: #ffffff;           /* Crisp white for internal modal/card containers */
    
    /* Primary brand colors */
    --gold-primary: #741A2F;      /* Rich Royal Burgundy (used for headings and luxury identity) */
    --gold-light: #FFC6A8;        /* Soft Peach / Champagne-Rose (used for rings, accents, and dividers) */
    
    /* Text readability variables */
    --text-dark: #36171d;         /* Deep espresso-burgundy for flawless body text readability */
    --text-muted: #7d6b6e;        /* Soft muted mauve-gray for labels and secondary descriptions */
    
    /* Typography engines */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-cream);
            color: var(--text-dark);
            font-family: var(--font-sans);
            overflow-x: hidden;
            text-align: center;
        }

        /* --- PREVENT SCROLL BEFORE OPENING --- */
        body.locked {
            overflow: hidden;
            height: 100vh;
        }

        /* --- UTILITIES & ANIMATIONS --- */
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 1s ease, transform 1s ease;
        }
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        @keyframes goldShine {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        @keyframes pulseGlow {
            0%, 100% { transform: scale(1); opacity: 0.9; }
            50% { transform: scale(1.03); opacity: 1; }
        }

        @keyframes bounceDown {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        /* --- CINEMATIC OPENING COVER --- */
        #envelope-cover {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, #222 0%, #111 100%);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: #fff;
            transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 1.2s;
        }

        #envelope-cover.opened {
            transform: translateY(-100%);
            opacity: 0;
            pointer-events: none;
        }

        .cover-shine-card {
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
            padding: 40px 30px;
            border-radius: 4px;
            border: 1px solid rgba(197, 160, 89, 0.3);
            box-shadow: 0 20px 40px rgba(0,0,0,0.5);
            max-width: 85%;
            width: 320px;
            text-align: center;
        }

        .cover-title {
            font-family: var(--font-serif);
            font-size: 2rem;
            letter-spacing: 4px;
            margin-bottom: 7px;
            background: linear-gradient(90deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
            background-size: 200% auto;
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: goldShine 3s linear infinite;
        }

        .open-btn {
            margin-top: 30px;
            font-family: var(--font-sans);
            font-size: 0.75rem;
            letter-spacing: 3px;
            color: #fff;
            background: transparent;
            border: 1px solid var(--gold-primary);
            padding: 12px 30px;
            cursor: pointer;
            text-transform: uppercase;
            position: relative;
            overflow: hidden;
            animation: pulseGlow 2s infinite ease-in-out;
        }

/* --- CINEMATIC FALLING & MERGING RINGS --- */
/* --- SCROLL-DRIVEN WEDDING RINGS --- */

/* --- SENIOR-LEVEL 3D SCROLL RINGS --- */
#rings-animation-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    display: none;
    perspective: 1000px; /* Gives realistic depth for 3D rotations */
}

.ring-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 12vh;
    width: 180px;
    height: 100px;
    will-change: top;
    transition: top 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- PREMIUM REAL IMAGE RINGS --- */
.wedding-ring {
    position: absolute;
    width: 90px;   /* Size of the ring image */
    height: 90px;
    
    /* Image setup */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    
    /* Remove previous artificial borders/colors */
    border: none;
    box-shadow: none;
    
    /* Apply a realistic 3D shadow to the transparent PNG outline */
    filter: drop-shadow(0px 20px 15px rgba(44, 42, 39, 0.35));
    
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Remove the artificial CSS diamond and textures */
.wedding-ring::before, 
.wedding-ring::after {
    display: none !important;
}

/* --- BRIDE'S RING (Left) --- */
.ring-left {
    left: -10px;
    background-image: url('Doc/ring\ 1\ ChatGPT\ Image\ Jul\ 4\,\ 2026\,\ 02_16_11\ PM.png'); /* Make sure this path is correct */
    /* Softer 3D tilt so the real photo doesn't distort too much */
    transform: rotateY(-15deg) rotateX(10deg); 
}

/* --- GROOM'S RING (Right) --- */
.ring-right {
    right: -10px;
    width: 95px; /* Adjust if groom's band needs to look a bit wider/larger */
    height: 95px;
    background-image: url('Doc/ring\ 2\ ChatGPT\ Image\ Jul\ 4\,\ 2026\,\ 02_16_11\ PM.png'); /* Make sure this path is correct */
    transform: rotateY(15deg) rotateX(10deg);
}

        @keyframes fallDownward {
            0% { top: -100px; opacity: 0; }
            15% { opacity: 1; }
            70% { top: calc(85vh - 50px); opacity: 1; transform: translateX(-50%) scale(1); }
            100% { top: calc(85vh - 50px); opacity: 0; transform: translateX(-50%) scale(0.85); }
        }

        @keyframes mergeLeft {
            0% { transform: translateX(-40px) rotate3d(1, 1, 1, 0deg); }
            70% { transform: translateX(15px) rotate3d(1, 1, 1, 25deg); }
            100% { transform: translateX(15px) rotate3d(1, 1, 1, 25deg); }
        }

        @keyframes mergeRight {
            0% { transform: translateX(40px) rotate3d(1, -1, 1, 0deg); }
            70% { transform: translateX(-15px) rotate3d(1, -1, 1, -25deg); }
            100% { transform: translateX(-15px) rotate3d(1, -1, 1, -25deg); }
        }

        /* --- MUSIC CONTROLLER --- */
        #audio-control {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 99;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(5px);
            border: 1px solid var(--gold-primary);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }

        /* --- MAIN LAYOUT CONTENT --- */
        .section {
            padding: 80px 24px;
            max-width: 600px;
            margin: 0 auto;
        }

        /* --- HERO SECTION --- */
        .hero {
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            background: 
            url('Doc/wp2892669-married-wallpaper-hd.jpg') no-repeat center center/cover;

                        /* background: linear-gradient(rgba(250,248,245,0.85), rgba(250,248,245,0.85)),  */
                        /* url('doc/wp14812643-wedding-wallpapers.webp') no-repeat center center/cover; */

                        
        }

        .couple-names {
            font-family: var(--font-serif);
            font-size: 3.2rem;
            font-weight: 300;
            line-height: 1.2;
            color: var(--text-dark);
            margin-bottom: 10px;
        }

        .ampersand {
            font-family: var(--font-serif);
            font-style: italic;
            font-size: 2.5rem;
            color: var(--gold-primary);
            display: block;
            margin: 5px 0;
        }

        .hero-subtitle {
            font-family: var(--font-sans);
            font-size: 0.8rem;
            letter-spacing: 4px;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-top: 15px;
        }

        .scroll-indicator {
            position: absolute;
            bottom: 30px;
            font-size: 0.7rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--gold-primary);
            animation: bounceDown 2s infinite;
        }

        /* --- EMOTIONAL MESSAGE --- */
        .message-text {
            font-family: var(--font-serif);
            font-size: 1.4rem;
            font-style: italic;
            line-height: 1.8;
            color: var(--text-muted);
        }

        /* --- SCRATCH TO REVEAL SECTION --- */
        .scratch-container {
            position: relative;
            width: 300px;
            height: 150px;
            margin: 30px auto;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            border-radius: 8px;
            overflow: hidden;
        }

        .scratch-reveal-content {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #fff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border: 1px solid rgba(197, 160, 89, 0.2);
            border-radius: 8px;
        }

        .reveal-date {
            font-family: var(--font-serif);
            font-size: 1.6rem;
            color: var(--text-dark);
            letter-spacing: 1px;
        }

        .reveal-time {
            font-family: var(--font-sans);
            font-size: 0.8rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--gold-primary);
            margin-top: 5px;
        }

        #scratch-canvas {
            position: absolute;
            top: 0;
            left: 0;
            z-index: 10;
            cursor: pointer;
            touch-action: none;
        }

        /* --- PETAL POP CANVAS --- */
        #petal-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 998;
        }

        /* --- COUNTDOWN TIMER --- */
        .countdown-wrap {
            display: flex;
            justify-content: space-around;
            margin-top: 30px;
        }

        .countdown-item {
            flex: 1;
        }

        .countdown-number {
            font-family: var(--font-serif);
            font-size: 2.2rem;
            color: var(--gold-primary);
        }

        .countdown-label {
            font-family: var(--font-sans);
            font-size: 0.65rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        /* --- PHOTO GALLERY --- */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-top: 20px;
        }

        .gallery-img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            border-radius: 4px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        }

        .gallery-img.wide {
            grid-column: span 2;
            height: 300px;
        }

        /* --- VENUE SECTION --- */
        .venue-card {
            background: #fff;
            padding: 40px 20px;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.04);
            border: 1px solid rgba(197, 160, 89, 0.1);
        }

        .venue-title {
            font-family: var(--font-serif);
            font-size: 1.8rem;
            margin-bottom: 10px;
        }

        .venue-address {
            font-family: var(--font-sans);
            font-size: 0.85rem;
            line-height: 1.6;
            color: var(--text-muted);
            margin-bottom: 25px;
        }

        .map-btn {
            display: inline-block;
            font-family: var(--font-sans);
            font-size: 0.75rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: #fff;
            background: var(--gold-primary);
            padding: 14px 30px;
            border-radius: 4px;
            text-decoration: none;
            box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
            transition: background 0.3s;
        }

        /* --- BRASS GOLD DIVIDER --- */
        .gold-divider {
            width: 60px;
            height: 1px;
            background: var(--gold-primary);
            margin: 40px auto;
        }
