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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.5;
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}


/* =========================================
   MAIN
========================================= */

main {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 150px 0 100px;
}


/* =========================================
   PAGE HEADER
========================================= */

main > h1 {
    max-width: 900px;

    margin-bottom: 60px;

    font-size: clamp(52px, 8vw, 90px);
    line-height: 0.95;
    letter-spacing: -3px;
    font-weight: 600;
}


/* =========================================
   PROJECT GRID
========================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


/* =========================================
   PROJECT CARD
========================================= */

.project-card {
    height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #111111;

    border: 1px solid #252525;
    border-radius: 18px;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: #444444;
}


/* =========================================
   THUMBNAIL
========================================= */

.project-thumbnail {
    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #181818;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}


/* =========================================
   PROJECT CONTENT
========================================= */

.project-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 26px;
}

.project-category {
    margin-bottom: 10px;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: #777777;
}

.project-title {
    margin-bottom: 12px;

    font-family: "Space Grotesk", sans-serif;
    font-size: 26px;
    font-weight: 600;

    line-height: 1.15;
}

.project-description {
    margin-bottom: 20px;

    color: #a0a0a0;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================
   TECHNOLOGIES
========================================= */

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 25px;
}

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

    border: 1px solid #2d2d2d;
    border-radius: 5px;

    color: #bdbdbd;

    font-size: 11px;
}


/* =========================================
   PROJECT LINK
========================================= */

.project-link {
    align-self: flex-start;

    margin-top: auto;

    color: #ffffff;

    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    border-bottom: 1px solid #ffffff;

    padding-bottom: 5px;

    transition: opacity 0.2s ease;
}

.project-link:hover {
    opacity: 0.6;
}


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

@media (max-width: 950px) {

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

}


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

@media (max-width: 600px) {

    main {
        padding: 120px 0 70px;
    }

    main > h1 {
        margin-bottom: 40px;

        font-size: 52px;
        letter-spacing: -2px;
    }

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

    .project-content {
        padding: 22px;
    }

}