/* Add cyberpunk scan line effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
    animation: scanline 10s linear infinite;
}

/* Grid overlay effect */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: -1;
    animation: gridPulse 10s infinite linear;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes sheen {
    0% { transform: rotate(30deg) translateX(-300%); }
    100% { transform: rotate(30deg) translateX(300%); }
}

@keyframes scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

@keyframes glitch {
    0% { clip-path: inset(0 0 0 0); }
    2% { clip-path: inset(10% 0 80% 0); }
    4% { clip-path: inset(0 0 0 0); }
    8% { clip-path: inset(0 70% 0 30%); }
    9% { clip-path: inset(0 0 0 0); }
    92% { clip-path: inset(0 0 0 0); }
    93% { clip-path: inset(50% 0 0 70%); }
    94% { clip-path: inset(0 0 0 0); }
    98% { clip-path: inset(30% 10% 50% 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes cursor-blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes cliMove {
    0% { transform: translate(-20vw, 0) rotate(var(--rotation, -2deg)); }
    100% { transform: translate(120vw, 0) rotate(var(--rotation, 2deg)); }
}

@keyframes gridPulse {
    0% { opacity: 0.5; }
    50% { opacity: 0.3; }
    100% { opacity: 0.5; }
}

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

@keyframes scanLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes completeFlash {
    0% { background-color: rgba(20, 20, 20, 0.9); }
    50% { background-color: rgba(255, 51, 102, 0.2); }
    100% { background-color: rgba(20, 20, 20, 0.9); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes terminalType {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes scanEffect {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}

.animate__animated.animate__pulse {
    --animate-duration: 0.5s;
}

.avatar-icons {
    display: inline-flex;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.8s;
    white-space: nowrap;
    flex-shrink: 0;
}

.avatar-icons img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 3px;
    border: 1px solid rgba(255, 51, 102, 0.5);
    box-shadow: 0 0 3px rgba(255, 51, 102, 0.5);
    transform: scale(0);
    animation: popIn 0.3s ease forwards;
    will-change: transform;
    transform: perspective(1px) translateZ(0);
}

.avatar-icons img:nth-child(1) { animation-delay: 0.8s; }
.avatar-icons img:nth-child(2) { animation-delay: 1s; }
.avatar-icons img:nth-child(3) { animation-delay: 1.2s; }