/* ========== CUSTOM CURSOR ========== */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99998;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor__dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s var(--ease-out-expo),
                height 0.2s var(--ease-out-expo),
                background 0.2s;
}

.cursor__ring {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out-expo),
                height 0.4s var(--ease-out-expo),
                border-color 0.3s,
                border-width 0.3s,
                opacity 0.3s;
}

.cursor__trail {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
    transition: opacity 0.4s;
}

/* Cursor states */
.cursor--link .cursor__dot {
    width: 4px;
    height: 4px;
    background: var(--accent, #00f0ff);
}

.cursor--link .cursor__ring {
    width: 56px;
    height: 56px;
    border-color: var(--accent, #00f0ff);
    border-width: 1.5px;
}

.cursor--project .cursor__dot {
    width: 8px;
    height: 8px;
}

.cursor--project .cursor__ring {
    width: 80px;
    height: 80px;
    border-color: rgba(255, 255, 255, 0.2);
    border-style: dashed;
}

.cursor--project .cursor__trail {
    opacity: 1;
}

.cursor--button .cursor__dot {
    width: 0;
    height: 0;
}

.cursor--button .cursor__ring {
    width: 48px;
    height: 48px;
    border-color: var(--accent, #00f0ff);
    background: rgba(0, 240, 255, 0.05);
}

.cursor--hidden .cursor__dot,
.cursor--hidden .cursor__ring {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Hide on touch */
@media (hover: none) and (pointer: coarse) {
    .cursor {
        display: none !important;
    }
}