@import url("./normalize.css");

:root {
  --primary: #003151;
  --secondary: #25a8e0;
  --black: #444;
  --transition-delay: all 0.3s ease-in-out;
}

* {
  box-sizing: border-box;
  scrollbar-color: transparent transparent;
  scrollbar-width: 0px;
}

*::selection {
  background-color: var(--secondary);
  color: #fff;
}

html {
  font-size: 80%;
  scroll-behavior: smooth;
}

@media screen and (min-width: 1440px) {
  html {
    font-size: 100%;
  }
}

body {
  font-family: "Tajawal", sans-serif;
  color: var(--black);
}

a,
a:link a:visited,
a:active {
  text-decoration: none;
  color: initial;
}

h1 {
  font-size: 4.209rem;
}

h2 {
  font-size: 3.157rem;
}

h3 {
  font-size: 2.369rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.6rem;
  line-height: 1.5;
}

@media screen and (min-width: 769px) {
  p {
    max-width: 50ch;
  }
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

button {
  cursor: pointer;
  padding: 1.2rem 2rem;
  border: none;
  font-size: 1.5rem;
  transform: var(--transition-delay);
}

button a {
  color: #fff;
  cursor: pointer;
}

button:hover {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

img {
  object-fit: cover;
}

video {
  width: 50%;
  object-fit: cover;
}

section {
  position: relative;
  width: 100%;
  min-height: 100%;
}

@media screen and (min-width: 1024px) {
  section {
    width: 100%;
    min-height: 100%;
    padding: 5rem 0;
  }
}

input,
input:focus,
textarea,
textarea:focus {
  border: none;
  outline: none;
  background-color: #eee;
  padding: 20px 35px;
  border-bottom: 2px solid var(--secondary);
  min-width: 100%;
}

iframe {
  padding-right: 50px;
  border-radius: 10px;
}

@media screen and (max-width:1024px){
  iframe{
    padding-right: 0px;
  }
}

.fa-brands:hover {
  transform: scale(1.3);
  transition: var(--transition-delay);
  cursor: pointer;
}

.divider {
  height: 5px;
  width: 10rem;
  margin: 1rem 0 3rem;
  background-color: var(--secondary);
}
.grid_card .divider {
  height: 5px;
  width: 18rem;
  margin: 2rem auto 3rem;
  background-color: var(--secondary);
}

/* _-_-_-_-_-_-  text colors  _-_-_-_-_-_-  */

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

/* _-_-_-_-_-_-  Background colors  _-_-_-_-_-_-  */

.bg-primary {
  background-color: var(--primary);

  color: #fff;
}

.bg-secondary {
  background-color: var(--secondary);
  color: #fff;
}

.bg-black {
  background-color: var(--black);
  color: #fff;
}

.bg-white {
  background-color: #fff;
  color: var(--black);
}

/* _-_-_-_-_-_-  buttons styles  _-_-_-_-_-_-  */

.btn--sm {
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
}

.btn--primary {
  background-color: var(--primary);
  border: 2px solid var(--primary);
  transition: var(--transition-delay);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--secondary);
  border: 2px solid var(--secondary);
  transition: var(--transition-delay);
}

.btn--secondary {
  background-color: var(--secondary);
  border: 2px solid var(--secondary);
  transition: var(--transition-delay);
  color: #fff;
}

.btn-outline--primary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  transition: var(--transition-delay);
  font-weight: bolder;
}

.btn-outline--primary:hover {
  background-color: var(--primary);
  color: #fff;
  transition: var(--transition-delay);
}

.btn-outline--secondary {
  background-color: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  transition: var(--transition-delay);
  font-weight: bolder;
}

.btn-outline--secondary a {
  background-color: transparent;
  color: var(--secondary);
  font-weight: bolder;
}

.btn-outline--secondary:hover,
.btn-outline--secondary:hover a {
  background-color: var(--secondary);
  color: #fff;
  transition: var(--transition-delay);
}

/* _-_-_-_-_-_-  Grid layout  _-_-_-_-_-_-  */

