﻿:root {
    --bg-900: #08131d;
    --bg-800: #0e1f2e;
    --bg-700: #142a3c;
    --text-100: #f4f7fb;
    --text-300: #b6c3d1;
    --accent: #19d3a6;
    --accent-2: #ff8b3d;
    --line: rgba(255, 255, 255, 0.1);
    --terminal-bg: rgba(3, 11, 18, 0.85);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text-100);
    background: var(--bg-900);
    font-family: 'IBM Plex Mono', monospace;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    background: linear-gradient(160deg, var(--bg-900) 0%, var(--bg-800) 50%, var(--bg-700) 100%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, black 42%, transparent 82%);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}

.bg-glow-a {
    width: 460px;
    height: 460px;
    top: -120px;
    left: -100px;
    background: rgba(25, 211, 166, 0.35);
    animation: floatGlow 14s ease-in-out infinite;
}

.bg-glow-b {
    width: 420px;
    height: 420px;
    right: -80px;
    bottom: -140px;
    background: rgba(255, 139, 61, 0.28);
    animation: floatGlow 12s ease-in-out infinite reverse;
}

.bg-dust {
    position: absolute;
    inset: 0;
}

.bg-dust span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    animation: dustFloat linear infinite;
}

.hero {
    min-height: 100svh;
    padding: 2.2rem 4vw 3rem;
    display: flex;
    flex-direction: column;
}

.hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-300);
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
    border-color: var(--accent);
    color: var(--text-100);
    transform: translateY(-2px);
}

.hero-inner {
    width: min(1180px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 4rem);
}

.hero-copy {
    max-width: 590px;
}

.eyebrow {
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 1rem;
}

.hero-copy h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.hero-desc {
    color: var(--text-300);
    line-height: 1.8;
    max-width: 46ch;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.72rem 1.2rem;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
    background: var(--accent);
    color: #052116;
    font-weight: 500;
    box-shadow: 0 12px 24px rgba(25, 211, 166, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(25, 211, 166, 0.35);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--text-300);
}

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

.hero-visual {
    justify-self: center;
    display: grid;
    place-items: center;
    gap: 1rem;
}

.avatar-shell {
    position: relative;
    width: min(74vw, 390px);
    aspect-ratio: 1;
    border-radius: 24px;
    padding: 0.8rem;
    background: linear-gradient(140deg, rgba(25, 211, 166, 0.26), rgba(255, 139, 61, 0.2));
    box-shadow: var(--shadow);
    isolation: isolate;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    filter: saturate(1.04) contrast(1.02);
}

.orbit {
    position: absolute;
    inset: -8px;
    border: 1px solid transparent;
    border-radius: 26px;
    pointer-events: none;
}

.orbit-a {
    border-top-color: rgba(25, 211, 166, 0.8);
    border-right-color: rgba(25, 211, 166, 0.28);
    animation: orbitSpin 12s linear infinite;
}

.orbit-b {
    inset: -16px;
    border-radius: 34px;
    border-bottom-color: rgba(255, 139, 61, 0.7);
    border-left-color: rgba(255, 139, 61, 0.24);
    animation: orbitSpin 9s linear infinite reverse;
}

.avatar-tag {
    color: var(--text-300);
    letter-spacing: 0.08em;
    font-size: 0.86rem;
}

main {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding-bottom: 5rem;
}

.section {
    border-top: 1px solid var(--line);
    padding: clamp(2rem, 6vw, 4.5rem) 0;
}

.section-head {
    margin-bottom: 1.4rem;
}

.section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 0.6rem;
}

.section-head p,
.section-cta p {
    color: var(--text-300);
    line-height: 1.8;
}

.github-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.metric-item {
    padding: 0.75rem 0.8rem;
    border-bottom: 1px solid rgba(25, 211, 166, 0.25);
}

.metric-label {
    display: block;
    color: var(--text-300);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.45rem;
}

.metric-value {
    font-size: 1.34rem;
    font-weight: 500;
}

.github-status {
    color: var(--text-300);
    margin-bottom: 1.4rem;
    font-size: 0.9rem;
}

.github-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 1.8rem;
}

.sub-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
}

.repo-stream,
.lang-stream {
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.repo-item,
.lang-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.82rem 0;
}

.repo-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.repo-name {
    font-size: 0.98rem;
    color: var(--text-100);
}

.repo-name:hover {
    color: var(--accent);
}

.repo-meta {
    color: var(--text-300);
    font-size: 0.8rem;
}

.repo-desc {
    color: var(--text-300);
    line-height: 1.6;
    font-size: 0.88rem;
}

.repo-empty {
    color: var(--text-300);
    padding: 0.95rem 0;
}

.lang-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
}

.lang-name,
.lang-count {
    color: var(--text-300);
    font-size: 0.86rem;
}

.lang-bar {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.lang-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.skill-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    list-style: none;
    margin-bottom: 1.2rem;
}

.skill-line li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-bottom: 1px solid rgba(25, 211, 166, 0.28);
    color: var(--text-300);
}

.stack-summary {
    color: var(--text-300);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-row a,
.social-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-300);
    font-size: 0.94rem;
}

.social-row a:hover {
    color: var(--text-100);
}

.terminal-shell {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--terminal-bg);
    backdrop-filter: blur(7px);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(7, 18, 28, 0.88);
}

.window-controls {
    display: flex;
    gap: 0.4rem;
}

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

.red { background: #ff5f57; }
.yellow { background: #febc2e; }
.green { background: #28c840; }

.terminal-title {
    color: var(--text-300);
    font-size: 0.85rem;
}

.terminal-body {
    padding: 1rem;
}

.terminal-log {
    min-height: 170px;
    max-height: 320px;
    overflow-y: auto;
    display: grid;
    gap: 0.45rem;
    padding-bottom: 0.9rem;
}

.log-line {
    color: var(--text-300);
    line-height: 1.65;
    word-break: break-word;
}

.log-line.prompt,
.prompt {
    color: var(--accent);
}

.command-input {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.9rem;
}

#command {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-100);
    font-family: inherit;
    font-size: 0.95rem;
}

#command::placeholder {
    color: rgba(182, 195, 209, 0.72);
}

.section-cta {
    display: grid;
    gap: 1rem;
    padding-bottom: 1rem;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.delay-1 {
    transition-delay: 0.13s;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes orbitSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatGlow {
    0%,
    100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(22px, -16px) scale(1.07); }
}

@keyframes dustFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10%,
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-120px) scale(1.35);
        opacity: 0;
    }
}

@media (max-width: 930px) {
    .hero-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-copy {
        order: 2;
    }

    .hero-visual {
        order: 1;
        justify-self: start;
    }

    .avatar-shell {
        width: min(70vw, 320px);
    }

    .github-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .github-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 1.4rem 5vw 2rem;
    }

    .hero-nav {
        padding-bottom: 1.4rem;
    }

    .hero-copy h1 {
        line-height: 1;
    }

    .hero-desc {
        margin-bottom: 1.35rem;
        line-height: 1.7;
    }

    .btn {
        width: 100%;
    }

    .social-row {
        gap: 0.75rem;
    }

    .terminal-log {
        max-height: 280px;
    }
}

