/* Start Global Rules */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }




  
  :root {
    --main-color: #ad9551;
    --main-color-alt: #e6dec6;
    --main-transition: 0.3s;
    --main-padding-top: 100px;
    --main-padding-bottom: 100px;
    --section-background: #ececec;
  }




.container {
    direction: rtl;
    text-align: right;
}




  html {
    scroll-behavior: smooth;
  }
  body {
    font-family: "Cairo", sans-serif;
    direction: rtl; /* عكس اتجاه النص والعناصر */
    text-align: right; /* محاذاة النص إلى اليمين */
  }
  a {
    text-decoration: none;
  }
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    direction: rtl;
    text-align: right;
  }
  /* Small */
  @media (min-width: 768px) {
    .container {
      width: 750px;
    }
  }
  /* Medium */
  @media (min-width: 992px) {
    .container {
      width: 970px;
    }
  }
  /* Large */
  @media (min-width: 1200px) {
    .container {
      width: 1170px;
    }
  }
  .main-title {
    text-transform: uppercase;
    margin: 0 auto 80px;
    border: 2px solid black;
    padding: 10px 20px;
    font-size: 30px;
    width: fit-content;
    position: relative;
    z-index: 1;
    transition: var(--main-transition);
  }
  .main-title::before,
  .main-title::after {
    content: "";
    width: 12px;
    height: 12px;
    background-color: var(--main-color);
    position: absolute;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
  }
  .main-title::before {
    left: -30px;
  }
  .main-title::after {
    right: -30px;
  }
  .main-title:hover::before {
    z-index: -1;
    animation: left-move 0.5s linear forwards;
  }
  .main-title:hover::after {
    z-index: -1;
    animation: right-move 0.5s linear forwards;
  }
  .main-title:hover {
    color: white;
    border: 2px solid white;
    transition-delay: 0.5s;
  }
  .spikes {
    position: relative;
  }
  .spikes::after {
    content: "";
    position: absolute;
    right: 0;
    width: 100%;
    height: 30px;
    z-index: 1;
    background-image: linear-gradient(135deg, white 25%, transparent 25%),
      linear-gradient(225deg, white 25%, transparent 25%);
    background-size: 30px 30px;
  }
  .dots {
    background-image: url("../imgs/dots.png");
    height: 186px;
    width: 204px;
    background-repeat: no-repeat;
    position: absolute;
  }
  .dots-up {
    top: 200px;
    right: 0;
  }
  .dots-down {
    bottom: 200px;
    left: 0;
  }
  /* End Global Rules */
  /* Start Components */
.main-heading {
  text-align: center;
  }
  .main-heading h2 {
  font-weight: normal;
  font-size: 40px;
  position: relative;
  margin-bottom: 100px;
  margin-top: 80px;
  text-transform: uppercase;
  }
  .heading {
    text-align: center;
    }
  .heading h2 {
    font-weight: normal;
    font-size: 40px;
    position: relative;
    margin-bottom: 120px;
    text-transform: uppercase;
  }
  .heading h2::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    background-color: #333;
    bottom: -20px;
    width: 140px;
    }
    .heading h2::after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 14px;
        height: 14px;
        border-radius: 50%;
        border: 2px solid #333;
        bottom: -28px;
        background-color: white;
    }
  .main-heading h2::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  background-color: #333;
  bottom: -20px;
  width: 140px;
  }
  .main-heading h2::after {
      content: "";
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      width: 14px;
      height: 14px;
      border-radius: 50%;
      border: 2px solid #333;
      bottom: -28px;
      background-color: white;
  }
  .main-heading p {
      width: 550px;
      margin: 0 auto 100px;
      max-width: 100%;
      line-height: 2;
      color: #777;
  
  }
  /* End Components */
  /* Start Header */
    .header {
        background-color: white;
        position: relative;
        -webkit-box-shadow: 0 0 10px #ddd;
        -moz-box-shadow: 0 0 10px #ddd;
        box-shadow: 0 0 10px #ddd;
      }
      .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        position: relative;
      }
      .header .logo {
        color: var(--main-color);
        font-size: 26px;
        font-weight: bold;
        height: 72px;
        display: flex;
        justify-content: center;
        align-items: center;
      }
      @media (max-width: 767px) {
        .header .logo {
          width: 100%;
          height: 50px;
        }
      }
      .header .main-nav {
        display: flex;
      }
      @media (max-width: 767px) {
        .header .main-nav {
          margin: auto;
        }
      }
      .header .main-nav > li > a {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 72px;
        position: relative;
        color: black;
        padding: 0 30px;
        overflow: hidden;
        font-size: 18px;
        transition: var(--main-transition);
      }
      @media (max-width: 767px) {
        .header .main-nav > li > a {
          padding: 10px;
          font-size: 14px;
          height: 40px;
        }
      }
      .header .main-nav > li > a::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 4px;
        background-color: var(--main-color);
        top: 0;
        left: -100%;
        transition: var(--main-transition);
      }
      .header .main-nav > li > a:hover {
        color: var(--main-color);
        background-color: #fafafa;
      }
      .header .main-nav > li > a:hover::before {
        left: 0;
      }
      /* End Header */
      /* Start Landing */
  .landing {
    position: relative;
  }
  .landing::before {
    content: "";
    position: absolute;
    left: 0;
    top: -40px;
    width: 100%;
    height: 100%;
    background-color: #ececec;
    z-index: -1;
    transform: skewY(-6deg);
    transform-origin: top left;
  }
  .landing .container {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding-bottom: 120px;
  }
  .landing .text {
    flex: 1;
  }
  @media (max-width: 991px) {
    .landing .text {
      text-align: center;
    }
  }
  .landing .text h1 {
    font-size: 40px;
    margin: 0;
    letter-spacing: -2px;
  }
  @media (max-width: 767px) {
    .landing .text h1 {
      font-size: 28px;
    }
  }
  .landing .text p {
    font-size: 23px;
    line-height: 1.7;
    margin: 5px 0 0;
    color: #666;
    max-width: 500px;
  }
  @media (max-width: 991px) {
    .landing .text p {
      margin: 10px auto;
    }
  }
  @media (max-width: 767px) {
    .landing .text p {
      font-size: 18px;
    }
  }
  .landing .image img {
    position: relative;
    width: 600px;
    /* animation: up-and-down 5s linear infinite; */
  }
  @media (max-width: 991px) {
    .landing .image {
      display: none;
    }
  }
  .landing .go-down {
    color: var(--main-color);
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--main-transition);
  }
  .landing .go-down:hover {
    color: var(--main-color-alt);
  }
  .landing .go-down i {
    animation: bouncing 1.5s infinite;
  }
