/* Background FX Wrapper */
.jcservices-background-fx-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* Behind content */
    background-color: #05020a;
    /* Deep Space */
    overflow: hidden;
    pointer-events: none;
    /* Let clicks pass through */
}

/* Starfield */
.jcservices-background-fx-wrapper .jcservices-starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Noise */
.jcservices-background-fx-wrapper .jcservices-noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 1;
}

/* Grid */
.jcservices-background-fx-wrapper .jcservices-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(162, 52, 253, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(162, 52, 253, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

/* Cursor (High Z-Index) */
.jcservices-custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(162, 52, 253, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: screen;
}

.jcservices-custom-cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(162, 52, 253, 0.1);
}

.jcservices-custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background-color: #A234FD;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

/* Editor Overrides */
.jcservices-background-fx-wrapper.jc-is-editor {
    position: absolute;
    /* Relative to section in editor */
    width: 100%;
    height: 500px;
    /* Force height in editor */
    z-index: 0;
}

.jcservices-background-fx-wrapper.jc-is-editor .jcservices-custom-cursor,
.jcservices-background-fx-wrapper.jc-is-editor .jcservices-custom-cursor-dot {
    display: none !important;
}