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

#projects {
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 28px;
    margin-top: 60px;
}

.project {
    display: flex;
    flex-direction: column;

    padding: 30px;
    min-height: 460px;

    border-radius: 24px;

    transition: .35s;
}

.project:hover {
    transform: translateY(-8px);
}

.project-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    min-height: 92px;

    margin-bottom: 20px;
}

.project-tag {
    display: inline-flex;
    align-self: flex-start;

    padding: 6px 12px;

    margin-bottom: 14px;

    border-radius: 999px;

    background: rgba(91, 140, 255, .12);

    color: #7fa6ff;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
}

.project-header h3 {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0;
}

.project p {
    flex: 1;

    margin: 0;

    line-height: 1.75;

    color: rgba(255,255,255,.78);
}

/* =============================
   Stack
============================= */

.project-stack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 16px;

    margin-top: 28px;

    min-height: 40px;
}

.project-stack i {
    width: 34px;
    height: 34px;

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

    font-size: 30px;

    transition: .25s;
}

.project-stack i:hover {
    transform: scale(1.15);
}

/* =============================
   Metrics
============================= */

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

    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,.08);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric strong {
    font-size: 28px;
    font-weight: 800;

    color: white;
}

.metric small {
    color: rgba(255,255,255,.6);

    margin-top: 4px;
}

/* =============================
   Mobile
============================= */

@media (max-width:768px){

    .projects-grid{

        grid-template-columns:1fr;

    }

    .project{

        min-height:auto;

        padding:24px;

    }

    .project-header{

        min-height:auto;

    }

    .project-header h3{

        font-size:22px;

    }

    .project-stack{

        gap:14px;

    }

    .project-stack i{

        width:30px;
        height:30px;

        font-size:26px;

    }

    .project-footer{

        flex-direction:row;

    }

}

@media (max-width:480px){

    .project-footer{

        flex-direction:column;

        gap:18px;

    }

}
