/* Local Font Definitions - No external requests */
@font-face {
    font-family: 'JetBrains Mono';
    src: url('/fonts/jetbrains-mono-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/fonts/jetbrains-mono-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/fonts/jetbrains-mono-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/fonts/jetbrains-mono-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('/fonts/orbitron-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('/fonts/orbitron-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('/fonts/orbitron-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #00ffff;
    --primary-dim: #00aaaa;
    --secondary: #00ff88;
    --accent: #ff6600;
    --warning: #ffaa00;
    --danger: #ff3366;
    --bg-dark: #0a0a0f;
    --bg-panel: rgba(0, 20, 30, 0.85);
    --bg-terminal: rgba(0, 10, 15, 0.95);
    --text-primary: #e0e0e0;
    --text-dim: #808080;
    --border-glow: rgba(0, 255, 255, 0.3);
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-display: 'Orbitron', sans-serif;
}

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

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-mono);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(0, 100, 100, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(0, 50, 80, 0.1) 0%, transparent 50%);
}

/* Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.05) 1px,
        transparent 1px,
        transparent 2px
    );
}

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

/* Main Container */
.jarvis-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header */
.jarvis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border: 1px solid var(--border-glow);
    background: var(--bg-panel);
    margin-bottom: 1rem;
    position: relative;
}

.jarvis-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-bracket {
    color: var(--text-dim);
}

.logo-text {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary), 0 0 20px rgba(0, 255, 255, 0.5);
}

.logo-dot {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--secondary);
}

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

/* Navigation */
.jarvis-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    border-color: var(--border-glow);
    text-shadow: 0 0 10px var(--primary);
}

.nav-link.active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 255, 255, 0.05);
}

.nav-link.active::before {
    content: '>';
    position: absolute;
    left: 0.3rem;
    color: var(--secondary);
}

/* Main Content */
.jarvis-main {
    flex: 1;
    padding: 2rem;
    border: 1px solid var(--border-glow);
    background: var(--bg-panel);
    position: relative;
    overflow: hidden;
}

.jarvis-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, var(--border-glow) 1px, transparent 1px),
        linear-gradient(var(--border-glow) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.03;
    pointer-events: none;
}

/* Terminal Block */
.terminal-block {
    background: var(--bg-terminal);
    border: 1px solid var(--border-glow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.terminal-block::before {
    content: 'TERMINAL';
    position: absolute;
    top: -0.7rem;
    left: 1rem;
    font-size: 0.7rem;
    color: var(--primary-dim);
    background: var(--bg-terminal);
    padding: 0 0.5rem;
    letter-spacing: 2px;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 0.3rem;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: var(--danger); }
.terminal-dot.yellow { background: var(--warning); }
.terminal-dot.green { background: var(--secondary); }

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: auto;
}

.terminal-content {
    font-size: 0.9rem;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.terminal-prompt {
    color: var(--secondary);
}

.terminal-command {
    color: var(--primary);
}

.terminal-output {
    color: var(--text-primary);
    padding-left: 1rem;
}

.terminal-comment {
    color: var(--text-dim);
    font-style: italic;
}

/* Text Styles */
.text-glow {
    text-shadow: 0 0 10px currentColor;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-accent {
    color: var(--accent);
}

.text-warning {
    color: var(--warning);
}

/* Headings */
.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.section-title::before {
    content: '//';
    color: var(--secondary);
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-glow), transparent);
}

/* Data Panel */
.data-panel {
    border: 1px solid var(--border-glow);
    background: rgba(0, 40, 50, 0.3);
    padding: 1rem;
    margin-bottom: 1rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0, 255, 255, 0.1);
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.data-value {
    color: var(--primary);
    font-weight: 500;
}

/* Hexagon Grid Background */
.hex-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2300ffff' fill-opacity='1'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ASCII Art */
.ascii-art {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    line-height: 1.2;
    color: var(--primary-dim);
    white-space: pre;
    text-align: center;
    margin: 2rem 0;
    opacity: 0.7;
}

/* Blinking Cursor */
.cursor {
    color: var(--primary);
    animation: cursor-blink 1s step-end infinite;
    font-weight: bold;
}

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

/* Footer */
.jarvis-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border: 1px solid var(--border-glow);
    background: var(--bg-panel);
    margin-top: 1rem;
    font-size: 0.85rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-text {
    color: var(--text-dim);
}

.timestamp {
    font-family: var(--font-display);
    color: var(--primary-dim);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* 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.3s infinite linear alternate-reverse;
    color: var(--danger);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.3s infinite linear alternate-reverse;
    color: var(--secondary);
    z-index: -2;
}

@keyframes glitch-1 {
    0% { clip-path: inset(40% 0 61% 0); transform: translate(-2px, 2px); }
    20% { clip-path: inset(92% 0 1% 0); transform: translate(1px, -1px); }
    40% { clip-path: inset(43% 0 1% 0); transform: translate(-1px, 1px); }
    60% { clip-path: inset(25% 0 58% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(54% 0 7% 0); transform: translate(-2px, 1px); }
    100% { clip-path: inset(58% 0 43% 0); transform: translate(1px, 2px); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(65% 0 5% 0); transform: translate(2px, -1px); }
    20% { clip-path: inset(10% 0 85% 0); transform: translate(-1px, 2px); }
    40% { clip-path: inset(30% 0 45% 0); transform: translate(1px, -2px); }
    60% { clip-path: inset(75% 0 10% 0); transform: translate(-2px, 1px); }
    80% { clip-path: inset(5% 0 70% 0); transform: translate(2px, 2px); }
    100% { clip-path: inset(50% 0 30% 0); transform: translate(-1px, -1px); }
}

/* Responsive */
@media (max-width: 768px) {
    .jarvis-header {
        flex-direction: column;
        gap: 1rem;
    }

    .header-left {
        flex-direction: column;
        gap: 0.5rem;
    }

    .jarvis-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .jarvis-main {
        padding: 1rem;
    }

    .jarvis-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .logo-container {
        font-size: 1.4rem;
    }

    .ascii-art {
        font-size: 0.4rem;
    }
}

/* Link styles */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary);
}

/* Lists */
.terminal-list {
    list-style: none;
    padding-left: 1rem;
}

.terminal-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.terminal-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

/* Code blocks */
code {
    background: var(--bg-terminal);
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border-glow);
    font-family: var(--font-mono);
    color: var(--primary);
}

/* Buttons */
.btn-terminal {
    font-family: var(--font-mono);
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-terminal:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.btn-terminal::before {
    content: '[';
    margin-right: 0.5rem;
}

.btn-terminal::after {
    content: ']';
    margin-left: 0.5rem;
}
