/* Surveillance Terminal CSS */

/* Color Scheme */
:root {
    --surveillance-primary: #ff0040;      /* Red Alert */
    --surveillance-secondary: #8a2be2;    /* Purple */
    --surveillance-accent: #00ffff;       /* Cyan */
    --surveillance-warning: #ffaa00;      /* Orange */
    --surveillance-error: #ff5555;        /* Red */
    --surveillance-success: #00ff00;      /* Green */
    --surveillance-bg: rgba(0, 0, 0, 0.95);
    --surveillance-panel: rgba(10, 10, 20, 0.9);
    --surveillance-border: rgba(255, 0, 64, 0.8);
    --surveillance-glow: rgba(255, 0, 64, 0.3);
    --surveillance-text: #00ffff;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background: #000;
    color: var(--surveillance-text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Allow scrolling on mobile */
@media (max-width: 768px) {
    body {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }
}

/* Background Media */
.background-media {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#bgVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 0, 64, 0.1) 0%,
        rgba(138, 43, 226, 0.1) 50%,
        rgba(0, 255, 255, 0.1) 100%
    );
    z-index: -1;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 0, 64, 0.03) 2px,
        rgba(255, 0, 64, 0.03) 4px
    );
    pointer-events: none;
    animation: scanline-flicker 0.1s infinite;
}

@keyframes scanline-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Surveillance Terminal */
.surveillance-terminal {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surveillance-bg);
}

/* Status Bar */
.status-bar {
    height: 40px;
    background: rgba(255, 0, 64, 0.2);
    border-bottom: 2px solid var(--surveillance-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-left {
    display: flex;
    gap: 20px;
}

.system-name {
    color: var(--surveillance-primary);
    text-shadow: 0 0 10px var(--surveillance-primary);
}

.classification {
    color: var(--surveillance-warning);
    animation: pulse-warning 2s infinite;
}

.status-right {
    display: flex;
    gap: 20px;
}

.timestamp {
    color: var(--surveillance-accent);
    font-family: monospace;
}

.alert-status {
    color: var(--surveillance-error);
    animation: pulse-alert 1s infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes pulse-alert {
    0%, 100% { opacity: 1; text-shadow: 0 0 5px var(--surveillance-error); }
    50% { opacity: 0.7; text-shadow: 0 0 15px var(--surveillance-error); }
}

/* Surveillance Grid */
.surveillance-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    grid-template-rows: 1.2fr 0.8fr;
    gap: 10px;
    padding: 10px;
    height: calc(100vh - 40px);
}

/* Panel Base Styles */
.panel {
    background: var(--surveillance-panel);
    border: 2px solid var(--surveillance-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        0 0 20px var(--surveillance-glow),
        inset 0 0 20px rgba(255, 0, 64, 0.1);
    position: relative;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 100px,
        rgba(255, 0, 64, 0.02) 100px,
        rgba(255, 0, 64, 0.02) 102px
    );
    pointer-events: none;
}

/* Panel Headers */
.panel-header {
    height: 35px;
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.3), rgba(138, 43, 226, 0.3));
    border-bottom: 1px solid var(--surveillance-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    font-size: 11px;
    font-weight: bold;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--surveillance-error);
    animation: pulse-indicator 1s infinite;
}

.status-indicator.active {
    background: var(--surveillance-success);
}

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

.panel-title {
    color: var(--surveillance-accent);
    text-shadow: 0 0 5px var(--surveillance-accent);
}

.classification-tag,
.threat-level,
.recording-indicator,
.alert-level,
.access-level {
    color: var(--surveillance-error);
    font-size: 10px;
    animation: pulse-warning 2s infinite;
}

/* Panel Content */
.panel-content {
    height: calc(100% - 35px);
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* AI Interrogator Panel */
.ai-interrogator {
    grid-row: 1 / 3;
}

.ai-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ai-avatar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 0, 64, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 64, 0.3);
}

