.service {
  position: relative;
  display: block;
}
.service .cardContainer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  background-size: cover;
  background-position: center center;
  gap: 14px;
  max-height: 80vh;
  max-height: 80svh;
  width: 94%;
  margin: 0 auto;
}

@media only screen and (max-width: 1400px) {
  .service .cardContainer {
    width: 94%;
    margin: auto;
    max-height: 80vh;
    max-height: 80svh;
  }
}
@media only screen and (max-width: 1200px) {
  .service .cardContainer {
    width: 94%;
    margin: auto !important;
    padding-left: 20px;
    max-height: 80vh;
    max-height: 80svh;
  }
  .service .card {
    min-width: 25%;
    max-width: 25%;

    max-height: 80vh;
    max-height: 80svh;
  }
}
@media only screen and (max-width: 1100px) {
  .service .card .detailsHover {
    display: none;
  }
}
.service .cardContainer .card {
  position: relative;

  min-width: 23.9%;
  max-width: 23.9%;
  /* min-height: 600px; */

  height: 80vh;
  height: 80svh !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  color: #ffffff;

  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;

  box-shadow: 0px 4px 7px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.8, 0.5, 0.2, 1.4);
  overflow: hidden;
  position: relative;
}

.service .cardContainer .card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;

  max-height: 100%;

  background-color: rgba(0, 0, 0, 0.7);
}
.service .card .detailsShow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
  position: absolute;

  transition: 0.9s ease;
}

.service .card .detailsShow {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0;
  background-color: rgba(255, 255, 255, 0.7);
  width: 100% !important;
  height: 100%;
  transition: all 0.7s ease-in-out;
  padding: 20px;
  box-sizing: border-box;
  clip-path: circle(0% at 100% 100%);
}

.service .card:hover .detailsShow {
  left: 0px;
  transition: all 0.7s ease-in-out;
  clip-path: circle(75%);
}

.service .card:hover {
  transition: all 0.5s cubic-bezier(0.8, 0.5, 0.2, 1.4);
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);
  /* transform: scale(0.97); */
}

.service .card img.imageConteinaer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.service .card:hover img.imageConteinaer {
  transition: all 0.5s cubic-bezier(0.8, 0.5, 0.2, 1.4);
  transform: scale(1.6) rotate(20deg);
  filter: blur(3px);
}

.service .card .detailsShow img {
  opacity: 1;
}
.service .card .detailsShow p {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 33px;
  letter-spacing: 0em;
  text-align: center;
  text-transform: uppercase;
  color: black;
}

.service .readMore {
  padding: 10px;
  border: 1px solid transparent;
  outline: none;
  border-radius: 10px;
  cursor: pointer;
  background-color: transparent;
  font-size: 12px;
  font-family: "Poppins", sans-serif;
  transition: 0.5s ease all;
}
.service .readMore:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  font-size: 14px;
}

@media only screen and (max-width: 1110px) {
  .service .readMore {
    display: none !important;
  }
}

/* 
.service .detailsHover p {
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 17px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0em;
  text-align: center;
  margin-top: 20px;
  padding: 0 20px;
}

.service .detailsHover {
  transition: 0.3s ease all;
  opacity: 0;
  transform: translateY(200%);
  z-index: 2;
}
.service .detailsHover p button {
  background-color: inherit;
  color: #ffffff;
  outline: none;
  border: 1px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 40px;
  letter-spacing: 0em;
  text-align: center;
  padding: 0 10px;
  border-radius: 20px;
  margin-top: 20px;
  cursor: pointer;
}
.service .card:hover .detailsHover {
  opacity: 1;
  transform: translateY(25%);
}
.service .card:hover {
  background-size: cover;
}
.service .card:hover .detailsShow img {
  transform: translateY(-100%);
  opacity: 0;
}

.service .card:hover .detailsShow {
  transform: translateY(-100%);
}

.service .detailsHover p button:hover {
  color: #4d4d4d;
  background-color: #fff;
} */

.service .ArrowSection {
  display: none;
}
@media only screen and (max-width: 1100px) {
  .service {
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    /* margin-top: 120px; */
  }
  .service .cardContainer {
    flex-direction: column;
    min-height: 80vh;
  }
  .service .cardContainer .card {
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    max-height: 300px;
    height: 20vh;
    height: 20svh;
    min-height: 200px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
    border-radius: 4px;
    /* box-shadow: 20px -0px 10px rgba(0, 0, 0, 0.3); */

    display: flex;
    align-items: center;
  }
  .service .card .detailsShow {
    width: 85%;
    margin-right: 15%;
  }
  .service .card:hover .detailsShow {
    transform: translate(0);
  }
  .service .card:hover .detailsShow img {
    transform: translateY(0);
    opacity: 1;
  }
  .service .card .ArrowSection {
    display: flex;
    background-color: lightgray;
    height: 100%;
    position: absolute;
    right: 0;
    z-index: 20;
    align-items: center;
  }
  .service .card .ArrowSection svg {
    width: 50px;
    height: 100px;
    /* color: #01111b; */
    cursor: pointer;
  }
}

@media only screen and (max-width: 700px) {
  .service .card .detailsShow p {
    font-size: 20px;
    line-height: 20px;
  }
  .service .cardContainer {
    padding-left: 0;
  }
}

/* start service section */

@media only screen and (max-width: 1050px) {
  .service {
    max-height: 310vh;
  }
  .serviceheader {
    justify-content: center;
  }
  .serviceheader h2 {
    font-family: "Saira";
    font-size: 80px;
    font-weight: 400;
    line-height: 90px;
    letter-spacing: 0em;
    text-align: center;
  }

  .serviceContainer .cardContainer {
    min-height: 80vh;
    min-height: 80svh;
    max-height: 310vh;
  }
}
