:root {
    --primary-color: #ff4b72;
    --secondary-color: #ff8fa3;
    --bg-color: #1a0b1c;
    --text-color: #fff0f5;
    --card-bg: rgba(255, 255, 255, 0.05);
}

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

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

/* Background Stars */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><circle cx="10%" cy="20%" r="1" fill="white" opacity="0.5"/><circle cx="30%" cy="70%" r="1.5" fill="white" opacity="0.7"/><circle cx="50%" cy="40%" r="1" fill="white" opacity="0.4"/><circle cx="70%" cy="80%" r="2" fill="white" opacity="0.6"/><circle cx="90%" cy="30%" r="1" fill="white" opacity="0.8"/></svg>');
    animation: twinkle 5s infinite alternate;
    z-index: 0;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(255, 75, 114, 0.2);
    animation: fadeIn 1.5s ease-out;
}

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

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 75, 114, 0.5);
}

.photo-frame {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 20px rgba(255, 75, 114, 0.4);
    transition: transform 0.3s ease;
}

.photo-frame:hover {
    transform: scale(1.05);
}

.photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #1a0b1c;
}

.heart-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 2rem;
    background: white;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

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

.message {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.romantic-btn {
    background: linear-gradient(45deg, var(--primary-color), #ff2a55);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 75, 114, 0.4);
    font-weight: 600;
}

.romantic-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 75, 114, 0.6);
}

.romantic-btn:active {
    transform: translateY(1px);
}

/* Floating Hearts Animation */
.floating-heart {
    position: absolute;
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: floatUp 4s forwards linear;
    z-index: 5;
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0.5) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1.5) rotate(360deg);
        opacity: 0;
    }
}

/* Floating Photo Animation */
.floating-photo {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 75, 114, 0.6);
    animation: floatUpPhoto 4s forwards linear;
    z-index: 5;
    opacity: 0;
}

@keyframes floatUpPhoto {
    0% {
        transform: translateY(100vh) scale(0.5) rotate(-20deg);
        opacity: 1;
    }
    50% {
        transform: translateY(40vh) scale(1.2) rotate(20deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1.5) rotate(-20deg);
        opacity: 0;
    }
}