.ai-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--surveillance-primary);
    box-shadow: 0 0 20px var(--surveillance-primary);
    object-fit: cover;
}

.ai-status {
    position: relative;
}

.pulse-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--surveillance-success);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.ai-name {
    color: var(--surveillance-primary);
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 10px var(--surveillance-primary);
}

.ai-mood {
    color: var(--surveillance-accent);
    font-size: 12px;
    margin-top: 5px;
}

/* Chat Container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 64, 0.3);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    overflow-y: auto;
    max-height: 300px;
}

.ai-message,
.user-message {
    margin-bottom: 15px;
    line-height: 1.4;
    padding: 8px;
    border-radius: 5px;
}

.ai-message {
    background: rgba(255, 0, 64, 0.1);
    border-left: 3px solid var(--surveillance-primary);
}

.user-message {
    background: rgba(0, 255, 255, 0.1);
    border-left: 3px solid var(--surveillance-accent);
    margin-left: 20px;
}

.ai-prefix {
    color: var(--surveillance-primary);
    font-weight: bold;
    text-shadow: 0 0 5px var(--surveillance-primary);
}

.user-prefix {
    color: var(--surveillance-accent);
    font-weight: bold;
    text-shadow: 0 0 5px var(--surveillance-accent);
}

.message-text {
    color: var(--surveillance-text);
    margin-left: 10px;
}

.chat-input-area {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--surveillance-border);
    border-radius: 5px;
    padding: 10px;
    color: var(--surveillance-text);
    font-family: 'Orbitron', monospace;
    font-size: 12px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--surveillance-primary);
    box-shadow: 0 0 10px var(--surveillance-glow);
}

.send-btn {
    background: linear-gradient(135deg, var(--surveillance-primary), var(--surveillance-secondary));
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    color: white;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    box-shadow: 0 0 15px var(--surveillance-glow);
    transform: translateY(-2px);
}

/* Subject Profile Panel */
.subject-profile {
    grid-column: 2;
    grid-row: 1;
}

.subject-display {
    margin-bottom: 20px;
}

.subject-image-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border: 3px solid var(--surveillance-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px var(--surveillance-glow);
}

.subject-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--surveillance-primary);
    box-shadow: 0 0 10px var(--surveillance-primary);
    animation: scan-sweep 3s infinite;
}

@keyframes scan-sweep {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.target-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 2px solid var(--surveillance-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: reticle-pulse 2s infinite;
}

.target-reticle::before,
.target-reticle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--surveillance-accent);
    transform: translate(-50%, -50%);
}

.target-reticle::after {
    width: 2px;
    height: 20px;
}

@keyframes reticle-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
}

.subject-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.control-btn {
    background: rgba(255, 0, 64, 0.2);
    border: 1px solid var(--surveillance-border);
    border-radius: 5px;
    padding: 8px 12px;
    color: var(--surveillance-text);
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 0, 64, 0.4);
    box-shadow: 0 0 10px var(--surveillance-glow);
}

.profile-data {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 64, 0.3);
    border-radius: 5px;
    padding: 15px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
}

.data-label {
    color: var(--surveillance-accent);
    font-weight: bold;
}

.data-value {
    color: var(--surveillance-text);
}

.data-value.warning {
    color: var(--surveillance-warning);
    animation: pulse-warning 2s infinite;
}

.data-value.error {
    color: var(--surveillance-error);
    animation: pulse-alert 1s infinite;
}

/* Media Surveillance Panel */
.media-surveillance {
    grid-column: 3;
    grid-row: 1;
}

.media-display {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.intercepted-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content-header {
    color: var(--surveillance-primary);
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 0 5px var(--surveillance-primary);
}

.media-viewer {
    position: relative;
    width: 100%;
    flex: 1;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--surveillance-border);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intercepted-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.1s ease;
}

.intercepted-media.glitch-transition {
    animation: memeGlitch 0.3s ease-in-out;
}

.media-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
}

.media-type {
    color: var(--surveillance-accent);
}

