/* CSS Variables */
:root {
    --pink-light: #fff0f5;
    --pink-medium: #ffb6c1;
    --pink-hot: #ff69b4;
    --pink-deep: #ff1493;
    --coral: #ff7f7f;
    --red-love: #e63946;
    --white: #ffffff;
    --shadow: rgba(255, 105, 180, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 25%, #ffd6e7 50%, #ffb6c1 100%);
    overflow-x: hidden;
    position: relative;
}

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

.heart {
    position: absolute;
    font-size: 2rem;
    animation: float-up 15s infinite linear;
    opacity: 0.6;
}

.heart:nth-child(1) { left: 5%; animation-delay: 0s; font-size: 1.5rem; }
.heart:nth-child(2) { left: 15%; animation-delay: 2s; font-size: 2.5rem; }
.heart:nth-child(3) { left: 25%; animation-delay: 4s; font-size: 1.8rem; }
.heart:nth-child(4) { left: 35%; animation-delay: 1s; font-size: 2rem; }
.heart:nth-child(5) { left: 50%; animation-delay: 3s; font-size: 1.6rem; }
.heart:nth-child(6) { left: 65%; animation-delay: 5s; font-size: 2.2rem; }
.heart:nth-child(7) { left: 75%; animation-delay: 2.5s; font-size: 1.4rem; }
.heart:nth-child(8) { left: 85%; animation-delay: 4.5s; font-size: 2rem; }
.heart:nth-child(9) { left: 92%; animation-delay: 1.5s; font-size: 1.7rem; }
.heart:nth-child(10) { left: 45%; animation-delay: 3.5s; font-size: 2.3rem; }

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

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1rem;
}

.hey {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--pink-hot);
    display: block;
    animation: bounce 2s infinite;
}

.name {
    font-family: 'Pacifico', cursive;
    color: var(--pink-deep);
    display: block;
    text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.8),
                 5px 5px 15px var(--shadow);
    animation: pulse 2s infinite;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--coral);
    font-weight: 500;
    margin-top: 1rem;
    animation: fadeIn 1s ease-out 0.5s both;
}

/* Gallery */
.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 2rem 0;
    animation: fadeIn 1s ease-out 0.8s both;
}

.polaroid {
    background: var(--white);
    padding: 1rem 1rem 2.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px var(--shadow),
                0 5px 15px rgba(0, 0, 0, 0.1);
    transform: rotate(var(--rotation, 0deg));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.08) translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow),
                0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.polaroid-image {
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 2px;
}

.polaroid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.polaroid:hover .polaroid-image img {
    transform: scale(1.1);
}

.polaroid-caption {
    font-family: 'Pacifico', cursive;
    font-size: 0.9rem;
    color: var(--pink-deep);
    text-align: center;
    margin-top: 1rem;
}

/* Question Section */
.question-section {
    text-align: center;
    padding: 3rem 0;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.question {
    font-family: 'Pacifico', cursive;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--red-love);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 0 var(--white);
    animation: pulse 2s infinite;
}

/* Buttons */
.buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    min-height: 100px;
    position: relative;
}

.btn {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.btn-yes {
    background: linear-gradient(135deg, var(--pink-hot) 0%, var(--pink-deep) 100%);
    color: var(--white);
    animation: pulse-grow 1.5s infinite;
}

.btn-yes:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 40px var(--shadow);
}

.btn-no {
    background: linear-gradient(135deg, #ff9a9e 0%, var(--coral) 100%);
    color: var(--white);
    position: relative;
}

.btn-no:hover {
    transform: scale(0.95);
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 3rem;
    animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-message.show {
    display: block;
}

.success-title {
    font-family: 'Pacifico', cursive;
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--pink-deep);
    margin-bottom: 1rem;
    animation: bounce 1s infinite;
}

.success-text {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: var(--coral);
    font-weight: 600;
}

.heart-explosion {
    font-size: 3rem;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.heart-explosion span {
    animation: explode 0.8s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.heart-explosion span:nth-child(1) { --i: 0; --tx: -100px; --ty: -50px; }
.heart-explosion span:nth-child(2) { --i: 1; --tx: -50px; --ty: -80px; }
.heart-explosion span:nth-child(3) { --i: 2; --tx: 0px; --ty: -100px; }
.heart-explosion span:nth-child(4) { --i: 3; --tx: 50px; --ty: -80px; }
.heart-explosion span:nth-child(5) { --i: 4; --tx: 100px; --ty: -50px; }

/* Confetti Canvas */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

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

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

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes explode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.5);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    .gallery {
        gap: 1rem;
    }
    
    .polaroid {
        padding: 0.7rem 0.7rem 2rem;
    }
    
    .polaroid-image {
        width: 140px;
        height: 140px;
    }
    
    .buttons-container {
        gap: 1rem;
    }
    
    .btn {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }
}

