/* -------------------------------------------------------------------------- */
/*                               fonts and root                               */
/* -------------------------------------------------------------------------- */
@font-face {
  font-family: "nexablack";
  src: url("nexa-black-webfont.woff2") format("woff2"),
    url("nexa-black-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "nexablack_italic";
  src: url("../fonts/nexa-blackitalic-webfont.woff2") format("woff2"),
    url("../fonts/nexa-blackitalic-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "nexabold";
  src: url("../fonts/nexa-bold-webfont.woff2") format("woff2"),
    url("../fonts/nexa-bold-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "nexabold_italic";
  src: url("../fonts/nexa-bolditalic-webfont.woff2") format("woff2"),
    url("../fonts/nexa-bolditalic-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "nexabook";
  src: url("../fonts/nexa-book-webfont.woff2") format("woff2"),
    url("../fonts/nexa-book-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "nexaheavy";
  src: url("../fonts/nexa-heavy-webfont.woff2") format("woff2"),
    url("../fonts/nexa-heavy-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "nexaheavy_italic";
  src: url("../fonts/nexa-heavyitalic-webfont.woff2") format("woff2"),
    url("../fonts/nexa-heavyitalic-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "nexa_italicitalic";
  src: url("../fonts/nexa-italic-webfont.woff2") format("woff2"),
    url("../fonts/nexa-italic-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "nexalight";
  src: url("../fonts/nexa-light-webfont.woff2") format("woff2"),
    url("../fonts/nexa-light-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "nexalight_italic";
  src: url("../fonts/nexa-lightitalic-webfont.woff2") format("woff2"),
    url("../fonts/nexa-lightitalic-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "nexathin";
  src: url("../fonts/nexa-thin-webfont.woff2") format("woff2"),
    url("../fonts/nexa-thin-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "nexathin_italic";
  src: url("../fonts/nexa-thinitalic-webfont.woff2") format("woff2"),
    url("../fonts/nexa-thinitalic-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

:root {
  --hue: 223;
  --bg: hsl(var(--hue), 10%, 90%);
  --fg: hsl(var(--hue), 10%, 10%);
  --primary: hsl(var(--hue), 90%, 50%);
  --trans-dur: 0.3s;
  --trans-timing: cubic-bezier(0.65, 0, 0.35, 1);
  font-size: calc(16px + (24 - 16) * (100vw - 320px) / (2560 - 320));
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(var(--hue), 10%, 10%);
    --fg: hsl(var(--hue), 10%, 90%);
    --primary: hsl(var(--hue), 90%, 70%);
  }
}
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: grid;
  align-content: center;
  font-family: "nexalight";
}
html {
  scroll-behavior: smooth;
}

/* -------------------------------------------------------------------------- */
/*                                 utils class                                */
/* -------------------------------------------------------------------------- */
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-column {
  display: flex;
  flex-direction: column;
}
.center {
  display: flex;
  justify-content: center;
  align-content: center;
}
img {
  display: block;
}
.max-width {
  width: 90%;
}
.pading-max {
  padding: 0 5vw;
}
.text-center {
  text-align: center;
}
.center-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.btn-hero {
  padding: 1vh 1vw;
  border: 2px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
}
.btn-hero:hover {
  background-color: rgba(0, 0, 0, 0.4);
}
.wrapContiner {
  width: 100%;
  display: flex;
  justify-content: center;
}
/* -------------------------------------------------------------------------- */
/*                               navigation bar                               */
/* -------------------------------------------------------------------------- */
.navbar {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000; /* Ensure the navbar is above other content */
}

.nav-content {
  padding: 0 5vw;
  display: flex;
  align-items: center;
}

.logo-content {
  flex: 1;
  text-align: left;
}
.logo {
  height: 8vh;
}

.text-center {
  text-align: center;
  font-size: 1.5em;
}

.navlinks {
  display: flex;
  gap: 25px;
}

.navlinks a {
  color: #fff;
  text-decoration: none;
  transition: 0.4s color;
}
.navlinks a:hover {
  color: bisque;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/*                                hero section                                */
/* -------------------------------------------------------------------------- */
.section-video {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* طبقة شفافة لتخفيف حدة الفيديو */
  z-index: 0;
}

.section-content {
  display: grid;
  justify-content: center;
  align-content: center;
  position: relative;
  z-index: 1;
}

.section-video h1 {
  font-size: 2.5em;
}

.section-video p {
  font-size: 1.2em;
}
/* -------------------------------------------------------------------------- */
/*                            Documentation Section                           */
/* -------------------------------------------------------------------------- */
.documentation-section {
  margin-top: 5vh;
  display: flex;
  flex-direction: row;
  width: 90%;
  justify-content: center;
}

.first-services {
  display: flex;
  height: 70vh;
  width: 90%;
  overflow: hidden;
}

.slider {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.slides {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100%;
  height: 100%;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.slider-nav {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  top: 50%;
  transform: translateY(-50%);
}

.slider-nav .prev,
.slider-nav .next {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px;
  cursor: pointer;
  user-select: none;
}

.slider-paragraph {
  margin-left: 2vw;
  border-left: 2px solid #333;
  flex: 1;
  padding: 20px;
}
.slider-paragraph h1 {
  text-align: left;
}
.icon-text p {
  margin-left: 1vw;
  display: inline-block;
}
.icon-text i {
  font-size: 1rem;
}
.icon-text {
  transition: 0.3s color;
}
.icon-text:hover {
  color: #5a0e0e;
}
.bigpara {
  margin-top: 2vh;
  border-top: 1px solid #333;
}

/* -------------------------------------------------------------------------- */
/*                        time lapse experince section                        */
/* -------------------------------------------------------------------------- */
.section-timelapse {
  position: relative;
  width: 100%;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

.section-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  border-radius: 10px;
}

.section-timelapse h1 {
  margin: 0 0 10px;
  font-size: 2.5em;
}

.section-timelapse p {
  margin: 0 0 10px;
  font-size: 1.2em;
}

.equepmntused a {
  color: var(--primary);
  transition: color var(--trans-dur);
}

.equepmntused button {
  color: var(--fg);
  font: 1em/1.5 "IBM Plex Sans", sans-serif;
}

.equepmntused h1 {
  font-size: 2em;
  margin: 0 0 3rem;
  padding-top: 1.5rem;
  text-align: center;
}
.btn {
  background-color: #ffffff;
  border-radius: 0.25em;
  color: var(--bg);
  cursor: pointer;
  padding: 0.375em 0.75em;
  transition: background-color calc(var(--trans-dur) / 2) linear,
    color var(--trans-dur);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  background-color: hsl(var(--hue), 10%, 50%);
}
.btn-group {
  display: flex;
  gap: 0.375em;
  margin-bottom: 1.5em;
}

.timeline {
  margin: 0 0 0 15vh;
  padding: 0 1.5em;
  width: 100%;
  max-width: 36em;
}

.timeline__arrow {
  background-color: transparent;
  border-radius: 0.25em;
  cursor: pointer;
  flex-shrink: 0;
  margin-inline-end: 0.25em;
  outline: transparent;
  width: 2em;
  height: 2em;
  transition: background-color calc(var(--trans-dur) / 2) linear,
    color var(--trans-dur);
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.timeline__arrow:focus-visible,
.timeline__arrow:hover {
  background-color: hsl(var(--hue), 10%, 50%, 0.4);
}
.timeline__arrow-icon {
  display: block;
  pointer-events: none;
  transform: rotate(-90deg);
  transition: transform var(--trans-dur) var(--trans-timing);
  width: 100%;
  height: auto;
}
.timeline__date {
  font-size: 0.833em;
  line-height: 2.4;
}
.timeline__dot {
  background-color: currentColor;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  margin: 0.625em 0;
  margin-inline-end: 1em;
  position: relative;
  width: 0.75em;
  height: 0.75em;
}
.timeline__item {
  position: relative;
  padding-bottom: 2.25em;
}
.timeline__item:not(:last-child):before {
  background-color: currentColor;
  content: "";
  display: block;
  position: absolute;
  top: 1em;
  left: 2.625em;
  width: 0.125em;
  height: 100%;
  transform: translateX(-50%);
}
[dir="rtl"] .timeline__arrow-icon {
  transform: rotate(90deg);
}
[dir="rtl"] .timeline__item:not(:last-child):before {
  right: 2.625em;
  left: auto;
  transform: translateX(50%);
}
.timeline__item-header {
  display: flex;
}
.timeline__item-body {
  border-radius: 0.375em;
  overflow: hidden;
  margin-top: 0.5em;
  margin-inline-start: 4em;
  height: 0;
}
.timeline__item-body-content {
  background-color: hsl(var(--hue), 10%, 50%, 0.2);
  opacity: 0;
  padding: 0.5em 0.75em;

  visibility: hidden;
  transition: opacity var(--trans-dur) var(--trans-timing),
    visibility var(--trans-dur) steps(1, end);
}
.small-time-img {
  margin-top: 2vh;
  width: 40vw;
}
.timeline__meta {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.timeline__title {
  font-size: 1.5em;
  line-height: 1.333;
}
.timeline__item-body--expanded {
  height: auto;
}
.timeline__item-body--expanded .timeline__item-body-content {
  opacity: 1;
  visibility: visible;
  transition-delay: var(--trans-dur), 0s;
}
.timeline__arrow[aria-expanded="true"] .timeline__arrow-icon {
  transform: rotate(0);
}

/* -------------------------------------------------------------------------- */
/*                                 why-section                                */
/* -------------------------------------------------------------------------- */
.container {
  margin-left: 5vw;
  margin-bottom: 5vh;
  display: grid;
  justify-content: center;
  align-content: center;
  width: 90%;
  display: flex;
  justify-content: center;
}
.why-section {
  display: grid;
  grid-template-columns: 1fr;
}
.timelapse-gallery {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
#timelapse-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.image-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.timeline-dots-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
}
.timeline-dots {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
}
.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%);
  z-index: 1;
}
.timeline-dot {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.timeline-dot:hover,
.timeline-dot.active {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}
.timeline-slider {
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 3;
}
/* -------------------------------------------------------------------------- */
/*                                 our project                                */
/* -------------------------------------------------------------------------- */
.ourProject {
  width: 90%;
  display: flex;
  flex-direction: row;
  margin-left: 5vw;
  gap: 2vh;
}
.ourProject section {
  width: 100%;
}
.wrapper {
  float: none !important;
  display: block;
  margin: 0 auto !important;
}
.relative {
  position: relative;
}

.HomeVideoInner {
  width: 100%;
  height: 100%;
  position: relative;
}
.StoryVideo video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.HomeVideoTitleSection .SectionTitle {
  width: 100%;
}
.HomeVideoTitleSection .SectionContent {
  width: 100%;
  padding-top: 240px;
}
.HomeVideoTitleSection {
  max-width: 630px;
  padding: 50px 60px;
  height: 100%;
  background-color: rgb(255 255 255 / 25%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}
.HomeVideoTitleSection:not(.animate_it) {
  -webkit-clip-path: circle(100% at 50% 50%);
  clip-path: circle(100% at 50% 50%);
}
.HomeVideoTitleSection.animate_it {
  animation: inView 2s;
  -webkit-clip-path: circle(0% at 0% 50%);
  clip-path: circle(0% at 0% 50%);
}
.HomeVideoTitleSection.animate_reverse {
  animation: outView 2s;
  -webkit-clip-path: circle(100% at 50% 50%);
  clip-path: circle(100% at 50% 50%);
}

.StoryVideo video {
  width: 100%;
  height: 100%;
  object-fit: fill;
  position: absolute;
}
.Video-playbtn {
  cursor: pointer;
  width: 89px;
  height: 89px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  border-radius: 50%;
  background-color: rgb(221 24 69 / 1);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  justify-content: center;
  align-items: center;
}
@keyframes inView {
  0% {
    -webkit-clip-path: circle(100% at 50% 50%);
    clip-path: circle(100% at 50% 50%);
  }

  to {
    -webkit-clip-path: circle(0% at 0% 50%);
    clip-path: circle(0% at 0% 50%);
  }
}

@keyframes outView {
  0% {
    -webkit-clip-path: circle(0% at 0% 50%);
    clip-path: circle(0% at 0% 50%);
  }

  to {
    -webkit-clip-path: circle(100% at 50% 50%);
    clip-path: circle(100% at 50% 50%);
  }
}
/* -------------------------------------------------------------------------- */
/*                             scrol to top button                            */
/* -------------------------------------------------------------------------- */
#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  border: none;
  cursor: pointer;
  display: none;
}

#scrollToTopBtn:hover {
  background-color: #666;
}
/* -------------------------------------------------------------------------- */
/*                                drone section                               */
/* -------------------------------------------------------------------------- */
.content {
  padding: 20px;
}
.drone-section {
  position: relative;
  width: 100%;
}

.drone-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-section {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 80%;
}

.text-section img {
  max-width: 100%;
  border-radius: 10px;
  margin: 10px;
}

.img-drone-section {
  height: 350px;
}
.moving-element {
  position: absolute;
  width: 175px;
  height: 175px;
  border-radius: 50%;
  z-index: 10000000;
  animation: float 1.3s ease-in-out infinite;
  transition: 0.3s all;
  /* background-color: rgba(255, 255, 255, 0.4); */
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

/* footer */
footer {
  width: 100%;
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.footer-container {
  max-width: 90vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-section {
  flex: 1 1 100%;
  margin-bottom: 10px;
}

.contact-info {
  text-align: left;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  margin: 0 10px;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
}

.social-icons a:hover {
  color: #aaa;
}

.copyright {
  margin-top: 10px;
  font-size: 14px;
}

/* -------------------------------------------------------------------------- */
/*                                Media Queries                               */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* nav bar */
  .navbar {
    width: 100vw;
  }
  .navlinks {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .navlinks.active {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .logo-content {
    transform: none;
  }

  .menu-btn {
    display: block;
  }

  /* hero */
  .section-video {
    width: 100vw;
  }
  /* document section */
  .documentation-section {
    flex-direction: column;
    align-items: center;
    width: 90%;
    padding: 0 5vw;
  }

  .first-services {
    width: 90%;
    height: auto;
    flex-direction: column;
  }

  .slider {
    width: 100%;
    margin-bottom: 20px; /* إضافة هامش بين الصور والنص */
  }

  .slider-paragraph {
    margin: 0;
    padding: 10px;
    border-left: none;
  }

  .slider-paragraph h1 {
    text-align: center;
    margin-bottom: 10px;
  }

  .icon-text {
    margin-bottom: 10px; /* هامش بين النصوص ذات الرموز */
    text-align: center; /* محاذاة النصوص بالوسط */
  }

  .icon-text i {
    font-size: 1.5rem; /* زيادة حجم الأيقونات */
  }

  .bigpara {
    margin-top: 10px; /* هامش أعلى الفقرة الكبيرة */
    border-top: none; /* إزالة الحد العلوي */
  }

  .slider-nav .prev,
  .slider-nav .next {
    font-size: 1.5rem; /* زيادة حجم أسهم التنقل */
  }
  /* our project */
  .ourProject {
    display: flex;
    flex-direction: column;
  }
  .ourProject section {
    /* margin: 5vh 0; */
    height: 50vh;
    width: 90%;
  }
  .HomeVideoTitleSection {
    padding: 20px; /* تقليل البادئة للعناصر النصية */
  }

  .Video-playbtn {
    width: 60px;
    height: 60px; /* تقليل حجم زر التشغيل */
  }

  .StoryVideo video {
    width: 100%;
    height: auto;
  }

  .HomeVideoTitleSection .SectionContent {
    padding-top: 120px; /* تقليل التباعد للعناوين */
  }
  /* drone section */
  .text-section {
    flex-direction: column-reverse; /* عرض النص تحت الصورة */
    text-align: center; /* محاذاة النص في الوسط */
    padding: 10px; /* تقليل التباعد للنصوص */
  }

  .text-section img {
    margin-bottom: 10px; /* هامش بين الصور والنصوص */
  }

  .img-drone-section {
    height: auto; /* إعادة تعيين ارتفاع الصور للتكيف مع حجم النص */
    max-width: 100%; /* تحديد أقصى عرض للصور */
  }
  .footer-container {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    margin-bottom: 20px;
    flex: 1 1 100%;
  }

  .social-icons {
    margin-top: 20px;
  }

  .social-icons a {
    display: block;
    margin-bottom: 10px;
  }
}
/* تنسيق للشاشات المتوسطة */
@media (max-width: 1024px) {
  .drone-container {
    padding: 20px;
  }

  .text-section {
    width: 100%;
  }

  .text-section img {
    max-width: 100%;
    height: auto;
  }

  .img-drone-section {
    height: auto;
    max-width: 100%;
  }

  .moving-element {
    width: 125px;
    height: 125px;
  }
  .text-section {
    display: flex;
    flex-direction: column; /* تغيير الاتجاه إلى عمودي */
    align-items: center;
    margin-bottom: 50px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 80%;
    text-align: center; /* محاذاة النص في وسط العمود */
  }

  .text-section img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 10px; /* تباعد بسيط بين الصور إذا كانت هناك أكثر من صورة */
  }
  .ourProject {
    display: flex;
    flex-direction: column;

    width: 90%;
    height: 90vh;
  }
  .ourProject section {
    /* margin: 5vh 0; */
    height: 50vh;
    width: 90%;
    margin-bottom: 15vh;
  }
}
