/* Advanced Custom Cursor Styles */
/* ---------------------------------------------------------------- */

/* Hide the default cursor on the body when the custom cursor is active */
body.custom-cursor-active {
    cursor: none;
}

/* The main cursor element (the dot) */
#custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: difference;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0; /* Hidden by default */
}

/* The follower element (the circle) */
#custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: difference;
    transition: opacity 0.3s ease, transform 0.3s ease, width 0.4s ease, height 0.4s ease;
    opacity: 0; /* Hidden by default */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#custom-cursor-text {
    font-size: 10px;
    color: #000;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10001;
}

.cursor-text-active #custom-cursor-text {
    opacity: 1;
    transform: scale(1);
}

.cursor-text-active #custom-cursor-follower {
    mix-blend-mode: normal; /* Disable difference mode for text to be readable */
    background-color: #fff;
}

/* Cursor Image */
#custom-cursor-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 30px;
    max-height: 30px;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.has-cursor-image #custom-cursor-image {
    opacity: 1;
}

.has-cursor-image #custom-cursor-text {
    display: none;
}

/*
 * Class added to the cursor elements when they are active
 * (i.e., when the mouse is over a .has-custom-cursor element)
 */
.cursor-is-active {
    opacity: 1;
}

/*
 * Class added when hovering over a link or interactive element.
 * This will scale up the follower, creating a nice feedback effect.
 */
.cursor-is-hovering-link #custom-cursor-follower {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(255, 255, 255, 0.2);
}

/*
 * Class added when hovering over a magnetic item.
 * You can add specific styles here if needed, e.g., a different color.
 */
.cursor-is-magnetic #custom-cursor-follower {
    transform: translate(-50%, -50%) scale(1.8);
}
