/* =========================================
   PROJECT DETAIL 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(1100px, 92%);
    margin: 0 auto;

    padding: 150px 0 120px;
}


/* =========================================
   PROJECT HEADER
========================================= */

#projectDetails {
    max-width: 1000px;
}

.project-detail-category {
    margin-bottom: 18px;

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

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

    color: #777777;
}

.project-detail-title {
    margin-bottom: 30px;

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(52px, 9vw, 100px);
    line-height: 0.95;

    letter-spacing: -4px;
    font-weight: 600;
}

.project-detail-description {
    max-width: 800px;

    margin-bottom: 60px;

    color: #a8a8a8;

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


/* =========================================
   DETAIL SECTIONS
========================================= */

.project-detail-section {
    margin-top: 70px;

    padding-top: 40px;

    border-top: 1px solid #202020;
}

.project-detail-section h2 {
    margin-bottom: 25px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 30px;
    font-weight: 600;
}

.project-detail-section p {
    max-width: 850px;

    color: #a8a8a8;

    font-size: 16px;
    line-height: 1.9;
}


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

.project-detail-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-detail-technologies span {
    padding: 9px 13px;

    border: 1px solid #303030;
    border-radius: 6px;

    color: #c7c7c7;

    font-size: 13px;
}


/* =========================================
   FEATURES
========================================= */

.project-detail-features {
    max-width: 850px;

    padding-left: 20px;
}

.project-detail-features li {
    margin-bottom: 14px;

    padding-left: 5px;

    color: #a8a8a8;

    line-height: 1.7;
}


/* =========================================
   PROJECT LINKS
========================================= */

.project-detail-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;

    margin-top: 60px;
}

.project-detail-links a {
    display: inline-block;

    font-family: "Space Grotesk", sans-serif;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    border-bottom: 1px solid #ffffff;

    padding-bottom: 6px;

    transition: opacity 0.2s ease;
}

.project-detail-links a:hover {
    opacity: 0.55;
}


/* =========================================
   LOADING / ERROR
========================================= */

#projectDetails > p {
    color: #777777;

    font-size: 15px;
}


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

@media (max-width: 600px) {

    main {
        padding: 120px 0 80px;
    }

    .project-detail-title {
        font-size: 52px;
        letter-spacing: -2px;
    }

    .project-detail-description {
        font-size: 17px;
    }

    .project-detail-section {
        margin-top: 55px;
        padding-top: 30px;
    }

    .project-detail-section h2 {
        font-size: 25px;
    }

    .project-detail-links {
        flex-direction: column;
        align-items: flex-start;

        gap: 18px;
    }

}
/* =========================================
   PROJECT HERO
========================================= */

.project-hero-image {
    width: 100%;
    max-height: 560px;

    margin: 20px 0 80px;

    object-fit: cover;

    border-radius: 10px;

    border: 1px solid #202020;
}


/* =========================================
   DETAIL REVEAL
========================================= */

.project-detail-section,
.project-detail-links,
.project-hero-image {
    opacity: 1;
    transform: none;
}

.project-detail-section.reveal {
    opacity: 0;
    transform: translateY(25px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.project-detail-section.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================
   GALLERY
========================================= */

.project-gallery {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.gallery-image {
    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;

    border-radius: 8px;

    border: 1px solid #202020;
}


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

@media (max-width: 600px) {

    .project-hero-image {
        margin-bottom: 55px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

}