:root {
    --primary-color: #ff4d6d;
    --secondary-color: #ff8fa3;
    --bg-color: #fff0f3;
    --text-color: #590d22;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(255, 77, 109, 0.2);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fff0f3 0%, #ffe3e8 100%);
    min-height: 100vh;
    color: var(--text-color);
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

main {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    width: 100%;
}

header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 300;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.02);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.message {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.gallery {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.card {
    background: var(--white);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    width: calc(50% - 1rem);
    min-width: 250px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.card p {
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    color: var(--primary-color);
}

#love-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.4);
    transition: all 0.3s ease;
}

#love-btn:hover {
    background: #ff2d55;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 77, 109, 0.6);
}

/* Animations */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards;
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1.0s;
}

.delay-6 {
    animation-delay: 1.2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-heart {
    position: absolute;
    color: var(--primary-color);
    font-size: 20px;
    animation: float 4s linear forwards;
    opacity: 0.8;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

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

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 2.5rem;
    }

    .gallery {
        flex-direction: column;
    }

    .card {
        width: 100%;
    }
}

/* Final Photo Styles */
.final-photo-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

#love-photo {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    border: 10px solid white;
    box-shadow: 0 10px 30px rgba(255, 77, 109, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    /* Light pink filter effect */
    filter: sepia(0.3) hue-rotate(310deg) saturate(1.2) contrast(1.1);
}

#love-photo:hover {
    transform: scale(1.05) rotate(2deg);
    filter: sepia(0) hue-rotate(0) saturate(1);
    /* Remove filter on hover to see original */
}