
:root {
    --ink: #171717;
    --muted: #777;
    --line: #e8e8e8;
    --paper: #fff;
    --soft: #f7f7f5;
    --accent: #c9f36a;
}

/* ==============================
   Global Styles
================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
}

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

.container {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

/* ==============================
   Header & Navigation
================================= */

.site-header {
    height: 78px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .9);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
}

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

.brand {
    font: 700 26px 'Space Grotesk';
    letter-spacing: -2px;
}

.brand span {
    color: #8dbb32;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 13px;
    font-weight: 600;
}

.nav-links > a:not(.nav-contact) {
    color: #666;
}

.nav-links > a:hover {
    color: #111;
}

.nav-contact {
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 10px 17px;
}

.nav-contact span {
    margin-left: 8px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 24px;
    cursor: pointer;
}

/* ==============================
   Hero Section
================================= */

.hero {
    min-height: 690px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    position: relative;
    padding-top: 60px;
    padding-bottom: 100px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #f5f8ef;
    border: 1px solid #e7eedb;
    border-radius: 30px;
    padding: 7px 13px;
    font-size: 11px;
    color: #50652e;
    margin-bottom: 34px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8cbd3c;
    display: inline-block;
}

.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #888;
    margin: 0 0 18px;
}

.hero h1,
.section-heading h2 {
    font: 600 clamp(48px, 6vw, 76px)/1.04 'Space Grotesk';
    letter-spacing: -4px;
    margin: 0;
}

.hero h1 span {
    color: #999;
}

.hero-description {
    font-size: 16px;
    color: #777;
    max-width: 450px;
    margin: 25px 0 30px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 14px 20px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    transition: transform .2s, background .2s;
}

.button:hover {
    transform: translateY(-3px);
}

.button-dark {
    background: var(--ink);
    color: #fff;
}

.button-dark:hover {
    background: #333;
}

.text-link {
    font-size: 12px;
    font-weight: 700;
}

.text-link span {
    margin-left: 8px;
}

.social-links {
    display: flex;
    gap: 22px;
    margin-top: 65px;
}

.social-links a {
    font-size: 11px;
    color: #888;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
}

/* ==============================
   Hero Visual
================================= */

.hero-visual {
    height: 440px;
    position: relative;
    display: grid;
    place-items: center;
}

.visual-grid {
    position: absolute;
    inset: 10px;
    background-image:
        linear-gradient(#eee 1px, transparent 1px),
        linear-gradient(90deg, #eee 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse, #000 20%, transparent 72%);
}

.orbit {
    position: absolute;
    border: 1px solid #e4e4e4;
    border-radius: 50%;
    width: 390px;
    height: 390px;
}

.orbit-two {
    width: 320px;
    height: 320px;
    border-style: dashed;
}

.code-card {
    position: relative;
    z-index: 1;
    width: min(390px, 90%);
    background: #1d1d1d;
    color: #eee;
    border-radius: 9px;
    box-shadow: 0 28px 70px #0002;
    overflow: hidden;
    transform: rotate(-3deg);
}

.code-top {
    height: 43px;
    border-bottom: 1px solid #383838;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 15px;
}

.code-top > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #777;
}

.code-top small {
    margin-left: auto;
    color: #888;
    font-size: 10px;
}

.code-lines {
    padding: 19px 15px 14px;
    font: 11px/2.15 monospace;
}

.code-lines p {
    margin: 0;
    white-space: nowrap;
}

.code-lines i {
    font-style: normal;
    color: #666;
    display: inline-block;
    width: 25px;
}

.code-lines b {
    color: #d9a4ff;
}

.code-lines em {
    color: #83c8d9;
    font-style: normal;
}

.code-lines strong {
    color: #f1d28b;
}

.code-lines mark {
    background: none;
    color: #b8df82;
}

.code-footer {
    border-top: 1px solid #383838;
    padding: 11px 15px;
    font-size: 9px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-tag {
    position: absolute;
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 8px 25px #0000000b;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
}

.tag-top {
    top: 65px;
    right: 10px;
}

.tag-bottom {
    bottom: 55px;
    left: 0;
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 0;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #999;
}

.scroll-hint span {
    margin-left: 10px;
    color: #222;
}

/* ==============================
   Common Sections
================================= */

.section {
    padding-top: 115px;
    padding-bottom: 115px;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 70px;
}

.section-heading h2 {
    font-size: 48px;
    letter-spacing: -2.5px;
}

/* ==============================
   About Section
================================= */

.about-content {
    max-width: 650px;
}

.about-lead {
    font: 500 24px/1.4 'Space Grotesk';
    letter-spacing: -.5px;
    margin: 4px 0 18px;
}

.about-content > p:not(.about-lead) {
    color: #777;
    font-size: 14px;
    max-width: 610px;
}

.about-facts {
    display: flex;
    gap: 55px;
    margin-top: 42px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.about-facts div {
    display: flex;
    flex-direction: column;
}

.about-facts strong {
    font: 600 22px 'Space Grotesk';
}

.about-facts span {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
}

/* ==============================
   Skills Section
================================= */

.skills-section {
    display: block;
    background: var(--soft);
    padding-top: 100px;
    padding-bottom: 110px;
}

.skills-section .section-heading {
    margin-bottom: 42px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.skill-card {
    background: #fff;
    border: 1px solid #ededeb;
    padding: 24px 20px;
    min-height: 150px;
    transition: transform .2s, border .2s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #bbb;
}

.skill-number {
    font-size: 10px;
    color: #aaa;
}

.skill-card h3 {
    font: 600 19px 'Space Grotesk';
    margin: 23px 0 4px;
}

.skill-card p {
    font-size: 11px;
    color: #888;
    margin: 0;
}

/* Skills Table */

.skills-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-top: 30px;
    text-align: left;
}

.skills-table th,
.skills-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
    text-align: left;
}

.skills-table th:first-child,
.skills-table td:first-child {
    width: 30%;
}

.skills-table th:last-child,
.skills-table td:last-child {
    width: 70%;
}

.skills-table th {
    background: #171717;
    color: #fff;
    font-weight: 600;
}

.skills-table td:first-child {
    font-weight: 600;
}

.skills-table tbody tr:hover {
    background: #f5f5f5;
}

/* ==============================
   Projects Section
================================= */

.projects-heading {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.section-note {
    max-width: 300px;
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
}

.project-list {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
}

.project-card {
    display: grid;
    grid-template-columns: 70px 1fr 50px;
    gap: 25px;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.project-index {
    font-size: 11px;
    color: #aaa;
    padding-top: 5px;
}

.project-type {
    font-size: 9px;
    letter-spacing: 1.4px;
    color: #999;
    font-weight: 700;
    margin: 0 0 8px;
}

.project-info h3 {
    font: 600 27px 'Space Grotesk';
    margin: 0 0 8px;
    letter-spacing: -1px;
}

.project-info > p:not(.project-type) {
    font-size: 13px;
    color: #777;
    max-width: 650px;
    margin: 0;
}

.tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 17px;
}

.tags span {
    font-size: 9px;
    border: 1px solid #e5e5e5;
    padding: 5px 9px;
    border-radius: 20px;
    color: #666;
}

.project-arrow {
    width: 38px;
    height: 38px;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: all .2s;
}

.project-arrow:hover {
    background: #171717;
    color: #fff;
}

/* ==============================
   Contact Section
================================= */

.contact-section {
    background: #171717;
    color: #fff;
    padding: 100px 0 25px;
}

.contact-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: start;
    gap: 70px;
}

.contact-heading {
    max-width: 420px;
}

.contact-heading h2 {
    font: 600 clamp(48px, 6vw, 76px)/1.04 'Space Grotesk';
    letter-spacing: -4px;
    margin: 0 0 20px;
}

.contact-heading h2 span {
    color: #777;
}

.contact-heading > p:not(.eyebrow) {
    color: #999;
    font-size: 13px;
    max-width: 420px;
}

/* Contact Form */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group > label {
    font-size: 13px;
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
    font: inherit;
    font-size: 13px;
    outline: none;
    border-radius: 3px;
    transition: border-color .2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #aaa;
}

.contact-form textarea {
    resize: vertical;
}

.contact-options {
    display: flex;
    gap: 24px;
}

.contact-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
}

.contact-options input {
    accent-color: var(--accent);
}

.contact-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--accent);
    color: #171717;
    border: 1px solid var(--accent);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.contact-submit:hover {
    background: transparent;
    color: #fff;
}

