* {
  direction: rtl;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* max-width: 960px; */
  margin: 0 0;
  padding: 0;
  font-family: sans-serif;
  background-color: rgba(55, 73, 235, 0.068);
  font-family: "El Messiri", sans-serif;
}

.menu {
  /* margin-top: 50px; */
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(6, auto);
  grid-template-rows: 100px;
  background-color: white;
  padding-right: 100px;
  justify-items: center;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-radius: 10px;
}


.kk {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.menu li {
  display: inline-block;
}

.menu a {
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}
.logo {
  grid-column: 6/7;
  margin-left: 50px;
  justify-self: end;
  align-self: center;
}

.intro {
  margin: 50px;
  width: 100%;

  background-color: white;
  display: grid;
  grid-template-columns: auto auto;
  justify-items: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.intro-pic,
.slogo {
  width: 50%;
}

#company-name {
  margin: 50px 0;
  font-size: 50px;
  font-style: bold;
}

#company-id {
  font-weight: 60px;
  font-size: 38px;
  margin-bottom: 50px;
}

#button-about {
  font-size: 24px;
  height: 50px;
  width: 200px;
  border-radius: 20px;
  border: 1px solid;
  margin-bottom: 10px;
}

#service-header {
  margin: 50px;
  text-align: center;
}

.services {
  width: 90%;
  margin: 10px auto;
  background-color: white;
  display: grid;
  grid-template-columns: repeat(3, 300px);
  grid-template-rows: repeat(2, 400px);
  justify-content: space-evenly;
  align-content: space-evenly;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.services div {
  perspective: 773.312px;
  position: relative;
  transform-style: preserve-3d;
  height: 370.375px;
  transition: transform 1s;
}

.services div:hover {
  background-color: azure;
  transform: rotateY(180deg);

}


.services div:hover h4 {
  transform: scale(-1,1);
  color: blue;
} 

.services div:hover p {
  transform: scale(-1,1);
  color: blue;
} 
.universal {
  margin-top: 50px;
  text-align: center;
  font-size: 30px;
}
.univesalLogo {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  justify-content: space-evenly;
  justify-items: center;
  background-color: white;
  border-radius: 15px;
  width: 80%;
  margin: 20px auto;
}

footer {
  padding: 20px 50px;
  height: 250px;
  background-color: white;
  display: grid;
  grid-template-columns: repeat(3, auto);
  color: white;
  background-color: black;
}

@media (max-width: 600px) {

  .menu {
    width: 100%;
    /* top:10px; */
    gap: 10px;

    grid-template-rows: 200px;
  }
  
  
  .menu a {
    text-align: center;
    padding: 14px 16px;
    font-size: 10px;
  }
  .logo {

 
    justify-self: end;
    align-self: center;
    width: 75px;
  }
  




  .intro {
    width: auto;
    grid-template-columns: auto;
  }

  .intro-pic,
  .slogo,
  #center-pic {
    width: 100%;
  }
  #company-name {
    margin: 0;
    font-size: 1.5rem;
    font-style: normal;
  }

  #company-id {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }

  #button-about {
    font-size: 1rem;
    height: 25px;
    width: 100px;
    border-radius: 20px;
    border: 1px solid;
  }

  .services {
    width: auto;
    grid-template-columns: auto auto;

  }

  .universal {
    margin-top: 10px;
    text-align: center;
    font-size: 20px;
  }
  .univesalLogo,
  footer {

    grid-template-columns: auto;

  }
  footer{
    height: 500px;
  }
}
 

@media (min-width: 601px) and (max-width: 800px) {
  .intro {
    width: auto;
    grid-template-columns: auto auto;
  }

  .intro-pic,
  .slogo,
  #center-pic {
    width: 90%;
  }



  #company-name {
    margin: 0;
    font-size: 1.75rem;
    font-style: normal;
  }

  #company-id {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  #button-about {
    font-size: 1.25rem;
    height: 30px;
    width: 200px;
    border-radius: 20px;
    border: 1px solid;
  }
}
