 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Georgia', 'Times New Roman', serif;
            background: linear-gradient(135deg, #f5f1eb 0%, #ede4d8 50%, #e8ddd2 100%);
            min-height: 100vh;
            overflow-x: hidden;
            transition: all 0.3s ease;
        }

        /* Style Options Panel */
        .style-selector {
            position: absolute;
            top: 60px;
            left: 20px;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .selector-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: move;
            font-size: 14px;
            font-weight: bold;
            color: #333;
            margin-bottom: 10px;
            }

            .selector-controls button {
            background: none;
            border: none;
            font-size: 14px;
            cursor: pointer;
            margin-left: 5px;
            }

            .selector-body.collapsed {
            display: none;
        }


        .style-option {
            display: block;
            margin: 10px 0;
            padding: 10px 15px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
            width: 100%;
            text-align: left;
        }

        .style-option:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        /* Theme Variables */
        :root {
            --primary-color: #d4af37;
            --secondary-color: #8b7355;
            --accent-color: #f4e4bc;
            --text-color: #5d4e37;
            --background-gradient: linear-gradient(135deg, #f5f1eb 0%, #ede4d8 50%, #e8ddd2 100%);
        }

        /* Classic Elegance Theme */
        .theme-classic {
            --primary-color: #d4af37;
            --secondary-color: #8b7355;
            --accent-color: #f4e4bc;
            --text-color: #5d4e37;
            --background-gradient: linear-gradient(135deg, #f5f1eb 0%, #ede4d8 50%, #e8ddd2 100%);
        }

        /* Rose Garden Theme */
        .theme-rose {
            --primary-color: #d4869c;
            --secondary-color: #a67c8a;
            --accent-color: #f2e6ea;
            --text-color: #6b4c57;
            --background-gradient: linear-gradient(135deg, #faf6f7 0%, #f0e6ea 50%, #ebe1e5 100%);
        }

        /* Vintage Pearl Theme */
        .theme-pearl {
            --primary-color: #b8a99a;
            --secondary-color: #9b8c7d;
            --accent-color: #f0ebe6;
            --text-color: #6b5d52;
            --background-gradient: linear-gradient(135deg, #f7f3f0 0%, #ede8e3 50%, #e3ded9 100%);
        }

        /* Midnight Bloom Theme */
        .theme-midnight {
            --primary-color: #7d6ba8;
            --secondary-color: #5a4b73;
            --accent-color: #e6e1f0;
            --text-color: #4a3d5c;
            --background-gradient: linear-gradient(135deg, #f2eff7 0%, #e8e3f0 50%, #ded9e9 100%);
        }

        .container {
            background: var(--background-gradient);
            min-height: 100vh;
            position: relative;
        }

        /* Decorative Background Elements */
        .container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
                radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
            background-size: 80px 80px, 120px 120px, 160px 160px;
            pointer-events: none;
            opacity: 0.6;
        }

        /* Side Navigation Arrows */
        .side-nav {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            z-index: 200;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border: none;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--primary-color);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
            opacity: 0.8;
        }

        .side-nav:hover:not(:disabled) {
            opacity: 1;
            background: var(--primary-color);
            color: white;
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
        }

        .side-nav:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            background: rgba(255, 255, 255, 0.5);
            color: var(--secondary-color);
        }

        .side-nav:disabled:hover {
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.5);
            color: var(--secondary-color);
        }

        .side-nav-left {
            left: 30px;
        }

        .side-nav-right {
            right: 30px;
        }

        /* Navigation */
        .nav-container {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
            padding: 15px 0;
            transition: all 0.3s ease;
        }

        .nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 40px;
        }

        .nav-title {
            font-size: 24px;
            font-weight: 300;
            color: var(--text-color);
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .nav-controls {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .page-counter {
            background: var(--primary-color);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 1px;
        }

        .nav-btn {
            background: none;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 1px;
            transition: all 0.3s ease;
        }

        .nav-btn:hover:not(:disabled) {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        }

        .nav-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            background: transparent;
            color: var(--primary-color);
        }

        /* Main Content */
        .main-content {
            padding-top: 100px;
            min-height: 100vh;
            position: relative;
        }

        .page {
            display: none;
            max-width: 1000px;
            margin: 0 auto;
            padding: 60px 40px;
            position: relative;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.5s ease;
        }

        .page.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
            animation: fadeInUp 0.8s ease-out forwards;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Intro Page Styles */
        .intro-page {
            text-align: center;
            padding: 80px 40px;
        }

        .intro-title {
            font-size: clamp(2.5rem, 5vw, 4rem);
            color: var(--primary-color);
            margin-bottom: 30px;
            font-weight: 300;
            letter-spacing: 3px;
            position: relative;
        }

        .intro-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            border-radius: 2px;
        }

        .intro-subtitle {
            font-size: 1.4rem;
            color: var(--text-color);
            margin-bottom: 40px;
            font-style: italic;
            font-weight: 300;
            opacity: 0.9;
        }

        .intro-description {
            font-size: 1.1rem;
            line-height: 1.8;
            color: var(--text-color);
            max-width: 600px;
            margin: 0 auto 50px;
            opacity: 0.8;
        }

        .ornamental-divider {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 40px 0;
        }

        .ornamental-divider::before,
        .ornamental-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(to right, transparent, var(--primary-color), transparent);
            max-width: 200px;
        }

        .ornamental-divider span {
            padding: 0 30px;
            color: var(--primary-color);
            font-size: 1.5rem;
        }

        /* Content Page Styles */
        .content-page {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            min-height: 60vh;
        }

        .media-container {
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
        }

        .media-container:hover {
            transform: translateY(-10px);
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
        }

        .media-placeholder {
            width: 100%;
            height: 400px;
            background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            font-weight: 300;
            letter-spacing: 1px;
            text-align: center;
        }

        .content-text {
            padding: 20px;
        }

        .page-title {
            font-size: 2.2rem;
            color: var(--primary-color);
            margin-bottom: 20px;
            font-weight: 300;
            letter-spacing: 2px;
        }

        .page-content {
            font-size: 1.1rem;
            line-height: 1.8;
            color: var(--text-color);
            margin-bottom: 30px;
        }

        .page-date {
            font-size: 0.95rem;
            color: var(--secondary-color);
            font-style: italic;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        /* Decorative Elements */
        .decorative-corner {
            position: absolute;
            width: 60px;
            height: 60px;
            border: 2px solid var(--primary-color);
            opacity: 0.3;
        }

        .decorative-corner.top-left {
            top: 20px;
            left: 20px;
            border-right: none;
            border-bottom: none;
        }

        .decorative-corner.bottom-right {
            bottom: 20px;
            right: 20px;
            border-left: none;
            border-top: none;
        }

        /* Progress Bar */
        .progress-container {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: rgba(255, 255, 255, 0.3);
            z-index: 100;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            transition: width 0.5s ease;
            width: 0%;
        }

        /* Jump to page controls */
        .page-jump {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .page-input {
            width: 60px;
            padding: 5px 8px;
            border: 2px solid var(--primary-color);
            border-radius: 5px;
            font-size: 12px;
            text-align: center;
            background: rgba(255, 255, 255, 0.9);
        }

        .jump-btn {
            padding: 5px 10px;
            font-size: 12px;
            background: var(--secondary-color);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .jump-btn:hover {
            background: var(--primary-color);
            transform: translateY(-1px);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .content-page {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            
            .nav {
                padding: 0 20px;
            }
            
            .page {
                padding: 40px 20px;
            }
            
            .style-selector {
                top: 10px;
                right: 10px;
                padding: 15px;
            }

            .nav-controls {
                gap: 10px;
            }

            .nav-btn {
                padding: 8px 16px;
                font-size: 12px;
            }

            .side-nav {
                width: 50px;
                height: 50px;
                opacity: 0.9;
            }

            .side-nav-left {
                left: 15px;
            }

            .side-nav-right {
                right: 15px;
            }

            .side-nav:hover:not(:disabled) {
                transform: translateY(-50%) scale(1.05);
            }
        }

        .music-player {
            position: fixed;
            bottom: 20px;
            left: 20px;
            z-index: 2000;
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--accent-color); /* or var(--primary-color) if you prefer */
            padding: 6px 10px;
            border-radius: 25px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            transition: background 0.3s ease;
        }


        #musicToggle {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 8px 14px;
            border-radius: 20px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        #musicToggle:hover {
            background: var(--secondary-color);
        }

        #volumeControl {
            width: 80px;
            cursor: pointer;
        }

        .toast {
            position: fixed;
            bottom: 80px; /* above music player */
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0,0,0,0.8);
            color: #fff;
            padding: 10px 16px;
            border-radius: 8px;
            font-size: 14px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease, bottom 0.4s ease;
            z-index: 3000;
        }

        .toast.show {
            opacity: 1;
            bottom: 100px; /* slight slide-up */
            pointer-events: auto;
        }

        .birthday-photo {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
        }

        .birthday-photo img {
            width: 180px;      /* adjust size */
            height: 180px;
            border-radius: 50%;
            object-fit: cover; /* keeps image centered and cropped */
            border: 4px solid var(--primary-color);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            transition: transform 0.3s ease, border-color 0.3s ease;
        }

        .birthday-photo img:hover {
            transform: scale(1.05);
            border-color: var(--secondary-color);
        }

        .falling-leaves {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9;
        }

        .leaf {
            position: absolute;
            top: -50px;
            width: 50px;
            height: 100px;
            background: var(--primary-color); /* visible */
            border-radius: 50%;
            opacity: 0.9;
            animation: fall 10s linear infinite;
        }

        /* The falling animation includes vertical + horizontal drift */
        @keyframes fall {
            0%   { transform: translateY(-50px) translateX(0) rotate(0deg); }
            50%  { transform: translateY(50vh) translateX(50px) rotate(180deg); }
            100% { transform: translateY(110vh) translateX(-50px) rotate(360deg); }
        }


        /* Variation in position and delay */
        .leaf:nth-child(1) { left: 10%; animation-delay: 0s; }
        .leaf:nth-child(2) { left: 30%; animation-delay: 2s; }
        .leaf:nth-child(3) { left: 50%; animation-delay: 4s; }
        .leaf:nth-child(4) { left: 70%; animation-delay: 6s; }
        .leaf:nth-child(5) { left: 90%; animation-delay: 8s; }

        .media-image {
            width: 100%;
            max-width: 600px;
            border-radius: 15px;
            box-shadow: 0 6px 20px rgba(0,0,0,0.2);
            display: block;
            margin: 0 auto;
        }

        .media-container video,
        .media-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;    /* fills container, no stretching */
            display: block;
        }

        .media-video {
            opacity: 0;
            transition: opacity 1s ease-in;
        }

        .media-video.loaded {
            opacity: 1;
        }

        /* selector visible state */
        .style-selector {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
        pointer-events: auto;
        z-index: 1500; /* ensure it's above background but below UI controls if needed */
        }

        /* ensure we have will-change set for smoother mobile animation */
        .style-selector.fade-ready {
        will-change: opacity, transform;
        }

        /* hidden state (fades and disables interaction) */
        .style-selector.hidden {
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        }

        /* optional collapsed state (if you use collapse button) */
        .style-selector.collapsed .selector-body {
        display: none;
        }

        /* toggle button styling - ensure visible and tappable on mobile */
        .selector-btn {
        position: fixed;
        top: 70px;
        left: 20px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: none;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        z-index: 3000; /* higher than style-selector so it's always clickable */
        box-shadow: 0 6px 18px rgba(16, 20, 30, 0.08);
        background: var(--accent-color, rgba(212,175,55,0.12));
        color: var(--text-color, #5d4e37);
        }

        /* enlarge hit area on mobile */
        @media (max-width: 480px) {
        .selector-btn {
            width: 52px;
            height: 52px;
            top: 80px;
            left: 14px;
            box-shadow: 0 10px 24px rgba(16,20,30,0.12);
        }
        }

        /* subtle pulse hint */
        .selector-btn.pulse {
        animation: pulse 1.6s ease-in-out 2;
        }
        @keyframes pulse {
        0% { transform: scale(1); box-shadow: 0 6px 18px rgba(16,20,30,0.08); }
        50% { transform: scale(1.08); box-shadow: 0 14px 30px rgba(16,20,30,0.12); }
        100% { transform: scale(1); box-shadow: 0 6px 18px rgba(16,20,30,0.08); }
        }











