/*
 * Architectural Lens Cursor Component (_cursor.css)
 * -------------------------------------------------
 * Design logic: A precision dot with a glowing engineering ring.
 * Features: Breathing idle, expansion on hover, ping on click.
 */

#custom-cursor {
    position: fixed;
    top: -100px;
    left: -100px;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    mix-blend-mode: difference;
    /* Removed transition for 1:1 feel */
}

/* 1. Precision Center Dot */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    z-index: 2;
}

/* 2. Single Minimal Ring - UPDATED: Thicker & Brighter with Glow */
.cursor-ring {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    transition: width 0.15s ease-out, height 0.15s ease-out, border-color 0.15s ease-out, border-width 0.15s ease-out;
}

/* 3. Hovering State: Simple Expansion */
#custom-cursor.hovering .cursor-ring {
    width: 38px;
    height: 38px;
    border-color: #fff;
    border-width: 2px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

#custom-cursor.hovering .cursor-dot {
    transform: scale(1.2);
}

/* 4. Click Ping Effect (Simplified) */
#custom-cursor.clicking .cursor-ring {
    animation: cursorPingV3 0.3s ease-out forwards;
}

@keyframes cursorPingV3 {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* 5. Valentine's Day Heart Particles */
.heart-particle {
    position: fixed;
    pointer-events: none;
    z-index: 100002;
    font-size: 20px;
    user-select: none;
    animation: heartFly 0.8s ease-out forwards;
}

@keyframes heartFly {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.8) rotate(var(--rot));
        opacity: 0;
    }
}

/* Light Mode tweak */
html.light-mode #custom-cursor {
    opacity: 0.85;
}

/* Optimized for Touch */
@media (max-width: 768px) {
    #custom-cursor {
        display: none !important;
    }
}