/* Coding Themed Cursor */

/* Hide default cursor on desktop */
@media (pointer: fine) {

    body,
    a,
    button,
    input,
    textarea,
    select,
    .btn,
    .card,
    .project-card,
    .blog-card,
    [role="button"] {
        /* cursor: none !important; */
    }
}

/* Base Cursor Container */
#coding-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 2px solid #1dbf73;
    /* Primary Green */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 15, 30, 0.8);
    /* Dark background */
    backdrop-filter: blur(2px);
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-color 0.3s ease,
        background-color 0.3s ease;
    box-shadow: 0 0 10px rgba(29, 191, 115, 0.3);
}

/* The Code Symbol Content */
#coding-cursor::after {
    content: '</>';
    font-family: 'JetBrains Mono', monospace;
    /* Monospace font for code look */
    font-size: 10px;
    color: #1dbf73;
    font-weight: bold;
    opacity: 1;
    transition: opacity 0.2s ease, font-size 0.3s ease;
}

/* Hover State - Scale Up */
body.is-hovering #coding-cursor {
    width: 50px;
    height: 50px;
    border-color: #00d9ff;
    /* Cyan on hover */
    background: rgba(10, 15, 30, 0.95);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

body.is-hovering #coding-cursor::after {
    font-size: 14px;
    color: #00d9ff;
}

/* Click State - Pulse */
body.is-clicking #coding-cursor {
    transform: translate(-50%, -50%) scale(0.9);
}

/* Mobile Fallback - Hide Custom, Show Default */
@media (hover: none) and (pointer: coarse) {
    #coding-cursor {
        display: none !important;
    }

    body,
    a,
    button,
    input,
    textarea,
    select,
    .btn,
    .card,
    .project-card,
    .blog-card,
    [role="button"] {
        cursor: auto !important;
    }
}