/* Custom cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: rgba(145, 8, 214, 0.7);
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9998;
    filter: blur(1px);
    transition: width 0.2s ease, height 0.2s ease, border-radius 0.35s ease;
    mix-blend-mode: screen;
    box-shadow: 0 0 15px 2px rgba(145, 8, 214, 0.5);
}

.cursor.pressed {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0.8;
    filter: blur(3px);
}

.cursor-glow {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(145, 8, 214, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9997;
    filter: blur(15px);
    opacity: 0.8;
}

/* Morphing properties for cursor */
.cursor.move-right {
    width: 35px;
    height: 18px;
    border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%;
    background-color: rgba(170, 10, 250, 0.7);
}

.cursor.move-left {
    width: 35px;
    height: 18px;
    border-radius: 60% 40% 40% 60% / 50% 50% 50% 50%;
    background-color: rgba(170, 10, 250, 0.7);
}

.cursor.move-up {
    width: 18px;
    height: 35px;
    border-radius: 50% 50% 60% 40% / 40% 60% 40% 60%;
    background-color: rgba(170, 10, 250, 0.7);
}

.cursor.move-down {
    width: 18px;
    height: 35px;
    border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
    background-color: rgba(170, 10, 250, 0.7);
}

/* Diagonal movement morphing */
.cursor.move-top-right {
    width: 30px;
    height: 30px;
    border-radius: 30% 70% 60% 40% / 30% 40% 60% 70%;
    background-color: rgba(170, 10, 250, 0.7);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.cursor.move-top-left {
    width: 30px;
    height: 30px;
    border-radius: 70% 30% 40% 60% / 30% 40% 60% 70%;
    background-color: rgba(170, 10, 250, 0.7);
    transform: translate(-50%, -50%) rotate(45deg);
}

.cursor.move-bottom-right {
    width: 30px;
    height: 30px;
    border-radius: 40% 60% 70% 30% / 60% 70% 30% 40%;
    background-color: rgba(170, 10, 250, 0.7);
    transform: translate(-50%, -50%) rotate(45deg);
}

.cursor.move-bottom-left {
    width: 30px;
    height: 30px;
    border-radius: 60% 40% 30% 70% / 60% 70% 30% 40%;
    background-color: rgba(170, 10, 250, 0.7);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.link-cursor {
    position: fixed;
    width: 70px;
    height: 70px;
    background: url('../images/cursor.webp') no-repeat;
    background-size: contain;
    pointer-events: none;
    display: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    opacity: 0;
}