@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: rgba(16, 16, 16, 0.85);
    --bg-terminal: #0d1117;
    --green-neon: #00ff88;
    --green-dim: #00cc6a;
    --green-muted: #1a7a4a;
    --blue-electric: #58a6ff;
    --purple-soft: #bc8cff;
    --orange-warn: #ffab40;
    --red-error: #ff6b6b;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --border-color: rgba(0, 255, 136, 0.1);
    --border-dim: #21262d;
    --glow-green: 0 0 20px rgba(0, 255, 136, 0.2);
    --glow-strong: 0 0 30px rgba(0, 255, 136, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Scanline effect */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 136, 0.1) 2px, rgba(0, 255, 136, 0.1) 4px);
}

/* Dot grid */
.bg-dots {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle, var(--green-neon) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.08;
    z-index: 0;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: var(--green-neon);
    top: -10%;
    left: 30%;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--blue-electric);
    bottom: -10%;
    right: 10%;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dim);
    padding: 0.7rem 0;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-neon);
}

.nav-logo .cursor {
    animation: blink 1s step-end infinite;
    color: var(--green-neon);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::before {
    content: '~/';
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--green-neon);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 22px;
    height: 1.5px;
    background: var(--green-neon);
    transition: all 0.3s;
}

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 360px;
    align-items: center;
    gap: 4rem;
}

.hero-prefix {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.hero-prefix .path {
    color: var(--blue-electric);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
}

.neon {
    color: var(--green-neon);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.hero-role {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--green-dim);
    margin-bottom: 1.25rem;
}

.hero-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--green-neon);
    color: #000;
}

.btn-primary:hover {
    box-shadow: var(--glow-strong);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--green-neon);
    border: 1.5px solid var(--green-neon);
}

.btn-outline:hover {
    background: rgba(0, 255, 136, 0.08);
    transform: translateY(-2px);
}

/* Contact */
.contact-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.c-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.c-chip svg {
    width: 13px;
    height: 13px;
    stroke: var(--green-dim);
    fill: none;
    stroke-width: 2;
}

/* Terminal Card */
.terminal-card {
    background: var(--bg-terminal);
    border: 1px solid var(--border-dim);
    border-radius: 10px;
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #161b22;
    border-bottom: 1px solid var(--border-dim);
}

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

.terminal-dot.r {
    background: #ff5f56;
}

.terminal-dot.y {
    background: #ffbd2e;
}

.terminal-dot.g {
    background: #27c93f;
}

.terminal-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.terminal-body {
    padding: 1.25rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    line-height: 1.9;
}

.terminal-body .prompt {
    color: var(--green-neon);
}

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

.terminal-body .comment {
    color: var(--text-muted);
}

.terminal-body .val {
    color: var(--blue-electric);
}

.terminal-body .str {
    color: var(--orange-warn);
}

/* Section */
.section {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
}

.section-tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.68rem;
    color: var(--green-dim);
    margin-bottom: 0.5rem;
}

.section-tag::before {
    content: '## ';
    color: var(--text-muted);
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.section-line {
    width: 50px;
    height: 2px;
    background: var(--green-neon);
    margin-top: 0.75rem;
    box-shadow: var(--glow-green);
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 4rem;
}

.stat-box {
    text-align: center;
    padding: 1.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 10px;
    transition: all 0.3s;
}

.stat-box:hover {
    border-color: var(--green-neon);
    box-shadow: var(--glow-green);
    transform: translateY(-3px);
}

.stat-num {
    font-family: 'Fira Code', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--green-neon);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.25);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 0.4rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--green-neon), var(--blue-electric), transparent);
}

.tl-item {
    position: relative;
    margin-bottom: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    transition: all 0.3s;
}

.tl-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateX(4px);
    box-shadow: var(--glow-green);
}

.tl-item::before {
    content: '';
    position: absolute;
    left: -2.8rem;
    top: 1.8rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green-neon);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--green-neon);
}

.tl-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.tl-role {
    font-size: 1.05rem;
    font-weight: 800;
}

.tl-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--green-neon);
    background: rgba(0, 255, 136, 0.08);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    white-space: nowrap;
}

.tl-company {
    font-size: 0.85rem;
    color: var(--blue-electric);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.tl-list {
    list-style: none;
}

.tl-list li {
    color: var(--text-secondary);
    font-size: 0.82rem;
    padding: 0.2rem 0 0.2rem 1.2rem;
    position: relative;
    line-height: 1.6;
}

.tl-list li::before {
    content: '$';
    position: absolute;
    left: 0;
    font-family: 'Fira Code', monospace;
    color: var(--green-dim);
    font-weight: 700;
}

/* Skills */
.skills-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.sk-block-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sk-block-title .icon {
    font-size: 1rem;
}

.sk-block-title.green {
    color: var(--green-neon);
}

.sk-block-title.blue {
    color: var(--blue-electric);
}

.sk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sk-tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.sk-tag.green {
    background: rgba(0, 255, 136, 0.06);
    color: var(--green-dim);
    border: 1px solid rgba(0, 255, 136, 0.12);
}

.sk-tag.green:hover {
    background: rgba(0, 255, 136, 0.12);
    color: var(--green-neon);
    border-color: rgba(0, 255, 136, 0.3);
}

.sk-tag.blue {
    background: rgba(88, 166, 255, 0.06);
    color: var(--blue-electric);
    border: 1px solid rgba(88, 166, 255, 0.12);
}

.sk-tag.blue:hover {
    background: rgba(88, 166, 255, 0.12);
    border-color: rgba(88, 166, 255, 0.3);
}

/* Projects */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.proj-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
}

.proj-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--green-neon), var(--blue-electric));
}

.proj-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--glow-green);
}

.proj-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
}

.proj-name {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.proj-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--green-dim);
    margin-bottom: 0.6rem;
}

.proj-desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
}

/* Education */
.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 450px;
    transition: all 0.3s;
}

.edu-card:hover {
    border-color: rgba(88, 166, 255, 0.3);
    transform: translateY(-3px);
}

.edu-degree {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.edu-school {
    font-size: 0.85rem;
    color: var(--blue-electric);
}

.edu-year {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Languages */
.lang-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lang-chip {
    font-family: 'Fira Code', monospace;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.12);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.lang-chip:hover {
    border-color: var(--green-neon);
    color: var(--green-neon);
    transform: translateY(-2px);
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-dim);
}

footer p {
    font-family: 'Fira Code', monospace;
    color: var(--text-muted);
    font-size: 0.75rem;
}

footer .neon {
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-bio {
        max-width: 100%;
    }

    .terminal-card {
        order: -1;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-split {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.97);
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-dim);
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .proj-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 1.25rem;
    }
}