/* End Landing */
/* Start Video */
.video {
    position: relative;
    width: 50%; /* حجم الفيديو بنصف الحجم الطبيعي */
    margin: 110px auto; /* متمركز في منتصف الصفحة */
}

.video video {
    width: 100%;
}

.video .text {
    width: 100%;
    position: absolute;
    top: 10%; /* النص فوق الفيديو */
    transform: translateY(-124%); /* ضبط محاذاة النص */
    padding: 28px;
    background-color: var(--transparent-color);
    color: black;
    text-align: center;
    
}

.video .text h2 {
    margin: 0 0 10px;
    text-transform: uppercase;
    font-weight: normal;
    font-weight: bold;
    font-size: xx-large;
}

.video .text p {
    margin-bottom: 10px;
}

.video .text button {
    background-color: black;
    color: white;
    padding: 10px 20px;
    border: none;
    text-transform: uppercase;
}

/* خصائص CSS للشاشات متوسطة الحجم (لابتوب وأجهزة مشابهة) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .video {
      width: 75%; /* الفيديو يأخذ 75% من عرض الشاشة */
      margin: 95px auto; /* تقليل الهامش لتناسب الشاشات متوسطة الحجم */
  }
}
/* خصائص CSS خاصة بالشاشات الصغيرة مثل الهواتف المحمولة */
@media screen and (max-width: 768px) {
    .video {
        width: 100%; /* الفيديو يأخذ عرض الشاشة بالكامل */
        margin: 130px auto; /* هامش صغير من الأعلى */
    }

    .video .text {
        top: -30%; /* النص يبقى فوق الفيديو */
        transform: translateY(-50%); /* ضبط محاذاة النص لتناسب الشاشة الصغيرة */
        padding: 30px;
    }

    /* مسافة بين النصوص والفيديو */
    .video .text h2 {
        margin-bottom: 16px; /* مسافة إضافية بين النص والفيديو */
        font-size: larger;
        font-weight: bolder;
        line-height: 31px;
    }

    /* مسافة بين النصوص نفسها */
    .video .text p {
        margin-bottom: 15px; /* زيادة المسافة بين الفقرة والنص العلوي */
    }

    .video .text button {
        margin-top: 15px; /* مسافة بين الزر والنص العلوي */
    }
}
/* End Video */
/* Start Testimonials */
  .testimonials {
    padding-top: 40px;
    padding-bottom: var(--main-padding-bottom);
    position: relative;
    background-color: var(--section-background);
  }
  .testimonials .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
  }
  .testimonials .box {
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgb(0 0 0 / 7%);
    border-radius: 6px;
    position: relative;
  }
  .testimonials .box img {
    position: absolute;
    right: -10px;
    top: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid var(--section-background);
  }
  .testimonials .box h3 {
    margin: 0 75px 10px;
  }
  .testimonials .box p {
    line-height: 1.5;
    color: #777;
    margin-top: 10px;
    margin-bottom: 0;
  }
