:root {
    --gold: #c9a84c;
    --gold-light: #e8c96d;
    --gold-dim: rgba(201,168,76,0.15);
    --dark: #0a0a0f;
    --dark2: #111118;
    --dark3: #1a1a24;
    --dark4: #22222f;
    --text: #e8e6e0;
    --text-muted: #b0aea6;
    --accent: #4fc3f7;
    --accent2: #81c784;
    --accent3: #ff8a65;
    --border: rgba(201,168,76,0.2);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--gold); color: var(--dark); }
::-moz-selection { background: var(--gold); color: var(--dark); }

body {
    background: var(--dark);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    line-height: 1.75;
    overflow-x: hidden;
}

/* LOADING SCREEN */
.loading-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--dark);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loading-overlay.hidden {
    opacity: 0; visibility: hidden;
    pointer-events: none;
}
.loading-terminal {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 420px;
    min-height: 240px;
}
.loading-line {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.loading-line.visible { opacity: 1; }
.loading-prompt { color: #a0d8a0; opacity: 0.8; margin-right: 0.4rem; }
.loading-ok { color: var(--accent2); }
.loading-done { color: var(--gold); }
.loading-blink { animation: loadBlink 0.8s step-end infinite; }
@keyframes loadBlink {
    50% { opacity: 0; }
}

/* CURSOR GLOW */
.cursor-glow {
    position: fixed; pointer-events: none; z-index: 9998;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
    will-change: transform;
}

/* SCROLL PROGRESS */
.scroll-progress {
    position: fixed; top: 0; left: 0; z-index: 999;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 50ms linear;
}

/* BACKGROUND */
.bg-grid {
    position: fixed; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.bg-glow {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(201,168,76,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(79,195,247,0.04) 0%, transparent 60%);
}
#neural-canvas {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}


/* NAV */
nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px; gap: 2rem;
}
.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem; font-weight: 600;
    color: var(--gold); text-decoration: none;
    letter-spacing: 0.05em; white-space: nowrap;
}
.logo-prompt {
    color: #6bd0ff;
    opacity: 0.7;
    margin-right: 0.1rem;
}
.logo-cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--gold);
    font-weight: 400;
}
.nav-links { display: flex; gap: 0.25rem; list-style: none; flex-wrap: wrap; }
.nav-links a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em;
    padding: 0.35rem 0.55rem; border-radius: 6px;
    transition: all 0.2s; text-transform: lowercase;
}
.nav-links a:hover { color: var(--gold); background: var(--gold-dim); }
.nav-links a.active { color: var(--gold); background: var(--gold-dim); }
.nav-links a.active .nav-paren { color: var(--gold); opacity: 1; }
.nav-paren {
    transition: color 0.2s;
    color: var(--text-muted);
    opacity: 0.6;
}
.nav-links a:hover .nav-paren {
    color: var(--gold);
    opacity: 1;
}

/* MOBILE NAV TOGGLE */
.nav-toggle {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    padding: 8px 9px;
}
.nav-toggle span {
    display: block; height: 2px;
    background: var(--gold);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* CONTAINER */
.container {
    position: relative; z-index: 1;
    max-width: 1100px; margin: 0 auto;
    padding: 3rem 2rem 6rem;
}

/* HERO */
.hero {
    text-align: center;
    padding: 5rem 2rem 4rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
}
.hero::before {
    content: '';
    position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    z-index: 2;
}

/* 3D ORB */
.hero-orb {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    perspective: 600px;
    z-index: 0;
}
.hero-ring {
    position: absolute;
    width: clamp(320px, 55vw, 520px);
    height: clamp(320px, 55vw, 520px);
    border: 1px solid rgba(201,168,76,0.05);
    border-radius: 50%;
    animation: ringSpin 35s linear infinite;
    transform-style: preserve-3d;
}
.hero-ring-2 {
    width: clamp(240px, 40vw, 400px);
    height: clamp(240px, 40vw, 400px);
    border-color: rgba(201,168,76,0.04);
    animation-duration: 25s;
    animation-direction: reverse;
}
.hero-ring-3 {
    width: clamp(160px, 26vw, 280px);
    height: clamp(160px, 26vw, 280px);
    border-color: rgba(201,168,76,0.07);
    border-width: 1px;
}
@keyframes ringSpin {
    0% { transform: rotateX(75deg) rotateY(0deg); }
    100% { transform: rotateX(75deg) rotateY(360deg); }
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700; line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--gold-light);
    margin-bottom: 0.75rem;
    position: relative; z-index: 1;
}
.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    color: var(--gold); margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    min-height: 1.6em;
    position: relative; z-index: 1;
}
.hero-repl {
    color: var(--accent2);
    opacity: 0.6;
}
.typed-cursor {
    display: inline-block;
    width: 2px; height: 1.1em;
    background: var(--gold);
    margin-left: 2px;
    vertical-align: text-bottom;
    opacity: 1;
}
.hero-bio {
    max-width: 680px; margin: 0 auto 2.5rem;
    color: var(--text-muted); font-size: 1rem; line-height: 1.8;
    position: relative; z-index: 1;
}
.cta-button {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--dark);
    background: var(--gold);
    padding: 0.75rem 2rem;
    border-radius: 6px; text-decoration: none;
    transition: all 0.25s;
    position: relative; z-index: 1;
}
.cta-button:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

