/* ==========================================================================
   CSS Custom Properties - Minimalist Brutalism "Terminal" Theme
   ========================================================================== */
:root {
    --color-bg: #050505;
    --color-text: #00ff41;
    /* Phosphor Green */
    --color-text-dim: #008f11;
    --color-text-dark: #003b00;
    --color-alert: #ff003c;

    --font-mono: 'Fira Code', 'Courier New', Courier, monospace;
    --font-display: 'VT323', monospace;

    --transition-fast: 0.1s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-mono);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    font-size: 14px;
}

::selection {
    background: var(--color-text);
    color: var(--color-bg);
}

/* ==========================================================================
   CRT Effects (The "Slop" Avoidance - Deep Aesthetic Commitment)
   ========================================================================== */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.5;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(var(--color-text-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-text-dark) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0.15;
}

.scan-effect {
    animation: scanPulse 10s infinite linear;
}

@keyframes scanPulse {
    0% {
        text-shadow: 0 0 2px var(--color-text);
    }

    50% {
        text-shadow: 0 0 4px var(--color-text), 0 0 10px var(--color-text);
    }

    100% {
        text-shadow: 0 0 2px var(--color-text);
    }
}

a {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px dashed var(--color-text-dark);
}

a:hover {
    color: var(--color-bg);
    background-color: var(--color-text);
    border-bottom: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.sys-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--color-text-dark);
    z-index: 1000;
}

.nav-brand {
    font-weight: bold;
}

.prompt {
    color: var(--color-text);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    border: none;
}

.nav-links a:hover {
    background: none;
    color: #fff;
    text-shadow: 0 0 5px var(--color-text);
}

/* ==========================================================================
   Main Container
   ========================================================================== */
.terminal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 2rem 2rem;
}

.sys-section {
    margin-bottom: 6rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.sys-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.sys-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.highlight {
    color: #fff;
    text-shadow: 0 0 5px var(--color-text);
}

/* ==========================================================================
   Hero / About
   ========================================================================== */
.ascii-art {
    font-family: monospace;
    white-space: pre;
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 3rem;
    overflow-x: hidden;
    color: var(--color-text-dim);
}

.sys-block {
    margin-bottom: 2rem;
    border-left: 2px solid var(--color-text-dark);
    padding-left: 1rem;
}

.boot-sequence p {
    margin-bottom: 0.5rem;
}

.bio-data .comment {
    color: var(--color-text-dim);
    margin-bottom: 0.25rem;
}

.cursor {
    display: inline-block;
    width: 10px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.sys-actions {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.cmd-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-mono);
    cursor: pointer;
    text-transform: lowercase;
}

/* ==========================================================================
   Skills Grid
   ========================================================================== */
.sys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.sys-node {
    border: 1px solid var(--color-text-dark);
    padding: 1.5rem;
    background: rgba(0, 255, 65, 0.02);
}

.sys-node:hover {
    border-color: var(--color-text);
    box-shadow: inset 0 0 20px rgba(0, 255, 65, 0.1);
}

.node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed var(--color-text-dark);
    padding-bottom: 0.5rem;
}

.node-id {
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-text);
    box-shadow: 0 0 10px var(--color-text);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.node-data {
    list-style: none;
}

.node-data li {
    margin-bottom: 0.5rem;
    color: var(--color-text-dim);
}

.node-data li:hover {
    color: var(--color-text);
}

/* ==========================================================================
   Projects
   ========================================================================== */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sys-project {
    border: 1px solid var(--color-text-dark);
    padding: 1.5rem;
    position: relative;
}

.sys-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    height: 100%;
    width: 2px;
    background-color: var(--color-text-dark);
}

.sys-project:hover::before {
    background-color: var(--color-text);
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.pid {
    color: var(--color-text-dim);
}

.p-name {
    font-size: 1.5rem;
    color: #fff;
}

.p-date {
    margin-left: auto;
    color: var(--color-text-dim);
}

.p-details {
    padding-left: 2rem;
}

.label {
    color: var(--color-text-dim);
}

.p-tags {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.tag {
    font-size: 0.85rem;
    background: rgba(0, 255, 65, 0.1);
    padding: 0.2rem 0.5rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.comms-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.comms-logs h3,
.comms-form-wrapper h3 {
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.comms-logs ul {
    list-style: none;
}

.comms-logs li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.port {
    color: var(--color-text-dim);
    min-width: 140px;
}

.sys-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-line {
    display: flex;
    align-items: flex-start;
}

.input-line label {
    min-width: 120px;
    color: var(--color-text-dim);
    padding-top: 0.3rem;
}

.input-line input,
.input-line textarea {
    flex-grow: 1;
    background: transparent;
    border: none;
    border-bottom: 1px dashed var(--color-text-dark);
    color: var(--color-text);
    font-family: var(--font-mono);
    padding: 0.3rem;
    outline: none;
}

.input-line input:focus,
.input-line textarea:focus {
    border-bottom: 1px solid var(--color-text);
    background: rgba(0, 255, 65, 0.05);
}

.input-line textarea {
    resize: vertical;
}

.sys-alert {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--color-text);
    font-weight: bold;
}

.hidden {
    display: none;
}

.sys-footer {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-dim);
    border-top: 1px dashed var(--color-text-dark);
    max-width: 1000px;
    margin: 0 auto;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 768px) {
    .sys-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .ascii-art {
        font-size: 6px;
        /* shrink for mobile */
    }

    .comms-interface {
        grid-template-columns: 1fr;
    }

    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .p-date {
        margin-left: 0;
    }
}