:root {
    --primaryColor: black;
    --middleColor: #444444;
    --helperColor: #C84B31;
    --lightHelper: #F8EDE3;
    --hrColor: rgb(222, 184, 135);
    --transparentColor: #00d0848f;
    --shadow: rgba(189, 188, 188, 0.514);
    /* --------------------------------- */
    --whatsappColor: #25D366;
    --white: #ffff;
    --blue: #1877F2;
    --green: #25D366;
    --gray: #f8f8f8;
}

.portfolio-slider {
    text-align: center;
    /* عملنا padding to make  */
    /* padding: 50px 20px; */
    /* background: */

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-slider h1 {
    color: var(--primaryColor);
    font-size: 1.5rem;
    width: fit-content;
    border-bottom: 4px solid var(--primaryColor);
    margin: 0px auto;
}

.portfolio-slider-grid {
    width: 80%;
    margin: auto;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;

}

.project-slider {
    width: 100%;
    height: fit-content;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: var(--lightHelper);

}

.project-slider:hover {
    transform: scale(1.05);
}

.project-slider a {
    display: inline-block;
    text-decoration: none;
    min-height: 30px;
    max-height: 120px;
    /* background-color: rgba(15, 15, 15, 0.575); */
}

.project-slider img {
    width: 100%;
    min-height: 300px;
    max-height: 300px;
    border-radius: 10px;
    aspect-ratio: 1/1;
}

.project-slider div {
    margin: 0%;
    padding: 0%;
    text-decoration: none;
    /* background: rgba(15, 15, 15, 0.575); */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    /* padding: 10px; */
}

.project-slider p,
h5 {
    color: var(--primaryColor);
    margin: 0px;
    line-height: 1.8rem;

    /* font-size: 18px; */
}

.project-slider h3 {
    color: var(--primaryColor);

}

/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
@media (max-width:600px) {
    .portfolio-slider-grid {
        grid-template-columns: repeat(1, 5fr);
        gap: 50px;
    }

    .project-slider img {
        width: 100%;
        min-height: 250px;
        max-height: 250px;
        border-radius: 10px;
    }
}

@media screen and (min-width: 601px) and (max-width: 800px) {
    .portfolio-slider-grid {
        grid-template-columns: repeat(2, 3fr);
        gap: 30px;
    }
}

@media screen and (min-width: 801px) and (max-width: 870px) {
    .portfolio-slider-grid {
        grid-template-columns: repeat(2, 3fr);
        gap: 50px;
    }
}

@media screen and (min-width:871px) and (max-width: 970px) {

    .portfolio-slider-grid {
        width: 98%;

        grid-template-columns: repeat(2, 1fr);
        gap: 90px;
    }
}

@media screen and (min-width: 971px) and (max-width: 1200px) {
    .portfolio-slider-grid {
        grid-template-columns: repeat(3, 3fr);
        gap: 20px;
    }


}

@media screen and (min-width: 1201px) and (max-width: 1404px) {
    .portfolio-slider-grid {
        grid-template-columns: repeat(4, 3fr);
        gap: 30px;
    }
}