:root {
    color-scheme: dark;
    --ink: #e3eef1;
    --muted: #9aadb4;
    --paper: #0b151b;
    --surface: #12232b;
    --surface-raised: #172a33;
    --line: #293b43;
    --accent: #58d6d0;
    --accent-soft: #a1e7db;
    --accent-warm: #f0b36b;
    --accent-ink: #092126;
    --mono: "DM Mono", Consolas, monospace;
    --sans: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.65;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.topbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1180px;
    padding: 0 32px;
    margin: auto;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
}
.profile-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid rgba(88, 214, 208, 0.45);
    border-radius: 50%;
    object-fit: cover;
}
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 180ms ease;
}
.nav-links a:hover { color: var(--ink); }
.hero {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    color: var(--ink);
}
.hero::after {
    position: absolute;
    top: -210px;
    right: -120px;
    width: 590px;
    height: 590px;
    border: 1px solid rgba(88, 214, 208, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgba(88, 214, 208, 0.035), 0 0 0 96px rgba(88, 214, 208, 0.025);
    content: "";
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: center;
    gap: 64px;
    max-width: 1180px;
    min-height: 490px;
    padding: 76px 32px 86px;
    margin: auto;
}
.eyebrow, .section-kicker {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.73rem;
    letter-spacing: 0;
    text-transform: uppercase;
}
.hero h1 {
    max-width: 680px;
    margin: 18px 0 16px;
    font-size: clamp(2.75rem, 6vw, 5.1rem);
    line-height: 1.04;
    letter-spacing: 0;
}
.hero h1 span { color: var(--accent); }
.hero-copy {
    max-width: 610px;
    margin: 0;
    padding: 12px 15px;
    border-left: 2px solid var(--accent);
    background: rgba(227, 238, 241, 0.045);
    color: #b6c7cc;
    font-size: 1.02rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.button-icon { width: 16px; height: 16px; flex: 0 0 auto; margin-right: 7px; }
.button:hover { transform: translateY(-2px); background: #8be8df; }
.button-secondary { background: transparent; color: var(--ink); border-color: #52656d; }
.button-secondary:hover { background: var(--accent); color: var(--accent-ink); }
.code-window {
    position: relative;
    width: 100%;
    max-width: 425px;
    justify-self: end;
    border: 1px solid #36505a;
    background: var(--surface-raised);
    box-shadow: 18px 18px 0 rgba(88, 214, 208, 0.08);
    animation: arrive 700ms 120ms both;
}
.window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid #36505a;
    color: #a9bdc3;
    font: 0.7rem var(--mono);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #526a70; }
.window-dots i:first-child { background: var(--accent); }
.code-window pre {
    overflow-x: auto;
    margin: 0;
    padding: 25px 20px 27px;
    color: #dce9eb;
    font: 0.79rem/2 var(--mono);
}
.sql-keyword { color: var(--accent); }
.sql-table { color: var(--accent-soft); }
.sql-comment { color: var(--accent-warm); }
.code-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #36505a;
    color: #b6c8cc;
    font: 0.67rem var(--mono);
}
.code-status::before { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); content: ""; }
.content { max-width: 1180px; padding: 0 32px; margin: auto; }
.about {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 70px;
    padding: 88px 0 82px;
    border-bottom: 1px solid var(--line);
}
.section-title { margin: 8px 0 0; font-size: 2rem; line-height: 1.2; letter-spacing: 0; }
.about-copy { max-width: 690px; margin: 0; color: #c0cdd0; font-size: 1.02rem; }
.skills { padding: 70px 0 78px; border-bottom: 1px solid var(--line); }
.skills-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.skills-heading p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.skills-list { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.skill {
    min-height: 85px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.84rem;
    font-weight: 800;
}
.skill::before { color: var(--accent); font: 0.67rem var(--mono); content: "↗"; }
.projects { padding: 78px 0 92px; }
.projects-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.projects-heading p { max-width: 370px; margin: 0; color: var(--muted); font-size: 0.84rem; }
.project-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 0.8fr) minmax(260px, 1.2fr) auto;
    align-items: center;
    gap: 24px;
    padding: 25px 0;
    border-top: 1px solid var(--line);
}
.project-number { color: #80969d; font: 0.72rem var(--mono); }
.project-row h3 { margin: 0; font-size: 1.12rem; }
.project-row p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.project-link {
    white-space: nowrap;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.project-link:hover { color: var(--accent-soft); }
footer { background: #101e25; border-top: 1px solid var(--line); }
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1180px;
    min-height: 86px;
    padding: 18px 32px;
    margin: auto;
    color: #a5b6bb;
    font-size: 0.78rem;
}
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--accent); font-weight: 800; text-decoration: none; }
.about-copy, .skills-heading > p, .projects-heading > p, .project-row p {
    padding: 11px 14px;
    border-left: 2px solid rgba(88, 214, 208, 0.6);
    background: rgba(227, 238, 241, 0.035);
}
.skills-list { gap: 10px; border-top: 0; }
.skill {
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: var(--surface-raised);
}
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
    .topbar { height: auto; min-height: 68px; padding: 14px 22px; }
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.73rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 42px; padding: 66px 22px 72px; }
    .hero::after { top: -260px; right: -360px; }
    .code-window { justify-self: start; max-width: 480px; }
    .content { padding: 0 22px; }
    .about { grid-template-columns: 1fr; gap: 20px; padding: 66px 0; }
    .skills-heading, .projects-heading { align-items: start; flex-direction: column; }
    .skills-list { grid-template-columns: repeat(2, 1fr); column-gap: 20px; }
    .project-row { grid-template-columns: 38px 1fr auto; gap: 14px; }
    .project-row p { grid-column: 2 / 4; grid-row: 2; }
    .project-link { grid-column: 2 / 4; grid-row: 3; justify-self: start; }
    .footer-inner { align-items: flex-start; flex-direction: column; padding: 22px; }
}
@media (max-width: 430px) {
    .topbar { align-items: flex-start; flex-direction: column; gap: 9px; }
    .nav-links { width: 100%; justify-content: space-between; }
    .hero h1 { font-size: 2.65rem; }
    .hero-copy { font-size: 0.93rem; }
    .code-window pre { font-size: 0.68rem; padding-inline: 13px; }
    .skills-list { grid-template-columns: 1fr 1fr; }
    .skill { font-size: 0.77rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