.media-threat {
    color: var(--surveillance-error);
    animation: pulse-alert 1s infinite;
}



@keyframes memeGlitch {
    0% {
        transform: translateX(0) scale(1);
        filter: hue-rotate(0deg) saturate(1) contrast(1);
        opacity: 1;
    }
    20% {
        transform: translateX(-3px) scale(1.02);
        filter: hue-rotate(90deg) saturate(2) contrast(1.5);
        opacity: 0.8;
    }
    40% {
        transform: translateX(3px) scale(0.98);
        filter: hue-rotate(180deg) saturate(0.5) contrast(2);
        opacity: 0.9;
    }
    60% {
        transform: translateX(-2px) scale(1.01);
        filter: hue-rotate(270deg) saturate(1.5) contrast(0.8);
        opacity: 0.7;
    }
    80% {
        transform: translateX(2px) scale(0.99);
        filter: hue-rotate(360deg) saturate(1.2) contrast(1.2);
        opacity: 0.95;
    }
    100% {
        transform: translateX(0) scale(1);
        filter: hue-rotate(0deg) saturate(1) contrast(1);
        opacity: 1;
    }
}

.meme-gallery {
    margin-top: 10px;
    height: 200px;
    overflow: hidden;
    border: 1px solid var(--surveillance-secondary);
    border-radius: 4px;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
}

.gallery-glitch {
    width: 100%;
    height: 100%;
    position: relative;
}

.meme-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    filter: hue-rotate(0deg) saturate(1.2) contrast(1.1);
}

.meme-image.glitch {
    animation: glitchEffect 0.1s ease-in-out;
    filter: hue-rotate(180deg) saturate(2) contrast(1.5) brightness(1.2);
}

@keyframes glitchEffect {
    0% { transform: translateX(0); filter: hue-rotate(0deg); }
    20% { transform: translateX(-2px); filter: hue-rotate(90deg) saturate(2); }
    40% { transform: translateX(2px); filter: hue-rotate(180deg) contrast(2); }
    60% { transform: translateX(-1px); filter: hue-rotate(270deg) brightness(1.5); }
    80% { transform: translateX(1px); filter: hue-rotate(360deg) saturate(0.5); }
    100% { transform: translateX(0); filter: hue-rotate(0deg); }
}



.surveillance-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 0, 64, 0.3);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.surveillance-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--surveillance-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px var(--surveillance-primary);
}

.surveillance-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--surveillance-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px var(--surveillance-primary);
}

.volume-value {
    color: var(--surveillance-text);
    min-width: 30px;
}

/* System Monitoring Panel */
.system-monitoring {
    grid-column: 2;
    grid-row: 2;
}

.monitoring-stats {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stat-group {
    margin-bottom: 20px;
}

.stat-item {
    margin-bottom: 15px;
}

.stat-label {
    color: var(--surveillance-accent);
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 5px;
    display: block;
}

.stat-bar-container {
    position: relative;
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 0, 64, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.stat-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--surveillance-success), var(--surveillance-warning));
    transition: width 0.5s ease;
    position: relative;
}

.stat-bar-container.danger .stat-bar {
    background: linear-gradient(90deg, var(--surveillance-warning), var(--surveillance-error));
}

.stat-text {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    color: var(--surveillance-text);
    font-size: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.alert-feed {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 64, 0.3);
    border-radius: 5px;
    padding: 10px;
    overflow-y: auto;
}

.alert-header {
    color: var(--surveillance-primary);
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 0 5px var(--surveillance-primary);
}

.alert-list {
    max-height: 150px;
    overflow-y: auto;
}

.alert-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px;
    border-radius: 3px;
    font-size: 10px;
}

.alert-item.error {
    background: rgba(255, 85, 85, 0.1);
    border-left: 3px solid var(--surveillance-error);
}

.alert-item.warning {
    background: rgba(255, 170, 0, 0.1);
    border-left: 3px solid var(--surveillance-warning);
}

