/* =========================================
   GLOBAL
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #f7f7f5;
    color: #171717;

    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================
   NAVIGATION
========================================= */

nav {
    width: 90%;
    max-width: 1250px;

    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 24px 0;
}

.logo {
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.5;
}


/* =========================================
   HERO
========================================= */

.hero {
    width: 90%;
    max-width: 1250px;

    margin: 0 auto;

    padding: 75px 0 90px;
}

.subtitle {
    margin: 0;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 900px;

    margin: 18px 0 28px;

    font-size: clamp(48px, 6vw, 72px);
    line-height: 0.98;

    letter-spacing: -2px;
}

.intro {
    max-width: 680px;

    margin: 0;

    font-size: 18px;
    line-height: 1.7;
}

.hero-skills {
    margin-top: 20px;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.4px;

    color: #666;
}


/* =========================================
   PROJECTS
========================================= */

.projects {
    width: 90%;
    max-width: 1250px;

    margin: 0 auto;

    padding: 80px 0 110px;

    border-top: 1px solid #d8d8d5;
}

.projects h2 {
    margin: 12px 0 45px;

    font-size: 40px;
    line-height: 1.1;
}


/* =========================================
   PROJECT GRID
========================================= */

.project-grid {
    display: grid;

    grid-template-columns: repeat(3, 360px);

    gap: 40px;

    justify-content: start;
}


/* =========================================
   PROJECT CARDS
========================================= */

.project-card {
    display: block;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}


/* =========================================
   PROJECT IMAGE CONTAINER
========================================= */

.project-image-container {
    width: 360px;
    height: 480px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    background: #eeeeec;

    border-radius: 4px;
}


/* =========================================
   PROJECT IMAGES
========================================= */

.project-image {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    display: block;

    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.02);
}


/* Monitor Arm gets cropped to fill the card */

.monitor-arm-image {
    object-fit: cover;
    object-position: center;
}


/* =========================================
   PROJECT INFORMATION
========================================= */

.project-info {
    padding-top: 18px;
}

.project-info h3 {
    margin: 0 0 7px;

    font-size: 25px;
    line-height: 1.2;
}

.project-tags {
    margin: 0;

    color: #666;

    font-size: 14px;
}

.project-summary {
    margin-top: 10px;

    max-width: 330px;

    font-size: 14px;
    line-height: 1.6;

    color: #555;
}


/* =========================================
   ABOUT
========================================= */

.about {
    width: 90%;
    max-width: 1250px;

    margin: 0 auto;

    padding: 100px 0 130px;

    border-top: 1px solid #d8d8d5;
}

.about h2 {
    margin: 12px 0 25px;

    font-size: 40px;
}

.about > p:last-child {
    max-width: 720px;

    margin: 0;

    font-size: 19px;
    line-height: 1.75;
}


/* =========================================
   FOOTER
========================================= */

footer {
    width: 90%;
    max-width: 1250px;

    margin: 0 auto;

    padding: 30px 0 50px;

    border-top: 1px solid #d8d8d5;

    display: flex;
    justify-content: space-between;

    color: #666;

    font-size: 13px;
}


/* =========================================
   INDIVIDUAL PROJECT PAGES
========================================= */

.project-page {
    width: 90%;
    max-width: 1000px;

    margin: 0 auto;

    padding-bottom: 120px;
}

.back-link {
    display: inline-block;

    margin-top: 45px;

    color: #666;
    font-size: 15px;

    transition: color 0.2s ease;
}

.back-link:hover {
    color: #171717;
}


/* =========================================
   PROJECT PAGE HEADER
========================================= */

.project-header {
    padding: 60px 0 35px;
}

.project-header h1 {
    max-width: 850px;

    margin: 15px 0 25px;

    font-size: clamp(45px, 6vw, 68px);
    line-height: 1;

    letter-spacing: -1px;
}

.project-description {
    max-width: 700px;

    margin: 0;

    font-size: 20px;
    line-height: 1.65;
}


/* =========================================
   PROJECT HERO IMAGE
========================================= */

.project-hero-image {
    width: auto;

    max-width: 600px;
    max-height: 500px;

    object-fit: contain;

    display: block;

    margin: 40px 0 80px;
}


/* =========================================
   PROJECT CONTENT
========================================= */

.project-section {
    max-width: 750px;

    margin: 80px 0;
}

.project-section h2 {
    margin-bottom: 20px;

    font-size: 30px;
}

.project-section p {
    font-size: 18px;
    line-height: 1.75;
}

.project-section ul {
    padding-left: 22px;
}

.project-section li {
    margin-bottom: 8px;

    font-size: 18px;
    line-height: 1.7;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1200px) {

    .project-grid {
        grid-template-columns: repeat(2, 360px);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 750px) {

    nav {
        width: 92%;
    }

    .nav-links {
        gap: 14px;
        font-size: 14px;
    }


    .hero {
        width: 92%;

        padding: 60px 0 75px;
    }

    .hero h1 {
        font-size: 46px;
        letter-spacing: -1px;
    }


    .projects {
        width: 92%;

        padding: 65px 0 90px;
    }

    .project-grid {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .project-image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
    }


    .about {
        width: 92%;
    }


    .project-page {
        width: 92%;
    }

    .project-header h1 {
        font-size: 45px;
    }

    .project-hero-image {
        width: 100%;

        max-width: 100%;
        max-height: 450px;
    }


    footer {
        width: 92%;

        flex-direction: column;

        gap: 5px;
    }

}