/* CUSTOM CURSOR STYLES - Enhanced with triple layer effect */

.custom-cursor {
    position: fixed;
    width: 1px; /* Minimal size as we're using other elements for visuals */
    height: 1px;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
    background: rgba(255, 255, 255, 0.5); /* Subtle but visible */
    top: 0;
    left: 0; /* Initial position to avoid null values */
}

/* Color variables now only defined in css/style.css */

.cursor-inner {
    position: fixed;
    width: 8px;
    height: 8px;
    background: rgb(255, 123, 0);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease-out, height 0.2s ease-out, background 0.2s ease-out;
    top: 0;
    left: 0; /* Initial position to avoid null values */
    box-shadow: 0 0 5px rgba(255, 123, 0, 0.5); /* Add glow for visibility */
}

.cursor-outer {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 2px solid rgb(4, 102, 200);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.15s ease-out;
    top: 0;
    left: 0; /* Initial position to avoid null values */
    box-shadow: 0 0 10px rgba(4, 102, 200, 0.3); /* Add glow for visibility */
}

.cursor-trail {
    position: fixed;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 123, 0, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997; /* Behind other cursor elements */
    transform: translate(-50%, -50%) scale(0.5);
    transition: all 0.2s ease-out;
    top: 0;
    left: 0;
    opacity: 0.6;
    box-shadow: 0 0 15px rgba(255, 123, 0, 0.2);
}

.cursor-hover .cursor-inner {
    width: 12px;
    height: 12px;
    background: var(--primary-orange);
    mix-blend-mode: difference;
}

.cursor-hover .cursor-outer {
    transform: translate(-50%, -50%) scale(1.2);
    border-color: var(--primary-blue);
    mix-blend-mode: difference;
}

.cursor-hover .cursor-trail {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.8;
    border-color: rgba(255, 255, 255, 0.4);
}

.clicking .cursor-inner {
    transform: translate(-50%, -50%) scale(0.8);
}

.clicking .cursor-outer {
    transform: translate(-50%, -50%) scale(1.2);
}

.clicking .cursor-trail {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0.95;
}

/* Hide default cursor */
body {
    cursor: none;
}

/* Hide custom cursor on mobile */
@media (max-width: 768px), (orientation: portrait), (max-height: 450px) {
    .custom-cursor,
    .cursor-inner,
    .cursor-outer,
    .cursor-trail {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    body {
        cursor: auto !important;
    }
}

/* Explicitly restore default cursor for touch devices */
html.touch-device body,
html.touch-device a,
html.touch-device button {
    cursor: auto !important;
}
