/* Custom Cursor Styles */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(95, 205, 228, 0.3), transparent);
    box-shadow: 0 0 20px var(--accent-cyan);
}

.cursor-trail {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(95, 205, 228, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(95, 205, 228, 0.1), transparent);
}

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

a, button, input, textarea, select {
    cursor: none;
}

/* Hover state for cursor */
body.link-hover .custom-cursor {
    width: 30px;
    height: 30px;
    border-color: var(--primary-blue);
    background: radial-gradient(circle, rgba(74, 144, 226, 0.4), transparent);
    box-shadow: 0 0 30px var(--primary-blue);
}

body.link-hover .cursor-trail {
    width: 50px;
    height: 50px;
    border-color: rgba(74, 144, 226, 0.2);
}

/* Click animation */
body.mouse-clicked .custom-cursor {
    animation: cursorClick 0.3s ease;
}

@keyframes cursorClick {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* For devices that don't support custom cursor */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }
    
    .custom-cursor, .cursor-trail {
        display: none;
    }
    
    a, button, input, textarea, select {
        cursor: auto;
    }
}