/* =========================================
   Projects Page
   ========================================= */

.projects-page {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 6rem var(--page-padding);
}


/* =========================================
   Page Header
   ========================================= */

.projects-header {
    max-width: 700px;
}

.projects-header h1 {
    font-size: clamp(5rem, 12vw, 10rem);

    line-height: .85;

    margin: 0;
}

.projects-header p {
    margin-top: 1rem;
}


/* =========================================
   Project List
   ========================================= */

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}


/* =========================================
   Project Box
   ========================================= */

.project {
    border: 2px solid var(--asiimov-black);
    background: var(--asiimov-white);
    z-index: 2;
}


/* =========================================
   Project Header
   ========================================= */

.project-header {
    display: flex;
    align-items: stretch;

    background-color: darkgray;

    border-bottom: 2px solid var(--asiimov-black);

    font-family: "Roboto Mono", monospace;
    font-size: 0.75rem;
}

.project-number {
    display: flex;
    align-items: center;

    padding: 0.6rem 0.9rem;

    background: var(--asiimov-orange);
    color: var(--asiimov-black);

    font-weight: 500;
}

.project-category {
    display: flex;
    align-items: center;

    padding: 0.6rem 1rem;
}


/* =========================================
   Project Body
   ========================================= */

.project-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.9fr);
    align-items: stretch;
}

.project-content {
    padding: 1.5rem 1.75rem;
}

.project-title {
    margin: 0;

    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.project-description {
    margin: 0.75rem 0 0;

    line-height: 1.5;
}


/* =========================================
   Project Divider
   ========================================= */

.project-divider {
    width: 55px;
    height: 4px;

    margin: 0.9rem 0 1rem;

    background: var(--asiimov-orange);
}


/* =========================================
   Project Technologies
   ========================================= */

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;

    margin-top: 1.25rem;

    font-family: "Roboto Mono", monospace;
    font-size: 0.65rem;
}

/* not necessary in light of skill borders from about.css */
/* .project-technologies span {
    padding: 0.3rem 0.45rem;

    border: 1px solid var(--asiimov-black);
} */


/* =========================================
   Project Media
   ========================================= */

.project-media {

    border-left: 2px solid var(--asiimov-black);
    background: #e8e8e8;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.project-media img {
    width: 100%;
    height:auto;

}


/* =========================================
   Project Footer
   ========================================= */

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.6rem 1rem;

    border-top: 2px solid var(--asiimov-black);

    font-family: "Roboto Mono", monospace;
    font-size: 0.7rem;
}

.project-footer a {
    color: var(--asiimov-black);
    text-decoration: none;
    transition: color 0.15s ease;
}

.project-footer a:hover {
    color: var(--asiimov-orange);
}

/* Links handling */
.project-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-github {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;
}

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

    display: block;

    /* best attmpt at orange-scale? */
    filter:
        brightness(0)
        saturate(100%)
        invert(48%)
        sepia(94%)
        saturate(2300%)
        hue-rotate(359deg)
        brightness(102%)
        contrast(105%);;
    transition: opacity 0.15s ease;
}

.project-github:hover img {
    opacity: 0.6;
}

/* for substack, primarily */
.project-github.custom-color img{

    filter: none;

}


/* =========================================
   Responsive
   ========================================= */

@media (max-width: 700px) {

    .projects-page {
        padding-top: 4rem;
    }

    .projects-list {
        gap: 2rem;
    }

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

    .project-content {
        padding: 1.5rem;
    }

    .project-media {
        border-left: none;
        border-top: 2px solid var(--asiimov-black);
        overflow: hidden;
    }

    .project-media img {
        display: block;

        width: 100%;
        height: auto;
    }

    .project-footer {
        gap: 1rem;
    }
}


/* SQUARES copied from about pg */

/* =========================
   Perimeter Geometry
========================= */


.perimeter-grid {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 0;

}



.geo-square {

    position: absolute;

}



/* Orange */

.geo-square.orange {

    background: var(--asiimov-orange);
    opacity: .25;
}



/* Black */

.geo-square.black {

    background: var(--asiimov-black);
    opacity: .12;

}



/* =========================
   Perimeter Geometry
========================= */


/* Left side */

.square-one {

    width: clamp(50px, 7vw, 120px);

    aspect-ratio: 1;

    top: 12%;

    left: -30px;

}


.square-five {

    width: clamp(30px, 5vw, 90px);

    aspect-ratio: 1;

    top: 70%;

    left: 3%;

}



/* Right side */

.square-two {

    width: clamp(80px, 10vw, 180px);

    aspect-ratio: 1;

    top: 22%;

    right: -50px;

}


.square-six {

    width: clamp(40px, 6vw, 100px);

    aspect-ratio: 1;

    bottom: 18%;

    right: 2%;

}



/* Lower left accent */

.square-three {

    width: clamp(25px, 4vw, 70px);

    aspect-ratio: 1;

    bottom: 8%;

    left: -10px;

}



/* Upper right accent */

.square-four {

    width: clamp(60px, 8vw, 130px);

    aspect-ratio: 1;

    top: 5%;

    right: 12%;

}



/* Bottom right */

.square-seven {

    width: clamp(35px, 5vw, 80px);

    aspect-ratio: 1;

    bottom: 5%;

    right: 18%;

}



/* Remove this one from center */

.square-eight {

    width: clamp(25px, 4vw, 60px);

    aspect-ratio: 1;

    top: 45%;

    left: auto;

    right: 4%;

}

/* skills ported from about */

.skills {

    display: flex;

    flex-wrap: wrap;

    gap: 1rem;

}

/* per skill */
.skill {

    display: flex;

    align-items: center;

    gap: .75rem;

    border: 2px solid var(--asiimov-black);

    padding: .75rem 1rem;

    background: var(--asiimov-white);

    transition: background .2s ease;

}

.skill img {

    width: 28px;

    height: 28px;

    object-fit: contain;

    /* best attmpt at orange-scale? */
    filter:
        brightness(0)
        saturate(100%)
        invert(48%)
        sepia(94%)
        saturate(2300%)
        hue-rotate(359deg)
        brightness(102%)
        contrast(105%);

}

/* turn off the orange-scale */
.skill img.custom-color {

    filter: none;

}


.skill span {

    font-family: "Roboto Mono", monospace;

    font-size: .9rem;

}


.skill:hover {

    background: #e8e8e8;

}