.container {
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
}

.container .center {
  margin: 3rem;
  display: flex;
  justify-content: space-evenly;
}

.grid {
  display: grid;
  grid-template-columns: 100%;
  gap: 10px;
}

@media screen and (min-width: 425px) {
  .grid {
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

.my-5 {
  margin: 5rem auto;
}

.mb-3 {
  margin-bottom: 3rem;
}

.grid__card {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.grid__card img {
  width: 100%;
  height: 100%;
  transform: scale(1);
  transition: var(--transition-delay);
}

/* .card-title {
  width: 100%;
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  transform: translate(-150%, -50%);
  transition: var(--transition-delay);
  color: #fff;
  z-index: 999;
}

.grid__card:hover img {
  filter: brightness(30%);
  transform: scale(1.2);
  transition: var(--transition-delay);
}

.grid__card:hover .card-title {
  transform: translate(-50%, -50%);
} */

/* _-_-_-_-_-_-  contact us BAR  _-_-_-_-_-_-  */

.contact-us {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .contact-us {
    display: none;
  }
}

.contact-us p {
  font-size: 1.2rem;
}

.social-icons {
  flex-grow: 1;
  font-size: 1.7rem;
  min-width: 7rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: white;
}

.contact-us .social-icons,
footer .social-icons {
  flex-grow: 1;
  max-width: 13rem;
  font-size: 1.7rem;
  min-width: 7rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: white;
}

.social-icons li a {
  color: white;
}

.social-icons li a:hover {
  color: var(--primary);
}

.footer__contact li a {
  color: white;
}

/* _-_-_-_-_-_-  contact-us section section  _-_-_-_-_-_-  */

.half-sections {
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 1023px) {
  .half-sections {
    display: flex;
    flex-direction: row;
  }
}

/* _-_-_-_-_-_-  contact-us section section  _-_-_-_-_-_-  */

.contact-us-section#contact-us {
  padding: 20px;
}

.contact-us-section form {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 60px 60px 60px 120px;
  gap: 40px;
}

@media screen and (min-width: 769px) {
  .contact-us-section form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 60px 60px 150px 50px;
    gap: 40px;
  }

  .contact-us-section .span-2 {
    grid-column: 1 / span 2;
  }
}

/* _-_-_-_-_-_-  header section  _-_-_-_-_-_-  */

header {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  position: sticky;
  /* position: -webkit-sticky; Safari */
  top: 0;
  z-index: 999999999;
}

nav {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bolder;
  padding: 0 1rem;
}

.nav__tabs {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__tabs ul {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.nav__tabs li {
  padding: 2rem;
  transition: var(--transition-delay);
}

nav li:hover {
  color: #fff;
  background-color: var(--secondary);
  transition: var(--transition-delay);
}

@media screen and (max-width: 769px) {
  .nav__tabs {
    display: none;
  }
}

/* --------------------  menu tabs on mobile view *start*  ----------------------- */

#navTabs {
  display: none;
  position: fixed;
  height: 100vh;
  inset: 0;
  text-align: center;
  background-color: var(--primary);
  color: #fff;
}

#navTabs a {
  color: #fff;
}

#navTabs ul {
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  z-index: 999999;
}

#navTabs li {
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition-delay);
}

#navTabs li i {
  padding: 1rem;
}

#navTabs li:hover {
  color: var(--primary);
  background-color: #fff;
  transform: scale(1.5);
  transition: var(--transition-delay);
}

#navTabs li:hover a {
  color: var(--primary);
  background-color: #fff;
}

.fa-xmark {
  cursor: pointer;
  font-size: 3rem;
  position: absolute;
  top: 2rem;
  right: 3rem;
}