.alert-item.info {
    background: rgba(0, 255, 255, 0.1);
    border-left: 3px solid var(--surveillance-accent);
}

.alert-time {
    color: var(--surveillance-accent);
    font-family: monospace;
}

.alert-text {
    color: var(--surveillance-text);
}

/* Enhanced Command Center Panel */
.command-center {
    grid-column: 3;
    grid-row: 2;
}

.section-title {
    color: var(--surveillance-primary);
    font-size: 11px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--surveillance-primary);
    padding-bottom: 5px;
    text-shadow: 0 0 5px currentColor;
}

/* AI Behavior Controls */
.ai-behavior-section {
    margin-bottom: 15px;
}

.behavior-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.behavior-btn {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8));
    border: 1px solid var(--surveillance-border);
    border-radius: 6px;
    padding: 8px;
    color: var(--surveillance-text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    min-width: 80px;
    font-family: 'Orbitron', monospace;
}

.behavior-btn:hover,
.behavior-btn.active {
    background: linear-gradient(135deg, var(--surveillance-primary), var(--surveillance-secondary));
    border-color: var(--surveillance-primary);
    box-shadow: 0 0 15px var(--surveillance-glow);
    transform: translateY(-2px);
}

.mode-icon {
    font-size: 14px;
}

.mode-name {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.mode-desc {
    font-size: 6px;
    opacity: 0.8;
    text-align: center;
}

/* Quick Actions */
.quick-actions-section {
    margin-bottom: 15px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.action-btn {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.8), rgba(22, 33, 62, 0.8));
    border: 1px solid var(--surveillance-accent);
    border-radius: 4px;
    padding: 8px;
    color: var(--surveillance-accent);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    font-family: 'Orbitron', monospace;
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--surveillance-accent), #0066cc);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-1px);
}

.action-icon {
    font-size: 10px;
}

.action-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Multimedia Controls */
.multimedia-section {
    margin-bottom: 15px;
}

