@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Inter:wght@300;400;700&display=swap');

:root {
    --bg-color: #050505;
    --neon-green: #00ff41;
    --electric-blue: #00e5ff;
    --dark-panel: rgba(10, 15, 20, 0.85);
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), filter 1.5s;
}

/* Entering State */
.entering #bg-canvas {
    transform: scale(1.5);
    filter: brightness(1.5);
}

.entering #splash-screen {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

/* Glitch Effect */
.glitch-text {
    position: relative;
    font-family: 'Share Tech Mono', monospace;
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    letter-spacing: 2px;
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--electric-blue);
    clip-path: inset(20% 0 80% 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-green);
    clip-path: inset(80% 0 20% 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim { 0% { clip-path: inset(20% 0 80% 0); } 20% { clip-path: inset(60% 0 10% 0); } 40% { clip-path: inset(40% 0 50% 0); } 60% { clip-path: inset(80% 0 5% 0); } 80% { clip-path: inset(10% 0 60% 0); } 100% { clip-path: inset(30% 0 20% 0); } }
@keyframes glitch-anim-2 { 0% { clip-path: inset(10% 0 60% 0); } 20% { clip-path: inset(80% 0 5% 0); } 40% { clip-path: inset(30% 0 20% 0); } 60% { clip-path: inset(60% 0 10% 0); } 80% { clip-path: inset(20% 0 80% 0); } 100% { clip-path: inset(40% 0 50% 0); } }

/* Terminal Text */
.terminal-text {
    font-family: 'Share Tech Mono', monospace;
    color: var(--electric-blue);
    min-height: 1.5rem;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--electric-blue);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 5px;
}

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

/* UI Overlays */
.enter-btn {
    margin-top: 3rem;
    padding: 1rem 3rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.25rem;
    color: var(--neon-green);
    background: transparent;
    border: 1px solid var(--neon-green);
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2), inset 0 0 15px rgba(0, 255, 65, 0.1);
}

.enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.3), transparent);
    transition: left 0.5s;
}

.enter-btn:hover { background: rgba(0, 255, 65, 0.1); box-shadow: 0 0 30px rgba(0, 255, 65, 0.4), inset 0 0 20px rgba(0, 255, 65, 0.2); text-shadow: 0 0 5px var(--neon-green); }
.enter-btn:hover::before { left: 100%; }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
    animation: bounce 2s infinite;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

/* Fancy Dashboard elements */
.panel {
    background: var(--dark-panel);
    border: 1px solid rgba(0, 229, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.sys-header {
    font-family: 'Share Tech Mono', monospace;
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) { .glitch-text { font-size: 2.5rem; } }

/* Threat Map */
.world-map {
    background: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg') center/contain no-repeat;
    filter: invert(0.8) sepia(1) hue-rotate(130deg) saturate(300%) drop-shadow(0 0 5px var(--electric-blue));
    opacity: 0.6;
}

/* Red Danger Pings - INCREASED SIZE AS REQUESTED */
.threat-ping {
    position: absolute;
    width: 10px; /* Increased from 6px */
    height: 10px; /* Increased from 6px */
    background-color: #ff003c;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px #ff003c, 0 0 30px #ff003c;
    z-index: 20;
    pointer-events: none;
}

.threat-ping::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid #ff003c;
    animation: ping-expand 1.5s ease-out forwards;
}

.threat-ping::after {
    content: attr(data-origin);
    position: absolute;
    top: -15px;
    left: 15px;
    color: #ff003c;
    font-size: 10px;
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
    white-space: nowrap;
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(255,0,60,0.8);
}

@keyframes ping-expand {
    /* Increased expansion multiplier from 600% to 1500% to make them massive */
    0% { width: 100%; height: 100%; opacity: 1; }
    100% { width: 1500%; height: 1500%; opacity: 0; border-width: 0; }
}

.pulse-red { animation: blink-red 1.5s infinite; }
@keyframes blink-red { 0%, 100% { opacity: 1; box-shadow: 0 0 5px #ff003c; } 50% { opacity: 0.3; box-shadow: none; } }

/* Network Node View Additions */
.text-shadow { text-shadow: 0 0 8px var(--electric-blue); }
.text-shadow-neon { text-shadow: 0 0 8px var(--neon-green); }
.text-shadow-red { text-shadow: 0 0 8px #ff003c; }

.pulse-neon { animation: blink-neon 2s infinite; }
@keyframes blink-neon { 0%, 100% { opacity: 1; filter: drop-shadow(0 0 15px var(--neon-green)); } 50% { opacity: 0.6; filter: none; } }

.blink-red { animation: hard-blink-red 1s infinite step-end; }
@keyframes hard-blink-red { 0%, 100% { opacity: 1; filter: drop-shadow(0 0 15px #ff003c); } 50% { opacity: 0.2; } }

.network-line {
    stroke: rgba(0, 229, 255, 0.4);
    stroke-width: 2;
    stroke-dasharray: 6, 6;
    animation: dash-flow 10s linear infinite reverse;
}
.network-line.danger {
    stroke: rgba(255, 0, 60, 0.6);
    stroke-width: 3;
    stroke-dasharray: 10, 5;
    animation: dash-flow 3s linear infinite reverse;
}
@keyframes dash-flow { to { stroke-dashoffset: 200; } }

.network-grid {
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}