.contact-response {
    font-size: 13px;
    color: var(--accent);
}

/* Contact Footer */

.contact-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #383838;
    margin-top: 100px;
    padding-top: 18px;
    color: #777;
    font-size: 10px;
}

.contact-bottom #year {
    color: inherit;
}

/* ==============================
   Responsive: Tablet & Mobile
================================= */

@media (max-width: 760px) {

    .container {
        width: min(100% - 36px, 560px);
    }

    /* Navigation */

    .site-header {
        height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 67px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 20px 24px 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .nav-links.open {
        display: flex;
    }

    /* Hero */

    .hero {
        grid-template-columns: 1fr;
        padding-top: 65px;
        padding-bottom: 90px;
        gap: 25px;
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero-visual {
        height: 350px;
        grid-row: 2;
    }

    .orbit {
        width: 310px;
        height: 310px;
    }

    .orbit-two {
        width: 250px;
        height: 250px;
    }

    .code-card {
        max-width: 340px;
    }

    .tag-top {
        right: 0;
        top: 25px;
    }

    .tag-bottom {
        bottom: 20px;
    }

    .social-links {
        margin-top: 40px;
    }

    .scroll-hint {
        bottom: 25px;
    }

    /* General Sections */

    .section {
        padding-top: 80px;
        padding-bottom: 80px;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-heading h2 {
        font-size: 43px;
    }

    /* About */

    .about-facts {
        gap: 25px;
        justify-content: space-between;
    }

    /* Skills */

    .skills-section {
        padding-top: 75px;
        padding-bottom: 80px;
    }

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

    .skills-table th,
    .skills-table td {
        padding: 12px 8px;
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    /* Projects */

    .projects-heading {
        display: block;
    }

    .section-note {
        margin-top: 22px;
    }

    .project-card {
        grid-template-columns: 30px 1fr 38px;
        gap: 10px;
        padding: 27px 0;
    }

    .project-info h3 {
        font-size: 23px;
    }

    /* Contact */

    .contact-section {
        padding-top: 75px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-heading h2 {
        font-size: 52px;
    }

    .contact-bottom {
        margin-top: 75px;
        gap: 15px;
        flex-wrap: wrap;
    }
}

/* ==============================
   Responsive: Small Mobile
================================= */

@media (max-width: 390px) {

    .hero h1 {
        font-size: 49px;
    }

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

    .about-facts {
        gap: 12px;
    }

    .about-facts strong {
        font-size: 18px;
    }

    .about-facts span {
        font-size: 9px;
    }

    .code-lines {
        font-size: 9px;
    }

    .code-card {
        width: 95%;
    }

    .contact-heading h2 {
        font-size: 45px;
    }
}
