/* ═══════════════════════════════════════════════════════════════
   custom-cursor.css — Optimized Smooth Cursor (No Glitches)
   ═══════════════════════════════════════════════════════════════ */

/* Hide default cursor */
html {
    cursor: none !important;
}

body,
body * {
    cursor: none !important;
}

/* Force hide cursor on Swiper elements */
.swiper,
.swiper *,
.swiper-wrapper,
.swiper-slide,
.mySkillsSwiper,
.mySkillsSwiper *,
.skills-bar,
.skills-bar * {
    cursor: none !important;
}

/* Inner dot cursor - Optimized */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #0083CF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    will-change: transform;
    backface-visibility: hidden;
    transition: width 0.2s ease, height 0.2s ease;
}

/* Outer ring cursor - Optimized */
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 35px;
    height: 35px;
    border: 2px solid #0083CF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    opacity: 0.5;
    transform: translate(-50%, -50%);
    will-change: transform;
    backface-visibility: hidden;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.2s ease;
}

/* Hover state - Simple scale only */
.cursor-dot.hover {
    width: 10px;
    height: 10px;
}

.cursor-ring.hover {
    width: 50px;
    height: 50px;
    opacity: 1;
}

/* Active/Click state */
.cursor-dot.active {
    width: 4px;
    height: 4px;
}

.cursor-ring.active {
    width: 30px;
    height: 30px;
}

/* Text selection state */
.cursor-dot.text {
    width: 4px;
    height: 20px;
    border-radius: 2px;
}

.cursor-ring.text {
    width: 20px;
    height: 40px;
    border-radius: 10px;
}

/* Hidden state */
.cursor-dot.hidden,
.cursor-ring.hidden {
    opacity: 0;
}

/* Disable on touch devices */
@media (hover: none) and (pointer: coarse) {
    html,
    body,
    body * {
        cursor: auto !important;
    }
    
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cursor-dot,
    .cursor-ring {
        transition: none !important;
    }
}

/* Override Swiper and all library cursor styles */
.swiper-button-next,
.swiper-button-prev,
.swiper-pagination-bullet,
.swiper-slide,
.swiper-wrapper,
.swiper-container,
.swiper,
.swiper-scrollbar-cursor-drag,
.swiper-slide-zoomed,
.swiper *,
.swiper-button-disabled,
.swiper-button-hidden {
    cursor: none !important;
}

/* Override any inline cursor styles */
[style*="cursor"] {
    cursor: none !important;
}
