.services-section {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  padding-bottom: 5rem;
  flex-direction: column;
  width: 100%;
}

.services-div2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  place-items: center;
}

.services-div {
  align-items: center;
  width: 90%;
  padding-bottom: 2rem;
}

.services-title {
  display: flex;
  align-items: center;
  max-width: 100%;
  justify-content: center;
  gap: 1rem;
}

.services-title hr {
  background-color: rgb(69, 96, 185);
  border-radius: 0.5rem;
  width: 100%;
  border-color: rgb(69, 96, 185);
  height: 4px;
}

.services-div small {
  display: block;
  color: rgb(69, 96, 185);
  text-align: center;
  font-size: 80%;
  padding: 0.5rem;
}
.services-title h2 {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2rem;
}

.services-section-img {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  width: 100%;
  place-items: center;
  padding-right: 1rem;
  padding-left: 1rem;
  gap: 1.5rem;
}

.services-img {
  width: 100%;
  top: 0;
  left: 0;
}

.services-img img {
  max-width: 100%;
  border-radius: 0.5rem;
}

.services-back {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 14px;
  border-radius: 0.5rem;
  background-color: rgb(7, 21, 66);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 1.25rem;
  position: absolute;
  top: 0;
  left: 0;
}

.services-back span {
  font-weight: 600;
}

.services-back p {
  text-align: center;
}

.services-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  background-color: rgb(59 130 246);
  width: 70%;
  border-radius: 0.5rem;
  padding: 10px;
  font-weight: 600;
  transition: scale 0.3s ease-in-out;
}

.services-button:hover {
  scale: 1.05;
}

.card {
  width: 100%;
  height: 100%;
  perspective: 1000px;
  aspect-ratio: 4/3;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.services-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}

.services-back {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transform: rotateY(180deg);
}

@media (min-width: 768px) {
  .services-section-img {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .services-section-img {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1100px;
  }

  .services-title {
    justify-content: space-between;
    gap: 9rem;
  }

  .services-title h2 {
    font-size: 3rem;
    padding-bottom: 1rem;
  }

  .services-div {
    width: 79%;
  }
}
