/* ============================================
   MOUSE CURSOR FOLLOWER - Fancy Theme
   ============================================ */

/* Main cursor ring */
.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid #8B5CF6;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
    border-color: #EC4899;
}

.cursor-follower.hidden {
    opacity: 0;
}

/* Center dot */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899, #F97316);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.05s ease-out;
}

.cursor-dot.active {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Cursor Trail Effect */
.cursor-trail {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.cursor-trail:nth-child(1) { background: #8B5CF6; }
.cursor-trail:nth-child(2) { background: #EC4899; }
.cursor-trail:nth-child(3) { background: #F97316; }
.cursor-trail:nth-child(4) { background: #06B6D4; }
.cursor-trail:nth-child(5) { background: #FBBF24; }
.cursor-trail:nth-child(6) { background: #8B5CF6; }
.cursor-trail:nth-child(7) { background: #EC4899; }
.cursor-trail:nth-child(8) { background: #F97316; }

/* Sparkle Effect on Click */
.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    width: 20px;
    height: 20px;
}

.sparkle-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: sparkleParticle 0.6s ease-out forwards;
}

.sparkle-particle:nth-child(1) { background: #8B5CF6; animation-delay: 0s; }
.sparkle-particle:nth-child(2) { background: #EC4899; animation-delay: 0.05s; }
.sparkle-particle:nth-child(3) { background: #F97316; animation-delay: 0.1s; }
.sparkle-particle:nth-child(4) { background: #06B6D4; animation-delay: 0.15s; }
.sparkle-particle:nth-child(5) { background: #FBBF24; animation-delay: 0.2s; }
.sparkle-particle:nth-child(6) { background: #8B5CF6; animation-delay: 0.25s; }

@keyframes sparkleParticle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Hide custom cursor on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-follower,
    .cursor-dot,
    .cursor-trail,
    .sparkle {
        display: none !important;
    }
}

/* Hide default cursor when custom cursor is active */
body.custom-cursor-active {
    cursor: none;
}

body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active input,
body.custom-cursor-active textarea,
body.custom-cursor-active select,
body.custom-cursor-active [role="button"] {
    cursor: none;
}
