/**
 * ===== Portfolio Stylesheet =====
 * Terminal lo-fi aesthetic — monospace meets dark workstation
 * @author Manolito016  @version 2.0.0
 */

/* ===== 1. CSS Variables ===== */
:root {
    --bg-0: #080b0f;
    --bg-1: #0d1117;
    --bg-2: #161b22;
    --bg-3: #1e2530;
    --text-0: #e8edf3;
    --text-1: #8b949e;
    --text-2: #4d5566;
    --green: #39d353;
    --green-dim: #1a6628;
    --cyan: #58e6d9;
    --amber: #f0a832;
    --red: #ff6b6b;
    --blue: #58a6ff;
    --purple: #bc8cff;
    --accent: #39d353;
    --accent-glow: rgba(57, 211, 83, 0.18);
    --border: rgba(255,255,255,0.07);
    --border-bright: rgba(57, 211, 83, 0.35);
    --font-mono: 'Space Mono', 'Courier New', monospace;
    --font-sans: 'DM Sans', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: 0.25s var(--ease);
}

/* ===== 2. Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    background: var(--bg-0);
    color: var(--text-0);
    line-height: 1.65;
    overflow-x: hidden;
    cursor: none;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== 3. Custom Cursor ===== */
.cursor {
    position: fixed;
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, opacity 0.2s, width 0.2s, height 0.2s;
    mix-blend-mode: screen;
}

.cursor-trail {
    position: fixed;
    width: 32px; height: 32px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.35s var(--ease), opacity 0.3s;
    opacity: 0.45;
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 20px; height: 20px; }

/* ===== 4. Scanlines & Noise ===== */
.scanlines {
    position: fixed; inset: 0; z-index: 9990; pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px, transparent 2px,
        rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px
    );
    animation: scanMove 8s linear infinite;
    opacity: 0.4;
}

@keyframes scanMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

.noise {
    position: fixed; inset: 0; z-index: 9989; pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: noiseAnim 0.3s steps(1) infinite;
}

@keyframes noiseAnim {
    0%  { background-position: 0 0; }
    20% { background-position: -50px -20px; }
    40% { background-position: 10px 40px; }
    60% { background-position: -30px 10px; }
    80% { background-position: 40px -30px; }
    100%{ background-position: 0 0; }
}

/* ===== 5. Navigation ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(8, 11, 15, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-bracket { color: var(--text-2); }
.logo-name { color: var(--text-0); }
.logo-accent { color: var(--accent); }
.logo-cursor {
    color: var(--accent);
    animation: blink 1.1s step-end infinite;
    margin-left: 1px;
}

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

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-1);
    padding: 6px 14px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::before {
    content: attr(data-index) ' ';
    color: var(--text-2);
    font-size: 0.65rem;
}

.nav-links a:hover {
    color: var(--accent);
    background: var(--accent-glow);
}

.nav-links a.active { color: var(--accent); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 22px; height: 2px;
    background: var(--text-0);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

/* ===== 6. Section Label ===== */
.section-label {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-2);
    margin-bottom: 48px;
}

.label-num { color: var(--green-dim); }
.label-text { color: var(--text-2); }

/* ===== 7. Hero Section ===== */
.hero {
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-bg-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(57,211,83,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57,211,83,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-glow {
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(57,211,83,0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative; z-index: 1;
}

.status-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(57,211,83,0.08);
    border: 1px solid rgba(57,211,83,0.2);
    border-radius: 20px;
    padding: 5px 14px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.status-dot {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(57,211,83,0.5); }
    50% { box-shadow: 0 0 0 5px rgba(57,211,83,0); }
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.line-label {
    color: var(--text-2);
    font-size: 0.6em;
    vertical-align: top;
    margin-top: 0.2em;
    display: inline-block;
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--text-0);
}

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

.glitch::before {
    color: var(--cyan);
    animation: glitch1 3.5s infinite steps(1);
    clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
}

.glitch::after {
    color: var(--red);
    animation: glitch2 3.5s infinite steps(1);
    clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
}

@keyframes glitch1 {
    0%,80%,100% { transform: translate(0); opacity: 0; }
    82% { transform: translate(-3px, 1px); opacity: 1; }
    84% { transform: translate(3px, -1px); opacity: 1; }
    86% { transform: translate(0); opacity: 0; }
}

@keyframes glitch2 {
    0%,82%,100% { transform: translate(0); opacity: 0; }
    84% { transform: translate(3px, 1px); opacity: 1; }
    86% { transform: translate(-3px, -1px); opacity: 1; }
    88% { transform: translate(0); opacity: 0; }
}

.hero-role {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--accent);
    margin-bottom: 20px;
    min-height: 1.6em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.role-prefix { color: var(--text-2); }

.role-blink {
    animation: blink 0.9s step-end infinite;
    color: var(--accent);
    font-size: 1.1em;
    line-height: 1;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-1);
    max-width: 460px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--bg-0);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 6px;
    transition: var(--transition);
    border: none; cursor: pointer;
}