/* SECTION TITLES */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gold); margin-bottom: 1.75rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.section-title::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

section { margin-bottom: 4rem; animation: fadeUp 0.6s ease both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ABOUT */
.about-split {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}
.about-text p {
    font-size: 1rem; color: var(--text-muted);
    line-height: 1.9; margin-bottom: 1rem;
}
.about-text p:last-of-type { margin-bottom: 1.25rem; }

.about-highlights {
    display: flex; flex-wrap: wrap;
    gap: 0.6rem;
}
.about-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem; color: var(--gold);
    background: var(--gold-dim);
    border: 1px solid var(--border);
    padding: 0.4rem 1rem; border-radius: 20px;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}
.about-badge:hover {
    background: rgba(201,168,76,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(201,168,76,0.15);
}

/* TERMINAL */
.about-terminal {
    background: #0d0d14;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    transition: border-color 0.3s;
}
.about-terminal:hover {
    border-color: var(--gold);
}
.terminal-bar {
    display: flex; align-items: center;
    gap: 6px; padding: 0.6rem 0.9rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}
.terminal-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.terminal-dot:nth-child(1) { background: #ff5f56; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #27c93f; }
.terminal-title {
    margin-left: auto;
    font-size: 0.65rem; color: var(--text-muted);
}
.terminal-body {
    padding: 0.9rem;
}
.terminal-line {
    white-space: nowrap;
    margin-bottom: 0.35rem;
    line-height: 1.5;
}
.terminal-prompt {
    color: var(--gold);
    margin-right: 0.4rem;
}
.terminal-cmd {
    color: #4fc3f7;
}
.terminal-output .terminal-prompt {
    color: var(--accent2);
}
.terminal-output {
    color: var(--text-muted);
    padding-left: 0.75rem;
}
.terminal-cursor {
    display: inline-block;
    width: 6px; height: 0.9em;
    background: var(--gold);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: termBlink 0.8s step-end infinite;
}
@keyframes termBlink {
    50% { opacity: 0; }
}

/* 3D TILT */
.tilt {
    transform-style: preserve-3d;
    will-change: transform;
}

/* STATS COUNTER */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.stat-card {
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(201,168,76,0.08);
}
.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--gold);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.stat-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.8;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* SKILLS GRID */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.skill-card {
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: border-color 0.3s, transform 0.3s, opacity 0.5s, box-shadow 0.3s;
}
.skill-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
.skill-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(201,168,76,0.08);
}
.skill-card:nth-child(1) { transition-delay: 0s; }
.skill-card:nth-child(2) { transition-delay: 0.05s; }
.skill-card:nth-child(3) { transition-delay: 0.1s; }
.skill-card:nth-child(4) { transition-delay: 0.15s; }
.skill-card:nth-child(5) { transition-delay: 0.2s; }
.skill-card:nth-child(6) { transition-delay: 0.25s; }

.skill-icon {
    color: var(--gold);
    margin-bottom: 0.75rem;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}
