/* Only hide cursor on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    * {
        cursor: none !important;
    }
}

/* Only apply custom cursor styles on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    a, a img, a span, button, .btn-primary, [role="button"], input, textarea, select {
        cursor: pointer !important;
    }

    a:hover, button:hover, .btn-primary:hover, [role="button"]:hover {
        cursor: pointer !important;
    }
}

/* Only show custom cursor on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .custom-cursor {
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        opacity: 1;
        transition: opacity 0.2s ease;
    }
}

/* Only show custom cursor elements on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .custom-cursor.hidden {
        opacity: 0;
    }

    .cursor-dot {
        position: fixed;
        width: 10px;
        height: 10px;
        background: #000;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        opacity: 1;
        transition: opacity 0.2s ease;
        border: 1px solid #D9D9D9;
    }

    .cursor-dot.hidden {
        opacity: 0;
    }

    .cursor-outline {
        position: fixed;
        width: 80px;
        height: 80px;
        border: 1.66667px solid #DDD3C8;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transform: translate(-50%, -50%);
        transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s ease;
        mix-blend-mode: difference;
        opacity: 1;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .cursor-outline::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 70px;
        height: 70px;
        background: transparent;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
        filter: blur(2.5px);
        border: 2.5px solid #fff;
    }

    .cursor-outline.hidden {
        opacity: 0;
    }
}
