/* Very small devices (phones, 400px and below) */
@media screen and (max-width: 400px) {
  .logo img {
    width: 140px; /* 40% of 350px */
    height: 28px; /* 40% of 70px */
  }

  .navbar .logo img {
    width: 140px; /* 40% of 350px */
    height: 28px; /* 40% of 70px */
  }
}

/* Small devices (landscape phones, 576px and up) */


@media screen and (max-width: 576px) {
  .container {
    width: 90%;
    gap: 0;

    .nav-list a {
      font-size: 0;
      /* يخفي النص */
    }

    .nav-list a i {
      font-size: 20px;
      /* يكبر الأيقونات لو محتاج */
    }

    #langText {
      display: none;
      /* يخفي النص بجانب أيقونة اللغة */
    }

    .nav-list ul {
      display: flex;
      gap: 0px;
      /* يتحكم في المسافة بين الأيقونات */
      padding: 3;
      margin: 0;
      list-style: none;
    }

    .nav-list li {
      padding: 0;
      /* إزالة أي padding زائد */
    }

    .nav-list li a {
      padding: 0px;
      /* تصغير الـ padding داخل كل أيقونة */
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .logo img {
      width: 140px;
      height: 40px;
      /* بدل 50% خليها أكبر شويه */
    }

    .contact .icons {
      display: flex;
      /* تأكد انه flex */
      gap: 5px;
      /* المسافة بين الأيقونات */
      justify-content: start;
      /* أو center حسب التصميم */
      align-items: center;
    }

    .contact .icon-card {
      margin-right: 8px;
    }

    


  }

  section {
    padding: 24px 0;
  }

  /* ===== Tooltip ===== */

  /* السهم الصغير فوق التولتيب */
  .tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--font-color1) transparent;
  }

  /* عند تمرير الماوس تظهر */
  .icon-card:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
  }

  header h2 {
    font-size: var(--font-18);
  }

  /* -----------------navbar-------------- */

  .nav-list .icon-card a p,
  #langText {
    display: none;
  }

  .logo img {
    width: 180px; /* 51.43% of 350px */
    height: 50px; /* 71.43% of 70px */
  }

  /* ----------------hero section------------- */

  .hero-section .container {
    flex-wrap: wrap-reverse;
  }

  .hero-section .info {
    width: 100%;
  }

  .hero-section .info .header {
    font-size: var(--font-40);
  }

  .hero-section {
    top: 0;
  }


  .p-hero {
    font-size: var(--font-16);
  }

  /* ------------servise section------------ */

  .service-cards {
    flex-wrap: wrap;
  }

  .service-cards .card {
    border-radius: 16px;
    /* padding: 0 24px; */
  }

  /* --------about us-------------- */

  .about-section .container {
    flex-wrap: wrap;
  }

  .about-section .info,
  .location {
    width: 100%;
  }

  .about-section .info h2 {
    font-size: var(--font-18);
  }

  .vision,
  .mission {
    font-size: var(--font-16);
  }

  .about-section .info p {
    font-size: var(--font-16);
  }

  .map-wrapper iframe {
    height: 400px;
  }

  /* ------footer--------- */

  .company {
    display: none;
  }

  .footer .titel {
    font-size: var(--font-14);
  }

  .footer .info {
    font-size: var(--font-14);
    text-align: center;
  }

  .footer .icons {
    width: 100%;
  }

  .footer .icons .icon-card .fab {
    font-size: var(--font-24);
  }


  .copyrights p {
    font-size: var(--font-14);
  }
}

/* منع الضوء الأزرق عند الضغط على الموبايل */
* {
  -webkit-tap-highlight-color: transparent !important;
}


