/* start variables */
:root {
  --main-color: #3879f0;
  --section-padding: 100px;
  --font-color: #666666;
  --container-margin: 50px;
}

/* End variables */
/*start Global Rules*/
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
/*End Global Rules*/
html {
  scroll-behavior: smooth;
}
@font-face {
  font-family: "Galvji";
  src: url("fonts/Galvji-Regular.ttf") format("truetype");
}

body {
  font-family: "Poppins", sans-serif;
}

body {
  color: #323232;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
}
.head {
  text-align: center;
  margin-bottom: 50px;
}
.head h3,
h2 {
  font-size: 40px;
  margin-bottom: 20px;
  text-align: center;
  font-family: "Galvji", sans-serif;
}
.head P {
  font-size: 16px;
  color: var(--font-color);
  padding: 0 35px;
  width: 70%;
  margin: 0 auto;
}
.container {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
/* container media */
/* Small */
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}

/* Medium */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

/* Large */
@media (min-width: 1200px) {
  .container {
    width: 1200px;
  }
}
.sec-bm {
  margin-bottom: 70px;
}
.logo img {
  width: 140px;
}

/* start landing */
.landing .text .content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.landing {
  min-height: 400px;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 133px;
}

.landing .text {
  position: static;
  transform: none;
  width: 70%;
  display: flex;
  justify-content: center;
  text-align: center;
  margin: 0px auto;
}

.landing .text .content h2 {
  font-size: 48px;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 8px;
  color: black;
}
.landing .text .content h2 span {
  background: #cbddf7;
  background: linear-gradient(
    90deg,
    rgba(203, 221, 247, 1) 0%,
    rgba(240, 245, 252, 1) 77%,
    rgba(255, 255, 255, 1) 100%
  );
  padding-left: 5px;
}
.landing .text .content p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--font-color);
  margin-bottom: 20px;
  width: 80%;
}
.landing .blue-button {
  padding: 0 13px;
  font-size: 16px;
}
/* landing media */
@media (max-width: 768px) {
  .landing .text {
    width: 100%;
  }

  .landing .text .content h2 {
    font-size: 32px;
  }

  .landing .text .content p {
    width: 100%;
    font-size: 14px;
  }
}
@media (max-width: 767px) {
  .landing .text {
    width: 100%;
  }

  .landing .text .content {
    max-width: 100%;
  }
}
/* end landind */
/* start trusted companies */
.trusted-co .container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 60px;
}
.trusted-co h3 {
  font-weight: 500;
  font-size: 15px;
  color: var(--font-color);
  margin-bottom: 30px;
  text-align: center;
}
.trusted-co ul {
  display: flex;
}

.trusted-co ul li {
  border-right: 1px solid rgba(117, 115, 115, 0.521);
  padding: 0 20px;
}
.trusted-co ul li:last-child {
  border: none;
}
.trusted-co ul li img {
  width: 130px;
}
/* trusted companies media */
@media (max-width: 768px) {
  .trusted-co .container {
    width: 90%;
  }

  .trusted-co ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .trusted-co ul li {
    border: none;
    padding: 10px;
  }
}
/* end trusted companies */

/* start our story */
.our-story .container {
  display: flex;
  justify-content: space-between;
  column-gap: 50px;
}
.our-story img {
  width: 548px;
  height: 336px;
  margin-top: 24px;
  padding: 10px;
}
.our-story .container .text {
  width: 50%;
  padding: 7px;
}
.our-story .container .text h4 {
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 40px;
}
.our-story .container .text p {
  color: var(--font-color);
  font-size: 16px;
}
.our-story .container .text p span {
  font-weight: bold;
}
/* our story media */
@media (max-width: 768px) {
  .our-story .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .our-story .container .text {
    width: 100%;
    padding: 10px;
  }

  .our-story img {
    width: 100%;
    height: auto;
    margin-top: 10px;
    padding: 0;
  }

  .our-story .container .text h4 {
    font-size: 30px;
  }

  .our-story .container .text p {
    font-size: 14px;
  }
}
@media (min-width: 769px) and (max-width: 1211px) {
  .our-story .container {
    column-gap: 30px;
    flex-wrap: wrap;
  }

  .our-story img {
    width: 45%;
    height: auto;
    padding: 0;
    margin-top: 0;
  }

  .our-story .container .text {
    width: 50%;
    padding: 5px;
  }

  .our-story .container .text h4 {
    font-size: 32px;
  }

  .our-story .container .text p {
    font-size: 15px;
  }
}
@media (min-width: 768px) and (max-width: 800px) {
  .our-story .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .our-story .container .text {
    width: 90%;
    padding: 10px;
  }

  .our-story img {
    width: 90%;
    height: auto;
    margin-top: 10px;
    padding: 0;
  }
}