.btn-primary:hover {
    background: #4eff6a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(57,211,83,0.3);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-0);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 12px 22px;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    background: var(--accent-glow);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-mono);
}

.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.2rem; color: var(--text-0); font-weight: 700; }
.stat-label { font-size: 0.68rem; color: var(--text-2); }
.stat-divider { color: var(--text-2); font-size: 1.2rem; }

/* Terminal Window */
.terminal-window {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
    animation: floatWindow 6s ease-in-out infinite;
}

@keyframes floatWindow {
    0%, 100% { transform: translateY(0px) rotate(0.5deg); }
    50% { transform: translateY(-10px) rotate(-0.5deg); }
}

.terminal-header {
    background: var(--bg-2);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 6px; }
.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

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

.terminal-body { padding: 20px 24px; }

.terminal-code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.9;
    color: var(--text-1);
    white-space: pre;
    min-height: 180px;
}

.terminal-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 6px 16px;
    display: flex;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-2);
}

/* Terminal syntax colors */
.t-kw { color: var(--purple); }
.t-var { color: var(--cyan); }
.t-key { color: var(--blue); }
.t-str { color: var(--amber); }
.t-fn { color: var(--green); }
.t-cmt { color: var(--text-2); font-style: italic; }
.t-num { color: #ff9a00; }

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-2);
    animation: fadeInUp 1s ease 1.5s both;
    z-index: 1;
}

.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--text-2), transparent);
    animation: scrollDrop 1.5s ease-in-out infinite;
}

@keyframes scrollDrop {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== 8. About Section ===== */
.about {
    padding: 100px 0;
    background: var(--bg-1);
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-heading {
    margin-bottom: 48px;
}

.about-heading h2 {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.about-sub {
    font-size: 0.9rem;
    color: var(--text-2);
    font-family: var(--font-mono);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.about-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 0 30px var(--accent-glow);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.card-emoji { font-size: 1.6rem; }

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    background: rgba(57,211,83,0.1);
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid rgba(57,211,83,0.2);
}

.about-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-0);
}

.about-card p {
    font-size: 0.88rem;
    color: var(--text-1);
    margin-bottom: 16px;
    line-height: 1.7;
}

.card-bar {
    height: 2px;
    background: var(--bg-3);
    border-radius: 2px;
    overflow: hidden;
}

.card-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-dim), var(--accent));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease) 0.3s;
}

.about-card.visible .card-bar-fill { transform: scaleX(1); }

/* ===== 9. Tech Stack ===== */
.stack {
    padding: 100px 0;
    background: var(--bg-0);
}

.stack-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.stack-inner h2 {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.stack-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(16px);
}

.stack-item.visible { opacity: 1; transform: translateY(0); }

.stack-item:hover {
    border-color: var(--border-bright);
    transform: translateY(-3px);
    background: var(--bg-3);
}

