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

body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #e8b4f0 0%, #f5e6c8 30%, #f8f0dc 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* Heart-shaped balloons */
.balloons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.balloon {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.9;
}

.balloon::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='80' viewBox='0 0 10 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 0 Q 0 20 5 40 Q 10 60 5 80' stroke='rgba(0,0,0,0.1)' fill='none' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center top;
}

/* Heart shape for balloons */
.balloon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    top: -30%;
    left: 25%;
    transform: rotate(-45deg);
}

/* Individual balloon styles - pastel colors like screenshot */
.balloon-1 {
    width: 220px;
    height: 200px;
    background: linear-gradient(135deg, #c9b8f0 0%, #a890d8 100%);
    top: 15%;
    left: -5%;
    animation-delay: 0s;
    transform: rotate(-15deg);
    box-shadow: inset -20px -20px 40px rgba(255, 255, 255, 0.4),
    inset 20px 20px 40px rgba(0, 0, 0, 0.05);
}

.balloon-2 {
    width: 280px;
    height: 260px;
    background: linear-gradient(135deg, #f0c8e8 0%, #e8a0d0 100%);
    top: 5%;
    left: 30%;
    animation-delay: 1s;
    box-shadow: inset -25px -25px 50px rgba(255, 255, 255, 0.5),
    inset 25px 25px 50px rgba(0, 0, 0, 0.05);
}

.balloon-3 {
    width: 200px;
    height: 180px;
    background: linear-gradient(135deg, #e0c8f0 0%, #c8a0e0 100%);
    top: 25%;
    right: -3%;
    animation-delay: 2s;
    transform: rotate(15deg);
    box-shadow: inset -20px -20px 40px rgba(255, 255, 255, 0.5),
    inset 20px 20px 40px rgba(0, 0, 0, 0.05);
}

.balloon-4 {
    width: 160px;
    height: 145px;
    background: linear-gradient(135deg, #f8d8c8 0%, #f0b8a0 100%);
    top: 55%;
    left: 15%;
    animation-delay: 0.5s;
    box-shadow: inset -15px -15px 30px rgba(255, 255, 255, 0.5),
    inset 15px 15px 30px rgba(0, 0, 0, 0.03);
}

.balloon-5 {
    width: 180px;
    height: 165px;
    background: linear-gradient(135deg, #d8c8e8 0%, #c0b0d8 100%);
    bottom: 10%;
    right: 5%;
    animation-delay: 1.5s;
    transform: rotate(10deg);
    box-shadow: inset -18px -18px 35px rgba(255, 255, 255, 0.5),
    inset 18px 18px 35px rgba(0, 0, 0, 0.05);
}

.balloon-6 {
    width: 140px;
    height: 130px;
    background: linear-gradient(135deg, #f0d8e0 0%, #e0c0d0 100%);
    bottom: 25%;
    left: 5%;
    animation-delay: 2.5s;
    box-shadow: inset -12px -12px 25px rgba(255, 255, 255, 0.5),
    inset 12px 12px 25px rgba(0, 0, 0, 0.03);
}

.clue {
    font-size: 0.75rem;
    font-style: italic;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotate, 0deg));
    }
    50% {
        transform: translateY(-20px) rotate(var(--rotate, 0deg));
    }
}

/* Main container */
.main-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Header icon */
.header-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

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

/* Content */
.content {
    text-align: center;
    max-width: 600px;
    position: relative;
}

/* Title - elegant serif font like screenshot */
.title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 400;
    color: #4a3f35;
    line-height: 1.1;
    margin-bottom: 72px;
    letter-spacing: -1px;
}

.title-line {
    display: block;
}

/* Subtitle */
.subtitle {
    font-size: 1.1rem;
    color: #6b5b4f;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Question card */
.question-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 50px;
    margin-bottom: 72px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.question {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #4a3f35;
}

/* Buttons */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.btn-yes {
    background: linear-gradient(135deg, #e8a0d0 0%, #d080b8 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(232, 160, 208, 0.4);
}

.btn-yes:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(232, 160, 208, 0.5);
}

.btn-maybe {
    background: rgba(255, 255, 255, 0.8);
    color: #6b5b4f;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}

.btn-maybe:hover {
    background: linear-gradient(135deg, #e8a0d0 0%, #d080b8 100%);
    color: white;
}

/* Response message */
.response-message {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.response-message.show {
    opacity: 1;
    max-height: 300px;
    margin-bottom: 20px;
}

.message-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 35px;
    text-align: center;
    font-size: 1rem;
    color: #4a3f35;
    line-height: 1.8;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.message-box p {
    margin: 5px 0;
}

.signature {
    margin-top: 15px !important;
    font-weight: bold;
    color: #d080b8;
}

/* Circular badge */
.question-card {
    position: relative;
    /* ... existing styles preserved via previous cascade, but explicit relative here for clarity if I was replacing block.
       Note: I am replacing the .badge section, so I need to add .question-card rule if I want to ensure it has relative pos.
       Actually .question-card is defined earlier. I should just add the badge styles here and trust I can edit .question-card separately or hope defaults works?
       .question-card is defined above. I will replace the badge section with new badge styles.
       I will add a specific override for .question-card position here comfortably. */
}

.badge-wrapper {
    position: absolute;
    right: -45px;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
    height: 90px;
    z-index: 10;
}

.badge {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8a0d0 0%, #d080b8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(232, 160, 208, 0.4);
    position: relative;
}

.badge-text-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spin 10s linear infinite;
}

.badge-text-curve {
    font-size: 11px;
    font-weight: 600;
    fill: white;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.badge-icon {
    font-size: 1.8rem;
    z-index: 2;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* Cleanup old badge styles - replacing them with above */

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin-top: 40px;
    padding: 0 20px;
}

.scroll-hint {
    font-size: 0.85rem;
    color: #8b7b6b;
    font-weight: 300;
}

.date-stamp {
    font-size: 0.85rem;
    color: #8b7b6b;
    font-weight: 300;
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

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

    .question {
        font-size: 1.4rem;
    }

    .question-card {
        padding: 25px 30px;
    }

    .balloon {
        opacity: 0.7;
    }

    .balloon-1 {
        width: 150px;
        height: 140px;
        left: -10%;
    }

    .balloon-2 {
        width: 180px;
        height: 165px;
    }

    .balloon-3 {
        width: 140px;
        height: 130px;
        right: -8%;
    }

    .balloon-4 {
        width: 120px;
        height: 110px;
    }

    .balloon-5 {
        width: 130px;
        height: 120px;
    }

    .balloon-6 {
        width: 100px;
        height: 95px;
    }

    /* Adjust badge for mobile */
    .badge-wrapper {
        width: 65px;
        height: 65px;
        right: -12px;
        top: -44px;
        transform: none;
    }

    .badge-text-curve {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .badge-icon {
        font-size: 1.2rem;
    }

    .footer {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.2rem;
    }

    .question {
        font-size: 1.2rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .buttons-container {
        gap: 15px;
    }
}

/* Success state */
.celebrate .btn-maybe {
    display: none;
}

.celebrate .btn-yes {
    background: linear-gradient(135deg, #7cd87c 0%, #5cb85c 100%);
    pointer-events: none;
    box-shadow: 0 8px 25px rgba(92, 184, 92, 0.4);
}

.celebrate .balloon {
    animation: floatUp 3s ease-out forwards;
}

@keyframes floatUp {
    to {
        transform: translateY(-200px);
        opacity: 0.3;
    }
}
