* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #f3f1eb;
    --surface: #e9e6de;
    --surface-dark: #dedbd2;
    --text: #171717;
    --muted: #6e6b64;
    --line: #cbc7bd;
    --dark: #191919;
    --white: #f7f6f1;
    --accent: #b7d36b;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--text);
    color: var(--background);
}


/* ------------------------------
   HEADER
------------------------------ */

.site-header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
}

.nav-wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid rgba(23, 23, 23, 0.12);
}

.logo {
    font-family: "DM Mono", monospace;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -1px;
}

.logo span {
    color: #687b27;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 29px;
    margin-left: auto;
    margin-right: 38px;
}

.nav-link {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-button {
    border: 1px solid var(--text);
    padding: 10px 17px;
    font-size: 12px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.nav-button:hover {
    background: var(--text);
    color: var(--white);
}


/* ------------------------------
   HERO
------------------------------ */

.hero {
    min-height: 100vh;
    position: relative;
    padding: 150px 0 80px;

    display: flex;
    align-items: center;
}

.hero-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 90px;
    align-items: center;
}

.eyebrow {
    font-family: "DM Mono", monospace;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.8px;
    color: var(--muted);

    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 28px;
}

.status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    background: #7f9b31;
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(58px, 7vw, 96px);
    line-height: 0.94;
    letter-spacing: -5px;
    font-weight: 600;
    max-width: 850px;
}

.hero h1 span {
    color: #6c812b;
}

.hero-description {
    max-width: 560px;
    margin-top: 34px;

    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 11px;
    margin-top: 36px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    min-height: 48px;
    padding: 0 19px;

    font-size: 12px;
    border: 1px solid var(--text);

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.button-dark {
    background: var(--dark);
    color: var(--white);
}

.button-dark:hover {
    background: transparent;
    color: var(--text);
}

.button-light {
    background: transparent;
}

.button-light:hover {
    background: var(--dark);
    color: var(--white);
}

.hero-meta {
    margin-top: 76px;

    display: flex;
    gap: 36px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--muted);
    font-size: 11px;
}

.meta-number {
    font-family: "DM Mono", monospace;
    color: var(--text);
}


/* ------------------------------
   TERMINAL CARD
------------------------------ */

.hero-side {
    position: relative;
}

.terminal-card {
    background: #20201f;
    color: #e4e3dc;

    width: 100%;
    max-width: 430px;

    box-shadow: 15px 15px 0 #d9d6cc;
}

.terminal-top {
    height: 45px;
    padding: 0 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 5px;
}

.terminal-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #65645f;
}

.terminal-name {
    font-family: "DM Mono", monospace;
    font-size: 9px;
    color: #7f7d76;
}

.terminal-content {
    padding: 27px 22px 31px;

    font-family: "DM Mono", monospace;
    font-size: 11px;
    line-height: 2.5;
}

.terminal-content p {
    display: grid;
    grid-template-columns: 27px 85px auto;
}

.terminal-muted {
    color: #55544f;
}

.terminal-key {
    color: #a7a49a;
}

.terminal-value {
    color: #b6cc72;
}

.terminal-cursor {
    color: #b6cc72;
    margin-top: 7px;
}

.side-note {
    display: flex;
    gap: 20px;

    margin-top: 57px;
    margin-left: 22px;

    max-width: 330px;
}

.side-note-number {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    color: var(--muted);
}

.side-note p {
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: max(24px, calc((100% - 1180px) / 2));

    display: flex;
    align-items: center;
    gap: 11px;

    color: var(--muted);

    font-family: "DM Mono", monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scroll-hint span {
    width: 27px;
    height: 1px;
    background: var(--muted);
}


/* ------------------------------
   GENERAL SECTIONS
------------------------------ */

.section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 125px 0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 22px;

    margin-bottom: 78px;
}

