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

:root {
    --bg:       #0c0c0b;
    --surface:  #141413;
    --border:   #232320;
    --muted:    #4a4a46;
    --subtle:   #7a7a74;
    --text:     #e8e8e2;
    --accent:   #015a89;
    --mono: 'Geist Mono', monospace;
    --serif: 'Instrument Serif', serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.7;
    min-height: 100vh;
}

/* Layout */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */
nav {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 10;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--subtle);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    transition: color 0.15s;
}

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

/* Hero */
.hero {
    padding: 96px 0 72px;
    border-bottom: 1px solid var(--border);
}

.hero-tag {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-bio {
    max-width: 520px;
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.8;
}

/* Section */
section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
}

.section-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: 12px;
    color: var(--subtle);
    font-family: var(--mono);
    letter-spacing: 0.04em;
    background: transparent;
    transition: 
        border-color 0.15s,
        color 0.15s, 
        background 0.2s;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--accent);
}

.skill-tag.accent {
    border-color: var(--accent);
    color: var(--accent);
}

/* Projects */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 120px;
    align-items: center;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.project-item:first-child { border-top: 1px solid var(--border); }
.project-item:hover .project-name { color: var(--accent); }

.project-name {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
    transition: color 0.15s;
}

.project-lang {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.project-desc {
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.7;
}

.project-thumb {
    width: 120px;
    height: 88px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.project-item:hover .project-thumb img { opacity: 0.85; }

.project-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 55%);
    z-index: 1;
    border-radius: 4px;
}

@media (max-width: 500px) {
    .project-thumb { width: 80px; height: 64px; }
}

/* Footer / Contact */
footer {
    padding: 64px 0 80px;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    flex-direction: column;
    align-items: flex-start;
}

.contact-link {
    font-size: 13px;
    color: var(--subtle);
    text-decoration: none;
    font-family: var(--mono);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.15s;
}

.contact-link .cl {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    width: 64px;
    flex-shrink: 0;
}

.contact-link:hover { color: var(--accent); }
.contact-link:hover .cl { color: var(--accent); }

.footer-bottom {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* Fade-in animation */
@keyframes fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero, section, footer {
    animation: fadein 0.5s ease both;
    margin-top: -50px;
}

section:nth-child(2) { animation-delay: 0.05s; }
section:nth-child(3) { animation-delay: 0.10s; }
footer { animation-delay: 0.15s; }

@media (max-width: 500px) {
    nav .nav-links { gap: 16px; }
    .hero { padding: 60px 0 48px; }
    section { padding: 52px 0; }
}