.mobile-nav {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav img {
  width: 4rem;
  height: 4rem;
  margin: 1rem;
}

.mobile-nav i {
  font-size: 2rem;
  cursor: pointer;
  display: inline-block;
}

@media screen and (min-width: 769px) {
  .mobile-nav {
    display: inline;
  }

  .mobile-nav i {
    display: none;
  }

  .mobile-nav img {
    margin: 0;
  }
}

/* --------------------  menu tabs on mobile view *end*  ----------------------- */

.drop-down {
  display: none;
  position: absolute;
  top: 68px;
  width: 200px;
}

@media screen and (min-width: 1440px) {
  .drop-down {
    top: 85px;
    width: 250px;
  }
}

.drop-down:hover {
  display: block;
}

.drop-down ul {
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.drop-down li {
  color: #000;
  width: 100%;
}

/* _-_-_-_-_-_-  hero section  _-_-_-_-_-_-  */

.hero-section {
  clip-path: inset(0);
  min-height: 90vh;
}

@media screen and (min-width: 768px) {
  .hero-section {
    min-height: 600px;
  }
}

.hero-section>img {
  width: 100vw;
  height: 100vh;
  position: fixed;
  inset: 0;
  filter: brightness(60%);
  z-index: -999;
}

.hero__content {
  color: #fff;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.main-title {
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* _-_-_-_-_-_-  about us section  _-_-_-_-_-_-  */

/* about us page */
.hero-section.min-height {
  min-height: 55vh;
}

/* @media screen and (min-width: 1440px) {
  .hero-section.aboutus-header {
    min-height: 30vh;
  }
} */

.about-us-section {
  padding: 0 1rem;
}

.about-us-section .btn--secondary:hover {
  background-color: var(--primary);
  border: 2px solid var(--primary);
  transition: var(--transition-delay);
}

.about-us__content video {
  max-height: 600px;
}

@media screen and (min-width: 1024px) {
  .about-us__content {
    margin-bottom: 2rem;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

@media screen and (min-width: 769px) {
  .about-us__text {
    margin: 5rem;
    min-width: 550px;
  }
}

.about-us__icons {
  text-align: center;
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
}

.about-us__image img {
  max-height: 500px;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.about-us__icons div {
  padding: 2rem;
  border-radius: 10px;
  transition: var(--transition-delay);
}

.about-us__icons div:hover {
  transform: scale(1.2);
  transition: var(--transition-delay);
  color: var(--secondary);
}

.about-us__icons i {
  font-size: 3rem;
  margin: 1rem;
}

.company_files {
  display: grid;
  gap: 2rem;
}

@media screen and (min-width: 769px) {
  .company_files .grid_card:nth-child(1) {
    grid-column: 1 / span 2;
  }
}

.company_files .grid_card {
  padding: 2rem;
  background-color: #cacaca;
}

/* -------------------------------------------------------------- */
/*              swiper carosel slider                             */
/* -------------------------------------------------------------- */
.clients-section {
  text-align: center;
}

.clients-section h3,
.clients-section .divider {
  margin: 2rem auto;
}
.divide{
  margin: 1.5rem auto;
}

.clients-section img {
  filter: saturate(0);
}

.clients-section img:hover {
  filter: saturate(100%);
}

.swiper {
  width: 100%;
  height: 220px;
  margin: 4rem auto;
}

/* @media screen and (min-width: 769px) {
  .swiper {
    height: 500px;
  }
} */

.swiper-slide {
  text-align: center;
  font-size: 1rem;
  background: #fff;
  min-height: 100%;
}

.swiper-slide img {
  display: block;
  max-height: 100px;
  object-fit: cover;
}

.swiper-slide {
  position: relative;
  max-width: 200px;
  height: 100%;
  overflow: hidden;
}

.swiper-button-next,
.swiper-button-prev,
.swiper-pagination {
  color: #fff;
}

.slide-text {
  text-align: center;
}

/* .slide-text {
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  transition: var(--transition-delay);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.slide-text p {
  margin: 0 auto;
} */

/* @media screen and (min-width: 1024px) {
  .slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .slide-text:hover {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    transition: var(--transition-delay);
  }
} */

.slide-text .divider {
  height: 3px;
  width: 10rem;
  margin: 1rem auto;
  background-color: #fff;
}

/* _-_-_-_-_-_-  our projects section  _-_-_-_-_-_-  */

.our-projects-section {
  text-align: center;
}

.our-projects-section .btn--secondary {
  margin-bottom: 2rem;
}

.our-projects-section .btn--secondary:hover {
  border: 2px solid var(--secondary);
  transition: var(--transition-delay);
}

.our-projects-section .grid {
  margin: 3rem auto;
}

.our-projects-section p {
  display: inline-block;
  max-width: 90ch;
}

.our-projects-section h3,
.our-projects-section .divider {
  margin: 2rem auto;
}

.our-projects-section ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

.our-projects-section li {
  cursor: pointer;
  padding: 1rem;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: var(--transition-delay);
}

.our-projects-section li:hover {
  border-bottom: 3px solid var(--secondary);
  transition: var(--transition-delay);
}

.ourprojects__content {
  display: flex;
  justify-content: space-between;
}

/* ^^^^^^^^^^   for filters   ^^^^^^^^^^^^ */

/* Hide*/

.filters [data-content] {
  opacity: 0;
  display: none;
}

[data-content].is-active[data-content] {
  opacity: 1;
  display: grid;
}

[data-target].is-active {
  border-bottom: 3px solid var(--secondary);
  transition: var(--transition-delay);
}

input[id^="btnControl"] {
  display: none;
}

input[id^="btnControl"]+label>i {
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #fff;
  z-index: 9999;
}

input[id^="btnControl"]:checked+label>img {
  padding: 3rem;
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  inset: 0;
  z-index: 999999999999999;
}

/* _-_-_-_-_-_-  testimonials section  _-_-_-_-_-_-  */
.testimonials-section {
  color: #fff;
  clip-path: inset(0);
}

.testimonials-section>img {
  width: 100vw;
  height: 100vh;
  position: fixed;
  inset: 0;
  filter: brightness(60%);
  z-index: -999;
}

.test-video {
  width: 100%;
}

/* _-_-_-_-_-_-  footer section  _-_-_-_-_-_-  */

footer h3 {
  font-size: 2rem;
}

footer p {
  font-size: 1rem;
  line-height: 2rem;
  max-width: 50ch;
}

.footer-section {
  margin: 0 1rem;
}

@media screen and (min-width: 769px) {
  .footer-section {
    display: flex;
    justify-content: space-between;
    padding: 3rem;
    margin: 0 auto;
  }
}

.footer__contact li {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer__contact i {
  margin-left: 5px;
}

.footer-section div {
  margin-left: 2rem;
}

.footer__logo {
  display: flex;
  justify-content: start;
  align-items: center;
}

.footer__logo img {
  max-width: 4rem;
  margin: 1rem;
}

.footer__copyrights {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

/* ///////////////////////////////////////////////////////////// */
/*                      projects images load more                */
/* ///////////////////////////////////////////////////////////// */

.grid__card.load-more:nth-child(1),
.grid__card.load-more:nth-child(2),
.grid__card.load-more:nth-child(3),
.grid__card.load-more:nth-child(4) {
  display: inline-block;
  transition: 0.2s ease;
}

.grid__card.load-more {
  display: none;
}

.container .btn-load {
  text-align: center;
  margin-bottom: 2rem;
}

.flip-card {
  background-color: transparent;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: #bbb;
  color: black;
}

.flip-card-back {
  background-color: #2980b9;
  color: white;
  transform: rotateY(180deg);
}

.padding {
  margin-top: 100px;
  margin-bottom: 100px;
}

.flip-card-back>h3 {
  position: relative;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  padding: 10px;
}

.flip-card-front>h3 {
  position: relative;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.grid-projects{
  text-align: center;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(500px,1fr));
  gap: 2rem;
}
@media screen and (max-width: 520px){
  .grid-projects{
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  }
}

.grid-projects .grid_card{
  padding: 1rem 0 2rem;
  background-color: #cacaca;


}

.company-projects{
  margin-top: 3rem;
  margin-bottom: 3rem;
}