.section-heading > div {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.section-number {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    color: var(--muted);
}

.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-line {
    height: 1px;
    width: 100%;
    background: var(--line);
}

.section-count {
    white-space: nowrap;
    color: var(--muted);

    font-family: "DM Mono", monospace;
    font-size: 9px;
}


/* ------------------------------
   ABOUT
------------------------------ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.about-intro h2,
.skills-intro h2 {
    font-size: clamp(38px, 4vw, 56px);
    line-height: 1.02;
    letter-spacing: -2.5px;
    font-weight: 500;
}

.about-intro h2 span,
.skills-intro h2 span {
    color: var(--muted);
}

.about-text {
    padding-top: 4px;
    max-width: 520px;
}

.about-text p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 21px;
}

.text-link {
    display: inline-flex;
    flex-direction: column;

    margin-top: 15px;

    font-size: 13px;
    border-bottom: 1px solid var(--text);
    padding-bottom: 4px;
}

.text-link span {
    color: var(--muted);
}


/* ------------------------------
   WORK
------------------------------ */

.work-section {
    padding-top: 80px;
}

.projects-list {
    border-top: 1px solid var(--line);
}

.project {
    display: grid;
    grid-template-columns: 100px 1fr;

    border-bottom: 1px solid var(--line);
    padding: 34px 0 38px;

    transition: padding 0.25s ease;
}

.project:hover {
    padding-left: 15px;
    padding-right: 15px;
}

.project-number {
    font-family: "DM Mono", monospace;
    color: var(--muted);
    font-size: 11px;
    padding-top: 4px;
}

.project-main {
    max-width: 900px;
}

.project-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.project-type {
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 7px;
}

.project h3 {
    font-size: 29px;
    font-weight: 500;
    letter-spacing: -1px;
}

.project-arrow {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--line);

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.project-arrow:hover {
    background: var(--dark);
    color: var(--white);
}

.project-description {
    max-width: 650px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
    margin-top: 13px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.project-tags span,
.timeline-tags span {
    border: 1px solid var(--line);
    padding: 5px 9px;

    color: var(--muted);

    font-family: "DM Mono", monospace;
    font-size: 8px;
}


/* ------------------------------
   SKILLS
------------------------------ */

.skills-section {
    background: var(--surface);
    max-width: none;
    width: 100%;

    padding-left: max(24px, calc((100% - 1180px) / 2));
    padding-right: max(24px, calc((100% - 1180px) / 2));
}

.skills-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 100px;
}

.skills-intro p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    max-width: 390px;
    margin-top: 25px;
}

.skills-groups {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.skill-group-heading {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 17px;
}

.skill-group-heading span {
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 9px;
}

.skill-group-heading h3 {
    font-size: 13px;
    font-weight: 500;
}

.skill-items {
    border-top: 1px solid var(--line);
}

.skill-item {
    padding: 13px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);

    font-size: 12px;
}

.skill-item > span:last-child {
    font-size: 5px;
    color: #768c31;
}


/* ------------------------------
   EXPERIENCE
------------------------------ */

.timeline {
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;

    left: 185px;
    top: 8px;
    bottom: 8px;

    width: 1px;
    background: var(--line);
}

.timeline-item {
    display: grid;
    grid-template-columns: 160px 50px 1fr;

    min-height: 190px;
}

.timeline-date {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    color: var(--muted);
    padding-top: 5px;
}

.timeline-marker {
    position: relative;
}

.timeline-marker::before {
    content: "";

    position: absolute;
    top: 7px;
    left: 20px;

    width: 8px;
    height: 8px;

    background: var(--background);
    border: 1px solid var(--text);
    border-radius: 50%;

    z-index: 2;
}

.timeline-content {
    padding-bottom: 62px;
    max-width: 620px;
}

.timeline-type {
    font-family: "DM Mono", monospace;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.6px;
}

.timeline-content h3 {
    font-size: 25px;
    font-weight: 500;
    margin-top: 5px;
}

.timeline-content > p:not(.timeline-type) {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
    margin-top: 12px;
}

.timeline-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 18px;
}


/* ------------------------------
   CERTIFICATES
------------------------------ */

.certificates-section {
    padding-top: 80px;
}

.certificate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.certificate {
    min-height: 190px;

    padding: 24px;

    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    display: grid;
    grid-template-columns: 35px 1fr 20px;
    gap: 15px;

    transition:
        background 0.2s ease;
}

.certificate:hover {
    background: var(--surface);
}