.skill-card:hover .skill-icon {
    opacity: 1;
    transform: scale(1.1);
}
.skill-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem; color: var(--gold);
    letter-spacing: 0.15em; text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.skill-badges {
    display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.skill-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem; font-weight: 500;
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.25rem 0.55rem; border-radius: 4px;
    letter-spacing: 0.02em;
    transition: all 0.2s;
}
.skill-badge:hover {
    color: var(--gold);
    background: var(--gold-dim);
    border-color: var(--border);
    transform: translateY(-1px);
}

/* AUTOMATION PIPELINE */
.pipeline-intro {
    text-align: center; color: var(--text-muted);
    max-width: 600px; margin: -1rem auto 2.5rem;
    font-size: 0.95rem;
}
.pipeline {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 0; flex-wrap: wrap;
}
.pipeline-step {
    flex: 1; min-width: 170px; max-width: 220px;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
}
.pipeline-step:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}
.pipeline-icon {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin: 0 auto 0.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--gold);
    transition: all 0.3s;
}
.pipeline-step:hover .pipeline-icon {
    background: var(--gold-dim);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(201,168,76,0.15);
}
.pipeline-step h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; color: var(--gold);
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.pipeline-step p {
    font-size: 0.82rem; color: var(--text-muted);
    line-height: 1.5;
}
.pipeline-arrow {
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 0.25rem 0;
    color: var(--gold);
    opacity: 0.5;
    flex-shrink: 0;
}

/* ARCHITECTURE TREE */
.arch-tree {
    display: flex; flex-direction: column; align-items: center;
    gap: 0;
    padding: 1rem 0;
}
.arch-tier {
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem;
}
.arch-tier-split {
    align-items: stretch;
    gap: 2rem;
}

/* Vertical pipe connector */
.arch-pipe-v {
    position: relative;
    width: 2px; height: 28px;
    flex-shrink: 0;
}
.arch-pipe-line {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--border), transparent);
    width: 1px;
    left: 50%; transform: translateX(-50%);
}
.arch-pipe-dot {
    position: absolute;
    width: 5px; height: 5px;
    background: var(--gold);
    border-radius: 50%;
    left: 50%; transform: translateX(-50%);
    top: 0;
    animation: pipeDrop 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(201,168,76,0.4);
}
.arch-pipe-fork .arch-pipe-line {
    background: linear-gradient(180deg, var(--border), transparent 60%);
    height: 100%;
}
.arch-pipe-fork-3 .arch-pipe-line {
    background: linear-gradient(180deg, var(--border), transparent 60%);
    height: 100%;
}
@keyframes pipeDrop {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.2; }
    50% { transform: translateX(-50%) translateY(23px); opacity: 1; }
}

/* Horizontal connector */
.arch-conn-h {
    position: relative;
    width: 36px; height: 2px;
    flex-shrink: 0;
}
.arch-h-line {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--border), transparent);
    top: 50%; transform: translateY(-50%);
    height: 1px;
}
.arch-conn-h:last-child .arch-h-line {
    background: transparent;
}
.arch-h-dot {
    position: absolute;
    width: 5px; height: 5px;
    background: var(--gold);
    border-radius: 50%;
    top: 50%; transform: translateY(-50%);
    animation: dotMove 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(201,168,76,0.4);
    left: 0;
}
.arch-h-dot-2 { animation-delay: 0.5s; }
.arch-h-dot-3 { animation-delay: 0.25s; }
.arch-h-dot-4 { animation-delay: 0.15s; }
.arch-h-dot-5 { animation-delay: 0.3s; }
@keyframes dotMove {
    0%, 100% { transform: translateX(0) translateY(-50%); opacity: 0.3; }
    50% { transform: translateX(31px) translateY(-50%); opacity: 1; }
}

