/* 
   =============================================================================
   CUSTOM CURSOR
   =============================================================================
*/
body {
    cursor: none; /* Hide default arrow */
}

/* The main ring */
#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
    mix-blend-mode: difference; /* Cool inversion effect over white text */
}

/* The central dot */
#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

/* Hover State (Magnetic) */
body.hovering #cursor-ring {
    width: 50px;
    height: 50px;
    border-color: var(--ui-gradient-1, #00f2ff);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Text Lock State (Rectangle Snap) */
body.locked-on-text #cursor-ring {
    width: 240px;
    height: 50px;
    border-radius: 12px;
    border-color: var(--ui-gradient-1, #00f2ff);
    background-color: rgba(255, 255, 255, 0.05);
    mix-blend-mode: normal; /* Optional: Makes it look more like a UI element */
}

/* Hide on touch devices */
@media (hover: none) {
    #cursor-ring, #cursor-dot {
        display: none;
    }
    body {
        cursor: auto;
    }
}