header {
    background-image: url('assets/images/project-bg.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0 80%;
}



#projects {
    background-color: #f7f7f7;
    padding: 3em 0;

.project-heading {
     margin-bottom: 3em;
        h2 {
        font-size: 1rem;
        text-align: center;
    }
    p.sub-heading {
        font-size: 2rem;
        font-weight: 600;
        text-align: center;
        max-width: 60%;
        color: #575757;
        margin: 0 auto;
        line-height: 1.2;
    }
    
}
    .project-cards {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 1em;


        .project-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            background-color: #fff;
            padding: 2em;
            max-width: 350px;
            border-radius: 20px;
            box-shadow: 0 0 15px #42424211;

            h3 {
                font-size: 0.8rem;
                font-weight: 500;
                margin-bottom: 0.4em;
            }

            p.sub {
                color: var(--primary-color);
                font-weight: 700;
                font-size: 1.2rem;
            }

            h3,
            p.sub {
                text-align: center;
            }

            .img-wrapper {
                margin: 1em 0;
                width: 100%;
                img {
                    border-radius: 15px;
                    width: 100%;
                }
            }

            p {
                font-size: 0.9rem;
                margin-bottom: 1em;
            }

            button {
                color: var(--primary-color);
                padding: 1em 3em;
                margin: 1em 0;
                background-color: transparent;
                border: 3px solid var(--primary-color);
                border-radius: 30px;
                align-self: center;
                cursor: pointer;
                font-weight: 600;
            }

            button:hover{
                background-color: var(--text-color);
                border-color: var(--text-color);
                color: var(--white-color);
            }

            .metrics-info {
                padding-bottom: 1em;
                margin-top: 1.5em;
                width: 100%;

                .metrics-heading {
                    display: flex;
                    justify-content: space-between;
                    font-weight: 500;
                    font-size: 0.8rem;
                    margin-bottom: 0.2em;
                }

                .metrics-wrapper {
                    background-color: var(--text-color);
                    height: 7px;
                    position: relative;
                
                    .metrics {
                        position: absolute;
                        background-color: var(--accent-color);
                        height: 7px;
                        width: 40%;
                        z-index: 0;
                    }
                }
            }

        }
    }


}

@media screen and (min-width:750px) {
#projects {
    .project-cards {

        .project-card{
            width: 280px;
        }
    }

}


}