@font-face {
    font-family: 'Montserrat-Arabic';
    src: url('../font/alfont_com_Montserrat-Arabic-Regular.ttf');
}

:root {
    --color-primary: #f2994a;
    --color-primary-light: #f1eae5;
    --color-secondary: #2f80ed;
    --color-secondary-light: #56ccf2;
    --color-secondary-very-light: #eef5fe;
    --color-background: #2f80ed14;
    --color-text: #5f5f5f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 10px;
    font-family: 'Montserrat-Arabic', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: inherit;
}

span {
    color: var(--color-primary);
}

/* Project Mini Section */
.prject-mini {
    margin-top: 90px;
}

/* Top Section */
.project-mini-top {
    position: relative;
    background: url('../img/pop.jpg') center center / cover no-repeat;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-inline: 20px;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.project-mini-top::before,
.project-mini-top::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 0 0 20px 20px;
}

.project-mini-top::before {
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2));
}

.project-mini-top::after {
    background-color: rgba(0, 0, 0, 0.4);
}

.project-mini-top-text {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
    padding: 2rem;
}

.project-mini-top-text h5 {
    background: var(--color-primary);
    padding: 0.8rem 1.6rem;
    border-radius: 30px;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    display: inline-block;
}

.project-mini-top-text h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.6rem;
}

.project-mini-top-text p {
    font-size: 1.6rem;
    line-height: 1.5;
}

.project-mini-top-text-bottom {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
}

.project-mini-top-text-bottom img {
    height: 20px;
    width: 20px;
    margin-inline-start: 1rem;
}

/* Mid Section */
.project-mini-mid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 5rem 2rem;
    flex-wrap: wrap;
}

.project-mini-mid-right {
    flex: 1 1 65%;
    padding-right: 10px;
}

.project-mini-mid-right h1 {
    font-size: 3rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 2rem;
}

.project-mini-mid-right p {
    font-size: 1.8rem;
    line-height: 1.7;
    color: var(--color-text);
}
.project-mini-mid-right h3 {
    padding: 10px 0 10px 0 ;}

.project-mini-mid-left {
    flex: 1 1 30%;
    background-color: #f9f9fa;
    border-radius: 20px;
    padding: 2rem;
}

.project-mini-mid-left h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.project-mini-mid-left-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-mini-mid-left-item img {
    width: 20px;
    height: 20px;
}

.project-mini-mid-left-item h1 {
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0;
}

.project-mini-mid-left-item p {
    font-size: 1.6rem;
    font-weight: 400;
}

/* Bottom Section */
.project-mini-mid-bottom-sec1,
.project-mini-mid-bottom-sec2 {
    margin: 5rem 2rem;
}

