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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #ffeef8 0%, #ffe0f0 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Floating hearts background */
.hearts-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 20px;
    color: #ff69b4;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

.heart::before {
    content: "❤️";
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.heart:nth-child(2) {
    left: 25%;
    animation-delay: 2s;
    animation-duration: 15s;
    font-size: 30px;
}

.heart:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 18s;
}

.heart:nth-child(4) {
    left: 70%;
    animation-delay: 1s;
    animation-duration: 14s;
    font-size: 25px;
}

.heart:nth-child(5) {
    left: 85%;
    animation-delay: 3s;
    animation-duration: 16s;
}

.heart:nth-child(6) {
    left: 40%;
    animation-delay: 5s;
    animation-duration: 13s;
    font-size: 35px;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Main card container */
.container {
    position: relative;
    z-index: 2;
    max-width: 700px;
    width: 100%;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
}

h1 {
    color: #e91e63;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: normal;
}

.card-content {
    color: #333;
    line-height: 1.8;
    font-size: 1.1em;
}

.greeting {
    font-style: italic;
    margin-bottom: 20px;
    color: #e91e63;
}

.card-content p {
    margin-bottom: 20px;
}

.signature {
    margin-top: 40px;
    font-style: italic;
    text-align: right;
    color: #e91e63;
}

.big-heart {
    text-align: center;
    font-size: 4em;
    margin-top: 30px;
    animation: pulse 2s infinite;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .card {
        padding: 30px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .card-content {
        font-size: 1em;
    }
    
    .big-heart {
        font-size: 3em;
    }
    
    .photo-trail {
        display: none;
    }
    
    .trail-svg {
        display: none;
    }
}

/* Photo Trail */
.trail-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.photo-trail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.photo-item {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInPhoto 1s ease-in-out;
    pointer-events: auto;
}

.photo-item:hover {
    transform: scale(1.1) rotate(0deg) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    z-index: 100;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-1 {
    top: -30px;
    right: 50px;
    transform: rotate(8deg);
    animation-delay: 0.2s;
}

.photo-2 {
    top: 150px;
    right: -80px;
    transform: rotate(-5deg);
    animation-delay: 0.4s;
}

.photo-3 {
    top: 350px;
    right: -60px;
    transform: rotate(12deg);
    animation-delay: 0.6s;
}

.photo-4 {
    bottom: 80px;
    left: 50px;
    transform: rotate(-8deg);
    animation-delay: 0.8s;
}

@keyframes fadeInPhoto {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    100% {
        opacity: 1;
    }
}

