.card-header {
  color: #948979;
  font-size: 20px;
  text-align: center;
}

.card-header .subtitle {
  display: block; /* forces new line */
  font-size: 16px; /* smaller */
  margin-top: 5px;
}

.back-content {
  color: #948979;
}

.content {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 300ms;
  box-shadow: 0px 0px 10px 1px #000000ee;
  border-radius: 5px;
}

.front,
.back {
  background-color: #031527; /*this is the outside line should be darker*/
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
}

.back {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.back::before {
  position: absolute;
  content: " ";
  display: block;
  width: 160px;
  height: 160%;
  background: linear-gradient(
    90deg,
    transparent,
    #948979,
    #948979,
    #948979,
    #948979,
    transparent
  );
  animation: rotation_481 5000ms infinite linear;
}

.back-content {
  position: absolute;
  width: 99%;
  height: 99%;
  background-color: #031527;
  border-radius: 5px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

@keyframes rotation_481 {
  0% {
    transform: rotateZ(0deg);
  }

  0% {
    transform: rotateZ(360deg);
  }
}

.front {
  transform: rotateY(180deg);
  color: white;
}

.description {
  box-shadow: 0px 0px 10px 5px #010f1d;
  width: 100%;
  padding: 10px;
  background-color: #010f1d;
  backdrop-filter: blur(5px);
  border-radius: 5px;
  font-size: 18px;
  text-align: center;
  margin: 0 auto;
}

.btn-container {
  display: flex;
  justify-content: center;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.title {
  font-size: 11px;
  max-width: 100%;
  text-align: center;
  display: flex;
  justify-content: space-between;
}

.title p {
  width: 50%;
}

/*Services container*/
.custom-header h2 {
  text-align: center;
  font-size: 40px;
  padding: 4%;
  color: #d0c9b4;
}

/*style for the card scrolling*/
.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 1200px;
}

.card {
  flex-wrap: nowrap;
  overflow-y: hidden;
  width: 320px;
  height: 420px;
  margin-bottom: 5%;
  background-color: #151515;
  color: white;
}

/*button*/
.custome-button {
  position: relative;
  padding: 10px 20px;
  border-radius: 7px;
  border: 1px solid #031527;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  background: transparent;
  color: #d0c9b4;
  overflow: hidden;
  box-shadow: 0 0 0 0 transparent;
  -webkit-transition: all 0.2s ease-in;
  -moz-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}

.custome-button:hover,
.custome-button:active {
  background: #d0c9b4;
  box-shadow: 0 0 30px 5px #d0c9b4;
  color: #031527;
  border: 1px solid #d0c9b4;
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.custome-button:hover::before,
.custome-button:active::before {
  -webkit-animation: sh02 0.5s 0s linear;
  -moz-animation: sh02 0.5s 0s linear;
  animation: sh02 0.5s 0s linear;
}

.custome-button::before {
  content: "";
  display: block;
  width: 0px;
  height: 86%;
  position: absolute;
  top: 7%;
  left: 0%;
  opacity: 0;
  background: #fff;
  box-shadow: 0 0 50px 30px #fff;
  -webkit-transform: skewX(-20deg);
  -moz-transform: skewX(-20deg);
  -ms-transform: skewX(-20deg);
  -o-transform: skewX(-20deg);
  transform: skewX(-20deg);
}

@keyframes sh02 {
  from {
    opacity: 0;
    left: 0%;
  }

  50% {
    opacity: 1;
  }

  to {
    opacity: 0;
    left: 100%;
  }
}

.custome-button:active {
  box-shadow: 0 0 0 0 transparent;
  -webkit-transition: box-shadow 0.2s ease-in;
  -moz-transition: box-shadow 0.2s ease-in;
  transition: box-shadow 0.2s ease-in;
}

.img-des {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

@media screen and (max-width: 1024px) {
  .services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
  }
}

@media screen and (max-width: 700px) {
  .services-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    max-width: 700px;
  }
}

@media screen and (max-width: 500px) {
  .services-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 80%;
    margin: 30px auto;
  }

  .card {
    width: 90%;
    height: auto; /* let content define height */
    margin: 30px auto;
  }

  .content,
  .back,
  .back-content {
    position: relative; /* stop absolute collapsing */
    width: 100%;
    height: auto;
  }

  .back-content {
    padding: 10px;
  }

  .back {
    padding: 3px;
  }
  .img-des {
    height: auto; /* images scale naturally */
  }
}