@media screen and (min-width: 377px) {
  .container {
    width: 90%;
    gap: 0;
  }

  section {
    padding: 24px 0;
  }


  /* ===== Tooltip ===== */

  /* السهم الصغير فوق التولتيب */
  .tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--font-color1) transparent;
  }

  /* عند تمرير الماوس تظهر */
  .icon-card:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
  }

  header h2 {
    font-size: var(--font-18);
  }

  /* -----------------navbar-------------- */

  .nav-list .icon-card a,
  #langText {
    display: none;
  }


  .logo img {
    width: 180px; /* 51.43% of 350px */
    height: 50px; /* 71.43% of 70px */
  }

  /* ----------------hero section------------- */

  .hero-section .container {
    flex-wrap: wrap-reverse;
  }

  .hero-section .info {
    width: 100%;
  }

  .hero-section .info .header {
    font-size: var(--font-40);
  }

  .p-hero {
    font-size: var(--font-16);
  }

  /* ------------servise section------------ */

  .service-cards {
    flex-wrap: wrap;
  }

  .service-cards .card {
    border-radius: 16px;
    /* padding: 0 24px; */
  }

  /* --------about us-------------- */

  .about-section .container {
    flex-wrap: wrap;
  }

  .about-section .info,
  .location {
    width: 100%;
  }

  .about-section .info h2 {
    font-size: var(--font-18);
  }

  .vision,
  .mission {
    font-size: var(--font-16);
  }

  .about-section .info p {
    font-size: var(--font-16);
  }

  .map-wrapper iframe {
    height: 400px;
  }

  /* ------footer--------- */

  .company {
    display: none;
  }

  .footer .titel {
    font-size: var(--font-14);
  }

  .footer .info {
    font-size: var(--font-14);
    text-align: center;
  }

  .footer .icons {
    width: 100%;
  }

  .footer .icons .icon-card .fab {
    font-size: var(--font-24);
  }


  .copyrights p {
    font-size: var(--font-14);
  }
}

/* Medium devices (tablets, 768px to 850px) */
@media screen and (min-width: 768px) and (max-width: 850px) {

  /* -----------------navbar-------------- */

  .navbar .logo img {
    width: 228px; /* 65% of 350px - smaller intermediate size */
    height: 46px; /* 65% of 70px - smaller intermediate size */
  }

  .logo img {
    width: 228px; /* 65% of 350px - smaller intermediate size */
    height: 46px; /* 65% of 70px - smaller intermediate size */
  }

  header h2 {
    font-size: var(--font-32);
  }


  .nav-list .icon-card a {
    display: flex;
  }

  #langText {
    display: block;
  }

  /* ------------servise section------------ */

  .service-cards .card {
    width: 48%;
  }

  .icon-card:hover .tooltip {
    visibility: hidden;

  }

  /* -------------about us -------- */
  .about-section .info h2 {
    font-size: var(--font-24);
  }

  .about-section .info,
  .location {
    width: 50%;
  }

  /* -------footer-------- */
  .footer {
    display: flex;
    justify-content: space-between;
  }

  .company,
  .links,
  .contact {
    width: calc(100% / 3);
  }

  .company {
    display: flex;

  }

  .footer .info {
    text-align: start;
  }

  .footer .icons {
    width: 100%;
  }

  .logo-footer img {
    width: 80%;
  }

  .footer .icons .icon-card .fab {
    font-size: var(--font-32);
  }
}

