@media (max-width: 475px) {
  /* #Global Styles
    ================================================== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Familjen Grotesk", sans-serif;
  }
  body {
    background-color: #ffff;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
  }

  /* #Header Section
    ================================================== */
  #logo {
    width: 0;
    height: 0;
    display: none;
  }
  .Header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    position: sticky;
    top: 4px;
    z-index: 1000;
    background-color: transparent;
  }

  /* #Navigation
    ================================================== */
  .Navigation {
    width: 207px;
    height: 30px;
    border-radius: 40px;
    font-size: 10px;
    line-height: 140%;
    font-weight: 400;
    gap: 8px;
  }
  .Navigation li a {
    padding: 8px;
    width: 44px;
    height: 23px;
    border-radius: 24px;
  }
  .Navigation li a:hover {
    border-radius: 24px;
  }
  .Navigation li a.active {
    border-radius: 24px;
  }

  /* #Typography
    ================================================== */
  h1 {
    z-index: -1;
    font-size: 72px;
    font-weight: 700;
    margin: 10px 0;
    line-height: 90%;
    letter-spacing: -2%;
    width: 242px;
    height: 116px;
    margin-left: 25px;
    margin-right: 0px;
  }

  /* #Layout Components
    ================================================== */
  .Auto-Layout-Vertical {
    animation: none;
    /* gap: 8px; */
    border-radius: 70px;
    /* width: 139px; */
    height: 40px;
    /* right: 100px; */
    bottom: -34px;
    margin-left: 100px;
    left: auto;
  }
  .Auto-Layout-Vertical li a {
    font-weight: 700;
    font-size: 16px;
  }
  .Auto-Layout-Horizontal {
    width: 370px;
    font-size: 12px;
    gap: 35px;
    margin: auto;
    margin-top: 87px;
    left: -1px;
    position: relative;
  }

  /* #Projects Section
    ================================================== */
  .Projects {
    width: 343px;
    height: 119px;
    margin-top: 92px;
    margin-left: 23px;
    left: -15px;
    position: relative;
  }
  .Pr-info {
    display: flex;
    gap: 1px;
    flex-direction: column;
  }
  .Pr-info h2 {
    margin-left: 7px;
  }
  .Pr-info p {
    margin-left: 11px;
    width: 343px;
  }
  .Pr-More {
    position: relative;
    top: 18px;
  }

  /* #Projects Container
    ================================================== */
  #projects-container {
    width: 97%;
    padding: 0 9px;
    box-sizing: border-box;
    overflow-y: visible;
    min-height: 100vh;
  }

  /* #Cards
    ================================================== */
    .Card1 {
      flex-direction: column;
      width: 100%; /* تقليل العرض في حجم الهاتف */
      /* padding: 0 20px; /* إضافة حشوة لتجنب تداخل العناصر */
      align-items: center;
      box-sizing: border-box;
      margin-top: 92px;
      overflow-y: visible;
    }
    .Card-Element-desktop {
      height: 300px;
      width: 394px;
      margin-bottom: 20px;
    }

  /* #About Section
    ================================================== */
    #About {
      width: 100%;
      overflow-x: hidden;
      /*   padding: 0 10px; /* تقليل الهوامش الجانبية */
    }

  .ex {
    font-size: 28px;
    margin-bottom: -49px;
    text-align: right; /* تغيير محاذاة العنوان إلى اليمين */
    padding-right: 15px; /* إضافة مسافة من اليمين */
    margin-left: 23px;
    width: 100%;
  }

  .ex- {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
    padding: 0 5px; /* تقليل الهوامش الجانبية */
    margin-left: 0px;
  }

  .ex1 {
    margin: 0; /* إزالة الهوامش الخارجية */
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    box-sizing: border-box;
  }

  .ex1-1 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .cer {
    font-size: 6px;
  }

  .text {
    font-size: 18px;
  }

  .ex-p {
    font-size: 13px;
    line-height: 1.4;
    padding-left: 10px; /* تقليل المسافة من اليسار */
    padding-right: 10px; /* إضافة مسافة من اليمين */
    max-width: 100%;
  }

  /* #Seb Section
    ================================================== */
  .seb {
    width: 100%;
    padding: 0;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black; /* شريط أسود */
    height: 114px; /* ارتفاع الشريط */
  }

  .seb .text-Reg {
    bottom: 8px;
    font-size: 88px;
    font-weight: bold;
    color: white;
    text-align: center;
    padding: 0;
    line-height: 60px;
    width: 100%;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

/* testimonials section */
  /* ================================================== */

  .testimonials-section {
    width: 400px;
  }
  .section-title {
    font-size: 63px;
    height: 81px;

  }

  .testimonials-container {
    display: flex;
    flex-direction: column;
  }

/* #Text section */
  /* ================================================== */
  .Text {
    font-size: 95px;
  }

  .bttn {
    margin-left: 32px;
  }

  .fot {
    margin-left: 7px;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    width: 400px;
  }
}

