/* =========================================
   UI ENHANCEMENTS: CUSTOM CURSOR
   ================================********* */

/* --- 2. CUSTOM CURSOR (TACTICAL CROSSHAIR) --- */
@media (pointer: fine) {
    /* Hide default cursor only if we have a fine pointer (mouse) */
    /* body { cursor: none; } */
    /* We keep the pointer for usability, but add the follower */
}

#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 102, 0, 0.5);
    /* Orange tint */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100000;
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
    mix-blend-mode: screen;
}

#cursor-crosshair {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #ff6600;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100001;
    transition: transform 0.05s ease-out;
}

/* Hover State */
body.hovering-link #cursor-follower {
    width: 50px;
    height: 50px;
    border-color: #00ff41;
    /* Green on interactables */
    background-color: rgba(0, 255, 65, 0.05);
    border-style: dashed;
    animation: rotate-cursor 4s linear infinite;
}

body.hovering-link #cursor-crosshair {
    background-color: #00ff41;
    transform: translate(-50%, -50%) scale(0.5);
}

@keyframes rotate-cursor {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Hide on Mobile */
@media (max-width: 768px) {

    #cursor-follower,
    #cursor-crosshair {
        display: none !important;
    }
}