@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --neon-color: #39ff14;
    --neon-dim: rgba(57, 255, 20, 0.2);
}

body {
    background-color: #050505;
}

/* Custom Scrollbar for Logs */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* CRT Scanline Effect */
.scanlines {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px;
    animation: scanlines 1s linear infinite; 
}

/* 3D Transform Utilities */
.perspective-1000 {
    perspective: 1000px;
}

.preserve-3d {
    transform-style: preserve-3d;
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

/* Text Glow */
.text-glow {
    text-shadow: 0 0 10px var(--neon-color);
}

/* Holographic Hover Effect */
.card-3d:hover {
    border-color: var(--neon-color);
    box-shadow: 0 0 20px var(--neon-dim), inset 0 0 10px var(--neon-dim);
}

/* Custom Keyframes */
@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.hologram-bg {
    background-image: 
        linear-gradient(var(--neon-dim) 1px, transparent 1px),
        linear-gradient(90deg, var(--neon-dim) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Loading Animation for Console */
.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background-color: var(--neon-color);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 4px;
}

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