@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Space+Grotesk:wght@300..700&display=swap");

:root {
    --bg: #fbfbfc;
    --surface: #ffffff;
    --surface2: #f4f5f7;
    --border: #e6e8ed;
    --text: #16181d;
    --muted: #5b606b;
    --faint: #9aa0ac;
    --accent: #0e9f6e;
    --accent-ink: #ffffff;
    --shadow: 0 30px 70px -38px rgba(20, 25, 40, 0.28);

    --font-title: "Space Grotesk", sans-serif;
    --font-terminal: "JetBrains Mono", ui-monospace, monospace;
    --font-base:
        "IBM Plex Sans", ui-sans-serif, system-ui, Helvetica, Arial, sans-serif;
}

[dark="true"] {
    --bg: #0c0d10;
    --surface: #131419;
    --surface2: #1a1c22;
    --border: #262931;
    --text: #e9eaee;
    --muted: #9094a0;
    --faint: #5e636f;
    --accent: #6ee7a8;
    --accent-ink: #06291b;
}

* {
    box-sizing: border-box;
    font-family: var(--font-base);
    color: var(--text);
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding: 1rem;
    scrollbar-width: none;
}

body {
    background-color: var(--bg);
    min-width: 17.5rem;
    transition: background 0.25s;
}

::selection {
    background-color: var(--accent);
    color: var(--accent-ink);
}

#main-header {
    border-bottom: 1px solid var(--border);
}

#main-header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1180px;
    margin: auto;
    padding: 16px 56px;
}

#main-header p {
    font-family: var(--font-terminal);
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    cursor: default;
}

#main-header button {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
}

#main-header button:hover,
#main-header button:focus {
    background-color: var(--border);
}

#main-header button svg {
    width: 1rem;
    fill: var(--text);
}

.section {
    max-width: 1180px;
    padding: 80px 56px;
    border-bottom: 1px solid var(--border);
    margin: 0 auto;
}

.command {
    color: var(--accent);
    font-family: var(--font-terminal);
    font-size: 14px;
    display: flex;
    gap: 7px;
    align-items: center;
}

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

.command .blink {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--accent);
    animation: blink 1.5s steps(1) infinite;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 32px;
    font-family: var(--font-title);
}

.section h3 {
    font-size: 30px;
    font-family: var(--font-title);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding-top: 120px;
    padding-bottom: 120px;
}

@keyframes fadeUp {
    0% {
        opacity: 0%;
        transform: translateY(10px);
    }
    100% {
        opacity: 100%;
        transform: translateY(0);
    }
}

.hero .command {
    animation: fadeUp 800ms 100ms both;
}

.hero h1 {
    animation: fadeUp 800ms 250ms both;
    font-size: clamp(48px, 8vw, 76px);
}

.hero .desc {
    animation: fadeUp 800ms 400ms both;
    color: var(--muted);
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 400;
    max-width: 600px;
    line-height: 1.45;
}

.hero .links {
    animation: fadeUp 800ms 550ms both;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 8px auto;
}

.hero .links a {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 26px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.25s;
}

.hero .links a:hover,
.hero .links a:focus {
    transform: translateY(-2px);
}

.hero .links a.cta {
    background-color: var(--accent);
    color: var(--accent-ink);
}

.hero .links a.cta svg {
    width: 16px;
    fill: var(--accent-ink);
}

.hero .tag {
    animation: fadeUp 800ms 700ms both;
    display: flex;
    gap: 12px;
    font-family: var(--font-terminal);
    color: var(--muted);
    font-size: 12px;
    align-items: center;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0px #0e9f6e30;
    }
    50% {
        box-shadow: 0 0 0 4px #0e9f6e30;
    }
    100% {
        box-shadow: 0 0 0 0px #0e9f6e30;
    }
}

.hero .tag span {
    background-color: var(--accent);
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    transform: translateY(1px);
    animation: pulse 2s infinite;
}

.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.about .content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex-wrap: wrap;
    align-items: stretch;
}

@media (min-width: 48rem) {
    .about .content {
        align-items: flex-start;
        flex-direction: row;
    }
}

.about .content .text {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1.5 1 0%;
    font-size: 1rem;
}

.about .content .text .lists {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.about .content .text .lists .type {
    display: flex;
    gap: 14px;
    align-items: center;
}

.about .content .text .lists .type p {
    color: var(--faint);
    font-family: var(--font-terminal);
    font-size: 12px;
    min-width: 80px;
}

.about .content .text .lists .type ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.about .content .text .lists .type li {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-terminal);
    font-weight: 500;
    font-size: 12px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 5px 10px;
    background: var(--surface);
}