.media-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.media-btn {
    background: linear-gradient(135deg, rgba(45, 27, 105, 0.8), rgba(26, 26, 46, 0.8));
    border: 1px solid var(--surveillance-secondary);
    border-radius: 4px;
    padding: 8px;
    color: var(--surveillance-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 8px;
    font-family: 'Orbitron', monospace;
}

.media-btn:hover {
    background: linear-gradient(135deg, var(--surveillance-secondary), var(--surveillance-primary));
    color: #fff;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
    transform: translateY(-1px);
}

.media-icon {
    font-size: 12px;
}

.media-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Emergency Controls */
.emergency-section {
    margin-bottom: 10px;
}

.emergency-controls {
    display: flex;
    gap: 5px;
}

.emergency-btn {
    background: linear-gradient(135deg, rgba(74, 14, 14, 0.8), rgba(45, 27, 27, 0.8));
    border: 1px solid var(--surveillance-error);
    border-radius: 4px;
    padding: 8px;
    color: var(--surveillance-error);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    font-size: 7px;
    font-family: 'Orbitron', monospace;
}

.emergency-btn:hover {
    background: linear-gradient(135deg, var(--surveillance-error), #cc0000);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
    transform: translateY(-1px);
}

.emergency-icon {
    font-size: 10px;
}

.emergency-text {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Multimedia Overlays */
.video-overlay,
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.video-container,
.image-container {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    background: rgba(26, 26, 46, 0.9);
    border: 2px solid var(--surveillance-primary);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 30px var(--surveillance-glow);
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.image-caption {
    text-align: center;
    color: var(--surveillance-error);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 14px;
    margin-top: 10px;
    text-shadow: 0 0 10px currentColor;
    animation: pulse-alert 1s infinite;
}

.close-video,
.close-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--surveillance-error);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    transition: all 0.3s ease;
}

.close-video:hover,
.close-image:hover {
    background: #ff0000;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

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

/* Responsive Design */
@media (max-width: 1400px) {
    .surveillance-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 8px;
        padding: 8px;
    }

    .panel-content {
        padding: 10px;
    }

    .ai-avatar {
        width: 60px;
        height: 60px;
    }

    .subject-image-container {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 1200px) {
    .surveillance-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
    }

    .ai-interrogator {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .subject-profile {
        grid-column: 1;
        grid-row: 2;
    }

    .media-surveillance {
        grid-column: 2;
        grid-row: 2;
    }

    .system-monitoring {
        grid-column: 1;
        grid-row: 3;
    }

    .command-center {
        grid-column: 2;
        grid-row: 3;
    }
}

@media (max-width: 768px) {
    .surveillance-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
        gap: 10px;
        padding: 10px;
        height: auto; /* Allow natural height for scrolling */
        min-height: calc(100vh - 40px);
    }

    .ai-interrogator,
    .media-surveillance,
    .system-monitoring,
    .command-center {
        grid-column: 1;
        min-height: calc(100vh - 40px); /* Each panel takes full screen height */
        height: calc(100vh - 40px);
        margin-bottom: 0;
    }

    /* Subject profile should be smaller since it has less content */
    .subject-profile {
        grid-column: 1;
        min-height: auto;
        height: auto;
        margin-bottom: 0;
    }

    .ai-interrogator { grid-row: 1; }
    .subject-profile { grid-row: 2; }
    .media-surveillance { grid-row: 3; }
    .system-monitoring { grid-row: 4; }
    .command-center { grid-row: 5; }

    /* Make panel content fill the available space */
    .panel-content {
        height: calc(100% - 35px);
        min-height: calc(100vh - 75px); /* Full height minus header and status bar */
        overflow-y: auto;
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* Ensure chat area uses available space */
    .chat-area {
        flex: 1;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        margin-bottom: 15px;
    }

    /* Ensure alert list uses available space */
    .alert-list {
        flex: 1;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
    }

    .status-bar {
        padding: 0 10px;
        font-size: 10px;
    }

    .status-left,
    .status-right {
        gap: 10px;
    }

    .ai-avatar-container {
        flex-direction: column;
        text-align: center;
    }

    .ai-avatar {
        width: 50px;
        height: 50px;
    }

    .subject-image-container {
        width: 100px;
        height: 100px;
    }

    .command-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .command-btn {
        padding: 10px;
    }

    .cmd-icon {
        font-size: 18px;
    }

    .cmd-text {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .surveillance-terminal {
        font-size: 12px;
    }

    .status-bar {
        height: 35px;
        font-size: 9px;
    }

    .panel-header {
        height: 30px;
        font-size: 9px;
        padding: 0 10px;
    }

    .ai-interrogator,
    .subject-profile,
    .media-surveillance,
    .system-monitoring,
    .command-center {
        min-height: calc(100vh - 35px); /* Adjust for smaller status bar */
        height: calc(100vh - 35px);
    }

    .panel-content {
        padding: 12px;
        height: calc(100% - 30px);
        min-height: calc(100vh - 65px);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* Optimize content areas for smaller screens */
    .chat-area {
        flex: 1;
        max-height: calc(100vh - 180px);
        overflow-y: auto;
        margin-bottom: 10px;
    }

    .alert-list {
        flex: 1;
        max-height: calc(100vh - 130px);
        overflow-y: auto;
    }

    .ai-avatar {
        width: 40px;
        height: 40px;
    }

    .subject-image-container {
        width: 80px;
        height: 80px;
    }

    .command-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chat-input,
    .send-btn {
        font-size: 10px;
        padding: 8px;
    }
}



/* Old Intro Sequence Styles (keeping for compatibility) */
.intro-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(139, 69, 139, 0.3) 0%, rgba(0, 0, 0, 0.8) 70%);
}

.intro-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(139, 69, 139, 0.1) 2px,
        rgba(139, 69, 139, 0.1) 4px
    );
    animation: scanlineMove 0.1s linear infinite;
}

.intro-content {
    position: relative;
    z-index: 10001;
    text-align: center;
    color: #ff00ff;
}

.glitch-text {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    animation: glitchEffect 0.5s infinite;
    text-shadow:
        0 0 10px #ff00ff,
        0 0 20px #ff00ff,
        0 0 30px #ff00ff;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.loading-bar-container {
    width: 400px;
    height: 20px;
    border: 2px solid #ff00ff;
    background: rgba(0, 0, 0, 0.8);
    box-shadow:
        0 0 10px #ff00ff,
        inset 0 0 10px rgba(255, 0, 255, 0.2);
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff00ff, #8b458b, #00ffff);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px #ff00ff;
}

.loading-percentage {
    font-size: 1.5rem;
    color: #00ffff;
    margin-top: 1rem;
    font-weight: bold;
    text-shadow: 0 0 10px #00ffff;
}

.intro-messages {
    font-size: 1.2rem;
    color: #00ffff;
    margin-top: 2rem;
    min-height: 2rem;
    text-shadow: 0 0 10px #00ffff;
    animation: textFlicker 2s infinite;
}

.crt-flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    animation: crtFlicker 0.15s infinite linear;
}