.certificate-number {
    font-family: "DM Mono", monospace;
    font-size: 9px;
    color: var(--muted);
}

.certificate-body p {
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.certificate-body h3 {
    max-width: 270px;

    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;

    margin: 10px 0 15px;
}

.certificate-body > span {
    font-size: 10px;
    color: var(--muted);
}

.certificate-arrow {
    font-size: 15px;
}


/* ------------------------------
   CONTACT
------------------------------ */

.contact-section {
    background: var(--dark);
    color: var(--white);
    margin-top: 50px;
}

.contact-inner {
    width: min(1180px, calc(100% - 48px));
    min-height: 690px;
    margin: 0 auto;

    padding: 48px 0 34px;

    display: flex;
    flex-direction: column;
}

.contact-top {
    display: flex;
    align-items: center;
    gap: 15px;

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-top .section-number {
    color: #77756f;
}

.contact-content {
    margin: auto 0;
}

.contact-content h2 {
    font-size: clamp(55px, 8vw, 105px);
    line-height: 0.9;
    letter-spacing: -5px;
    font-weight: 500;
}

.contact-content h2 span {
    color: #858282;
}

.contact-content > p {
    max-width: 440px;
    color: #92908b;
    font-size: 13px;
    line-height: 1.8;
    margin-top: 34px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 25px;

    margin-top: 27px;

    font-family: "DM Mono", monospace;
    font-size: 13px;

    border-bottom: 1px solid #77756f;
    padding-bottom: 7px;
}

.contact-email span {
    color: #b7d36b;
}

.contact-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid #373735;

    padding-top: 22px;

    color: #77756f;
    font-family: "DM Mono", monospace;
    font-size: 9px;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--white);
}


/* ------------------------------
   FOOTER
------------------------------ */

.site-footer {
    width: 100%;

    padding: 22px max(24px, calc((100% - 1180px) / 2));

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;

    background: #121212;
    color: #77756f;

    font-family: "DM Mono", monospace;
    font-size: 8px;
}

.footer-middle {
    text-align: center;
}

.footer-top {
    text-align: right;
    transition: color 0.2s ease;
}

.footer-top:hover {
    color: var(--white);
}


/* ------------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .nav-button {
        margin-left: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 110px;
    }

    .hero-side {
        max-width: 500px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .skills-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .timeline::before {
        left: 128px;
    }

    .timeline-item {
        grid-template-columns: 105px 45px 1fr;
    }

    .certificate-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 620px) {

    .nav-wrap,
    .hero-inner,
    .section,
    .contact-inner {
        width: calc(100% - 32px);
    }

    .skills-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero h1 {
        font-size: 55px;
        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-meta {
        gap: 16px;
        flex-wrap: wrap;
        margin-top: 55px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .button {
        width: 100%;
    }

    .terminal-card {
        box-shadow: 8px 8px 0 #d9d6cc;
    }

    .section {
        padding: 90px 0;
    }

    .section-heading {
        margin-bottom: 55px;
    }

    .section-count {
        display: none;
    }

    .project {
        grid-template-columns: 45px 1fr;
        padding: 27px 0;
    }

    .project:hover {
        padding-left: 5px;
        padding-right: 5px;
    }

    .project h3 {
        font-size: 24px;
    }

    .project-description {
        font-size: 12px;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        display: grid;
        grid-template-columns: 75px 1fr;
        position: relative;
    }

    .timeline-marker {
        display: none;
    }

    .timeline-date {
        font-size: 9px;
    }

    .timeline-content {
        padding-bottom: 45px;
    }

    .timeline-content h3 {
        font-size: 21px;
    }

    .certificate {
        min-height: 165px;
        padding: 19px;
    }

    .certificate-body h3 {
        font-size: 17px;
    }

    .contact-section {
        margin-top: 20px;
    }

    .contact-inner {
        min-height: 610px;
    }

    .contact-content h2 {
        font-size: 60px;
        letter-spacing: -3px;
    }

    .contact-email {
        font-size: 10px;
    }

    .contact-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }

    .footer-middle {
        text-align: center;
    }

    .footer-top {
        text-align: center;
    }

}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }

}