/* Custom Hacker Cursor Animation */
.hacker-cursor {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.cursor-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #00ff4c;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00ff4c, 0 0 20px #00ff4c;
}

.cursor-circle {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 255, 76, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    opacity: 0.5;
}

/* Targeting Reticle */
.targeting-reticle {
    position: absolute;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
    transition: opacity 0.3s, transform 0.5s;
}

.reticle-line {
    position: absolute;
    background-color: rgba(255, 0, 76, 0.7);
    box-shadow: 0 0 5px rgba(255, 0, 76, 0.7);
}

.reticle-line.horizontal {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.reticle-line.vertical {
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
}

.reticle-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-style: solid;
    border-width: 2px;
    border-color: #ff004c;
    box-shadow: 0 0 5px rgba(255, 0, 76, 0.7);
}

.reticle-corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.reticle-corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.reticle-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.reticle-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Matrix Background */
.matrix-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
}

/* When hovering interactive elements */
.hacker-hover .cursor-circle {
    width: 60px;
    height: 60px;
    border-color: #00ff4c;
    opacity: 0.8;
}

.hacker-hover .targeting-reticle {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Hide default cursor when hacker cursor is active */
body.hacker-cursor-active {
    cursor: none !important;
}

/* For mobile - hide the custom cursor */
@media (max-width: 768px) {
    .hacker-cursor {
        display: none;
    }
}

/* Keyframe Animations */
@keyframes scanTarget {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 76, 0);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 0, 76, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 76, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

.cursor-dot {
    animation: pulse 2s infinite;
}
