/* Use a clean modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #e9eff5, #f7fafc);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #1f2937;
}

/* Main counter display */
#countLabel {
    font-size: clamp(5rem, 15vw, 15rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2rem;
    transition: color 0.3s ease-in-out;
}

/* Button container */
#buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

/* Stylish button design */
.buttons {
    background: linear-gradient(145deg, #1e3a8a, #2563eb);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.buttons:hover {
    background: linear-gradient(145deg, #2563eb, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .buttons {
        font-size: 1rem;
        padding: 0.65rem 1.5rem;
        min-width: 100px;
    }
}

body {
    transition: background 0.6s ease;
}

/* === Dynamic Blurry Background === */
body::before {
    content: "";
    position: fixed;
    top: -20%;
    left: -20%;
    width: 200%;
    height: 200%;
    z-index: -1;
    background: radial-gradient(circle at 20% 20%, #ff6ec4, transparent 30%),
                radial-gradient(circle at 80% 30%, #7873f5, transparent 40%),
                radial-gradient(circle at 50% 80%, #63e2ff, transparent 35%);
    filter: blur(100px);
    animation: moveBlobs 20s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes moveBlobs {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(calc(var(--blobX, 0%) * 1%), calc(var(--blobY, 0%) * 1%)) scale(1.05);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}


body::before {
    background: radial-gradient(circle at 20% 20%, hsl(var(--blobHue), 100%, 80%), transparent 30%),
                radial-gradient(circle at 80% 30%, hsl(calc(var(--blobHue) + 60), 100%, 80%), transparent 40%),
                radial-gradient(circle at 50% 80%, hsl(calc(var(--blobHue) + 120), 100%, 80%), transparent 35%);
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

#countLabel {
    transition: transform 0.2s ease;
}
#countLabel.bump {
    transform: scale(1.1);
}
