:root {
    /* Colors - Lavender Theme */
    --bg-lavender: #E6E6FA;
    --bg-lavender-dark: #D8BFD8;
    --text-lavender: #4A4A6A;
    --accent-purple: #9370DB;
    --accent-gold: #FFD700;

    /* Colors - Night Theme */
    --bg-night: #0B0B15;
    --bg-night-overlay: #1A1A2E;
    --star-white: #FFFFFF;
    --text-night: #E0E0E0;

    /* Premium Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Global Settings */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition-speed: 0.8s;
    --z-canvas: 1;
    --z-overlay: 2;
    --z-ui: 10;
    --z-modal: 100;
}

/* --- PASSWORD GATE --- */
#password-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#password-gate.unlocked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gate-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: gateFloat 3s ease-in-out infinite;
}

@keyframes gateFloat {

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

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

.gate-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gate-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(147, 112, 219, 0.5);
}

.gate-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.gate-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gate-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
    text-align: center;
    letter-spacing: 0.15em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.gate-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
}

.gate-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(147, 112, 219, 0.3);
}

.gate-btn {
    padding: 14px 30px;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: linear-gradient(135deg, #9370DB, #7B68EE);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(147, 112, 219, 0.4);
}

.gate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(147, 112, 219, 0.6);
}

.gate-btn:active {
    transform: scale(0.97);
}

.gate-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: opacity 0.3s;
}

.gate-error.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes gateShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-10px);
    }

    40% {
        transform: translateX(10px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }
}

.gate-shake {
    animation: gateShake 0.4s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    /* Mobile polish */
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* No scrolling, full immersive */
    font-family: var(--font-body);
    /* Lighter Lavender-Indigo Gradient */
    background: linear-gradient(135deg, #E6E6FA 0%, #C3B1E1 50%, #B0C4DE 100%);
    color: var(--text-lavender);
    transition: background-color 2.5s ease-in-out, color 2s ease;
    touch-action: none;
    /* Prevent scroll/zoom on mobile */
}

/* Utility */
.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.fade-in-text {
    animation: fadeIn 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.pointer-events-none {
    pointer-events: none;
}

/* Canvas */
#world {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-canvas);
    display: block;
}

/* UI Layer */
#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-ui);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    padding: 20px;
    /* Safe area padding */
}

#ui-layer>* {
    pointer-events: auto;
}

/* Screens */
.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s ease, visibility 1.2s;
}

/* Intro */
.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Ensures button is centered */
    justify-content: center;
    width: 100%;
}

.intro-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    /* Responsive type */
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
    padding: 0 1rem;
    color: #4B0082;
    /* Indigo */
    text-shadow: 0 2px 10px rgba(75, 0, 130, 0.2);
    letter-spacing: -0.02em;
}

/* Premium Buttons */
.btn-primary,
.btn-secondary {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    cursor: pointer;
    background: rgba(147, 112, 219, 0.85);
    color: white;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 25px rgba(147, 112, 219, 0.4);
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
}

.btn-primary:active {
    transform: scale(0.96);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(147, 112, 219, 0.6);
    background: rgba(147, 112, 219, 1);
}

.btn-primary:hover::after {
    opacity: 1;
    transform: scale(1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-night);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Modals (Glassmorphism) */
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 90;
    transition: opacity 0.5s;
}

.modal-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 90%;
    width: 500px;
    color: var(--text-night);
    z-index: 100;
    transform: translateY(20px);
    animation: slideUp 0.5s forwards cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
}

.modal-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.options-grid button {
    width: 100%;
    margin-bottom: 0.5rem;
    text-align: left;
    padding: 1rem 1.5rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close:hover {
    color: white;
}

/* Night Mode Overrides */
body.night-mode {
    background: var(--bg-night);
    /* Use shorthand to override gradient image */
    color: var(--text-night);
}

body.night-mode .intro-content h1 {
    color: var(--text-night);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Global Controls */
#global-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: var(--z-ui);
    display: flex;
    gap: 10px;
}

.control-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--text-lavender);
}

body.night-mode .control-btn {
    color: white;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Final Screen */
#final-screen {
    z-index: var(--z-ui);
    pointer-events: none;
    /* Allow clicks to pass through initially */
}

#final-screen>* {
    pointer-events: auto;
}

#final-message {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(147, 112, 219, 0.8), 0 0 40px rgba(147, 112, 219, 0.4);
    min-height: 120px;
    /* Prevent layout shift during typing */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1.2;
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Mobile Polish */
@media (max-width: 600px) {
    .modal-card {
        padding: 1.5rem;
        width: 95%;
    }

    .btn-primary {
        padding: 0.8rem 2rem;
        width: 100%;
    }

    .intro-content h1 {
        padding: 0 0.5rem;
    }
}

/* --- PHOTO CONFETTI (Polaroid Cards) --- */
#photo-confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.photo-card {
    position: absolute;
    width: 140px;
    pointer-events: all;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.photo-card:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 100;
}

.polaroid-frame {
    background: white;
    padding: 8px;
    padding-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    position: relative;
}

.photo-card:hover .polaroid-frame {
    box-shadow: 0 8px 30px rgba(147, 112, 219, 0.5);
}

.polaroid-image {
    width: 100%;
    height: 120px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border-radius: 1px;
}

