* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #ffafcc, #ffc8dd, #cdb4db, #bde0fe, #a2d2ff, #ffafcc);
    background-size: 400% 400%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    animation: gradientShift 15s ease infinite;
}

/* Hearts floating in background */
.hearts-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.heart {
    position: absolute;
    background-color: #ff6b8b;
    border-radius: 50%;
    animation: float 15s infinite linear;
    opacity: 0.7;
}

.heart:before, .heart:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: 50%;
}

.heart:before {
    top: -50%;
    left: 0;
}

.heart:after {
    top: 0;
    left: -50%;
}

.heart-1 {
    width: 40px;
    height: 40px;
    top: 10%;
    left: 10%;
    background-color: #ff6b8b;
    animation-delay: 0s;
}

.heart-2 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    background-color: #ffafcc;
    animation-delay: 2s;
}

.heart-3 {
    width: 30px;
    height: 30px;
    bottom: 30%;
    left: 15%;
    background-color: #cdb4db;
    animation-delay: 4s;
}

.heart-4 {
    width: 50px;
    height: 50px;
    bottom: 15%;
    right: 20%;
    background-color: #a2d2ff;
    animation-delay: 6s;
}

.heart-5 {
    width: 35px;
    height: 35px;
    top: 40%;
    left: 5%;
    background-color: #ffc8dd;
    animation-delay: 8s;
}

.heart-6 {
    width: 45px;
    height: 45px;
    top: 60%;
    right: 10%;
    background-color: #ff9ebb;
    animation-delay: 10s;
}

.heart-7 {
    width: 25px;
    height: 25px;
    top: 70%;
    left: 20%;
    background-color: #bde0fe;
    animation-delay: 12s;
}

.heart-8 {
    width: 55px;
    height: 55px;
    top: 30%;
    left: 70%;
    background-color: #ff8fab;
    animation-delay: 14s;
}

/* Main container */
.container {
    max-width: 1000px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 50px;
    text-align: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: sparkle 20s linear infinite;
}

.header {
    margin-bottom: 40px;
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #ff2e63;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #ff2e63, #ff6b8b, #ff2e63);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientText 3s ease infinite;
}

.subtitle {
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
    color: #ff8fab;
    margin-top: 10px;
}

.name-highlight {
    color: #ff2e63;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

/* Message Section with Two Photos Stacked */
.message-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    gap: 40px;
}

.message-box {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding: 30px;
    background: linear-gradient(145deg, #fff5f7, #ffeef2);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(255, 107, 139, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.8);
    border-left: 8px solid #ff6b8b;
    position: relative;
    overflow: hidden;
}

.message-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #ff2e63, #ff6b8b, #ffafcc, #ff6b8b, #ff2e63);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.header-heart {
    color: #ff4d7e;
    font-size: 1.8rem;
    animation: heartbeat 1.5s infinite;
}

.message-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: #ff2e63;
}

.message-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.heart-animation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.heart-animation i {
    font-size: 2.2rem;
    color: #ff4d7e;
    animation: heartbeat 1.5s infinite;
    text-shadow: 0 0 10px rgba(255, 77, 126, 0.5);
}

.heart-animation i:nth-child(1) { animation-delay: 0s; }
.heart-animation i:nth-child(2) { animation-delay: 0.3s; }
.heart-animation i:nth-child(3) { animation-delay: 0.6s; }
.heart-animation i:nth-child(4) { animation-delay: 0.9s; }
.heart-animation i:nth-child(5) { animation-delay: 1.2s; }

.sparkle-effect {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.sparkle-effect i {
    font-size: 1.5rem;
    color: #ffd700;
    animation: sparkleSpin 2s infinite;
}

/* Photo Column - Two Photos Stacked Vertically - LOWERED */
.photo-column {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    margin-top: 20px;
}

.photo-frame {
    width: 100%;
    max-width: 280px;
    height: 320px;
    background: linear-gradient(135deg, #ffc8dd, #ffafcc, #ff9ebb);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px rgba(255, 107, 139, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.6);
    border: 12px solid white;
    position: relative;
    overflow: hidden;
    animation: gentleGlow 3s ease-in-out infinite;
}

.photo-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #ff6b8b, #ffafcc, #cdb4db, #bde0fe, #ff6b8b);
    background-size: 400% 400%;
    z-index: -1;
    animation: gradientShift 8s ease infinite;
    border-radius: 35px;
}

.photo-top {
    margin-top: 10px;
    animation-delay: 0s;
}

.photo-bottom {
    animation-delay: 1s;
    margin-top: 5px;
}

.polaroid-effect {
    background: white;
    padding: 20px 20px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: rotate(3deg);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.polaroid-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #ffeef2, #fff5f7);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
}

.your-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.5s ease;
}

