/* Custom Cursor Styles */
body {
    cursor: none;
}

.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999998;
    opacity: 0.6;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, transform 0.6s, border-color 0.3s;
    mix-blend-mode: difference;
}

.link-grow {
    width: 50px;
    height: 50px;
    background-color: rgba(108, 99, 255, 0.2);
}

.link-shrink {
    width: 8px;
    height: 8px;
}

/* Click effect for cursor */
.cursor-click {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.8;
    animation: cursor-pulse 0.3s forwards;
}

.follower-click {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
    animation: follower-pulse 0.3s forwards;
}

@keyframes cursor-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes follower-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
}

/* Ripple click effect */
.cursor-click-effect {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(108, 99, 255, 0.4);
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    animation: ripple 1s ease-out forwards;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .cursor, .cursor-follower, .cursor-click-effect {
        display: none;
    }
    
    body {
        cursor: auto;
    }
}
