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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 25%, #e1bee7 50%, #d1c4e9 75%, #ffccbc 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 182, 193, 0.3) 0%, 
        rgba(255, 218, 224, 0.3) 25%, 
        rgba(230, 190, 255, 0.3) 50%, 
        rgba(255, 209, 220, 0.3) 75%, 
        rgba(255, 228, 196, 0.3) 100%);
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(5%) translateY(5%); }
    50% { transform: translateX(-5%) translateY(5%); }
    75% { transform: translateX(5%) translateY(-5%); }
}

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

/* Sparkles */
.sparkle {
    position: fixed;
    pointer-events: none;
    animation: sparkleFloat 3s ease-in-out infinite;
    z-index: 2;
}

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

.container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem 2rem;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(255, 182, 193, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: fadeIn 1.2s ease-in;
}

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

.hidden {
    display: none;
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ec407a, #ab47bc, #5c6bc0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(236, 64, 122, 0.3);
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.question {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #d81b60;
    text-shadow: 0 2px 10px rgba(216, 27, 96, 0.2);
}

/* Photo Gallery */
.photo-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem auto;
    flex-wrap: wrap;
}

.photo-frame {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 20px rgba(236, 64, 122, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: photoFadeIn 1s ease-out backwards;
}

.photo-frame:nth-child(1) { animation-delay: 0.2s; }
.photo-frame:nth-child(2) { animation-delay: 0.4s; }
.photo-frame:nth-child(3) { animation-delay: 0.6s; }
.photo-frame:nth-child(4) { animation-delay: 0.8s; }
.photo-frame:nth-child(5) { animation-delay: 1s; }

@keyframes photoFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.photo-frame:hover {
    transform: translateY(-10px) scale(1.08) rotate(2deg);
    border-color: rgba(236, 64, 122, 0.8);
    box-shadow: 0 15px 40px rgba(236, 64, 122, 0.4);
}

.photo-frame:hover::after {
    content: '💖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    animation: heartPop 0.5s ease;
}

@keyframes heartPop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.gallery-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffc1e3, #ffd1dc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    position: relative;
}

.btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1.2rem 3.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-yes {
    background: linear-gradient(135deg, #ff6b9d, #ffa07a, #ffc3a0);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.btn-yes::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn-yes:hover::before {
    left: 100%;
}

.btn-yes:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 107, 157, 0.4);
}

.btn-no {
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    color: #757575;
    position: absolute;
    transition: all 0.2s ease;
}

.btn-no:hover {
    background: linear-gradient(135deg, #eeeeee, #d0d0d0);
}

/* Reveal */
.reveal-content {
    animation: revealIn 1s ease-out;
}

@keyframes revealIn {
    from {
        opacity: 0;
        transform: scale(0.7) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.reveal-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ff6b9d, #ffa07a, #c470f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite;
}

.reveal-message {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    color: #7b1fa2;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.heart-icon {
    font-size: 6rem;
    margin-top: 2rem;
    animation: heartbeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.6));
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .question {
        font-size: 2rem;
    }

    .photo-gallery {
        gap: 0.8rem;
    }

    .photo-frame {
        width: 100px;
        height: 100px;
    }

    .btn {
        font-size: 1.1rem;
        padding: 1rem 2.5rem;
    }

    .reveal-title {
        font-size: 2.5rem;
    }

    .reveal-message {
        font-size: 1rem;
    }
}