/* Base cursor styling */
* {
    cursor: url('/cursors/cursor.png') 4 16, auto !important;
}

/* Main cursor */
.cursor {
    display: none; /* Hide the dot cursor */
}

/* Trail effect */
.trail {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    width: 8px;
    height: 8px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5),
        inset 0 0 8px rgba(255, 255, 255, 0.5);
    mix-blend-mode: screen;
    animation: sparkleImproved 0.7s ease-out forwards;
}
/* Trail effect */
.trail::before, .trail::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    opacity: 0.4;
    background: radial-gradient(circle at center,
        rgba(255, 255, 255, 0.8) 0%,
        transparent 60%
    );
    animation: pulseGlow 0.7s ease-out forwards;
}
@keyframes sparkleImproved {
    0% {
        transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8) rotate(180deg);
        opacity: 0;
    }
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Click effect */
.click-effect {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: clickBurst 0.5s ease-out forwards;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes clickBurst {
    0% {
        transform: scale(0.2);
        opacity: 1;
        border-width: 10px;
    }
    100% {
        transform: scale(2);
        opacity: 0;
        border-width: 1px;
    }
}


/* Change cursor to pointer on interactive elements */
a, button, [role="button"] {
    cursor: url('/cursors/cursor.png') 4 16, pointer !important;
}
