/* ====================================
   VARIABLES & RESET
   ==================================== */
:root {
    --rose-pink: #E6338E;
    --deep-violet: #7B2869;
    --burgundy: #8B1538;
    --soft-magenta: #C44569;
    --cream: #FFF5F7;
    --deep-charcoal: #2D1B2E;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --rose-glow: rgba(230, 51, 142, 0.4);
}

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

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, var(--deep-violet), var(--rose-pink), var(--soft-magenta));
    color: var(--deep-charcoal);
    overflow-x: hidden;
    position: relative;
}

/* ====================================
   SCENE MANAGEMENT
   ==================================== */
.scene {
    min-height: 100vh;
    width: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.scene.active {
    display: flex;
    opacity: 1;
}

/* ====================================
   SCENE 1: LANDING PAGE
   ==================================== */
#landing-page {
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--deep-violet) 50%, var(--rose-pink) 100%);
    overflow: hidden;
}

/* Vignette effect */
#landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Bokeh background effect */
#landing-page::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, var(--rose-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    filter: blur(60px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    animation: bokehPulse 8s ease-in-out infinite;
}

@keyframes bokehPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Rose petals and heart particles */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

/* Multiple rose petals */
.floating-hearts::before {
    content: '🌹';
    position: absolute;
    font-size: 1.5rem;
    left: 10%;
    animation: petalFall 12s infinite ease-in-out;
    filter: blur(0.5px);
    opacity: 0.6;
}

.floating-hearts::after {
    content: '🌹';
    position: absolute;
    font-size: 1.2rem;
    right: 15%;
    animation: petalFall 15s infinite ease-in-out 3s;
    filter: blur(0.5px);
    opacity: 0.5;
}

@keyframes petalFall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) translateX(100px);
        opacity: 0;
    }
}

/* Heart sparkles */
@keyframes heartSparkle {
    0%, 100% {
        transform: translateY(100vh) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-50px) scale(1) rotate(180deg);
        opacity: 0;
    }
}

.landing-content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
}

.landing-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 3rem;
    text-shadow:
        0 0 20px var(--rose-glow),
        0 0 40px rgba(230, 51, 142, 0.6),
        0 4px 15px rgba(0, 0, 0, 0.4);
    animation: fadeInDown 1s ease-out, titleGlow 3s ease-in-out infinite;
    letter-spacing: 2px;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow:
            0 0 20px var(--rose-glow),
            0 0 40px rgba(230, 51, 142, 0.6),
            0 4px 15px rgba(0, 0, 0, 0.4);
    }
    50% {
        text-shadow:
            0 0 30px var(--rose-glow),
            0 0 60px rgba(230, 51, 142, 0.8),
            0 4px 15px rgba(0, 0, 0, 0.4);
    }
}

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

.password-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 1.2s ease-out;
}

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

.password-input {
    width: 350px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid rgba(230, 51, 142, 0.4);
    border-radius: 50px;
    background: rgba(255, 245, 247, 0.95);
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
    color: var(--deep-violet);
    letter-spacing: 3px;
}

.password-input::placeholder {
    color: rgba(123, 38, 105, 0.5);
    letter-spacing: 1px;
}

.password-input:focus {
    outline: none;
    border-color: var(--rose-pink);
    box-shadow:
        0 0 30px var(--rose-glow),
        0 0 50px rgba(230, 51, 142, 0.3),
        inset 0 0 20px rgba(230, 51, 142, 0.1);
    background: var(--white);
}

.password-input.small {
    width: 300px;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
}

.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    min-height: 1.2rem;
    font-weight: 500;
}

.error-message.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.enter-button,
.unlock-button {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--white), var(--cream));
    color: var(--rose-pink);
    border: 2px solid rgba(230, 51, 142, 0.3);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 20px var(--rose-glow),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.enter-button::before,
.unlock-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(230, 51, 142, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.enter-button:hover::before,
.unlock-button:hover::before {
    width: 300px;
    height: 300px;
}

.enter-button:hover,
.unlock-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 40px var(--rose-glow),
        0 0 60px rgba(230, 51, 142, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    border-color: var(--rose-pink);
}

.heart-icon {
    color: var(--rose-pink);
    font-size: 1.3rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

/* ====================================
   SCENE 2: WELCOME SCREEN
   ==================================== */
#welcome-screen {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(135deg, var(--cream), var(--soft-magenta), var(--rose-pink));
    position: relative;
    overflow: hidden;
}

/* Dreamy background effect for welcome screen */
#welcome-screen::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(230, 51, 142, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(196, 69, 105, 0.2) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
}

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