.polaroid-image:hover .your-photo {
    transform: scale(1.05);
}

.polaroid-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 139, 0.1), rgba(255, 175, 204, 0.1));
    border-radius: 5px;
    z-index: 1;
    pointer-events: none;
}

.polaroid-image img {
    position: relative;
    z-index: 0;
}

.photo-hearts {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.photo-hearts i {
    color: #ff4d7e;
    font-size: 1.2rem;
    animation: floatUp 3s infinite;
}

.photo-hearts i:nth-child(1) { animation-delay: 0s; }
.photo-hearts i:nth-child(2) { animation-delay: 1s; }
.photo-hearts i:nth-child(3) { animation-delay: 2s; }

.photo-text {
    font-family: 'Pacifico', cursive;
    font-size: 1.4rem;
    color: #555;
    margin-top: 10px;
    text-align: center;
}

.question-section {
    padding: 30px;
    background: linear-gradient(to right, #ffafcc, #ffc8dd, #ffafcc);
    background-size: 200% 100%;
    border-radius: 25px;
    margin-top: 30px;
    box-shadow: 0 15px 35px rgba(255, 107, 139, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.6);
    animation: gradientShift 5s ease infinite;
    position: relative;
    overflow: hidden;
}

.question-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="none"/><path d="M10,5 Q12.5,2.5 15,5 Q12.5,7.5 10,10 Q7.5,7.5 5,5 Q7.5,2.5 10,5 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    z-index: 0;
}

.question {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.question-subtitle {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.buttons-wrapper {
    position: relative;
    min-height: 200px;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    z-index: 1;
}

.yes-button-container {
    position: relative;
    z-index: 2;
}

.no-button-container {
    position: relative;
    z-index: 3;
}

.btn {
    padding: 22px 60px;
    font-size: 1.8rem;
    font-weight: 700;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.yes-btn {
    background: linear-gradient(to right, #ff2e63, #ff6b8b, #ff2e63);
    background-size: 200% 100%;
    color: white;
    animation: gradientShift 3s ease infinite;
    border: 3px solid rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1000;
}

.yes-btn:hover:not(.celebrating) {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 46, 99, 0.5);
}

.no-btn {
    background: linear-gradient(to right, #a2d2ff, #bde0fe, #a2d2ff);
    background-size: 200% 100%;
    color: #333;
    border: 3px solid rgba(255, 255, 255, 0.7);
    animation: gradientShift 4s ease infinite;
    transition: transform 0.1s linear;
    position: relative;
    z-index: 1001;
}

.no-btn:hover:not(.running) {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(162, 210, 255, 0.4);
}

.no-btn.running {
    animation: gentlePulse 1.5s infinite, gradientShift 3s ease infinite !important;
    transition: left 0.1s ease, top 0.1s ease !important;
    box-shadow: 0 15px 35px rgba(162, 210, 255, 0.6) !important;
}

.instructions {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 15px;
    color: white;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.instructions i {
    margin-right: 10px;
    color: #ffeb3b;
}

.footer-note {
    margin-top: 35px;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.footer-note i {
    margin: 0 15px;
    color: #ffeb3b;
    animation: spin 4s linear infinite;
}

/* Success Container - FIXED milli2.jpeg */
.success-container {
    display: none;
    max-width: 1000px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 50px;
    text-align: center;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.success-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 182, 193, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 192, 203, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.success-content {
    animation: fadeIn 1.2s ease;
    position: relative;
    z-index: 1;
}

.success-header {
    margin-bottom: 40px;
}

.success-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.8rem;
    color: #ff2e63;
    margin-bottom: 25px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #ff2e63, #ff6b8b, #ffafcc, #ff6b8b, #ff2e63);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradientText 4s ease infinite;
}

.success-hearts {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.success-hearts i {
    font-size: 3rem;
    color: #ff6b8b;
    animation: bounce 2s infinite;
    text-shadow: 0 0 15px rgba(255, 107, 139, 0.5);
}

.success-hearts i:nth-child(1) { animation-delay: 0s; }
.success-hearts i:nth-child(2) { animation-delay: 0.2s; }
.success-hearts i:nth-child(3) { animation-delay: 0.4s; }
.success-hearts i:nth-child(4) { animation-delay: 0.6s; }
.success-hearts i:nth-child(5) { animation-delay: 0.8s; }

.success-message {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
}

.message-bubble {
    flex: 1;
    min-width: 350px;
    background: linear-gradient(to bottom right, #fff9fb, #fff5f7);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(255, 107, 139, 0.25), inset 0 0 30px rgba(255, 255, 255, 0.9);
    border: 2px solid #ffc8dd;
    position: relative;
}

.message-bubble::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: #fff9fb;
    border-top: 2px solid #ffc8dd;
    border-left: 2px solid #ffc8dd;
    transform: translateX(-50%) rotate(45deg);
}

.bubble-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.bubble-header i {
    color: #ff4d7e;
    font-size: 1.8rem;
}

.bubble-header h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: #ff2e63;
}

.success-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #555;
    text-align: left;
}

.signature {
    display: block;
    text-align: right;
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #ff2e63;
    margin-top: 30px;
}

.seal {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: linear-gradient(to right, #ff6b8b, #ffafcc);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.success-animation {
    flex: 1;
    min-width: 350px;
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 25px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 200, 221, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

/* Valentine Photo Section - FIXED milli2.jpeg */
.valentine-photo {
    margin: 30px 0;
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.photo-glow-frame {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc8dd, #ffafcc, #ff9ebb, #ffc8dd);
    padding: 8px;
    box-shadow: 0 0 40px rgba(255, 107, 139, 0.6),
                0 0 80px rgba(255, 107, 139, 0.3),
                inset 0 0 30px rgba(255, 255, 255, 0.8);
    animation: photoGlow 3s ease-in-out infinite;
    border: 3px solid white;
    display: inline-block;
}

.wendy-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(1.05) saturate(1.1);
    display: block;
}

.wendy-photo:hover {
    transform: scale(1.03);
    filter: brightness(1.1) saturate(1.2);
}

.photo-decoration {
    position: absolute;
    top: -15px;
    right: -15px;
    animation: floatDecoration 3s infinite ease-in-out;
    z-index: 3;
}

.photo-decoration i {
    display: block;
    font-size: 1.5rem;
    color: #ff4d7e;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 77, 126, 0.5);
    animation: heartbeat 1.5s infinite;
}

.photo-decoration i:nth-child(1) { animation-delay: 0s; }
.photo-decoration i:nth-child(2) { animation-delay: 0.5s; }
.photo-decoration i:nth-child(3) { animation-delay: 1s; }

.photo-caption {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #ff2e63;
    margin-top: 20px;
    text-align: center;
    background: linear-gradient(45deg, #ff2e63, #ff6b8b, #ff2e63);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientText 3s ease infinite;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    display: block;
    width: 100%;
}

.photo-glow-frame::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    animation: rotateSparkle 4s linear infinite;
    z-index: -1;
}

.romantic-quote {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 20px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #ffafcc;
    position: relative;
    z-index: 2;
    width: 100%;
}

.romantic-quote p {
    font-style: italic;
    color: #666;
    line-height: 1.6;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 10px;
}

.quote-author {
    text-align: right;
    margin-top: 10px;
    font-weight: bold;
    color: #ff6b8b;
    display: block;
}

.celebration {
    background: linear-gradient(to right, rgba(255, 175, 204, 0.8), rgba(255, 200, 221, 0.8));
    padding: 25px;
    border-radius: 20px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
}

.countdown {
    color: white;
}

.countdown h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.countdown h3 i {
    margin-right: 10px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    min-width: 100px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.countdown-item span {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff2e63;
    display: block;
}

.countdown-item small {
    color: #666;
    font-size: 1rem;
}

.success-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.back-btn {
    background: linear-gradient(to right, #a2d2ff, #bde0fe);
    color: #333;
}

.back-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(162, 210, 255, 0.4);
}

.share-btn {
    background: linear-gradient(to right, #ffafcc, #ffc8dd);
    color: white;
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 175, 204, 0.4);
}

/* Confetti container */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-25px) rotate(10deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-25px) rotate(-10deg);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px);
        opacity: 0;
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floating {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-150px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes sparkle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes sparkleSpin {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px) rotate(-5deg); }
    20%, 40%, 60%, 80% { transform: translateX(5px) rotate(5deg); }
}

@keyframes gentleGlow {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(255, 107, 139, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.6);
    }
    50% {
        box-shadow: 0 20px 50px rgba(255, 107, 139, 0.6), inset 0 0 40px rgba(255, 255, 255, 0.8);
    }
}

@keyframes celebrateYes {
    0% {
        transform: scale(1);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }
    25% {
        transform: scale(1.3) rotate(5deg);
        box-shadow: 0 25px 50px rgba(255, 46, 99, 0.6);
    }
    50% {
        transform: scale(1.2) rotate(-5deg);
        box-shadow: 0 20px 45px rgba(255, 46, 99, 0.7);
    }
    75% {
        transform: scale(1.3) rotate(5deg);
        box-shadow: 0 25px 50px rgba(255, 46, 99, 0.6);
    }
    100% {
        transform: scale(1.25);
        box-shadow: 0 22px 45px rgba(255, 46, 99, 0.5);
    }
}

.yes-btn.celebrating {
    animation: celebrateYes 2s ease-in-out;
    background: linear-gradient(to right, #4CAF50, #8BC34A, #4CAF50) !important;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.no-btn.running {
    animation: gentlePulse 1.5s infinite, gradientShift 3s ease infinite !important;
    transition: left 0.1s ease, top 0.1s ease !important;
    box-shadow: 0 15px 35px rgba(162, 210, 255, 0.6) !important;
}

@keyframes photoGlow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(255, 107, 139, 0.6),
                    0 0 80px rgba(255, 107, 139, 0.3),
                    inset 0 0 30px rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 107, 139, 0.8),
                    0 0 100px rgba(255, 107, 139, 0.4),
                    inset 0 0 40px rgba(255, 255, 255, 0.9);
    }
}

@keyframes floatDecoration {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes rotateSparkle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container, .success-container {
        padding: 30px;
    }
    
    .title, .success-title {
        font-size: 2.8rem;
    }
    
    .message-section {
        flex-direction: column;
    }
    
    .photo-column {
        margin-top: 0;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .photo-frame {
        max-width: 100%;
        height: 300px;
    }
    
    .photo-top, .photo-bottom {
        margin-top: 0;
    }
    
    .buttons-wrapper {
        flex-direction: column;
        min-height: 300px;
        gap: 20px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 20px 40px;
    }
    
    .question {
        font-size: 2.8rem;
    }
    
    .success-message {
        gap: 30px;
    }
    
    .countdown-timer {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 15px;
    }
    
    .countdown-item span {
        font-size: 2rem;
    }
    
    .polaroid-image {
        height: 180px;
    }
    
    .photo-glow-frame {
        width: 180px;
        height: 180px;
    }
    
    .photo-caption {
        font-size: 1.7rem;
    }
    
    .success-animation {
        min-width: 300px;
    }
}

@media (max-width: 480px) {
    .container, .success-container {
        padding: 20px;
    }
    
    .title, .success-title {
        font-size: 2.2rem;
    }
    
    .btn {
        font-size: 1.5rem;
        padding: 18px 30px;
    }
    
    .question {
        font-size: 2.2rem;
    }
    
    .photo-frame {
        height: 280px;
    }
    
    .polaroid-image {
        height: 160px;
    }
    
    .photo-text {
        font-size: 1.2rem;
    }
    
    .photo-glow-frame {
        width: 150px;
        height: 150px;
    }
    
    .photo-caption {
        font-size: 1.5rem;
    }
    
    .photo-decoration i {
        font-size: 1.2rem;
    }
}