.project-mini-mid-bottom-sec1 h1,
.project-mini-mid-bottom-sec2 h1 {
    font-size: 2.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.articles-grid h3{
padding: 10px;
}

/* Swiper Styles */
.mySwiper {
    width: 96vw !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: unset !important;
    max-height: 320px !important;
    margin: 0 auto 18px auto !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px 0 #e0e0e0;
    background: #fff;
    display: flex !important;
    align-items: center !important;
    position: relative;
}
.mySwiper .swiper-slide {
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.mySwiper .swiper-slide img {
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 12px !important;
}

@media (max-width: 1200px) {
    .mySwiper {
        height: 320px;
    }
}

.swiper-button-prev,
.swiper-button-next {
    background-color: dodgerblue;
    color: red ;
    width: 70px !important;
    opacity: 50%;
    height:70px !important;
    border-radius: 50%;
    font-size: 1.8rem !important;
}

/* Client Testimonials */
.our-clients {
    padding: 4rem 2rem;
    width: 100%;
    background: var(--color-secondary-very-light);
    text-align: center;
}


.our-clients-h {
    font-size: 2.6rem;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.our-clients-h span {
    display: block;
    color: var(--color-primary);
    margin-top: 0.5rem;
}
.card-slide-our-clients {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 90%;
    margin: 0 auto;
    text-align: start;
}

.card-slide-our-clients .comma {
    width: 20px;
    height: 20px;
    opacity: 52%;
    margin-bottom: 1rem;
}

.our-clients-person-initial {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
    margin-left: 10px;
}

.sec-title-card-ouClients {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.our-clients-test h2 {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.our-clients-test h4 {
    font-size: 1.3rem;
    color: var(--color-text);
}

/* Media Queries */
@media (max-width: 768px) {
    html {
        font-size: 9px;
    }

    .project-mini-top {
        height: auto;
        padding: 2rem 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .project-mini-top-text {
        margin: 0;
        padding: 2rem 1rem;
    }

    .project-mini-top-text h1 {
        font-size: 3rem;
    }

    .project-mini-mid {
        flex-direction: column;
        margin-inline: 1.5rem;
    }

    .project-mini-mid-right,
    .project-mini-mid-left {
        width: 100%;
    }

    .project-mini-mid-left {
        padding: 1.5rem;
    }

    .project-mini-mid-bottom-sec1,
    .project-mini-mid-bottom-sec2 {
        margin: 3rem 1.5rem;
    }

    .our-clients-h {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .project-mini-top-text h5 {
        font-size: 1.4rem;
    }

    .project-mini-top-text h1 {
        font-size: 2.4rem;
    }

    .project-mini-top-text p {
        font-size: 1.4rem;
    }

    .project-mini-mid-right h1 {
        font-size: 2rem;
    }

    .project-mini-mid-right p {
        font-size: 1.3rem;
    }

    .project-mini-mid-left h3 {
        font-size: 1.8rem;
    }

    .project-mini-mid-left-item h1,
    .project-mini-mid-left-item p {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .our-clients-h {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .card-slide-our-clients {
        padding: 1.5rem;
        max-width: 100%;
    }

    .our-clients-test h2 {
        font-size: 1.4rem;
    }

    .our-clients-test h4 {
        font-size: 1.2rem;
    }

    .our-clients-person-initial {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 1.4rem;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 28px !important;
        height: 28px !important;
    }
}
/* Existing styles remain the same until the swiper section */

/* Enhanced Swiper Styles */
.swiper-project-gallery {
    width: 85%;
    height: 1000px;
    margin: 0 auto 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.swiper-project-gallery .swiper-slide {
    height: 100%;
    display: flex;
    align-items: stretch; /* ensures the image can fully stretch vertically */
    justify-content: center;
    background: #f5f5f5;
    overflow: hidden;
}

.swiper-project-gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.swiper-project-gallery .swiper-slide:hover img {
    transform: scale(1.02);
}

.swiper-project-gallery .swiper-button-prev,
.swiper-project-gallery .swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: dodgerblue;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.swiper-project-gallery:hover .swiper-button-prev,
.swiper-project-gallery:hover .swiper-button-next {
    opacity: 1;
    visibility: visible;
}

.swiper-project-gallery .swiper-button-prev:hover,
.swiper-project-gallery .swiper-button-next:hover {
    background: dodgerblue;
    color: white;
}

.swiper-project-gallery .swiper-button-prev::after,
.swiper-project-gallery .swiper-button-next::after {
    font-size: 1.5rem;
    font-weight: bold;
}

.swiper-project-gallery .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-project-gallery .swiper-pagination-bullet-active {
    background: dodgerblue;
    opacity: 1;
    transform: scale(1.2);
}




/* Responsive Adjustments */
@media (max-width: 1024px) {
    .swiper-project-gallery {
        height: 400px;
    }

    .project-mini-mid {
        flex-direction: column;
    }

    .project-mini-mid-right,
    .project-mini-mid-left {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .swiper-project-gallery {
        height: 350px;
        border-radius: 15px;
    }

    .project-mini-top-text h1 {
        font-size: 3rem;
    }


}

@media (max-width: 576px) {
    .swiper-project-gallery {
        height: 250px;
        border-radius: 10px;
    }

    .swiper-project-gallery .swiper-button-prev,
    .swiper-project-gallery .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .project-mini-top-text h1 {
        font-size: 2.4rem;
    }

    .project-mini-top-text p {
        font-size: 1.4rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        width: 100%;
        height: 100%;
        padding: 0;
        margin-bottom: 20px;
    }
    .article-card img {
        padding: 0;
        height: 325px;
        object-fit: contain;
        margin-bottom: 20px;
    }
}

@media (max-width: 400px) {
    .swiper-project-gallery {
        height: 200px;
    }

    .project-mini-top {
        height: 300px;
    }

    .project-mini-top-text h1 {
        font-size: 2rem;
    }

    .project-mini-mid-right h1 {
        font-size: 2.2rem;
    }

    .project-mini-mid-right p {
        font-size: 1.4rem;
    }
}
