/**
 * Magic Cursor Styles
 * Styling for the interactive cursor effect with pointer and ball
 */

#magic-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Cursor Pointer (Main Cursor) */
#cursor-pointer {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 16px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 16" fill="black" stroke="white" stroke-width="0.5"><path d="M0 0 L0 14 L3 11 L6 16 L8 15 L5 10 L9 10 Z"/></svg>') no-repeat center;
    background-size: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
}

/* Ball Element (Following Effect) */
#ball {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #1781FE;
    border-radius: 50%;
    background-color:#1781FE;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-width 0.2s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Active State - When hovering over interactive elements */
#magic-cursor.active #ball {
    width: 28px;
    height: 28px;
    border-width: 3px;
    background-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

/* Hide default cursor on interactive elements */
a,
button,
input[type="button"],
input[type="submit"],
label,
[role="button"],
.cursor-pointer {
    cursor: none !important;
}

/* Optional: Add glow animation on hover */
@keyframes cursorGlow {
    0% {
        box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(249, 115, 22, 0.6);
    }
    100% {
        box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
    }
}

#magic-cursor.active #ball {
    animation: cursorGlow 0.6s ease-in-out infinite;
}
