:root {
    --bg-hue-1: 35;
    /* Soft Warm Accent */
    --bg-hue-2: 24;
    /* Deep Earthy/Bronze */
    --bg-saturation: 15%;
    --bg-lightness: 88%;
    --bg-opacity: 0.4;
    --pulse-opacity: 0;
}

#genz-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-layer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%,
            hsla(var(--bg-hue-1), var(--bg-saturation), var(--bg-lightness), var(--bg-opacity)) 0%,
            hsla(var(--bg-hue-2), var(--bg-saturation), var(--bg-lightness), var(--bg-opacity)) 50%,
            transparent 100%);
    animation: slowRotate 40s linear infinite;
    filter: blur(80px);
}

@keyframes slowRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1.0;
}



/* Motion Safety */
@media (prefers-reduced-motion: reduce) {
    .gradient-layer {
        animation: none !important;
    }

    #particle-canvas {
        display: none !important;
    }
}

/* Theme Integration */
[data-theme="dark"] {
    --bg-lightness: 12%;
    --bg-saturation: 10%;
    --bg-opacity: 0.6;
}

/* Smooth Cursor Effect Styles */
.smooth-cursor-wrapper {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    /* Clips the cursor to the input bounds */
}

/* Ensure the wrapper respects inline-block if needed */
.smooth-cursor-wrapper.inline {
    display: inline-block;
    width: auto;
}

.smooth-cursor-input {
    caret-color: transparent !important;
}

.smooth-custom-cursor {
    position: absolute;
    left: 0;
    width: 2px;
    height: 1.2em;
    background-color: currentColor;
    border-radius: 1px;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    transition: transform 0.12s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease;
}

.smooth-cursor-mirror {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    white-space: pre;
    text-align: inherit;
}


@keyframes smoothBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.smooth-cursor-blinking {
    animation: smoothBlink 0.8s ease-in-out infinite;
}