.polaroid-caption {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Photo Modal Styling */
.photo-modal-content {
    text-align: center;
}

.photo-modal-content img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.photo-modal-caption {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-purple);
}

.photo-modal-date {
    font-size: 0.9rem;
    color: var(--text-night);
    opacity: 0.7;
}

/* --- PHASE 6: CHERRY BLOSSOM THEME --- */

/* Background Override */
body.cherry-blossom-mode {
    background: linear-gradient(135deg, #ffdde1 0%, #ee9ca7 100%) !important;
    transition: background 1s ease;
}

body.cherry-blossom-mode #world {
    opacity: 0.8;
    /* Soften the canvas elements */
}

/* --- BOOK UI --- */
#cherry-blossom-ui {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#open-book {
    width: 95%;
    max-width: 1000px;
    height: 85vh;
    max-height: 800px;
    background: #fffef0;
    /* Map Texture for Travel Theme */
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(240, 240, 230, 0.6)), url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10c10 20 40 0 50 10s-10 40 0 50' stroke='%23d4c5b0' fill='none' stroke-width='1'/%3E%3Cpath d='M80 80c-10-20-40 0-50-10s10-40 0-50' stroke='%23c0b090' fill='none' stroke-width='1'/%3E%3C/svg%3E");
    margin: 0;
    position: relative;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 0 0 10px #fdfbf7;
    /* Edge highlight */
    display: flex;
    border-radius: 5px;
}

/* Spine Effect in Middle */
#open-book::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.05));
    transform: translateX(-50%);
    z-index: 10;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.book-page {
    width: 50%;
    height: 100%;
    padding: 3%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-page {
    border-right: 1px solid #e0e0e0;
}

.right-page {
    border-left: 1px solid #e0e0e0;
}

/* Page Content Areas */
.page-content {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-number {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: #888;
    font-size: 0.8rem;
    left: 0;
}

/* Typography */
.handwritten-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    /* Responsive font size */
    color: #5a4a4a;
    line-height: 1.6;
}

.center-text {
    text-align: center;
}

.memory-caption {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

.small-hint {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #999;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Decorations */
.intro-decoration,
.outro-decoration {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.decorative-line {
    width: 50px;
    height: 2px;
    background: #e91e63;
    margin: 0 auto;
}

.travel-stamp {
    width: 60px;
    height: 60px;
    border: 2px solid #e91e63;
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0.3;
    transform: rotate(-15deg);
}

.travel-stamp::before {
    content: 'DEPARTED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    color: #e91e63;
    font-family: 'Outfit', sans-serif;
    font-weight: bold;
}

/* Book Photo */
.book-photo {
    width: 100%;
    height: 90%;
    max-height: 600px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    border: 5px solid white;
    transform: rotate(2deg);
}

.book-photo.placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: white;
}

/* Page Turn Animation */
@keyframes pageTurn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-turn {
    animation: pageTurn 0.8s ease-out forwards;
}

/* Navigation Buttons (Hidden for Auto-Play) */
.book-nav {
    display: none !important;
}

.book-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

/* Return Button Positioning */
#btn-return-final {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.4);
    animation: pulse 2s infinite;
}

/* Mobile Adjustments - Stacked Layout */
@media (max-width: 768px) {
    #open-book {
        flex-direction: column;
        height: auto;
        min-height: 60vh;
        width: 95%;
    }

    #open-book::before {
        display: none;
        /* Hide spine on mobile */
    }

    .book-page {
        width: 100%;
        height: auto;
        min-height: 300px;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .right-page {
        border-left: none;
    }

    .book-photo {
        height: 90%;
    }

    .prev-btn {
        left: 0;
        top: 50%;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        padding: 0;
        left: 10px;
    }

    .next-btn {
        right: 0;
        top: 50%;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        padding: 0;
        right: 10px;
    }
}

/* --- PAGE TURN ANIMATION --- */
#open-book {
    perspective: 1500px;
    position: relative;
    /* Ensure z-index context */
    z-index: 10;
}

.flipper {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    transform-origin: left center;
    transform-style: preserve-3d;
    z-index: 100;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    /* Ease-in-out */
}

.flipper-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #fffef0;
    /* Match book texture */
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(240, 240, 230, 0.5)), url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4c5b0' fill-opacity='0.1'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/g%3E%3C/svg%3E");
    padding: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.flipper-front {
    transform: rotateY(0deg);
    border-left: 1px solid #e0e0e0;
}

.flipper-back {
    transform: rotateY(180deg);
    border-right: 1px solid #e0e0e0;
}

/* Floating Hearts */
.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 105, 180, 0.6);
    pointer-events: none;
    animation: floatHeart 4s ease-in-out forwards;
}

@keyframes floatHeart {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1.2);
        opacity: 0;
    }
}

/* --- ROMANTIC ANIMATIONS --- */
@keyframes swayPhoto {
    0% {
        transform: rotate(2deg) scale(1);
    }

    50% {
        transform: rotate(1.5deg) scale(1.02);
    }

    100% {
        transform: rotate(2deg) scale(1);
    }
}

.book-photo {
    animation: swayPhoto 6s ease-in-out infinite;
}

/* Enhancing Fade In */
.fade-in-text {
    animation: fadeIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}