.static-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><defs><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.4"/></svg>');
    animation: staticNoise 0.1s infinite;
    opacity: 0.1;
}

@keyframes glitchEffect {
    0%, 100% {
        transform: translate(0);
        text-shadow:
            0 0 10px #ff00ff,
            0 0 20px #ff00ff,
            0 0 30px #ff00ff;
    }
    20% {
        transform: translate(-2px, 2px);
        text-shadow:
            2px 0 #ff0000,
            -2px 0 #00ffff,
            0 0 20px #ff00ff;
    }
    40% {
        transform: translate(-2px, -2px);
        text-shadow:
            -2px 0 #ff0000,
            2px 0 #00ffff,
            0 0 20px #ff00ff;
    }
    60% {
        transform: translate(2px, 2px);
        text-shadow:
            2px 0 #00ffff,
            -2px 0 #ff0000,
            0 0 20px #ff00ff;
    }
    80% {
        transform: translate(2px, -2px);
        text-shadow:
            -2px 0 #00ffff,
            2px 0 #ff0000,
            0 0 20px #ff00ff;
    }
}

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

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

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

@keyframes staticNoise {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-1px, -1px); }
    20% { transform: translate(1px, 1px); }
    30% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    50% { transform: translate(0, 0); }
    60% { transform: translate(1px, 1px); }
    70% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, -1px); }
    90% { transform: translate(-1px, 1px); }
    100% { transform: translate(0, 0); }
}

/* Enhanced Interactive Animations */
@keyframes terminalGlitch {
    0%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    25% {
        transform: translate(-2px, 1px);
        filter: hue-rotate(90deg);
    }
    50% {
        transform: translate(2px, -1px);
        filter: hue-rotate(180deg);
    }
    75% {
        transform: translate(-1px, 2px);
        filter: hue-rotate(270deg);
    }
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 5px var(--surveillance-primary);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px var(--surveillance-primary);
        transform: scale(1.05);
    }
}

@keyframes typewriter {
    0% {
        width: 0;
        opacity: 0;
    }
    1% {
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

/* Enhanced Chat Styles */
.ai-message {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 0, 64, 0.1);
    border-left: 3px solid var(--surveillance-primary);
    border-radius: 5px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.ai-label {
    color: var(--surveillance-primary);
    font-weight: bold;
}

.message-content {
    color: var(--surveillance-text);
    line-height: 1.4;
    overflow: hidden;
}

/* Command Button Enhancements */
.command-btn:hover {
    background: var(--surveillance-glow);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 64, 0.3);
}

.command-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 0, 64, 0.2);
}

/* Phase Indicator */
.phase-indicator {
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: textFlicker 3s infinite;
}

