* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #ff6b95, #ff8a80, #ffc1e3, #ff6b95);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating hearts background */
.hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-heart {
    position: absolute;
    font-size: 24px;
    animation: floatUp 6s ease-in infinite;
    opacity: 0.7;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* Modal */
.modal {
    position: relative;
    z-index: 10;
    transition: all 0.5s ease;
}

.modal-content {
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255,240,245,0.95));
    padding: 60px 80px;
    border-radius: 40px;
    box-shadow: 
        0 30px 80px rgba(255, 71, 87, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.8),
        0 0 120px rgba(255, 107, 149, 0.4),
        inset 0 0 80px rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 550px;
    position: relative;
    animation: modalFloat 4s ease-in-out infinite, shimmer 3s ease-in-out infinite;
    border: 3px solid rgba(255, 107, 149, 0.3);
}

@keyframes modalFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); }
}

@keyframes shimmer {
    0%, 100% { box-shadow: 0 30px 80px rgba(255, 71, 87, 0.3), 0 0 120px rgba(255, 107, 149, 0.4); }
    50% { box-shadow: 0 40px 100px rgba(255, 71, 87, 0.5), 0 0 150px rgba(255, 107, 149, 0.6); }
}

/* Heart container */
.heart-container {
    position: relative;
    height: 120px;
    margin-bottom: 20px;
}

.heart {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b95, #ff4757);
    transform-origin: center;
    animation: heartbeat 1.2s ease-in-out infinite;
    border-radius: 50% 50% 0 0;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b95, #ff4757);
    border-radius: 50%;
}

.heart::before {
    top: -40px;
    left: 0;
}

.heart::after {
    left: 40px;
    top: 0;
}

.heart-2 {
    opacity: 0.3;
    animation-delay: 0.2s;
    filter: blur(4px);
}

.heart-3 {
    opacity: 0.15;
    animation-delay: 0.4s;
    filter: blur(8px);
}

