/* Custom Cursor Styles */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-radius 0.3s;
    mix-blend-mode: difference;

    /* Text Centering */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: transparent;
}

.custom-cursor.click-mode {
    width: auto;
    height: auto;
    padding: 5px 10px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    mix-blend-mode: difference;
}

.custom-cursor.click-mode::before {
    content: attr(data-text);
    color: #fff;
    font-family: 'YeolrinMyeongjo-Medium', serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Click Ripple Effect */
.click-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    animation: rippleEffect 0.6s linear;
}



@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Dynamic Cursor Images */
.custom-cursor.cursor-apple {
    width: 100px;
    height: 100px;
    background-image: url('apple.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    border-radius: 0;
    mix-blend-mode: normal;
    /* Show image colors */
    background-color: transparent;
}

.custom-cursor.cursor-heart {
    width: 100px;
    height: 100px;
    background-image: url('heart.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    border-radius: 0;
    mix-blend-mode: normal;
    background-color: transparent;
}

/* Hide text/before content when showing image */
.custom-cursor.cursor-apple::before,
.custom-cursor.cursor-heart::before {
    display: none;
}