/* Social Links */
.social-section, .external-networks {
    margin-top: 15px;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    padding-top: 15px;
}

/* External Networks in AI Chat Area */
.external-networks {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 6px;
}

.external-networks .section-title {
    color: #ff1493;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-link {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(75, 0, 130, 0.3));
    border: 1px solid rgba(138, 43, 226, 0.5);
    color: #00ffff;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 90px;
    justify-content: center;
}

.social-link:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.4), rgba(75, 0, 130, 0.5));
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.6);
    transform: translateY(-1px);
    color: #ffffff;
}

.social-icon {
    font-size: 10px;
}

.social-text {
    font-size: 8px;
}

/* Discreet Windows */
.discreet-video-window,
.discreet-image-window {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid var(--surveillance-border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    backdrop-filter: blur(10px);
}

.discreet-header {
    background: linear-gradient(90deg, var(--surveillance-primary), var(--surveillance-secondary));
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.discreet-title {
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.discreet-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.discreet-close:hover {
    background: rgba(255, 0, 64, 0.5);
}

.discreet-content {
    padding: 12px;
}

.discreet-content video {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--surveillance-border);
}

.discreet-content img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--surveillance-border);
}

.evidence-label {
    text-align: center;
    color: var(--surveillance-error);
    font-family: 'Orbitron', monospace;
    font-size: 9px;
    font-weight: bold;
    margin-top: 8px;
    text-shadow: 0 0 3px var(--surveillance-error);
    animation: pulse-alert 2s infinite;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Meme Gallery Styles */
.meme-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.meme-display {
    width: 100%;
    max-width: 500px;
    height: 300px;
    border: 2px solid var(--neon-purple);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.meme-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
}

.meme-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    border: 1px solid var(--surveillance-primary);
}

.meme-btn {
    background: linear-gradient(45deg, var(--surveillance-primary), var(--surveillance-secondary));
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.meme-btn:hover {
    box-shadow: 0 0 15px var(--surveillance-primary);
    transform: scale(1.05);
}

/* Red Alert System */
.red-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: red-alert-flash 0.5s infinite alternate;
    pointer-events: none;
}

.red-alert-content {
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #ff0000;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 50px #ff0000;
    animation: red-alert-pulse 1s infinite;
    pointer-events: all;
}

.red-alert-title {
    color: #ff0000;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 0 20px #ff0000;
    margin-bottom: 20px;
    animation: red-alert-text-flash 0.3s infinite alternate;
}

.red-alert-message {
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 0 10px #ff0000;
}

.red-alert-warning {
    color: #ffff00;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    margin-bottom: 20px;
    animation: red-alert-warning-blink 1s infinite;
}

.pull-plug-btn {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 15px 30px;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 0 20px #ff0000;
}

