/* =========================================================
   FILE: css/cursor.css
   DESCRIPTION:
   Modern glowing cursor follower effect
========================================================= */

/* =========================================================
   HIDE DEFAULT CURSOR
========================================================= */

body {
    cursor: none;
}

/* =========================================================
   SMALL INNER DOT
========================================================= */

.cursor-dot {

    width: 8px;
    height: 8px;

    background: #ffffff;

    border-radius: 50%;

    position: fixed;
    top: 0;
    left: 0;

    transform: translate(-50%, -50%);

    pointer-events: none;

    z-index: 99999;

    transition:
        transform 0.12s ease,
        width 0.2s ease,
        height 0.2s ease,
        background 0.2s ease;
}

/* =========================================================
   OUTER CURSOR RING
========================================================= */

.cursor-outline {

    width: 42px;
    height: 42px;

    border: 1px solid rgba(0,194,255,0.7);

    border-radius: 50%;

    position: fixed;
    top: 0;
    left: 0;

    transform: translate(-50%, -50%);

    pointer-events: none;

    z-index: 99998;

    backdrop-filter: blur(4px);

    background: rgba(0,194,255,0.08);

    box-shadow:
        0 0 18px rgba(0,194,255,0.35),
        0 0 40px rgba(139,92,246,0.18);

    transition:
        width 0.25s ease,
        height 0.25s ease,
        transform 0.12s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

/* =========================================================
   HOVER ACTIVE STATE
========================================================= */

.cursor-hover .cursor-dot {

    width: 14px;
    height: 14px;

    background: #00c2ff;
}

.cursor-hover .cursor-outline {

    width: 70px;
    height: 70px;

    border-color: rgba(139,92,246,0.8);

    background: rgba(139,92,246,0.12);

    box-shadow:
        0 0 24px rgba(139,92,246,0.35),
        0 0 50px rgba(0,194,255,0.22);
}

/* =========================================================
   CLICK EFFECT
========================================================= */

.cursor-click .cursor-outline {

    transform:
        translate(-50%, -50%)
        scale(0.75);
}

.cursor-click .cursor-dot {

    transform:
        translate(-50%, -50%)
        scale(1.8);
}

/* =========================================================
   POINTER ELEMENTS
========================================================= */

a,
button,
.project-btn,
.nav-btn,
input,
textarea {

    cursor: none;
}

/* =========================================================
   MOBILE DISABLE
========================================================= */

@media (max-width: 768px) {

    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    a,
    button,
    input,
    textarea {
        cursor: pointer;
    }
}
