/* CyberVanguard - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --cyber-primary: #22c55e;
    --cyber-dark: #14532d;
    --cyber-light: #86efac;
    --neon-primary: #f43f5e;
    --neon-dark: #881337;
    --neon-light: #fda4af;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Selection */
::selection {
    background: rgba(34, 197, 94, 0.3);
    color: #dcfce7;
}

/* Matrix Rain Canvas */
#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Glassmorphism */
.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Terminal Styles */
.terminal-window {
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #1a1a1a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.red { background: #ff5f56; }
.terminal-button.yellow { background: #ffbd2e; }
.terminal-button.green { background: #27c93f; }

.terminal-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #a3e635;
    min-height: 320px;
    max-height: 400px;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 4px;
    opacity: 0;
    animation: fadeIn 0.1s ease forwards;
}

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

.terminal-prompt {
    color: #22c55e;
}

.terminal-command {
    color: #e2e8f0;
}

.terminal-output {
    color: #94a3b8;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #22c55e;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

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

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #f43f5e;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #22c55e;
    z-index: -2;
}

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

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

/* Gradient Text Animation */
.gradient-text-animate {
    background: linear-gradient(90deg, #22c55e, #f43f5e, #22c55e);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Neon Glow */
.neon-glow {
    box-shadow: 0 0 5px var(--cyber-primary),
                0 0 10px var(--cyber-primary),
                0 0 20px var(--cyber-primary);
}

.neon-glow-pink {
    box-shadow: 0 0 5px var(--neon-primary),
                0 0 10px var(--neon-primary),
                0 0 20px var(--neon-primary);
}

/* Scanline Effect */
.scanlines {
    position: relative;
}

.scanlines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
}

/* Binary Background */
.binary-bg {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: rgba(34, 197, 94, 0.03);
    white-space: pre;
    z-index: 0;
    user-select: none;
    pointer-events: none;
}

/* Pulse Ring */
.pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--cyber-primary);
    animation: pulse-ring 2s ease-out infinite;
}

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

/* Loading Animation */
.cyber-loader {
    width: 48px;
    height: 48px;
    border: 3px solid transparent;
    border-top-color: var(--cyber-primary);
    border-right-color: var(--neon-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .terminal-body {
        font-size: 11px;
        padding: 16px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}