@keyframes heartbeat {
    0%, 100% { transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
    15% { transform: translate(-50%, -50%) rotate(-45deg) scale(1.15); }
    30% { transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
    45% { transform: translate(-50%, -50%) rotate(-45deg) scale(1.1); }
}

/* Question */
.question {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    background: linear-gradient(135deg, #ff4757, #ff6b95, #ff4757);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 35px;
    animation: textGlow 2s ease-in-out infinite alternate, gradientShift 3s ease infinite;
    filter: drop-shadow(2px 2px 4px rgba(255, 107, 149, 0.3));
}

@keyframes textGlow {
    from { filter: drop-shadow(2px 2px 4px rgba(255, 107, 149, 0.3)); }
    to { filter: drop-shadow(2px 2px 20px rgba(255, 107, 149, 0.8)); }
}

/* Buttons container */
.buttons-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Base button styles */
.btn {
    padding: 18px 45px;
    font-size: 1.3rem;
    font-weight: 700;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::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 ease;
}

.btn:hover::before {
    left: 100%;
}

/* Yes button */
.yes-btn {
    background: linear-gradient(135deg, #00b894, #00cec9, #55efc4);
    background-size: 200% 200%;
    color: white;
    box-shadow: 
        0 10px 30px rgba(0, 184, 148, 0.5),
        0 0 40px rgba(0, 206, 201, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 100;
    animation: yesGlow 2s ease-in-out infinite, gradientShift 4s ease infinite;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.yes-btn.fullscreen {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(15) !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    animation: fullscreenPulse 0.5s ease-out forwards !important;
}

@keyframes fullscreenPulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(20); opacity: 1; }
}

@keyframes yesGlow {
    0%, 100% { box-shadow: 0 10px 30px rgba(0, 184, 148, 0.5), 0 0 40px rgba(0, 206, 201, 0.3); }
    50% { box-shadow: 0 15px 40px rgba(0, 184, 148, 0.7), 0 0 70px rgba(0, 206, 201, 0.5); }
}

.yes-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 20px 50px rgba(0, 184, 148, 0.6),
        0 0 100px rgba(0, 206, 201, 0.4);
}

/* No button */
.no-btn {
    background: linear-gradient(135deg, #ff4757, #ff6b81, #ee5a24);
    background-size: 200% 200%;
    color: white;
    box-shadow: 
        0 8px 25px rgba(255, 71, 87, 0.5),
        0 0 30px rgba(255, 71, 87, 0.2);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: noGlow 2s ease-in-out infinite, gradientShift 4s ease infinite;
}

.no-btn.escaped {
    position: fixed !important;
    z-index: 40;
}

@keyframes noGlow {
    0%, 100% { box-shadow: 0 8px 25px rgba(255, 71, 87, 0.5), 0 0 30px rgba(255, 71, 87, 0.2); }
    50% { box-shadow: 0 12px 35px rgba(255, 71, 87, 0.6), 0 0 50px rgba(255, 71, 87, 0.3); }
}

.no-btn:hover {
    background: linear-gradient(135deg, #ee5a24, #ff4757);
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.5);
}

.no-btn.panic {
    animation: panic 0.1s ease infinite;
}

@keyframes panic {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

/* Confess button */
.confess-btn {
    background: linear-gradient(135deg, #ff4757, #c0392b, #e74c3c);
    background-size: 200% 200%;
    color: white;
    box-shadow: 
        0 10px 35px rgba(255, 71, 87, 0.5),
        0 0 60px rgba(255, 71, 87, 0.3);
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    animation: confessGlow 1.5s ease-in-out infinite alternate, confessPulse 2s ease-in-out infinite, gradientShift 4s ease infinite;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes confessPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

@keyframes confessGlow {
    from { box-shadow: 0 10px 35px rgba(255, 71, 87, 0.5), 0 0 60px rgba(255, 71, 87, 0.3); }
    to { box-shadow: 0 15px 50px rgba(255, 71, 87, 0.8), 0 0 100px rgba(255, 71, 87, 0.5); }
}

.confess-btn:hover {
    transform: translateX(-50%) scale(1.1);
}

.confess-btn.moved {
    animation: confessGlow 1.5s ease-in-out infinite alternate, gradientShift 4s ease infinite;
}

/* Final screen - ŞATAFATLI */
.final-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b95, #ffc1e3, #ff8a80, #ffb8d0, #ff6b95);
    background-size: 500% 500%;
    animation: rainbowBg 8s ease infinite;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: hidden;
}

@keyframes rainbowBg {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

.final-screen.active {
    display: flex;
}

/* Havai fişek efekti */
.fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.firework {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: fireworkExplode 1.5s ease-out forwards;
}

@keyframes fireworkExplode {
    0% { transform: scale(0); opacity: 1; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes fireworkParticle {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

.final-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* Love explosion */
.love-explosion {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    animation: loveExplode 2s ease-out;
    pointer-events: none;
    z-index: 0;
}

@keyframes loveExplode {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(5); opacity: 0; }
}

.final-content {
    text-align: center;
    padding: 40px;
    position: relative;
    z-index: 10;
    animation: finalReveal 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes finalReveal {
    0% { opacity: 0; transform: scale(0) rotate(-20deg); }
    60% { transform: scale(1.1) rotate(5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.final-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: white;
    text-shadow: 
        3px 3px 0 #ff4757,
        6px 6px 20px rgba(255, 71, 87, 0.5),
        0 0 60px rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    animation: titleFloat 3s ease-in-out infinite, titleShine 2s ease-in-out infinite;
}

.final-name {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    color: #fff;
    text-shadow: 
        3px 3px 0 #ff4757,
        0 0 30px #ff6b95,
        0 0 60px #ff4757,
        0 0 100px rgba(255, 255, 255, 0.5);
    margin-bottom: 40px;
    animation: nameGlow 1.5s ease-in-out infinite alternate, nameBounce 2s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes titleShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

@keyframes nameGlow {
    from { text-shadow: 3px 3px 0 #ff4757, 0 0 30px #ff6b95, 0 0 60px #ff4757; }
    to { text-shadow: 3px 3px 0 #ff4757, 0 0 50px #ff6b95, 0 0 100px #ff4757, 0 0 150px rgba(255,255,255,0.8); }
}

@keyframes nameBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.photo-gallery {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
    perspective: 1000px;
}

.love-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 25px;
    border: 6px solid white;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 107, 149, 0.5),
        inset 0 0 20px rgba(255,255,255,0.3);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: photoFloat 4s ease-in-out infinite;
}

.photo-1 {
    animation: photoReveal1 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both, photoFloat 4s ease-in-out 1.3s infinite;
}

.photo-2 {
    animation: photoReveal2 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.6s both, photoFloat 4s ease-in-out 1.6s infinite;
    animation-delay: 0.6s, 1.6s;
}

.photo-3 {
    animation: photoReveal3 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.9s both, photoFloat 4s ease-in-out 1.9s infinite;
}

@keyframes photoReveal1 {
    0% { opacity: 0; transform: translateX(-200px) rotate(-30deg) scale(0); }
    100% { opacity: 1; transform: translateX(0) rotate(-3deg) scale(1); }
}

@keyframes photoReveal2 {
    0% { opacity: 0; transform: translateY(200px) rotate(20deg) scale(0); }
    100% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes photoReveal3 {
    0% { opacity: 0; transform: translateX(200px) rotate(30deg) scale(0); }
    100% { opacity: 1; transform: translateX(0) rotate(3deg) scale(1); }
}

@keyframes photoFloat {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-15px) rotate(var(--rotation, 0deg)); }
}

.love-photo:hover {
    transform: scale(1.2) rotate(0deg) translateY(-20px) !important;
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(255, 107, 149, 0.8),
        0 0 100px rgba(255, 71, 87, 0.4);
    z-index: 100;
}

.final-message {
    font-size: 2rem;
    color: white;
    margin-top: 30px;
    font-weight: 600;
    text-shadow: 2px 2px 10px rgba(255, 71, 87, 0.6);
    animation: messageFloat 3s ease-in-out infinite, messagePulse 2s ease-in-out infinite;
}

@keyframes messageFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes messagePulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; text-shadow: 2px 2px 30px rgba(255, 255, 255, 1); }
}

/* Sonsuzluk sembolü */
.infinite-love {
    font-size: 5rem;
    color: white;
    margin-top: 20px;
    text-shadow: 0 0 30px rgba(255, 71, 87, 0.8);
    animation: infinitePulse 2s ease-in-out infinite, infiniteSpin 8s linear infinite;
}

@keyframes infinitePulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(0deg); opacity: 1; }
}

@keyframes infiniteSpin {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Sparkle effect */
.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: sparkle 1s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 600px) {
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .question {
        font-size: 1.8rem;
    }
    
    .buttons-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .full-yes-btn {
        font-size: 4rem;
        padding: 40px 80px;
    }
    
    .final-title {
        font-size: 2rem;
    }
    
    .love-photo {
        width: 200px;
        height: 200px;
    }
}
