/* ===================================
   RESET
=================================== */

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

html {
    scroll-behavior: smooth;
}

:root {

    --paper: #f1efe7;
    --paper-light: #f8f7f2;

    --ink: #12231e;
    --black: #0d1110;

    --green: #006c59;
    --green-soft: #93bcae;

    --purple: #7353d6;

    --gray: #5d6864;

    --line: #c9c7bd;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--paper);
    color: var(--ink);

    line-height: 1.6;
}


/* ===================================
   NAVIGATION
=================================== */

header {
    position: sticky;
    top: 0;

    z-index: 1000;

    background: rgba(241, 239, 231, 0.94);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--line);
}

.nav {
    max-width: 1240px;

    margin: auto;

    min-height: 76px;

    padding: 0 35px;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;
}

.logo {
    color: var(--ink);

    text-decoration: none;

    font-size: 18px;

    font-weight: 900;

    letter-spacing: -0.5px;
}

.logo span {
    color: var(--purple);
}

.nav ul {
    display: flex;

    gap: 34px;

    list-style: none;
}

.nav ul a {
    color: var(--gray);

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;
}

.nav ul a:hover {
    color: var(--green);
}

.nav-github {
    justify-self: end;

    color: var(--ink);

    text-decoration: none;

    font-size: 13px;

    font-weight: 800;
}


/* ===================================
   HERO
=================================== */

.hero {
    min-height: calc(100vh - 76px);

    padding: 40px 35px 30px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}

.hero-topline,
.hero-bottom {
    max-width: 1240px;

    width: 100%;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #66706c;

    font-size: 10px;

    letter-spacing: 2px;

    font-weight: 800;
}

.hero-main {
    max-width: 1240px;

    width: 100%;

    margin: 35px auto;

    display: grid;

    grid-template-columns:
        0.7fr
        2fr
        0.7fr;

    gap: 40px;

    align-items: center;
}


/* SIDE CONTENT */

.hero-side {
    min-height: 260px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.hero-side-left {
    text-align: right;
}

.hero-side-right {
    text-align: left;
}

.side-symbol {
    color: var(--purple);

    font-size: 30px;

    margin-bottom: 25px;
}

.hero-side h3 {
    font-family: Georgia, serif;

    font-size: 25px;

    font-weight: normal;

    margin-bottom: 10px;
}

.hero-side p {
    color: var(--gray);

    font-size: 13px;

    line-height: 1.7;
}


/* CENTER */

.hero-center {
    position: relative;

    text-align: center;

    padding: 70px 35px;

    border-left: 1px solid var(--line);

    border-right: 1px solid var(--line);
}

.hero-decoration {
    width: 72px;
    height: 72px;

    margin: 0 auto 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--green);

    color: white;

    font-family: monospace;

    font-size: 20px;

    transform: rotate(-8deg);
}

.hello {
    color: var(--green);

    font-family: Georgia, serif;

    font-size: 27px;

    font-style: italic;

    margin-bottom: -4px;
}

.hero-center h1 {
    font-size: clamp(78px, 10vw, 145px);

    letter-spacing: -9px;

    line-height: 0.9;

    color: var(--ink);

    margin-bottom: 30px;
}

.hero-intro {
    max-width: 580px;

    margin: 0 auto 32px;

    color: var(--gray);

    font-size: 17px;
}

.hero-link {
    display: inline-block;

    color: var(--ink);

    text-decoration: none;

    font-size: 13px;

    font-weight: 900;

    padding-bottom: 5px;

    border-bottom: 2px solid var(--purple);
}

.hero-link:hover {
    color: var(--purple);
}

.hero-line {
    flex: 1;

    height: 1px;

    background: var(--line);

    margin: 0 22px;
}


/* ===================================
   SECTION HELPERS
=================================== */

.section-number {
    font-family: Georgia, serif;

    font-size: 15px;

    color: var(--purple);

    margin-bottom: 50px;
}

.mini-label {
    color: var(--green);

    font-size: 10px;

    letter-spacing: 3px;

    font-weight: 900;

    margin-bottom: 20px;
}


/* ===================================
   ABOUT
=================================== */

.about {
    padding: 110px max(35px, calc((100% - 1170px) / 2));

    background: var(--paper-light);

    border-top: 1px solid var(--line);

    border-bottom: 1px solid var(--line);
}