@media (max-width: 376px) {
  /* #Global Styles
    ================================================== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Familjen Grotesk", sans-serif;
  }
  body {
    background-color: #ffff;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
  }

  /* #Header Section
    ================================================== */
  #logo {
    width: 0;
    height: 0;
    display: none;
  }
  .Header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    position: sticky;
    top: 4px;
    z-index: 1000;
    background-color: transparent;
  }

  /* #Navigation
    ================================================== */
  .Navigation {
    width: 207px;
    height: 30px;
    border-radius: 40px;
    font-size: 10px;
    line-height: 140%;
    font-weight: 400;
    gap: 8px;
  }
  .Navigation li a {
    padding: 8px;
    width: 44px;
    height: 23px;
    border-radius: 24px;
  }
  .Navigation li a:hover {
    border-radius: 24px;
  }
  .Navigation li a.active {
    border-radius: 24px;
  }

  /* #Typography
    ================================================== */
  h1 {
    z-index: -1;
    font-size: 72px;
    font-weight: 700;
    margin: 10px 0;
    line-height: 90%;
    letter-spacing: -2%;
    width: 242px;
    height: 116px;
    margin-left: 25px;
    margin-right: 0px;
  }

  /* #Layout Components
    ================================================== */
  .Auto-Layout-Vertical {
    animation: none;
    /* gap: 8px; */
    border-radius: 70px;
    /* width: 139px; */
    height: 40px;
    /* right: 100px; */
    bottom: -34px;
    margin-left: 100px;
    left: auto;
  }
  .Auto-Layout-Vertical li a {
    font-weight: 700;
    font-size: 16px;
  }
  .Auto-Layout-Horizontal {
    width: 370px;
    font-size: 12px;
    gap: 35px;
    margin: auto;
    margin-top: 87px;
    left: 11px;
    position: relative;
  }

  /* #Projects Section
    ================================================== */
  .Projects {
    width: 343px;
    height: 119px;
    margin-top: 92px;
    margin-left: 23px;
    left: -15px;
    position: relative;
  }
  .Pr-info {
    display: flex;
    gap: 1px;
    flex-direction: column;
  }
  .Pr-info h2 {
    margin-left: 7px;
  }
  .Pr-info p {
    margin-left: 11px;
    width: 343px;
  }
  .Pr-More {
    position: relative;
    top: 18px;
  }

  /* #Projects Container
    ================================================== */
  #projects-container {
    width: 97%;
    padding: 0 9px;
    box-sizing: border-box;
    overflow-y: visible;
    min-height: 100vh;
  }

  /* #Cards
    ================================================== */
    .Card1 {
      flex-direction: column;
      width: 113%; /* تقليل العرض في حجم الهاتف */
      /* padding: 0 20px; /* إضافة حشوة لتجنب تداخل العناصر */
      align-items: center;
      box-sizing: border-box;
      margin-top: 92px;
      overflow-y: visible;
    }
    .Card-Element-desktop {
      height: 300px;
      width: 394px;
      margin-bottom: 20px;
    }

  /* #About Section
    ================================================== */
    #About {
      width: 100%;
      overflow-x: hidden;
      /*   padding: 0 10px; /* تقليل الهوامش الجانبية */
    }

  .ex {
    font-size: 28px;
    margin-bottom: -49px;
    text-align: right; /* تغيير محاذاة العنوان إلى اليمين */
    padding-right: 15px; /* إضافة مسافة من اليمين */
    margin-left: 23px;
    width: 100%;
  }

  .ex- {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
    padding: 0 5px; /* تقليل الهوامش الجانبية */
    margin-left: 0px;
  }

  .ex1 {
    margin: 0; /* إزالة الهوامش الخارجية */
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    box-sizing: border-box;
  }

  .ex1-1 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .cer {
    font-size: 6px;
  }

  .text {
    font-size: 18px;
  }

  .ex-p {
    font-size: 13px;
    line-height: 1.4;
    padding-left: 10px; /* تقليل المسافة من اليسار */
    padding-right: 10px; /* إضافة مسافة من اليمين */
    max-width: 100%;
  }

  /* #Seb Section
    ================================================== */
  .seb {
    width: 109%;
    padding: 0;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black; /* شريط أسود */
    height: 114px; /* ارتفاع الشريط */
  }

  .seb .text-Reg {
    bottom: 8px;
    font-size: 88px;
    font-weight: bold;
    color: white;
    text-align: center;
    padding: 0;
    line-height: 60px;
    width: 100%;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

/* testimonials section */
  /* ================================================== */

  .testimonials-section {
    width: 400px;
  }
  .section-title {
    font-size: 63px;
    height: 81px;

  }

  .testimonials-container {
    display: flex;
    flex-direction: column;
  }

/* #Text section */
  /* ================================================== */
  .Text {
    font-size: 72px;
    margin-left: 41px;

  }

  .bttn {
    margin-left: 32px;
  }

  .fot {
    margin-left: 7px;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    width: 400px;
  }
}

@media (max-width: 321px) {
  .Navigation {
    margin-left: 62px;
  }
  .Card1 {
    width: 132%;
  }
  .ex {
    font-size: 51px;
  }

  .text {
    font-size: 32px;
}
.ex-p {
  font-size: 16px;
}
  .seb {
    width: 127%;
  }

  .Text {
    font-size: 57px;
    margin-left: 73px;
  }
}