/* End Testimonials */
/* Start Services */
.services {
    padding-top: var(--section-padding);
    padding-bottom: 100px;
}
@media (min-width: 768px) {
    .services .services-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
        grid-column-gap: 40px;
        grid-row-gap: 60px;
    }
}
.services .srv-box {
display: flex;
}
.services .srv-box i {
margin-left: 30px
}
@media (max-width: 767px) {
    .services .srv-box {
        display: flex;
        flex-direction: column;
        text-align: center;
        margin-bottom: 40px;
    }
    .services .srv-box i {
        margin: 0 0 30px;
    }
}
.services .srv-box h3 {
margin-bottom: 30px;
color: var(--main-color);
}
.services .srv-box p {
line-height: 2;
color: #777;
}
/* End Services */
/* Start Features */
.features {
  padding-top: 20px;
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  background-color: var(--section-background);
}
.features .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}
.features .box {
  text-align: center;
  border: 1px solid #ccc;
}
.features .box .img-holder {
  position: relative;
  overflow: hidden;
}
.features .box .img-holder::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 100%;
}
.features .box .img-holder::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  border-style: solid;
  border-width: 0px 0px 170px 500px;
  border-color: transparent transparent var(--section-background) transparent;
  transition: var(--main-transition);
}
.features .box .img-holder img {
  max-width: 100%;
}
.features .box:hover .img-holder::after {
  border-width: 170px 500px 170px 0;
}
.features .box h2 {
  position: relative;
  font-size: 30px;
  margin: auto;
  width: fit-content;
}
.features .box h2::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 15px;
  height: 5px;
  width: calc(100% - 30px);
}
.features .box p {
  line-height: 2;
  font-size: 20px;
  margin: 30px 0;
  padding: 25px;
  color: #777;
  text-align: right;
}
.features .box a {
  display: block;
  border: 3px solid transparent;
  width: fit-content;
  margin: 0 auto 30px;
  font-weight: bold;
  font-size: 22px;
  padding: 10px 30px;
  border-radius: 6px;
  transition: var(--main-transition);
}
.features .quality .img-holder::before {
  background-color: rgb(244 64 54 / 60%);
}
.features .quality h2::after {
  background-color: #f44036;
}
.features .quality a {
  color: #f44036;
  border-color: #f44036;
  background: linear-gradient(to right, #f44036 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
}
.features .time .img-holder::before {
  background-color: rgb(0 150 136 / 60%);
}
.features .time h2::after {
  background-color: #009688;
}
.features .time a {
  color: #009688;
  border-color: #009688;
  background: linear-gradient(to right, #009688 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
}
.features .passion .img-holder::before {
  background-color: rgb(3 169 244 / 60%);
}
.features .passion h2::after {
  background-color: #03a9f4;
}
.features .passion a {
  color: #03a9f4;
  border-color: #03a9f4;
  background: linear-gradient(to right, #03a9f4 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
}
.features .box:hover a {
  background-position: left bottom;
  color: white;
}
/* End Features */

 /* Start Footer */
 .footer {
  padding-top: 1px;
  padding-bottom: 5px;
  position: relative;
  color: white;
  text-align: center;
}
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #333;
}
.footer .container {
  position: relative;
}

.footer p:not(.copyright) {
  text-transform: uppercase;
  padding: 20px;
  border-bottom: 1px solid white;
  font-size: 22px;
  width: fit-content;
  margin: 20px auto;
}
.footer .social-icons i {
  padding: 2px 15px;
  font-size: 28px;
}
.footer .social-icons {
  text-align: center;
}
.footer .social-icons a {
  transition: transform 0.3s ease, color 0.3s ease;
}

/* تلوين الأيقونات بألوانها الحقيقية */
.footer .social-icons a.facebook {
  color: #3b5998; /* لون الفيسبوك */
}

.footer .social-icons a.instagram {
  color: #e4405f; /* لون انستغرام */
}

.footer .social-icons a.linkedin {
  color: #0077b5; /* لون لينكدإن */
}

.footer .social-icons a:hover {
  color: #ad9551; /* لون الأيقونة عند التمرير */
}


.footer .copyright {
  margin-top: 20px;
  font-size: 18px;
  text-align: center;
}
.footer .copyright span {
  font-weight: bold;
  color: var(--main-color);
}
/* End Footer */

 /* Start Animation */
 @keyframes up-and-down {
  0%,
  100% {
    top: 0;
  }
  50% {
    top: -50px;
  }
}
@keyframes bouncing {
  0%,
  10%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40%,
  60% {
    transform: translateY(-15px);
  }
}
/* End Animation */