:root {
    --cyber-blue: #00f0ff;
    --cyber-purple: #bd00ff;
    --cyber-red: #ff003c;
    --cyber-dark: #0a0a14;
    --cyber-darker: #050510;
    --cyber-text: #e0e0ff;
    --cyber-grid: rgba(0, 240, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Courier New', monospace;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;700&display=swap');
}

body {
    background-color: var(--cyber-darker);
    color: var(--cyber-text);
    overflow-x: hidden;
    position: relative;
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--cyber-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--cyber-grid) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/grid-pattern.png');
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

.cyber-header {
    display: flex;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.logo-hologram {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cyber-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px var(--cyber-blue));
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.hologram-effect {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0,240,255,0.2) 0%, rgba(189,0,255,0.1) 50%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s alternate infinite;
}

.cyber-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 0 2rem 4rem;
}

.terminal-window {
    width: 100%;
    max-width: 800px;
    background: rgba(10, 10, 20, 0.7);
    border: 1px solid var(--cyber-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2),
                inset 0 0 10px rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(to right, #0a0a20, #0a0a30);
    border-bottom: 1px solid var(--cyber-blue);
}

.terminal-controls {
    display: flex;
    gap: 0.6rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.control.red { background: var(--cyber-red); }
.control.yellow { background: #ffcc00; }
.control.green { background: #00cc66; }

.terminal-title {
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--cyber-blue);
    text-shadow: 0 0 5px var(--cyber-blue);
}

.terminal-content {
    padding: 1.5rem;
    min-height: 200px;
}

.alert-stream {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.alert {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-left: 3px solid;
    background: rgba(20, 20, 40, 0.4);
    animation: alert-appear 0.5s ease-out;
}

@keyframes alert-appear {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.alert.critical {
    border-left-color: var(--cyber-red);
    color: #ffaaaa;
}

.alert.warning {
    border-left-color: #ffcc00;
    color: #ffffaa;
}

.timestamp {
    color: var(--cyber-blue);
    font-weight: 500;
}

.cyber-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--cyber-text);
    padding: 1rem 1.5rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 6px;
    background: rgba(10, 10, 30, 0.5);
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    transition: 0.5s;
}

.nav-item:hover {
    border-color: var(--cyber-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transform: translateY(-5px);
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item.active {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--cyber-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.nav-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--cyber-blue);
}

.nav-text {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.cyber-footer {
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 30, 0.7));
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.threat-map-container {
    width: 100%;
    max-width: 1000px;
    height: 300px;
    margin: 0 auto;
    border: 1px solid var(--cyber-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    overflow: hidden;
    border-radius: 4px;
}

.threat-map {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    font-size: 0.9rem;
}

.security-status {
    color: var(--cyber-blue);
}

.status-secure {
    color: #00cc66;
    font-weight: 700;
    text-shadow: 0 0 5px #00cc66;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cyber-header {
        padding: 1.5rem;
    }
    
    .logo-hologram {
        width: 140px;
        height: 140px;
    }
    
    .cyber-nav {
        gap: 1rem;
    }
    
    .nav-item {
        padding: 0.8rem 1rem;
    }
    
    .nav-icon {
        font-size: 1.5rem;
    }
    
    .nav-text {
        font-size: 0.8rem;
    }
    
    .threat-map-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .cyber-main {
        padding: 0 1rem 3rem;
    }
    
    .terminal-header {
        padding: 0.6rem 1rem;
    }
    
    .terminal-content {
        padding: 1rem;
    }
    
    .alert {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .cyber-nav {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .threat-map-container {
        height: 200px;
    }
    
    .footer-copyright {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}