/* Smooth Mouse Ambient Glow Halo Aura */
#mouse-glow-halo {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.14) 0%, rgba(139, 92, 246, 0.08) 40%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 99990;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 0.3s ease;
    opacity: 0.85;
    mix-blend-mode: screen;
    filter: blur(8px);
}

html.theme-light #mouse-glow-halo, html[data-theme="light"] #mouse-glow-halo {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(2, 132, 199, 0.06) 45%, rgba(0, 0, 0, 0) 70%);
    mix-blend-mode: multiply;
    opacity: 0.65;
}

    /* Inner solid dot */
    .custom-cursor-dot {
        width: 6px;
        height: 6px;
        background-color: #ff4d4d; /* RMTG primary red */
        border-radius: 50%;
        position: fixed;
        top: -3px;
        left: -3px;
        pointer-events: none;
        z-index: 100000;
        transition: transform 0.05s linear, background-color 0.3s ease, width 0.3s ease, height 0.3s ease;
    }

    /* Outer tracking ring */
    .custom-cursor-ring {
        width: 32px;
        height: 32px;
        border: 1.5px solid rgba(255, 77, 77, 0.4);
        border-radius: 50%;
        position: fixed;
        top: -16px;
        left: -16px;
        pointer-events: none;
        z-index: 99999;
        transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease-out;
    }

    /* Hovering states */
    .custom-cursor-dot.hovering {
        background-color: #00f0ff; /* Cyber neon blue hover */
        transform: scale(1.5);
    }

    .custom-cursor-ring.hovering {
        width: 48px;
        height: 48px;
        top: -24px;
        left: -24px;
        border-color: rgba(0, 240, 255, 0.8);
        background-color: rgba(0, 240, 255, 0.06);
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
    }

/* Disabled on touch devices */
@media (max-width: 768px) {
    .custom-cursor-dot, .custom-cursor-ring {
        display: none !important;
    }
}

/* ==========================================================================
   Cyber Card Spotlight Effects
   ========================================================================== */
.funnel-card, .service-card, .home-card, .card, .stat-card {
    position: relative;
    overflow: hidden;
}

.funnel-card::before, .service-card::before, .home-card::before, .card::before, .stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        320px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(0, 240, 255, 0.08),
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.funnel-card:hover::before, .service-card:hover::before, .home-card:hover::before, .card:hover::before, .stat-card:hover::before {
    opacity: 1;
}

/* Red themed cards spotlight overrides */
.funnel-techcare::before {
    background: radial-gradient(
        320px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(255, 59, 48, 0.08),
        transparent 80%
    ) !important;
}

/* ==========================================================================
   Glitch Animation for Titles
   ========================================================================== */
.cyber-glitch-hover {
    transition: text-shadow 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

.cyber-glitch-hover:hover {
    text-shadow: -1.5px 0 rgba(255, 59, 48, 0.7), 1.5px 0 rgba(0, 240, 255, 0.7), 0 0 8px rgba(0, 240, 255, 0.25);
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.2));
    transform: translateY(-1px);
}

/* ==========================================================================
   Audio Visualizer Animation
   ========================================================================== */
.nav-audio-btn:hover {
    color: #fff !important;
}
.vis-bar {
    transform-origin: bottom;
    transition: height 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
