        /* === GLOBAL STYLES === */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            overflow: hidden; 
            background-color: #0b0c10;
            color: #fff;
            transition: background 2s ease-in-out;
            height: 100vh;
            width: 100vw;
            cursor: crosshair;
        }

        body.night-theme { background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%); }
        body.warm-theme { background: radial-gradient(circle at center, #4a154b 0%, #1a001a 100%); }
        body.romantic-theme { background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%); color: #fff; }

        section {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
            transform: scale(0.95);
            padding: 20px;
            text-align: center;
            z-index: 10;
        }

        section.active {
            opacity: 1;
            pointer-events: auto;
            transform: scale(1);
        }

        h1, h2, .script-font {
            font-family: 'Dancing Script', cursive;
        }

        button {
            padding: 12px 24px;
            font-size: 1.1rem;
            font-family: 'Poppins', sans-serif;
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            border: 2px solid #fff;
            border-radius: 30px;
            cursor: pointer;
            backdrop-filter: blur(5px);
            transition: all 0.3s ease;
            margin-top: 20px;
            z-index: 20;
            position: relative;
        }

        button:hover {
            background: #fff;
            color: #ff758c;
            box-shadow: 0 0 15px rgba(255,255,255,0.8);
            transform: translateY(-2px);
        }

        /* === MOUSE TRAIL SPARKLES === */
        .sparkle {
            position: absolute;
            pointer-events: none;
            background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0) 70%);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            animation: sparkleFade 0.8s ease-out forwards;
            z-index: 9999;
        }

        @keyframes sparkleFade {
            0% { width: 10px; height: 10px; opacity: 1; }
            100% { width: 30px; height: 30px; opacity: 0; }
        }

        /* === PAGE 1: LANDING === */
        #landing h1 {
            font-size: 3rem;
            margin-bottom: 40px;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
            animation: pulseText 2s infinite alternate;
        }

        .gift-container {
            font-size: 100px;
            cursor: pointer;
            transition: transform 0.3s ease;
            animation: float 3s ease-in-out infinite;
            filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.8));
            position: relative;
            z-index: 20;
        }

        .gift-container:hover {
            transform: scale(1.1);
        }

        .gift-container.opening {
            animation: openGift 1s forwards;
        }

        /* === PAGE 2: MEMORIES (WITH 3D TILT & ANIMATED CAPTIONS) === */
        .gallery-wrapper {
            perspective: 1000px; 
            z-index: 20;
        }

        .gallery-container {
            position: relative;
            width: 100%;
            width: 600px; 
            height: 400px;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0,0,0,0.6);
            background: rgba(0,0,0,1); /* Dark background for loading */
            transform-style: preserve-3d;
            transition: transform 0.1s ease-out; 
        }

        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            display: flex;
            flex-direction: column;
        }

        .slide.active { opacity: 1; }

        .slide img, .slide video {
            width: 100%;
            height: 100%; /* Now takes full height */
            object-fit: cover;
            pointer-events: none; 
        }

        /* Elegant Animated Captions */
        .caption {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 50px 20px 20px 20px; /* Padding for gradient */
            display: flex;
            align-items: flex-end;
            justify-content: center;
            background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); /* Cinematic fade */
            font-size: 1.8rem;
            font-family: 'Dancing Script', cursive;
            color: #fff;
            text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.6s ease-out 0.4s; /* Enters after the image appears */
            text-align: center;
        }

        .slide.active .caption {
            opacity: 1;
            transform: translateY(0);
        }

        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.4);
            border: none;
            color: white;
            font-size: 2rem;
            padding: 10px 15px;
            cursor: pointer;
            border-radius: 50%;
            z-index: 30;
            margin: 0;
            backdrop-filter: blur(2px);
        }

        .nav-btn.prev { left: 10px; }
        .nav-btn.next { right: 10px; }
        .nav-btn:hover { background: rgba(255,255,255,0.9); color: #ff758c; transform: translateY(-50%) scale(1.1); }

        /* === PAGE 3: LOVE MESSAGE === */
        .typewriter-container {
            max-width: 700px;
            background: rgba(0,0,0,0.4);
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 0 20px rgba(0,0,0,0.3);
            backdrop-filter: blur(10px);
        }

        #typewriter-text {
            font-size: 1.5rem;
            line-height: 1.6;
            min-height: 150px;
        }

        .cursor {
            display: inline-block;
            width: 10px;
            height: 1.2rem;
            background: white;
            animation: blink 0.8s infinite;
        }

        /* HOLD TO UNLOCK BUTTON */
        .hold-btn-container {
            opacity: 0;
            pointer-events: none;
            transition: opacity 1s ease;
            margin-top: 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .hold-btn-container.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .hold-btn {
            width: 80px;
            height: 80px;
            background: transparent;
            border: 3px solid #ff758c;
            border-radius: 50%;
            color: #ff758c;
            font-size: 2rem;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: transform 0.2s;
            margin-top: 10px;
        }

        .hold-btn:active {
            transform: scale(0.95);
        }

        .hold-fill {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 0%;
            background: #ff758c;
            z-index: -1;
            transition: height 0.1s linear;
        }

        /* === PAGE 4: SURPRISE === */
        #surprise h1 {
            font-size: 5rem;
            text-shadow: 0 0 20px #fff, 0 0 40px #ff758c;
            margin-bottom: 30px;
            animation: popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        /* Modal */
        .modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            background: white;
            color: #333;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            z-index: 100;
            opacity: 0;
            pointer-events: none;
            transition: all 0.5s ease;
            max-width: 90%;
            width: 400px;
        }

        .modal.active { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
        .modal h2 { color: #ff758c; margin-bottom: 15px; font-size: 2.5rem; }
        .close-btn { margin-top: 20px; background: #ff758c; color: white; border: none; }
        .close-btn:hover { background: #ff4766; color: white; }

        /* Overlay */
        .overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
            z-index: 99; opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
        }
        .overlay.active { opacity: 1; pointer-events: auto; }

        /* === ANIMATIONS === */
        @keyframes pulseText { 0% { text-shadow: 0 0 10px rgba(255,255,255,0.5); transform: scale(1); } 100% { text-shadow: 0 0 20px rgba(255,255,255,1), 0 0 30px #ff69b4; transform: scale(1.05); } }
        @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
        @keyframes openGift { 0% { transform: scale(1) rotate(0deg); filter: brightness(1); } 50% { transform: scale(1.3) rotate(15deg); filter: brightness(1.5); } 100% { transform: scale(0) rotate(-15deg); filter: brightness(2); opacity: 0; } }
        @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
        @keyframes popIn { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 1; transform: scale(1); } }
        
        .particle { position: absolute; pointer-events: none; animation: floatUp linear forwards; z-index: 1; }
        @keyframes floatUp { 0% { transform: translateY(100vh) rotate(0deg); opacity: 1; } 100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; } }
