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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #6a11cb 0%, #9b4dca 25%, #c471ed 50%, #a855f7 75%, #7c3aed 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.floating-heart {
    position: absolute;
    font-size: 20px;
    animation: floatUp 8s linear infinite;
    opacity: 0;
}

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

/* Main Container */
.container {
    max-width: 700px;
    width: 100%;
    position: relative;
    z-index: 10;
    animation: fadeInScale 1s ease-out;
}

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

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: cardPulse 3s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 25px 70px rgba(168, 85, 247, 0.5);
    }
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #7c3aed;
    margin-bottom: 20px;
    animation: titleBounce 2s ease-in-out infinite;
}

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

.bow-emojis {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.bow {
    font-size: 3rem;
    animation: bowFloat 3s ease-in-out infinite;
    display: inline-block;
}

.bow:nth-child(1) {
    animation-delay: 0s;
}

.bow:nth-child(2) {
    animation-delay: 0.2s;
}

.bow:nth-child(3) {
    animation-delay: 0.4s;
}

.bow:nth-child(4) {
    animation-delay: 0.6s;
}

.bow:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes bowFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.1);
    }
}

/* Message Section */
.message-section {
    margin: 30px 0;
    text-align: center;
}

.message-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #7c3aed;
    margin-bottom: 30px;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    }
}

.message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3436;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out backwards;
}

.message strong {
    color: #7c3aed;
    font-weight: 600;
}

.song-quote {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: #a855f7;
    font-style: italic;
    margin: 25px 0;
}
    animation: fadeInUp 1s ease-out backwards;
}

.message:nth-child(2) {
    animation-delay: 0.2s;
}

.message:nth-child(3) {
    animation-delay: 0.4s;
}

.message:nth-child(4) {
    animation-delay: 0.6s;
}

.message:nth-child(5) {
    animation-delay: 0.8s;
}

.message:nth-child(6) {
    animation-delay: 1s;
}

.message:nth-child(7) {
    animation-delay: 1.2s;
}

.message:nth-child(8) {
    animation-delay: 1.4s;
}

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

/* Button Section */
.button-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-yes {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
}

.btn-yes:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.6);
}

.btn-no {
    background: linear-gradient(135deg, #c471ed, #9b4dca);
    color: white;
}

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

/* Response Section */
.response-section {
    display: none;
    margin: 30px 0;
    text-align: center;
    animation: celebrationPop 0.5s ease-out;
}

.response-section.show {
    display: block;
}

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

.celebration {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.response-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #7c3aed;
    margin-bottom: 15px;
}

.response-message {
    font-size: 1.1rem;
    color: #2d3436;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Hearts Burst Animation */
.hearts-burst {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.burst-heart {
    font-size: 2rem;
    animation: heartBurst 1s ease-out infinite;
}

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

@keyframes heartBurst {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1);
    }
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #dfe6e9;
}

.footer-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #7c3aed;
    margin-bottom: 10px;
}

.date {
    font-size: 0.9rem;
    color: #636e72;
}

/* Photo Slideshow Styles */
.photo-slideshow {
    margin: 30px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 450px;
    background: #f5f3ff;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(124, 58, 237, 0.95), rgba(124, 58, 237, 0.7));
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.slideshow-dots {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c4b5fd;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    transform: scale(1.3);
    background: #a855f7;
}

.dot.active {
    background: #7c3aed;
    width: 30px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        padding: 40px 25px;
    }

    .main-title {
        font-size: 2rem;
    }

    .bow-emojis {
        gap: 10px;
    }

    .bow {
        font-size: 2.5rem;
    }

    .message-title {
        font-size: 2rem;
    }

    .message {
        font-size: 1rem;
    }

    .song-quote {
        font-size: 1.2rem;
    }

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

    .response-title {
        font-size: 2rem;
    }

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

    .slideshow-container {
        height: 350px;
    }

    .slide-caption {
        font-size: 1rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }

    .main-title {
        font-size: 1.6rem;
    }

    .bow-emojis {
        gap: 8px;
    }

    .bow {
        font-size: 2rem;
    }

    .message-title {
        font-size: 1.7rem;
    }

    .button-section {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .hearts-burst {
        flex-wrap: wrap;
    }

    .slideshow-container {
        height: 300px;
    }

    .slide-caption {
        font-size: 0.9rem;
        padding: 12px;
    }

    .dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }

    .dot.active {
        width: 20px;
    }
}