.name-reveal {
    font-family: 'Great Vibes', cursive;
    font-size: 6rem;
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeIn 2s ease-out;
    text-shadow:
        0 0 30px rgba(230, 51, 142, 0.6),
        0 0 60px rgba(230, 51, 142, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.subtitle-reveal {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeIn 2.5s ease-out;
    text-shadow:
        0 0 20px rgba(230, 51, 142, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.tagline {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 3rem;
    animation: fadeIn 3s ease-out;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    opacity: 0.95;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scroll-prompt {
    font-size: 1.1rem;
    color: var(--deep-charcoal);
    animation: bounce 2s infinite;
    margin-top: 2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ====================================
   SCENE 3: TIMELINE
   ==================================== */
#timeline {
    display: block;
    background: var(--cream);
    padding: 4rem 2rem;
    position: relative;
}

.progress-dots {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(230, 51, 142, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dot.active {
    background: var(--rose-pink);
    transform: scale(1.5);
    box-shadow:
        0 0 15px var(--rose-glow),
        0 0 25px rgba(230, 51, 142, 0.4);
}

.dot:hover {
    transform: scale(1.3);
    background: var(--soft-magenta);
    box-shadow: 0 0 10px rgba(230, 51, 142, 0.3);
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 4rem;
}

.timeline-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.timeline-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-photo {
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--soft-magenta), var(--rose-pink), var(--deep-violet));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-card:hover .card-photo img {
    transform: scale(1.05);
}

.card-date {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--rose-pink);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--deep-violet);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-story {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.heart-button {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.heart-filled {
    position: absolute;
    left: 0;
    opacity: 0;
    color: var(--rose-pink);
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 0 5px var(--rose-glow));
}

.heart-outline {
    color: var(--soft-magenta);
}

.heart-button.liked .heart-filled {
    opacity: 1;
}

.heart-button.liked .heart-outline {
    opacity: 0;
}

.heart-button:hover {
    transform: scale(1.2);
}

/* Final Card Special Styling */
.final-card {
    background: linear-gradient(135deg, var(--burgundy), var(--deep-violet), var(--rose-pink));
    color: var(--white);
    text-align: center;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 0 60px var(--rose-glow),
        inset 0 0 80px rgba(230, 51, 142, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.final-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.final-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

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

.final-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.final-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ====================================
   SCENE 4: VIDEO REVEAL
   ==================================== */
#video-reveal {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(135deg, var(--deep-charcoal), var(--burgundy), var(--deep-violet));
    padding: 2rem;
    position: relative;
}

#video-reveal::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, var(--rose-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(196, 69, 105, 0.3) 0%, transparent 50%);
    filter: blur(100px);
    pointer-events: none;
}

.video-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.video-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
    text-shadow:
        0 0 20px var(--rose-glow),
        0 0 40px rgba(230, 51, 142, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-container {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

video {
    width: 100%;
    display: block;
}

.video-caption {
    font-size: 1.5rem;
    color: var(--cream);
    margin-bottom: 2rem;
}

.replay-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--white), var(--cream));
    color: var(--rose-pink);
    border: 2px solid rgba(230, 51, 142, 0.3);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 20px var(--rose-glow);
}

.replay-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 40px var(--rose-glow),
        0 0 60px rgba(230, 51, 142, 0.4);
    border-color: var(--rose-pink);
}

/* ====================================
   MOBILE RESPONSIVE
   ==================================== */
@media (max-width: 768px) {
    /* Landing Page */
    .landing-title {
        font-size: 2.5rem;
    }

    .password-input {
        width: 280px;
    }

    /* Welcome Screen */
    .name-reveal {
        font-size: 4rem;
    }

    .subtitle-reveal {
        font-size: 2rem;
    }

    /* Timeline */
    .progress-dots {
        left: auto;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        width: auto;
        gap: 0.5rem;
        padding: 0.5rem;
        background: transparent;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .dot.active {
        width: 8px;
        height: 8px;
    }

    .timeline-container {
        padding-left: 0;
        padding-right: 1.5rem;
        padding-top: 0;
    }

    .timeline-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .card-photo {
        height: 300px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-story {
        font-size: 1rem;
    }

    /* Video */
    .video-title {
        font-size: 2rem;
    }

    .video-caption {
        font-size: 1.2rem;
    }
}

/* ====================================
   FLORAL CORNER DECORATIONS
   ==================================== */
.scene::after {
    content: '🌹';
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: 3rem;
    opacity: 0.15;
    transform: rotate(-15deg);
    pointer-events: none;
    filter: blur(1px);
}

#landing-page::after {
    content: '🌹';
    top: 2rem;
    left: 2rem;
    bottom: auto;
    right: auto;
    opacity: 0.2;
    transform: rotate(25deg);
    z-index: 3;
}

#welcome-screen::after {
    opacity: 0.2;
    z-index: 3;
}

/* ====================================
   SCROLL BEHAVIOR
   ==================================== */
html {
    scroll-behavior: smooth;
}

/* Removed scroll-snap for better reading experience */
/* Users can scroll freely without cards auto-snapping */
