:root {
    --primary: #ff2a5f;
    --primary-glow: rgba(255, 42, 95, 0.6);
    --secondary: #ff758c;
    --dark-bg: #0f0c29;
    --glass-bg: rgba(20, 20, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-main: #ffffff;
}

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

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    touch-action: none; /* Strictly prevent all scroll/pan on mobile */
}

body {
    font-family: 'Outfit', sans-serif;
    background: #0f0c29;
    min-height: 100vh; /* fallback */
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--text-main);
    perspective: 1000px; /* For 3D Tilt effect */
}

/* Deep animated gradient background */
.bg-animated {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: 0;
}

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

/* Glowing Orbs */
.background-orbs {
    position: fixed;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden; /* Stop orbs from creating scrollbars */
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatOrb 10s infinite ease-in-out alternate;
}

.orb-1 {
    width: 500px; height: 500px;
    background: #ff2a5f;
    top: -100px; left: -100px;
}
.orb-2 {
    width: 400px; height: 400px;
    background: #7b2cbf;
    bottom: -100px; right: -50px;
    animation-delay: -3s;
}
.orb-3 {
    width: 300px; height: 300px;
    background: #ff758c;
    top: 40%; left: 40%;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 80px) scale(1.2); }
}

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

.floating-heart {
    position: absolute;
    bottom: -10%;
    color: rgba(255, 42, 95, 0.4);
    font-size: 24px;
    animation: floatUp linear forwards;
    filter: drop-shadow(0 0 5px rgba(255, 42, 95, 0.5));
}

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

/* Main Container (Glassmorphism) */
.container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem 4rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                inset 0 1px 1px rgba(255, 255, 255, 0.2);
    max-width: 90vw;
    z-index: 10;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.img-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

#main-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-img {
    opacity: 0;
    transform: scale(0.95);
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 2.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.fade-text {
    opacity: 0;
    transform: translateY(10px);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: relative;
    align-items: center;
    min-height: 80px;
}

.btn {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 16px 48px;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    outline: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.yes-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 25px var(--primary-glow);
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.05); }
    30% { transform: scale(1); }
    45% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.yes-btn:hover {
    box-shadow: 0 15px 35px var(--primary-glow);
    transform: translateY(-3px) scale(1.05);
    /* Disable heartbeat on hover so it doesn't fight transform */
    animation: none; 
}

.no-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.no-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1.2rem;
        border-radius: 20px;
        max-width: 92vw;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .img-container {
        width: 180px;
        height: 180px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1.1rem;
    }
    
    .button-group {
        gap: 1.5rem;
    }

    /* Scale down orbs for mobile */
    .orb-1 { width: 300px; height: 300px; top: -50px; left: -50px; }
    .orb-2 { width: 250px; height: 250px; bottom: -50px; right: -20px; }
    .orb-3 { width: 200px; height: 200px; }
}