.about-header {
    max-width: 900px;
}

.about-header h2 {
    font-size: clamp(50px, 7vw, 88px);

    line-height: 0.98;

    letter-spacing: -5px;

    font-weight: 800;
}

.about-header h2 em {
    display: block;

    font-family: Georgia, serif;

    font-weight: normal;

    color: var(--purple);
}

.about-content {
    margin-top: 85px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    padding-top: 45px;

    border-top: 1px solid var(--line);
}

.about-statement p {
    font-size: 28px;

    line-height: 1.25;

    font-weight: 800;
}

.about-description p {
    color: var(--gray);

    margin-bottom: 20px;

    font-size: 16px;
}

.skills {
    margin-top: 70px;

    padding-top: 30px;

    border-top: 1px solid var(--line);

    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.skills span {
    padding: 9px 14px;

    border: 1px solid var(--ink);

    font-size: 11px;

    font-weight: 800;
}


/* ===================================
   PROJECTS
=================================== */

.projects {
    padding: 110px max(35px, calc((100% - 1170px) / 2));

    background: var(--ink);

    color: white;
}

.light-number {
    color: #a793eb;
}

.light-label {
    color: var(--green-soft);
}

.projects-title {
    margin-bottom: 100px;
}

.projects-title h2 {
    font-size: clamp(55px, 7vw, 90px);

    line-height: 0.95;

    letter-spacing: -5px;
}

.projects-title h2 span {
    display: block;

    font-family: Georgia, serif;

    font-weight: normal;

    font-style: italic;

    color: #a793eb;
}


/* PROJECT BASE */

.project {
    display: grid;

    grid-template-columns:
        0.55fr
        1fr
        1.5fr
        1fr;

    gap: 35px;

    align-items: center;

    padding: 75px 0;

    border-top: 1px solid #43504b;
}

.project:last-child {
    border-bottom: 1px solid #43504b;
}

.project-meta span {
    display: block;

    font-family: Georgia, serif;

    color: #a793eb;

    font-size: 50px;

    margin-bottom: 18px;
}

.project-meta p {
    color: #82918b;

    font-size: 9px;

    letter-spacing: 2px;

    font-weight: 900;
}

.project-heading h3 {
    font-size: clamp(38px, 4vw, 58px);

    line-height: 0.95;

    letter-spacing: -3px;
}

.project-description > p {
    color: #aeb8b4;

    font-size: 14px;

    margin-bottom: 25px;
}

.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 28px;
}

.project-tags span {
    padding: 6px 9px;

    border: 1px solid #53615b;

    color: #bdc6c2;

    font-size: 10px;
}

