.services {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  background-color: #fff;
  border-radius: 50px;
  overflow: hidden;
  color: #3498db;
  width: 200px;
  height: 170px;
  padding: 10px;
}

.service-card:hover {
  transform: scale(1.2);
}
.service-card.transformed {
  transform: scale(1.2);
}

.service-card-active {
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

.services-body-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-body {
  display: none;
  padding: 20px;
  background-color: var(--color-services-card);
  margin-block-start: -4%;
  border-top-right-radius: 22%;
  border-bottom-right-radius: 22%;
  z-index: -2;
  width: 100%;
}

.services-body.active {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.7s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
.services-body-content {
  display: flex;
  flex-direction: row;
  margin-inline: auto;
  width: 90%;
  justify-content: space-between;
}


@media screen and (max-width: 550px) {
  .service-card{
    width: 135px;
    height: 100%;
  }
  .services img{
    width: 45%;
    height: 100%;
  }
  .services p{
    font-size: 12px;
  }
}

@media screen and (max-width: 650px) {
  .service-card{
    width: 135px;
    height: 100%;
  }

  .services img{
    width: 45%;
    height: 100%;
  }
  .services p{
    font-size: 12px;
  }
}
