/* ========================================
   CUSTOM CURSOR DESIGN
   ======================================== */

/* Hide default cursor */
body,
a,
button,
input,
textarea,
select {
    cursor: none !important;
}

/* Custom cursor container */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

/* Cursor circle */
.cursor-circle {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(12, 53, 158, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    background: rgba(74, 144, 226, 0.1);
    backdrop-filter: blur(2px);
}

/* Cursor dot (exact pointer) */
.cursor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #0C359E;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
    box-shadow: 0 0 10px rgba(12, 53, 158, 0.5);
}

/* Hover state - expand circle */
body.cursor-hover .cursor-circle {
    width: 60px;
    height: 60px;
    border-color: rgba(74, 144, 226, 1);
    background: rgba(74, 144, 226, 0.15);
}

/* Click state - shrink circle */
body.cursor-click .cursor-circle {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

/* Link hover - change to pointer style */
body.cursor-link .cursor-circle {
    width: 50px;
    height: 50px;
    border-color: rgba(74, 144, 226, 1);
    background: rgba(74, 144, 226, 0.2);
}

body.cursor-link .cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
    background: #4A90E2;
}

/* Text selection cursor */
body.cursor-text .cursor-circle {
    width: 35px;
    height: 45px;
    border-radius: 20px;
}

/* Smooth animation */
.cursor-circle,
.cursor-dot {
    will-change: transform;
}

/* Mobile - show default cursor */
@media (max-width: 768px) {
    body,
    a,
    button,
    input,
    textarea,
    select {
        cursor: auto !important;
    }
    
    .custom-cursor {
        display: none;
    }
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    body,
    a,
    button,
    input,
    textarea,
    select {
        cursor: auto !important;
    }
    
    .custom-cursor {
        display: none;
    }
}