/* Nodes */
.arch-node {
    display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
    padding: 0.8rem 1rem;
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 100px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.arch-node:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.08);
}
.arch-node svg {
    width: 18px; height: 18px;
    color: var(--gold); opacity: 0.8;
    flex-shrink: 0;
}
.arch-node span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; color: var(--text);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.arch-node small {
    font-size: 0.55rem; color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Track (parallel column) */
.arch-track {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.5rem;
}
.arch-track .arch-pipe-v {
    margin: 0.25rem 0;
}

/* Container (Workspace) */
.arch-container {
    border: 1px dashed rgba(201,168,76,0.25);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(201,168,76,0.04), transparent);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    min-width: 280px;
}
.arch-container-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem; color: var(--gold);
    display: flex; align-items: center; gap: 0.4rem;
}
.arch-container-header svg {
    color: var(--gold); opacity: 0.7;
}
.arch-container-sub {
    display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
}
.arch-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    padding: 0.3rem 0.55rem;
    border-radius: 20px;
    border: 1px solid;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.arch-pill-client {
    color: var(--accent); border-color: rgba(79,195,247,0.25); background: rgba(79,195,247,0.06);
}
.arch-pill-service {
    color: var(--accent2); border-color: rgba(129,199,132,0.25); background: rgba(129,199,132,0.06);
}
.arch-pill-signal {
    color: var(--accent3); border-color: rgba(255,138,101,0.25); background: rgba(255,138,101,0.06);
}

/* Node colors */
.arch-node-user { border-color: rgba(201,168,76,0.3); }
.arch-node-team { border-color: rgba(79,195,247,0.3); }
.arch-node-team svg { color: var(--accent); }
.arch-node-posts { border-color: rgba(255,138,101,0.3); }
.arch-node-posts svg { color: var(--accent3); }
.arch-node-notif { border-color: rgba(129,199,132,0.3); }
.arch-node-notif svg { color: var(--accent2); }
.arch-node-activity { border-color: rgba(201,168,76,0.3); }
.arch-node-celery { border-color: rgba(79,195,247,0.3); }
.arch-node-celery svg { color: var(--accent); }
.arch-node-presign { border-color: rgba(201,168,76,0.3); }
.arch-node-db { border-color: rgba(255,138,101,0.3); }
.arch-node-db svg { color: var(--accent3); }
.arch-node-core {
    border-color: rgba(201,168,76,0.4);
    background: linear-gradient(135deg, var(--dark3), rgba(201,168,76,0.06));
}
.arch-node-core svg { color: var(--gold); }
.arch-node-output { border-color: var(--border); }

/* Deployment badge */
.arch-deploy {
    margin-top: 1.5rem;
    display: flex; align-items: center; gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; color: var(--text-muted);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--dark3);
}
.arch-deploy svg { color: var(--gold); }

/* PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}
.project-card {
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, opacity 0.5s;
    display: flex; flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}
.project-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
.project-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(201,168,76,0.1);
}
.project-card:nth-child(2) { transition-delay: 0.05s; }
.project-card:nth-child(3) { transition-delay: 0.1s; }
.project-card:nth-child(4) { transition-delay: 0.15s; }
.project-card:nth-child(5) { transition-delay: 0.2s; }
.project-card:nth-child(6) { transition-delay: 0.25s; }
.project-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; color: var(--gold);
    letter-spacing: 0.15em; margin-bottom: 0.75rem;
}
.project-card h3 { margin-bottom: 0; }
.project-card h3 a {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem; font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text); text-decoration: none;
    line-height: 1.3;
    transition: color 0.2s;
}
.project-card h3 a:hover { color: var(--gold); }
.project-card p {
    font-size: 0.88rem; color: var(--text-muted);
    margin: 0.75rem 0 1.25rem; flex: 1;
    line-height: 1.7;
}
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem; font-weight: 600;
    color: var(--gold);
    background: var(--gold-dim);
    border: 1px solid var(--border);
    padding: 0.2rem 0.6rem; border-radius: 4px;
    letter-spacing: 0.05em;
}

/* PYTHON SECTION SIGNATURE */
.py-sig {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(201,168,76,0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: inline-block;
}
.py-sig .py-keyword {
    color: #6bd0ff;
    opacity: 0.7;
}
.py-sig .py-func {
    color: #d4b55a;
}
.py-sig .py-punc {
    color: var(--text-muted);
    opacity: 0.7;
}

/* FAQ */
.faq-list {
    display: flex; flex-direction: column; gap: 0.75rem;
    max-width: 700px; margin: 0 auto;
}
.faq-item {
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item:hover {
    border-color: var(--gold);
}
.faq-item[open] {
    border-color: var(--gold);
}
.faq-question {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
    user-select: none;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question::before {
    content: '▸';
    color: var(--text-muted);
    opacity: 0.7;
    font-size: 0.7rem;
    transition: transform 0.2s;
}
.faq-item[open] .faq-question::before {
    transform: rotate(90deg);
    color: var(--gold);
    opacity: 1;
}
.faq-answer {
    padding: 0 1.25rem 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.faq-answer p {
    margin: 0;
}
.faq-answer strong {
    color: var(--text);
    font-weight: 500;
}

/* CONTACT TERMINAL */
/* CONTACT FORM */
.contact-form {
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 600px; margin: 0 auto 2rem;
    transition: border-color 0.3s;
}
.contact-form:hover { border-color: var(--gold); }
.contact-form-body {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 1rem 1.25rem;
    line-height: 1.9;
}
.form-group {
    display: flex; align-items: flex-start; gap: 0.5rem;
    margin: 0.5rem 0;
}
.form-group .contact-prompt {
    color: var(--gold);
    opacity: 0.85;
    white-space: nowrap;
    min-width: 3.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}
.form-group input,
.form-group textarea {
    flex: 1;
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}
.form-group textarea {
    resize: vertical;
    min-height: 60px;
}
.form-submit-line {
    display: flex; align-items: center; gap: 1rem;
    margin-top: 0.75rem;
}
.contact-send {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--gold);
    background: rgba(201,168,76,0.08);
    border: 1px solid var(--gold);
    border-radius: 6px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.contact-send:hover {
    background: var(--gold-dim);
    color: #fff;
    box-shadow: 0 0 12px rgba(201,168,76,0.3);
}
.contact-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.form-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent2);
}

.contact-terminal {
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 600px; margin: 0 auto;
    transition: border-color 0.3s;
}
.contact-terminal:hover {
    border-color: var(--gold);
}
.contact-bar {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: var(--dark2);
    border-bottom: 1px solid var(--border);
}
.contact-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem; color: var(--text-muted);
    margin-left: auto; opacity: 0.5;
    letter-spacing: 0.05em;
}
.contact-body {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 1rem 1.25rem;
    line-height: 1.9;
}
.contact-line { white-space: nowrap; }
.contact-prompt {
    color: var(--gold);
    opacity: 0.75;
    margin-right: 0.4rem;
}
.contact-import {
    color: #6bd0ff;
    opacity: 0.75;
}
.contact-func {
    color: var(--gold);
}
.contact-out {
    color: var(--text-muted);
    padding-left: 1.6rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.contact-str {
    color: var(--accent2);
}
.contact-act {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--gold);
    border-radius: 4px;
    transition: all 0.2s;
    opacity: 0.8;
    background: rgba(201,168,76,0.08);
    font-weight: 500;
}
.contact-act:hover {
    opacity: 1;
    background: var(--gold-dim);
    color: #fff;
    border-color: var(--gold-light);
    box-shadow: 0 0 12px rgba(201,168,76,0.3);
}
.contact-comment {
    color: var(--text-muted);
    opacity: 0.6;
    font-style: italic;
}
.contact-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
    opacity: 0.5;
}
.contact-cursor {
    display: inline-block;
    width: 6px; height: 0.9em;
    background: var(--gold);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: termBlink 0.8s step-end infinite;
}

