/* Modern Glowing Orb Cursor Animation */
* {
    cursor: none;
}

.orb-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    background: #00D5C2;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
    box-shadow:
        0 0 10px #00D5C2,
        0 0 20px rgba(0, 213, 194, 0.5),
        0 0 30px rgba(0, 213, 194, 0.3);
}

.orb-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0, 213, 194, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse 2s ease-in-out infinite;
}

.orb-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(0, 213, 194, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse 2s ease-in-out infinite reverse;
}

@keyframes orbPulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

/* Hover state - expanding orb */
.orb-cursor.hover {
    width: 16px;
    height: 16px;
    background: rgba(0, 213, 194, 0.8);
    box-shadow:
        0 0 15px #00D5C2,
        0 0 30px rgba(0, 213, 194, 0.6),
        0 0 45px rgba(0, 213, 194, 0.4);
}

.orb-cursor.hover::before {
    width: 40px;
    height: 40px;
    border-width: 2px;
    animation: orbHover 0.6s ease-out infinite;
}

.orb-cursor.hover::after {
    width: 60px;
    height: 60px;
    border-width: 1px;
    animation: orbHover 0.8s ease-out infinite;
}

@keyframes orbHover {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Click state - energy burst */
.orb-cursor.click {
    width: 12px;
    height: 12px;
    background: #ffffff;
    box-shadow:
        0 0 20px #00D5C2,
        0 0 40px rgba(0, 213, 194, 0.8),
        0 0 60px rgba(0, 213, 194, 0.6);
}

.orb-cursor.click::before,
.orb-cursor.click::after {
    animation: orbBurst 0.4s ease-out;
}

@keyframes orbBurst {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
        border-width: 3px;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
        border-width: 1px;
    }
}

/* Text cursor state */
.orb-cursor.text {
    width: 2px;
    height: 20px;
    border-radius: 1px;
    background: #00D5C2;
    box-shadow:
        0 0 8px #00D5C2,
        0 0 16px rgba(0, 213, 194, 0.4);
    animation: textCursorBlink 1s ease-in-out infinite;
}

.orb-cursor.text::before,
.orb-cursor.text::after {
    display: none;
}

@keyframes textCursorBlink {
    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

/* Loading state */
.orb-cursor.loading {
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid rgba(0, 213, 194, 0.2);
    border-top: 2px solid #00D5C2;
    border-radius: 50%;
    animation: orbSpin 1s linear infinite;
    box-shadow:
        0 0 15px rgba(0, 213, 194, 0.3),
        inset 0 0 15px rgba(0, 213, 194, 0.1);
}

.orb-cursor.loading::before,
.orb-cursor.loading::after {
    display: none;
}

@keyframes orbSpin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Energy trail dots */
.energy-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #00D5C2;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px #00D5C2;
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    * {
        cursor: auto !important;
    }

    .orb-cursor,
    .energy-dot {
        display: none !important;
    }
}