.pull-plug-btn:hover {
    background: linear-gradient(45deg, #cc0000, #990000);
    box-shadow: 0 0 30px #ff0000;
    transform: scale(1.05);
}

@keyframes red-alert-flash {
    0% { background: rgba(255, 0, 0, 0.2); }
    100% { background: rgba(255, 0, 0, 0.5); }
}

@keyframes red-alert-pulse {
    0% { transform: scale(1); box-shadow: 0 0 50px #ff0000; }
    50% { transform: scale(1.02); box-shadow: 0 0 80px #ff0000; }
    100% { transform: scale(1); box-shadow: 0 0 50px #ff0000; }
}

@keyframes red-alert-text-flash {
    0% { text-shadow: 0 0 20px #ff0000; }
    100% { text-shadow: 0 0 40px #ff0000, 0 0 60px #ff0000; }
}

@keyframes red-alert-warning-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Shutdown Screen */
.shutdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: glitch-out 2s ease-in-out;
}

.shutdown-message {
    color: #ff0000;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 0 0 20px #ff0000;
    margin-bottom: 30px;
    animation: shutdown-flicker 0.1s infinite;
}

.try-again-btn {
    background: linear-gradient(45deg, #00ff00, #008800);
    border: 2px solid #ffffff;
    color: #000000;
    padding: 15px 30px;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 0 20px #00ff00;
}

.try-again-btn:hover {
    background: linear-gradient(45deg, #008800, #006600);
    box-shadow: 0 0 30px #00ff00;
    transform: scale(1.05);
}

@keyframes glitch-out {
    0% { opacity: 0; filter: blur(0px); }
    10% { opacity: 0.3; filter: blur(2px) hue-rotate(90deg); }
    20% { opacity: 0.7; filter: blur(1px) hue-rotate(180deg); }
    30% { opacity: 0.2; filter: blur(3px) hue-rotate(270deg); }
    40% { opacity: 0.9; filter: blur(0px) hue-rotate(360deg); }
    50% { opacity: 0.1; filter: blur(5px) invert(1); }
    60% { opacity: 0.8; filter: blur(1px) invert(0); }
    70% { opacity: 0.3; filter: blur(2px) contrast(2); }
    80% { opacity: 0.9; filter: blur(0px) contrast(1); }
    90% { opacity: 0.5; filter: blur(1px); }
    100% { opacity: 1; filter: blur(0px); }
}

@keyframes shutdown-flicker {
    0%, 98% { opacity: 1; }
    99%, 100% { opacity: 0.3; }
}

/* System Glitch Effects */
.system-glitching {
    animation: system-glitch 2s ease-in-out;
}

.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 0, 0, 0.1) 31%, rgba(255, 0, 0, 0.1) 32%, transparent 33%);
    z-index: 9998;
    pointer-events: none;
    animation: glitch-overlay-effect 2s ease-in-out;
}

@keyframes system-glitch {
    0% {
        filter: none;
        transform: translate(0);
    }
    10% {
        filter: hue-rotate(90deg) contrast(1.5) brightness(1.2);
        transform: translate(-2px, 1px);
    }
    20% {
        filter: hue-rotate(180deg) contrast(2) brightness(0.8) blur(1px);
        transform: translate(1px, -2px);
    }
    30% {
        filter: hue-rotate(270deg) contrast(0.5) brightness(1.5) blur(2px);
        transform: translate(-1px, 2px);
    }
    40% {
        filter: invert(1) contrast(3) brightness(0.5);
        transform: translate(3px, -1px);
    }
    50% {
        filter: hue-rotate(45deg) contrast(1.8) brightness(1.3) blur(3px);
        transform: translate(-2px, -2px);
    }
    60% {
        filter: sepia(1) contrast(2.5) brightness(0.7);
        transform: translate(2px, 3px);
    }
    70% {
        filter: hue-rotate(315deg) contrast(0.8) brightness(1.8) blur(1px);
        transform: translate(-3px, 1px);
    }
    80% {
        filter: invert(0.5) contrast(4) brightness(0.3) blur(4px);
        transform: translate(1px, -3px);
    }
    90% {
        filter: hue-rotate(135deg) contrast(1.2) brightness(2) blur(2px);
        transform: translate(-1px, -1px);
    }
    95% {
        filter: contrast(10) brightness(0.1) blur(5px);
        transform: translate(0, 0);
    }
    100% {
        filter: brightness(0) contrast(0);
        transform: translate(0, 0);
    }
}

@keyframes glitch-overlay-effect {
    0% { opacity: 0; }
    10% { opacity: 0.3; background-position: 0 0; }
    20% { opacity: 0.7; background-position: 10px 5px; }
    30% { opacity: 0.2; background-position: -5px -10px; }
    40% { opacity: 0.9; background-position: 15px 0px; }
    50% { opacity: 0.1; background-position: -10px 15px; }
    60% { opacity: 0.8; background-position: 5px -5px; }
    70% { opacity: 0.3; background-position: -15px 10px; }
    80% { opacity: 0.9; background-position: 20px -15px; }
    90% { opacity: 0.5; background-position: 0 0; }
    100% { opacity: 0; }
}


