@import url("https://fonts.googleapis.com/css2?family=Inter&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
html {
  scroll-behavior: smooth;
}

body {
  background-color: #a9a9a92a;
}
nav.menu-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  /* height: 100vh; */

  background-color: #fff;
}
nav {
  /* padding: 10px 6%; */
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
  background-color: #0c344c;
  position: sticky;
  top: 0;
  z-index: 40;
}
nav a {
  text-decoration: none;
  color: #000;
}
nav .logo img {
  margin-right: 240px;
  height: 80px;
}
nav.menu-open ul {
  /* margin: auto 0;
  list-style: none;
  display: block; */
  margin-right: auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-left: 10px;
}
nav.menu-open .phone {
  display: block;
}
nav.menu-open ul li {
  padding: 10px 0px;
}
nav.menu-open ul a {
  font-size: 24px;
}
nav #menu-btn {
  position: absolute;
  top: 40px;
  transform: translateY(-50%);
  right: 6%;
  padding: 4px 15px;
  border-radius: 50px;
  border: none;
  color: #35b5fe;
  background-color: #000;
  cursor: pointer;
}
nav.menu-open #menu-btn {
  top: 18px;
  transform: none;
}

nav ul {
  display: none;
}
nav .phone {
  display: none;
}

/* Hero */
#hero {
  display: flex;
  flex-direction: column;
}
#hero figure img {
  width: 100%;
}
#hero .details {
  padding: 50px 6%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#hero .details button {
  border: none;
  cursor: pointer;
  background-color: #49cff2;
  color: #fff;
  align-self: flex-start;
  padding: 10px 20px;
  border-radius: 4px;
}
/* Advantages */
#advantage {
  padding: 20px 6%;
}
#advantage .list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  justify-content: center;
}
#advantage .list .item {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
#advantage .list .item img {
  width: 80px;
  margin-bottom: 5px;
}
#advantage h1 {
  text-align: center;
}
/* ABOUT */
#about {
  display: flex;
  flex-direction: column;
}
#about figure img {
  width: 100%;
}
#about .details {
  padding: 30px 6%;
}
#about .detail h1 {
  margin-bottom: 10px;
}

#about .details p {
  margin-bottom: 5px;
}
.about {
  display: flex;
}

#about .details a {
  text-decoration: none;
  color: #eb1c24;
  font-size: 18px;
  padding: 5px;
  font-weight: bold;
}

#about figure {
  background-size: cover;
}

/* Services */
#services {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  grid-template-rows: repeat(6, 160px);
  gap: 5px;
}
#services .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;

  
}

.item em{
   display: block;
   font-size: 10px;
   font-weight: 300;
   color: red;
}
.front img{
  width: 40px;
}
.back img {
  display: none;
}
.back h2{
  font-size: 10px;
}
.back p{
  font-size: 10px;
  text-align: center;
  padding: 15px 10px;
}

.inner.is_flipped{
  transform: rotateY(180deg);
}

.inner{
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* border-radius: 10px; */
  transform-style: preserve-3d;
  transition: all 0.8s ease;
  transform: translateY(30%);
  
}
.front{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* border-radius: 10px; */
  backface-visibility: hidden;
  overflow: hidden;
}
.back{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* border-radius: 10px; */
  backface-visibility: hidden;
  overflow: hidden;
 /* color:#000; */
  text-align: center;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#services .item:nth-of-type(even) {
  background-color: #0c344c;
}
.span {
  display: none;
}
#services .item:first-child {
  grid-column: 1 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bolder;
}
#services .item:last-child {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
}
#services .item:last-child a {
  color: #eb1c24;
  margin-left: 20px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  padding: 10px;
}
#services .item:last-child a span {
  color: #fff;
  font-weight: bolder;
}
#services .item:nth-child(2) {
  background-color: #35b5fe;
  color: #fff;
}
#services .item:nth-child(3) {
  background-color: #0c344c;
}
#services .item:nth-child(4) {
  background-color: #0c344c;
}
#services .item:nth-child(5) {
  background-color: #35b5fe;
}
#services .item:nth-child(6) {
  background-color: #35b5fe;
}
#services .item:nth-child(7) {
  background-color: #0c344c;
}
#services .item:nth-child(9) {
  background-color: #35b5fe;
}
#services .item:nth-child(8) {
  background-color: #0c344c;
}

