/* General Setup */
body {
    background-color: #050505;
    color: #e5e5e5;
    overflow-x: hidden;
    transition: background-color 0.3s;
}

/* Noise Texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: #333;
}
::-webkit-scrollbar-thumb:hover {
    background: #a0b0c0;
}

/* 🔥 FIX: Allow all images to stay colored */
img {
    filter: none !important;
    opacity: 1 !important;
    transition: 0.3s ease;
}

/* Core Card Style with Interactive Glow */
.neo-brutal-card {
    background: #111;
    border: 1px solid #333;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    z-index: 10;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* Inner Radial Glow (follows mouse on hover) */
.neo-brutal-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: radial-gradient(300px at var(--mouse-x) var(--mouse-y), rgba(160, 176, 192, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
    pointer-events: none;
}

.neo-brutal-card:hover::after {
    opacity: 1;
}

/* Hover Feedback */
.neo-brutal-card:hover {
    border-color: #a0b0c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(160, 176, 192, 0.2);
}

/* Top Border Activation */
.neo-brutal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #a0b0c0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 2;
}

.neo-brutal-card:hover::before {
    transform: scaleX(1);
}

/* Glitch Animation */
.glitch-text-hover:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: #a0b0c0;
}

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

/* Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Background Grid */
.grid-bg {
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, transparent 5%, black 40%);
}

/* CRT Flicker Effect for Status */
@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.5; }
    60% { opacity: 0.8; }
}
.flicker {
    animation: flicker 4s linear infinite;
}