.about .content .card {
    flex: 1 1 0%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 17px;
    box-shadow: var(--shadow);
    font-size: 14px;
}

.about .content .card .label {
    font-size: 11px;
    font-family: var(--font-terminal);
    color: var(--faint);
}

.projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.projects .content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.projects .content .card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

@media (min-width: 48rem) {
    .projects .content .card {
        flex-direction: row;
    }
}

.projects .content .card img {
    object-fit: cover;
    flex: 1.15 1 0%;
    background: var(--surface2);
    width: 100%;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 48rem) {
    .projects .content .card img {
        border-right: 1px solid var(--border);
    }
}

.projects .content .card .text {
    flex: 1 1 0%;
    padding: 38px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.projects .content .card .text .eyebrow {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-terminal);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 12px;
}

@keyframes expand {
    0% {
        box-shadow: 0 0 0 0px #0e9f6e80;
    }
    100% {
        box-shadow: 0 0 0 6px #0e9f6e00;
    }
}

.projects .content .card .text .eyebrow span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: var(--accent);
    animation: expand 1.5s infinite;
}

.projects .content .card .text .desc {
    color: var(--muted);
}

.projects .content .card .text .stack {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.projects .content .card .text .stack li {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-terminal);
    font-weight: 500;
    font-size: 12px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 5px 10px;
    background: var(--surface);
}

.projects .content .card .text a {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 26px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: transform 0.15s;
    background-color: var(--accent);
    color: var(--accent-ink);
}

.projects .content .card .text a:hover,
.projects .content .card .text a:focus {
    transform: translateY(-2px);
}

.projects .content .card .text a svg {
    width: 16px;
    fill: var(--accent-ink);
}

.projects .content .additional {
    display: flex;
    flex-direction: column;
}

.projects .content .additional .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: all 0.25s;
    padding: 26px 20px;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
}

.projects .content .additional .item:hover,
.projects .content .additional .item:focus {
    background-color: var(--surface);
    cursor: pointer;
}

.projects .content .additional .item .text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.projects .content .additional .item .text p {
    font-size: 12px;
    color: var(--faint);
}

.projects .content .additional .item .text .top {
    display: flex;
    gap: 12px;
    align-items: center;
}

.projects .content .additional .item .text .top h3 {
    font-size: 21px;
}

.projects .content .additional .item .text .top p {
    font-size: 13.5px;
    color: var(--muted);
    position: relative;
    top: 1px;
}

.projects .content .additional .item .link {
    display: flex;
    gap: 8px;
    color: var(--accent);
    font-size: 14px;
    font-family: var(--font-terminal);
}

.projects .content .additional .item .link svg {
    width: 16px;
    fill: var(--accent);
}

.experience {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.experience .content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.experience .content .entry {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    width: 100%;
}

@media (min-width: 40rem) {
    .experience .content .entry {
        flex-direction: row;
    }
}

.experience .content .entry .text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 0%;
}

.experience .content .entry .text h3 {
    font-size: 19px;
    margin-bottom: 2px;
}

.experience .content .entry .text .details {
    font-family: var(--font-terminal);
    color: var(--faint);
    font-size: 13px;
}

.experience .content .entry .text .details span {
    color: var(--accent);
}

.experience .content .entry .text .desc {
    font-size: 15px;
    color: var(--muted);
    max-width: 590px;
}

.experience .content .entry .date {
    font-size: 12px;
    font-family: var(--font-terminal);
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding-top: 120px;
    padding-bottom: 120px;
    border: none;
}

.contact h2 {
    margin-bottom: 0;
    font-size: clamp(36px, 5vw, 52px);
}

.contact .desc {
    font-size: 17px;
    color: var(--muted);
    max-width: 480px;
}

.contact .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 8px auto;
}

.contact .links a {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 26px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.25s;
}

.contact .links a:hover,
.contact .links a:focus {
    transform: translateY(-2px);
}

.contact .links a.cta {
    background-color: var(--accent);
    color: var(--accent-ink);
}

.contact .links a svg {
    width: 16px;
    fill: var(--text);
}

.contact .links a.cta svg {
    fill: var(--accent-ink);
}

#main-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

#main-footer .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1180px;
    margin: auto;
    padding: 32px 56px;
    font-size: 13px;
}

#main-footer .inner .links {
    display: flex;
    gap: 12px;
}

#main-footer .inner p,
#main-footer .inner span,
#main-footer .inner .links a {
    color: var(--muted);
    text-decoration: none;
}