.back-2{
  color: #000;

}
.back-3{
  
color: #fff;
}
.back-4{
  
  color: #fff;
  margin-top: 10px;
}
.back-5{
  margin-top: 5px;

}
.back-6{
  

}
.back-7{
  
  color: #fff;
}
.back-8{
  color: #000 ;

}

.arrow{
  color: #fff;
}
#footer {
  background-color: #0c344c;
  position: relative;
}

#footer h1 {
  padding: 20px;
  color: #fff;
  text-align: center;
}

.contact {
  text-align: center;
  justify-content: center;
  padding: 40px;
}

.fa-solid {
  color: grey;
  font-size: 1.9rem;
  padding-bottom: 5px;
}
.foot {
  padding: 10px;
}
.foot h2 {
  color: #fff;
}
.foot p {
  color: #35b5fe;
}
#slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #0c344c;
}

#slider #line {
  height: 5px;
  background: #35b5fe;
  z-index: 1;
  position: absolute;
  bottom: 0;
  right: 0;
}

#slider #dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
}

#slider #dots li {
  transition: 0.3s;
  list-style-type: none;
  width: 12px;
  height: 12px;
  border-radius: 100%;
  background: rgba(0, 0, 0, 0.5);
  margin: 0 0.25em;
  cursor: pointer;
}

#slider #dots li:hover,
#slider #dots li.active {
  background: #35b5fe;
}

@keyframes line {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

#slider #back,
#slider #forword {
  width: 6%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  color: white;
  font-weight: 700;
  font-size: 2rem;
  background: -moz-linear-gradient(
    left,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  background: -webkit-linear-gradient(
    left,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bfffffff', endColorstr='#00ffffff',GradientType=1 );
}

#slider #forword {
  left: auto;
  right: 0;
  background: -moz-linear-gradient(
    left,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 100%
  );
  background: -webkit-linear-gradient(
    left,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 100%
  );
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#bfffffff',GradientType=1 );
}

#slider:hover #back,
#slider:hover #forword {
  opacity: 0.7;
}

ul#move {
  margin: 0;
  padding: 0;
  display: flex;
  width: 100%;
  background: gray;
  margin-right: 100%;
}

ul#move li {
  transition: 0.6s;
  min-width: 100%;
  color: white;
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

ul#move li img {
  width: 100%;
  height: 100%;
}
.case {
  border: 1px solid #918c89;
  background-color: #918c89;
}
#mail::placeholder {
  color: #fff;
}
#mail {
  border: none;
  outline: none;
  background-color: #918c89;
  width: 70%;
  padding: 6px;
  height: fit-content;
}
.button {
  padding: 6px;
  padding-top: 6px;
   width: 28%;
   height: 100%;
  border: none;
  cursor: pointer;
  background-color: #e58210;
  height: fit-content;
}
.subscribe small {
  display: none;
}

h4 {
  font-size: 13px;
  color: #35b5fe;
}

.subscribe {
  margin-top: 20px;
}

.call{
  text-decoration: none;
}

/* DESKTOP STYLE */