/* FOOTER */
footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem 2rem;
}
.footer-shebang {
    max-width: 1100px; margin: 0 auto 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    opacity: 0.6;
}
.footer-stats {
    max-width: 700px; margin: 0 auto 1.5rem;
    display: flex; align-items: center; justify-content: center; gap: 0;
    padding: 0.65rem 1.25rem;
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.footer-stat-item {
    display: flex; flex-direction: column; align-items: center;
    padding: 0 1.25rem;
}
.footer-stat-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem; font-weight: 600;
    color: var(--gold);
}
.footer-stat-label {
    font-size: 0.55rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.1em;
}
.footer-stat-divider {
    width: 1px; height: 28px;
    background: var(--border);
    flex-shrink: 0;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
    margin-bottom: 1.5rem;
}
.footer-brand .footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem; color: var(--gold);
    margin-bottom: 0.3rem;
}
.footer-lambda {
    color: var(--accent);
    opacity: 0.5;
    margin-right: 0.1rem;
}
.footer-dot {
    color: var(--accent);
    opacity: 0.6;
}
.footer-comment {
    color: var(--text-muted);
    opacity: 0.6;
}
.footer-tagline {
    font-size: 0.8rem; color: var(--text-muted); line-height: 1.6;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.4rem;
}
.tagline-import {
    color: var(--accent);
    opacity: 0.5;
}
.tagline-comment {
    color: var(--text-muted);
    opacity: 0.6;
}
.footer-stats-mini {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.7;
}
.footer-section-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    opacity: 0.7;
}
.footer-str {
    color: var(--accent2);
    opacity: 0.7;
}
.footer-class {
    color: var(--gold);
}
.footer-section a {
    display: block; color: var(--text-muted);
    text-decoration: none; font-size: 0.82rem;
    margin-bottom: 0.25rem; transition: all 0.2s;
    font-family: 'JetBrains Mono', monospace;
    padding-left: 0.5rem;
    border-left: 1px solid transparent;
}
.footer-section a:hover { color: var(--gold); border-left-color: var(--gold); padding-left: 1rem; }
.footer-section a .footer-str { transition: color 0.2s; }
.footer-section a:hover .footer-str { color: var(--gold); opacity: 1; }
.social-links { display: flex; gap: 0.5rem; margin-top: 0.5rem; padding-left: 0.5rem; }
.social-links a {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid var(--border); border-radius: 8px;
    color: var(--text-muted); text-decoration: none;
    transition: all 0.2s;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); transform: translateY(-2px); }
.footer-bottom {
    max-width: 1100px; margin: 0 auto;
    padding-top: 1rem; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem; color: var(--text-muted);
    letter-spacing: 0.02em;
}
.footer-bottom-left {
    display: flex; align-items: center;
}
.footer-bottom-right {
    display: flex; align-items: center; gap: 1rem;
}
.footer-keyword {
    color: #6bd0ff;
    opacity: 0.7;
}
.footer-builtin {
    color: #d4b55a;
    opacity: 0.8;
}
.footer-op {
    opacity: 0.6;
}
.footer-if {
    font-size: 0.68rem;
}
.footer-runtime {
    opacity: 0.6;
}
.footer-blink {
    animation: blink 1s step-end infinite;
}

@media (max-width: 900px) {
    .about-split { grid-template-columns: 1fr; }
    .about-terminal { max-width: 100%; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .pipeline { flex-direction: column; align-items: center; }
    .pipeline-step { max-width: 100%; width: 100%; }
    .pipeline-arrow { transform: rotate(90deg); padding: 0.5rem 0; }
    .arch-tier-split { flex-direction: column; gap: 0; align-items: center; }
    .arch-container { min-width: 0; width: 100%; }
    .arch-node { min-width: 0; padding: 0.6rem 0.8rem; }
    .arch-node span { font-size: 0.6rem; }
    .arch-conn-h { width: 2px; height: 28px; }
    .arch-conn-h .arch-h-line { width: 1px; height: 100%; background: linear-gradient(180deg, var(--border), transparent); top: 0; left: 50%; transform: translateX(-50%); }
    .arch-h-dot { top: 0; left: 50%; transform: translateX(-50%); animation-name: pipeDrop; }
    @keyframes dotMove {
        0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
        50% { transform: translateX(-50%) translateY(23px); opacity: 1; }
    }
    .footer-stats { flex-wrap: wrap; gap: 0.5rem; max-width: 100%; padding: 0.5rem; }
    .footer-stat-divider { display: none; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-inner { height: 56px; }
    .nav-links {
        display: none;
        position: absolute; top: 56px; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        gap: 0;
        background: rgba(10,10,15,0.97);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 1rem 1rem;
        backdrop-filter: blur(16px);
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        display: block; padding: 0.6rem 0.5rem;
        border-bottom: 1px solid rgba(201,168,76,0.08);
    }
    .nav-links li:last-child a { border-bottom: none; }
    .container { padding: 2rem 1rem 4rem; }
    .hero { padding: 3rem 1rem 2.5rem; min-height: auto; }
    .skills-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .about-card { padding: 1.5rem; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal,
    .skill-card,
    .project-card {
        opacity: 1;
        transform: none;
    }
    .loading-overlay {
        transition: none;
    }
}