/* end our story */
/* start efficiency unleashed  */
.beyond-projects .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.beyond-projects .sections {
  display: flex;
  flex-direction: row;
  justify-content: center;
  column-gap: 55px;
}
.beyond-projects .sections .section {
  width: 30%;
  border-top: 1px solid black;
}
.beyond-projects .sections .section h4 {
  padding: 20px 0px;
  font-size: 19px;
}
.beyond-projects .sections .section p {
  font-size: 16px;
  color: var(--font-color);
}
/* beyond projects media */
@media (max-width: 993px) {
  .beyond-projects .sections {
    flex-direction: column;
    row-gap: 30px;
  }
  .head p {
    padding: 0;
  }
  .beyond-projects .sections .section {
    width: 100%;
  }
}
/* end efficiency unleashed  */
/* start cards  */
.cards-container {
  display: grid;
  grid-template-columns: 47% 24% 24%;
  gap: 2.5%;
  padding-top: 22px;
}

.clients-cards .card {
  background-color: #f8f9fa;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  z-index: 1;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease-in-out;
  padding: 15px;
  border: 1px solid #e7e7e7;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.clients-cards .card .client-card-img {
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 0;
  width: 0;
  visibility: hidden;
  transform: scale(0);
}
.clients-cards .card {
  transition: transform 0.3s ease-in-out;
}
.clients-cards .card .card-content {
  position: relative;
  margin: 20px 0;
  z-index: 1;
  text-align: center;
  color: var(--font-color);
  width: 100%;
  transition: all 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.clients-cards .card-content .star {
  font-size: 24px;
  color: #fbc924;
  margin: 5px;
  font-weight: bold;
}

.clients-cards .card .client-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.clients-cards .card .card-content h3 {
  font-size: 32px;
  color: black;
  padding: 15px 0;
}

.clients-cards .card .about-client {
  margin-bottom: 20px;
  width: 220px;
}

.card .card-content .client {
  display: flex;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.clients-cards .card .card-content .client-name {
  margin-left: 20px;
}

.clients-cards .card .card-content .card-name h4 {
  font-weight: 600;
}

.client-stars {
  order: 2;
}

.card-content {
  display: flex;
  flex-direction: column;
}
.clients-cards .container {
  padding: 5px;
}
/* ????????????????????????????????????????????? */
.cards-container .larg .client-stars {
  order: -1;
}
.cards-container .larg .about-client {
  text-align: left;
}

.cards-container .larg .client-card-img {
  opacity: 1;
  width: 45%;
  display: block;
  visibility: visible;
  transform: scale(1);

  max-width: 100%;
  height: auto;
  display: block;
}
.cards-container .larg .card-content {
  width: 50%;
  display: flex;
  align-items: flex-start;
  padding-left: 35px;
}

.cards-container .larg {
  z-index: 10;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  grid-column: 1 / 2;
}
.cards-container .card:not(.larg):nth-child(2) {
  grid-column: 2 / 3;
}
.cards-container .card:not(.larg):nth-child(3) {
  grid-column: 3 / 4;
}
.card.larg .content {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* ????????????????????????????????????????????? */
/* cards media */

/* ✅ 1. تصغير الخطوط تدريجيًا من أول 1200px */
@media (max-width: 1200px) {
  .clients-cards .card .card-content h3 {
    font-size: 28px;
  }

  .clients-cards .card-content .star {
    font-size: 20px;
  }

  .clients-cards .card .about-client {
    font-size: 14px;
  }

  .clients-cards .card .client-name h4 {
    font-size: 16px;
  }

  .clients-cards .card .client-name p {
    font-size: 13px;
  }

  .clients-cards .card .client-img {
    width: 35px;
    height: 35px;
  }

  .cards-container .larg .client-card-img {
    max-width: 250px;
  }
}

/* ✅ 2. تقسيم المحتوى صفين على الشاشات الصغيرة */
@media (max-width: 992px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "larg larg"
      "card1 card2";
    gap: 25px;
  }

  .cards-container .larg {
    grid-area: larg;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cards-container .card:not(.larg):nth-child(2) {
    grid-area: card1;
  }

  .cards-container .card:not(.larg):nth-child(3) {
    grid-area: card2;
  }

  .cards-container .card,
  .cards-container .larg {
    width: 100%;
    max-width: 100%;
  }

  /* صغر الخط أكتر شوي */
  .clients-cards .card .card-content h3 {
    font-size: 24px;
  }

  .clients-cards .card .about-client {
    font-size: 13px;
  }

  .clients-cards .card-content .star {
    font-size: 18px;
  }

  .clients-cards .card .client-name h4 {
    font-size: 15px;
  }
}

/* ✅ 3. شاشات أصغر من 768px - كل كارت في صف لوحده */
@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "larg"
      "card1"
      "card2";
    gap: 25px;
  }

  .cards-container .larg {
    flex-direction: column;
    align-items: center;
  }

  .cards-container .larg .card-content {
    padding-left: 0;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .cards-container .larg .client-card-img {
    width: 100%;
    max-width: 250px;
    margin-bottom: 15px;
  }

  .clients-cards .card .card-content h3 {
    font-size: 22px;
  }

  .clients-cards .card-content .star {
    font-size: 16px;
  }

  .clients-cards .card .client-name h4 {
    font-size: 14px;
  }

  .clients-cards .card .about-client {
    font-size: 12.5px;
  }
}
@media (min-width: 992px) and (max-width: 1400px) {
  .cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "larg larg"
      "card1 card2";
    gap: 30px;
    justify-items: center;
  }

  .cards-container .larg {
    grid-area: larg;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 67%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }

  .cards-container .card:not(.larg):nth-child(2) {
    grid-area: card1;
  }

  .cards-container .card:not(.larg):nth-child(3) {
    grid-area: card2;
  }

  .cards-container .larg .client-card-img {
    max-width: 220px;
    width: 45%;
    height: auto;
    display: block;
  }

  .cards-container .larg .card-content {
    width: 50%;
    padding-left: 25px;
    text-align: left;
    align-items: flex-start;
  }

  .clients-cards .card .card-content h3 {
    font-size: 26px;
  }

  .clients-cards .card-content .star {
    font-size: 18px;
  }

  .clients-cards .card .about-client {
    font-size: 14px;
  }

  .clients-cards .card .client-name h4 {
    font-size: 15px;
  }

  .clients-cards .card .client-name p {
    font-size: 13px;
  }

  .clients-cards .card .client-img {
    width: 36px;
    height: 36px;
  }
}

/* end cards */
/* start our process */
.our-process {
  background-color: #f6f6f680;
}
.our-process .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-bottom: 150px;
  margin: 0 auto;
  width: 100%;
}
.our-process .container .head p {
  width: 100%;
}
.our-process .grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); /* مرن */
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  box-sizing: border-box;
}
.our-process .box {
  background-color: white;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 6px 0px rgba(50, 50, 50, 0.15);
  flex-direction: column;
  padding: 20px;
  text-align: center;
}
.our-process .box h3 {
  font-size: 33px;
  color: #323232;
}
.our-process .box h5 {
  font-size: 19px;
  margin: 13px 0px;
}
.our-process .box p {
  font-size: 13px;
  color: var(--font-color);
}
/* our progress media */
@media (max-width: 1024px) {
  .our-process .grid-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .our-process .grid-container {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .our-process .box {
    height: auto;
    padding: 25px 20px;
  }

  .our-process .box h3 {
    font-size: 28px;
  }

  .our-process .box h5 {
    font-size: 16px;
    margin: 10px 0;
  }

  .our-process .box p {
    font-size: 14px;
  }

  .our-process .head h3 {
    font-size: 26px;
    text-align: center;
  }

  .our-process .head p {
    font-size: 14px;
    text-align: center;
  }
}

/* end our process */