.stack-icon {
    width: 42px; height: 42px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.stack-icon.js { background: #F7DF1E; color: #000; }
.stack-icon.ts { background: #3178C6; }
.stack-icon.html { background: #E34F26; }
.stack-icon.css { background: #1572B6; }
.stack-icon.git { background: #F05032; }
.stack-icon.github { background: #161b22; border: 1px solid var(--border); }
.stack-icon.github svg { width: 22px; height: 22px; fill: white; }

.stack-info { display: flex; flex-direction: column; }
.stack-name { font-size: 0.88rem; font-weight: 600; color: var(--text-0); }
.stack-level { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-2); }

/* ===== 10. Projects ===== */
.projects {
    padding: 100px 0;
    background: var(--bg-1);
}

.projects-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.projects-inner h2 {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 32px;
}

.project-item {
    display: grid;
    grid-template-columns: 60px 1fr 120px;
    align-items: start;
    gap: 24px;
    padding: 32px 24px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-20px);
}

.project-item:first-child { border-radius: 10px 10px 4px 4px; }
.project-item:last-child { border-radius: 4px 4px 10px 10px; }

.project-item.visible { opacity: 1; transform: translateX(0); }

.project-item:hover {
    border-color: var(--border-bright);
    background: var(--bg-3);
    box-shadow: 0 0 40px var(--accent-glow);
}

.project-num {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bg-3);
    line-height: 1;
    padding-top: 4px;
    transition: color var(--transition);
    user-select: none;
}

.project-item:hover .project-num { color: var(--accent); }

.project-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.project-lang {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 3px;
}

.ts-dot { background: rgba(49,120,198,0.2); color: #58a6ff; border: 1px solid rgba(49,120,198,0.3); }
.js-dot { background: rgba(247,223,30,0.15); color: #f0c000; border: 1px solid rgba(247,223,30,0.25); }

.project-type {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-2);
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

.project-title a {
    color: var(--text-0);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}

.project-title a:hover { color: var(--accent); }
.project-title a svg { opacity: 0; transition: opacity var(--transition); }
.project-title a:hover svg { opacity: 1; }

.project-desc {
    font-size: 0.9rem;
    color: var(--text-1);
    margin-bottom: 16px;
    line-height: 1.75;
    max-width: 520px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-2);
    background: var(--bg-1);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 3px;
}

.project-visual {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 4px;
}

.proj-decoration {
    width: 64px; height: 64px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.proj-decoration .proj-icon { font-size: 1.8rem; }
.project-item:hover .proj-decoration { border-color: var(--border-bright); }

.projects-cta {
    display: flex;
    justify-content: center;
}

/* ===== 11. Contact ===== */
.contact {
    padding: 100px 0;
    background: var(--bg-0);
}

.contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.contact-left h2 {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.contact-left p {
    font-size: 1rem;
    color: var(--text-1);
    line-height: 1.8;
    margin-bottom: 24px;
}

.contact-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 6px;
}

.cn-prefix { color: var(--text-2); }
.cn-text { color: var(--amber); }

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 22px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--border-bright);
    transform: translateX(6px);
    background: var(--bg-3);
}

.cc-icon {
    width: 44px; height: 44px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cc-icon svg { width: 20px; height: 20px; }
.email-icon svg { stroke: var(--text-1); }

.cc-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cc-label {
    font-size: 0.78rem;
    color: var(--text-2);
    font-family: var(--font-mono);
}

.cc-handle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-0);
}

.cc-arrow {
    color: var(--text-2);
    transition: transform var(--transition), color var(--transition);
}

.contact-card:hover .cc-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* ===== 12. Footer ===== */
.footer {
    background: var(--bg-1);
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.footer-logo { color: var(--accent); font-weight: 700; }
.footer-line { color: var(--text-2); }
.footer-sub { color: var(--text-2); }

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-2);
}

.footer-sep { opacity: 0.4; }

/* ===== 13. Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero load animations */
.hero-left > * {
    animation: fadeInUp 0.6s ease both;
}

.status-bar { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-role { animation-delay: 0.3s; }
.hero-desc { animation-delay: 0.4s; }
.hero-actions { animation-delay: 0.5s; }
.hero-stats { animation-delay: 0.6s; }
.terminal-window { animation: fadeInUp 0.7s ease 0.4s both, floatWindow 6s ease-in-out 1.2s infinite; }

/* ===== 14. Responsive ===== */
@media (max-width: 900px) {
    .hero-inner,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .terminal-window { max-width: 500px; margin: 0 auto; }

    .project-item { grid-template-columns: 50px 1fr; }
    .project-visual { display: none; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: 60px; left: 0; right: 0;
        background: var(--bg-1);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav-links.active { display: flex; }
    .nav-links a { padding: 10px 14px; border-radius: 6px; }

    .hero { padding: 100px 0 60px; }
    .hero-title { font-size: 2rem; }

    .stack-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

    .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .cursor, .cursor-trail { display: none; }
    body { cursor: auto; }
}