@media screen and (min-width: 800px) {
  html {
    scroll-behavior: smooth;
  }
  #hero {
    flex-direction: row;
    /* padding-left: 10px; */
  }
  #hero > * {
    flex: 1;
  }
  #hero .details {
    padding-right: 10%;
    justify-content: center;
  }
  #hero .details h1 {
    font-size: 2.5rem;
  }
  /* Nav */
  nav {
    flex-direction: row;
    position: sticky;
    top: 0;
    z-index: 40;
  }
  nav #menu-btn {
    display: none;
  }
  nav ul {
    display: block;
    margin-left: 20px;
    margin-right: auto;
  }
  nav li {
    display: inline-block;
    padding: 0 10px;
  }

  nav li a:active {
    transform: scale(1.1);
  }
  nav .phone {
    display: flex;
    align-items: center;
  }

  /* ADVANTAGES */
  #advantage {
    /* padding: 40px 6% 40px 20%; */
    background-color: #fff;
  }
  #advantage h1 {
    font-size: 2.5rem;
    text-align: center;
  }
  #advantage .list .item {
    /* align-items: flex-start; */
    text-align: center;
    padding-left: 0px;
  }
  /* ABOUT */
  #about {
    flex-direction: row;
  }
  #about > * {
    flex: 1;
  }
  .about {
    margin-top: 5px;
  }
  .inner.is_flipped{
    transform: none;
  }
  /* SERVICES */

  #services {
    display: grid;
    grid-template-columns: repeat(4, minmax(300px, 1fr));
    grid-template-rows: repeat(3, 320px);
    background-color: #fff;
    gap: 5px;
  }

  #services .item:last-child {
    grid-column: 3 / 5;
    background-color: #fff;
  }

  #services .item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 8px 8px 5px -4px rgba(0, 0, 0, 0.1),
      0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    /* margin: 5px; */
    overflow: hidden;
  }

  .heading {
    font-size: 20px;
  }
  .inner {
    width: 100%;
    height: 450px;
    transform: translateY(0%);
    overflow: hidden;
  }

  .front img {
    width: 80px;
    height: 80px;
  }
  .back img {
    width: 60px;
    height: 60px;
  }
  .back {
    transform: translateY(-2%);
    background-color: #ee4e34;
    color: beige;
  }
  .inner .back-2{
    background-color: #808080;
  }
  .inner .back-3{
    background-color: #8a2be2;
  }
  .inner .back-4{
    background-color: #993366;
  }
  .inner .back-5{
    background-color: #FF0099;
  }
  .inner .back-6{
    background-color: #FFFFFF;
    color: #000;
  }
  .inner .back-7{
    background-color: #FFA500;
    /* color: #000; */
  }
  .span{
    display: block;
  }
  .back-6 p{
    color: #000;
  }


  .back h2 {
    font-size: 15px;
    margin-bottom: 5px;
    text-indent: 2;
  }

  .item:hover .front {
    transform: translateY(100%);
  }
  .front,
  .back {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.5s;
    text-align: center;
    padding: 0 10px;
    /* margin-top: 20px; */
  }
  .item:hover .back {
    transform: translateY(-100%);
  }
  .front {
  }
  /* .back {
    transform: translateY(100%);
    background: #b51ca6;
   
  } */

  #services .item a {
    text-decoration: none;
    color: #fff;
  }
  #services .item:nth-child(9) {
    background-color: #0c344c;
  }

  #services .item:nth-child(2) {
    background-color: #35b5fe;
    color: #fff;
  }
  #services .item:nth-child(3) {
    background-color: #0c344c;
  }
  #services .item:nth-child(4) {
    background-color: #0c344c;
  }
  #services .item:nth-child(5) {
    background-color: #35b5fe;
  }
  #services .item:nth-child(6) {
    background-color: #0c344c;
  }
  #services .item:nth-child(7) {
    background-color: #35b5fe;
  }
  #services .item:nth-child(8) {
    background-color: #35b5fe;
  }
  #services .item:nth-child(9) {
    background-color: #0c344c;
  }

  .back-4{
  
    color: #fff;
    margin-top: 0px;
  }
  .back-5{
    margin-top: 0px;
  
  }
  .back img{
    display:block;
    margin-bottom: 10px;
  }

  /* .back-2 {
    background-color: chartreuse;
  } */

  /* .item-2 .back {
    background-color: #e51010;
  } */

  .item p {
    text-align: center;
  }

  /* FOOTER */

  .link {
    color: #fff;
    font-size: 16px;
    margin: 0px 10px 0px 10px;
    text-decoration: none;
    position: relative;
    bottom: 8px;
  }

  .link:after {
    bottom: -4px;
    content: "";
    display: block;
    height: 2px;
    left: 0;
    position: absolute;
    background: #35b5fe;
    opacity: 0.6;
    transition: width 0.3s ease 0s, opacity 0.3s ease 0s;
    width: 0;
  }

  .link:hover:after {
    width: 100%;
    opacity: 0.9;
    color: #35b5fe;
  }

  .link a {
    color: rgba(255, 255, 255, 0.865);
  }
  .link a:hover {
    color: #35b5fe;
  }

  #slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #0c344c;
  }

  #slider #line {
    height: 5px;
    background: #35b5fe;
    z-index: 1;
    position: absolute;
    bottom: 0;
    right: 0;
  }

  #slider #dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    display: flex;
    justify-content: center;
  }

  #slider #dots li {
    transition: 0.3s;
    list-style-type: none;
    width: 12px;
    height: 12px;
    border-radius: 100%;
    background: rgba(0, 0, 0, 0.5);
    margin: 0 0.25em;
    cursor: pointer;
  }

  #slider #dots li:hover,
  #slider #dots li.active {
    background: #35b5fe;
  }

  @keyframes line {
    0% {
      width: 0%;
    }
    100% {
      width: 100%;
    }
  }

  #slider #back,
  #slider #forword {
    width: 6%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    color: white;
    font-weight: 700;
    font-size: 2rem;
    background: -moz-linear-gradient(
      left,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(255, 255, 255, 0) 100%
    );
    background: -webkit-linear-gradient(
      left,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(255, 255, 255, 0) 100%
    );
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(255, 255, 255, 0) 100%
    );
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bfffffff', endColorstr='#00ffffff',GradientType=1 );
  }

  #slider #forword {
    left: auto;
    right: 0;
    background: -moz-linear-gradient(
      left,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.75) 100%
    );
    background: -webkit-linear-gradient(
      left,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.75) 100%
    );
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.75) 100%
    );
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#bfffffff',GradientType=1 );
  }

  #slider:hover #back,
  #slider:hover #forword {
    opacity: 0.7;
  }

  ul#move {
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    background: gray;
    margin-right: 100%;
  }

  ul#move li {
    transition: 0.6s;
    min-width: 100%;
    color: white;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  ul#move li img {
    width: 100%;
    height: 100%;
  }

  /* Footer */
  .foot h2 {
    color: #fff;
  }
  .fa-solid {
    color: rgb(216, 209, 209);
    text-align: center;
    font-size: 1.9rem;
    padding: 10px;
  }
  .foot p {
    color: #35b5fe;
  }

  .line {
    background-color: gray;
    /* width: 100vw; */
    height: 0.1px;
  }
  .subscribe {
    position: absolute;
    top: 75px;
  }
  .case {
    display: flex;
    border: 1px solid #918c89;
    background-color: #918c89;
  }
  #mail {
    border: none;
    outline: none;
    background-color: #918c89;
    width: 300px;
    padding: 8px;
    /* padding-right: 30px; */
    height: fit-content;
  }
  #mail::placeholder {
    color: #fff;
  }
  .button {
    padding: 8px;
    padding-top: 9px;
    border: none;
    cursor: pointer;
    background-color: #e58210;
    height: fit-content;
  }
  .button:active {
    transform: scale(1.1);
  }
  .email {
    position: relative;
  }
  .subscribe small {
    /* display: flex; */
    font-size: 16px;
    position: absolute;
    color: #fff;
    left: 0;
    top: -40px;
  }

  h4 {
    font-size: 10px;
    position: absolute;
    bottom: 10px;
    left: 49px;
    color: #35b5fe;
  }


  .arrow{
   color: #000 !important;
  }

  .item em{
    display: none;
  }
}
