/* Custom Image Cursor */

/* Globally hide status cursor on EVERYTHING */
html, body, a, button, input, textarea, select, label, div, span, img, .swiper-container, .swiper-wrapper, .swiper-slide {
    cursor: none !important;
}

/* Main Cursor Container */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out; /* Movement smoothing (minimal) */
    will-change: transform;
    /* Opacity transition for hide/show window */
    transition: opacity 0.2s ease-out;
}

/* Inner Icons for Smooth Cross-Fade */
.cursor-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth fading */
}

/* Default White Cursor */
.cursor-icon.white {
    background-image: url('../img/cursor-white.png');
    opacity: 1;
}

/* Light Theme Black Cursor */
.cursor-icon.black {
    background-image: url('../img/cursor-black.png');
    opacity: 0;
}

/* Theme Switching */
.custom-cursor.light-theme .cursor-icon.white {
    opacity: 0;
}

.custom-cursor.light-theme .cursor-icon.black {
    opacity: 1;
}

/* Hover Animation Class - animating the CONTAINER */
.custom-cursor.hover-active {
    animation: cursorRotate 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Keyframes: 0 -> 180deg -> 90deg */
@keyframes cursorRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(90deg);
    }
}