/* Medium devices (tablets, 851px to 930px) */
@media screen and (min-width: 851px) and (max-width: 930px) {

  /* -----------------navbar-------------- */

  .navbar .logo img {
    width: 263px; /* 75% of 350px - intermediate size */
    height: 53px; /* 75% of 70px - intermediate size */
  }

  .logo img {
    width: 263px; /* 75% of 350px - intermediate size */
    height: 53px; /* 75% of 70px - intermediate size */
  }

  header h2 {
    font-size: var(--font-32);
  }


  .nav-list .icon-card a {
    display: flex;
  }

  #langText {
    display: block;
  }

  /* ------------servise section------------ */

  .service-cards .card {
    width: 48%;
  }

  .icon-card:hover .tooltip {
    visibility: hidden;

  }

  /* -------------about us -------- */
  .about-section .info h2 {
    font-size: var(--font-24);
  }

  .about-section .info,
  .location {
    width: 50%;
  }

  /* -------footer-------- */
  .footer {
    display: flex;
    justify-content: space-between;
  }

  .company,
  .links,
  .contact {
    width: calc(100% / 3);
  }

  .company {
    display: flex;

  }

  .footer .info {
    text-align: start;
  }

  .footer .icons {
    width: 100%;
  }

  .logo-footer img {
    width: 80%;
  }

  .footer .icons .icon-card .fab {
    font-size: var(--font-32);
  }
}

/* Medium devices (tablets, 931px and up) */
@media screen and (min-width: 931px) {

  /* -----------------navbar-------------- */

  .navbar .logo img {
    width: 350px; /* default size */
    height: 70px; /* default size */
  }

  .logo img {
    width: 350px; /* default size */
    height: 70px; /* default size */
  }

  header h2 {
    font-size: var(--font-32);
  }


  .nav-list .icon-card a {
    display: flex;
  }

  #langText {
    display: block;
  }

  /* ------------servise section------------ */

  .service-cards .card {
    width: 48%;
  }

  .icon-card:hover .tooltip {
    visibility: hidden;

  }

  /* -------------about us -------- */
  .about-section .info h2 {
    font-size: var(--font-24);
  }

  .about-section .info,
  .location {
    width: 50%;
  }

  /* -------footer-------- */
  .footer {
    display: flex;
    justify-content: space-between;
  }

  .company,
  .links,
  .contact {
    width: calc(100% / 3);
  }

  .company {
    display: flex;

  }

  .footer .info {
    text-align: start;
  }

  .footer .icons {
    width: 100%;
  }

  .logo-footer img {
    width: 80%;
  }

  .footer .icons .icon-card .fab {
    font-size: var(--font-32);
  }
}

/* Large devices (desktops, 992px and up) */
@media screen and (min-width: 992px) {
  /* ------hero section-------- */

  .hero-section .container {
    flex-wrap: nowrap;
  }

  .hero-section .info {
    width: 40%;
  }

  /* -------about us--------- */
  .about-section .info,
  .location {
    width: 50%;
  }

  /* -------footer------- */

  .logo-footer img {
    width: 80%;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 80%;
  }

  .navbar .logo {
    width: 45%;
    /* بدل 40% */
  }

  .logo-footer img {
    width: 60%;
    /* بدل 50% أو 80% حسب ما تحب */
  }

  .service-cards .card .inner-card {
    min-height: 600px;
  }

  section {
    padding: 36px 0;
  }

  .navbar {
    width: 100%;
  }

  .navbar .logo {
    width: 40%;
  }

  .hero-section {
    height: calc(100vh - 86px);
  }

  .hero-section .info {
    width: 40%;
  }

  .hero-section .info .header {
    font-size: var(--font-52);
  }

  .p-hero {
    font-size: var(--font-18);
  }

  /* //////////// */

  .service-cards {
    flex-wrap: nowrap;
  }

  .about-section .info,
  .location {
    width: 50%;
  }

  .vision,
  .mission {
    font-size: var(--font-24);
  }

  .company,
  .links,
  .contact {
    width: calc(100% / 3);
  }

  .logo-footer {
    width: 50%;
  }

  .footer .titel {
    font-size: var(--font-18);
  }

  .footer .info {
    font-size: var(--font-16);

  }

  .footer .icons {
    width: 50%;
  }

  .logo-footer img {
    width: 100%;
  }
}

@media (max-width: 1440px) {
  .service-cards .card .inner-card {
    min-height: 600px;
  }
}

@media (min-width: 1440px) {
  .service-cards .card .inner-card {
    min-height: 500px;
  }
}