.project-actions {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.project-actions a {
    color: white;

    text-decoration: none;

    font-size: 13px;

    font-weight: 900;
}

.project-actions a:hover {
    color: #a793eb;
}


/* ===================================
   PROJECT MOCKUPS
=================================== */

.project-preview {
    min-height: 340px;

    background: #111715;

    border: 1px solid #54625c;
}


/* AUTO SPA */

.preview-header {
    height: 42px;

    padding: 0 14px;

    display: flex;

    align-items: center;

    gap: 6px;

    background: #202825;

    border-bottom: 1px solid #39433f;
}

.preview-header span {
    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #65716c;
}

.preview-header p {
    margin-left: auto;

    color: #7c8883;

    font-size: 9px;

    letter-spacing: 1px;
}

.preview-content {
    min-height: 300px;

    padding: 40px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background:
        radial-gradient(
            circle at 80% 50%,
            #22342d,
            transparent 45%
        ),
        #111715;
}

.preview-content small {
    color: #78a496;

    letter-spacing: 2px;

    margin-bottom: 14px;
}

.preview-content h4 {
    font-size: 35px;

    line-height: 1;

    margin-bottom: 24px;
}

.fake-button {
    width: fit-content;

    background: white;

    color: black;

    padding: 10px 16px;

    font-size: 10px;

    font-weight: 900;
}


/* TERMINAL */

.terminal-preview {
    font-family: Consolas, monospace;
}

.terminal-top {
    height: 45px;

    display: flex;

    gap: 7px;

    align-items: center;

    padding: 0 15px;

    color: #77847f;

    background: #1e2522;

    border-bottom: 1px solid #37413d;

    font-size: 10px;
}

.terminal-top span {
    font-size: 7px;

    color: #65736d;
}

.terminal-code {
    padding: 35px;

    color: #83cbb1;

    font-size: 13px;
}

.terminal-code p {
    margin-bottom: 14px;
}

.terminal-code span {
    color: #a793eb;
}

.terminal-message {
    margin-top: 55px;

    color: white;

    font-size: 19px;

    line-height: 1.4;
}


/* ===================================
   CONTACT
=================================== */

.contact {
    padding: 110px max(35px, calc((100% - 1170px) / 2));

    background: var(--paper);
}

.contact-title {
    max-width: 850px;
}

.contact-title h2 {
    font-size: clamp(55px, 8vw, 105px);

    line-height: 0.9;

    letter-spacing: -6px;
}

.contact-title h2 em {
    display: block;

    font-family: Georgia, serif;

    color: var(--purple);

    font-weight: normal;
}

.contact-layout {
    margin-top: 90px;

    padding-top: 45px;

    border-top: 1px solid var(--line);

    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 100px;
}

.contact-message p {
    max-width: 400px;

    color: var(--gray);

    font-size: 17px;

    margin-bottom: 45px;
}

.github-big {
    display: inline-flex;

    gap: 50px;

    align-items: center;

    color: var(--ink);

    text-decoration: none;

    font-family: Georgia, serif;

    font-size: 32px;

    border-bottom: 1px solid var(--ink);

    padding-bottom: 6px;
}

.github-big span {
    color: var(--purple);
}


/* CONTACT LIST */

.contact-list {
    border-top: 1px solid var(--line);
}

.contact-row {
    display: grid;

    grid-template-columns:
        100px
        1fr
        auto;

    align-items: center;

    gap: 20px;

    padding: 28px 0;

    border-bottom: 1px solid var(--line);

    color: var(--ink);

    text-decoration: none;

    transition: 0.2s;
}

.contact-row:hover {
    padding-left: 12px;

    color: var(--purple);
}

.contact-label {
    color: var(--green);

    font-size: 9px;

    letter-spacing: 2px;

    font-weight: 900;
}

.contact-row strong {
    font-size: 17px;

    overflow-wrap: anywhere;
}

.arrow {
    font-size: 20px;
}


/* ===================================
   FOOTER
=================================== */

footer {
    padding: 35px max(35px, calc((100% - 1170px) / 2));

    background: var(--black);

    color: #95a09b;

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 11px;
}

footer div {
    display: flex;

    gap: 15px;

    align-items: center;
}

footer strong {
    color: white;
}


/* ===================================
   TABLET
=================================== */

@media (max-width: 950px) {

    .hero-main {
        grid-template-columns: 1fr;
    }

    .hero-side {
        display: none;
    }

    .hero-center {
        border: none;
    }

    .about-content {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .project {
        grid-template-columns:
            0.3fr
            1fr;

        gap: 30px;
    }

    .project-preview,
    .project-description {
        grid-column: 2;
    }

    .contact-layout {
        grid-template-columns: 1fr;

        gap: 50px;
    }

}


/* ===================================
   MOBILE
=================================== */

@media (max-width: 650px) {

    .nav {
        grid-template-columns: 1fr auto;

        padding: 15px 20px;
    }

    .nav ul {
        display: none;
    }

    .hero {
        padding: 40px 20px 25px;
    }

    .hero-topline span:nth-child(2) {
        display: none;
    }

    .hero-center {
        padding: 55px 0;
    }

    .hero-center h1 {
        font-size: 72px;

        letter-spacing: -5px;
    }

    .hero-intro {
        font-size: 15px;
    }

    .hero-bottom span:last-child {
        display: none;
    }

    .about,
    .projects,
    .contact {
        padding:
            80px
            20px;
    }

    .about-header h2,
    .projects-title h2 {
        letter-spacing: -3px;
    }

    .project {
        display: block;

        padding: 55px 0;
    }

    .project-meta {
        margin-bottom: 25px;
    }

    .project-heading {
        margin-bottom: 30px;
    }

    .project-preview {
        margin-bottom: 30px;
    }

    .contact-title h2 {
        font-size: 62px;

        letter-spacing: -4px;
    }

    .contact-row {
        grid-template-columns: 1fr auto;
    }

    .contact-label {
        grid-column: 1 / -1;
    }

    footer {
        flex-direction: column;

        gap: 10px;

        text-align: center;
    }

}