.services-section .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.services-section .section-title a {
  color: var(--text-color);
  font-size: 18px;
  text-decoration: underline;
  transition: color 1.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.services-section .section-title a .arrow-icon {
  height: 24px;
  width: 24px;
  transition: all 1.2s ease-in-out;
}

.services-section .section-title a .arrow-icon svg {
  stroke: currentColor;
}

.services-section .section-title a:hover {
  color: var(--primary-color);
}

.services-section .section-title a:hover .arrow-icon {
  transform: translateX(3px);
}

.services-section .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 16px;
}

.services-section .cards .card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: 300px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  cursor: pointer;
  color: var(--white-color);
}

.services-section .cards .card .card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 1s ease;
}

.services-section .cards .card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right top, #2d2b53 0%, #2d2b5300 100%);
  opacity: 0.8;
  z-index: 1;
}

.services-section .cards .card h3,
.services-section .cards .card p {
  position: relative;
  z-index: 2;
}

.services-section .cards .card p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height ease 1s, opacity ease 1s;
  line-height: 24px;
  margin-top: 24px;
}

.services-section .cards .card h3 {
  font-size: 1.75em;
  font-weight: 700;
}

.services-section .cards .card:hover {
  transform: scale(1.02);
  transition: all 0.5s;
}

.services-section .cards .card:hover .card-img {
  transform: scale(1.1);
  transition: all 1.6s;
}

.services-section .cards .card:hover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right top, #2d2b53 37%, #2d2b5300 100%);
  opacity: 1;
  transition: opacity ease 1.4s;
  z-index: 1;
}

.services-section .cards .card:hover p {
  max-height: 300px;
  opacity: 1;
}

.services-section .read-more-link a {
  color: var(--text-color);
  font-size: 20px;
  text-decoration: underline;
  transition: color 1s;
  display: none;
  align-items: center;
  justify-content: end;
  gap: 8px;
  margin-top: 24px;
}

.services-section .read-more-link a:hover {
  color: var(--primary-color);
}

.services-section .read-more-link a .arrow-icon {
  height: 24px;
  width: 24px;
}

.services-section .read-more-link a .arrow-icon svg {
  stroke: currentColor;
  animation: moveArrow 0.7s infinite alternate ease-in-out;
}

@media screen and (max-width: 1320px) {
  .services-section .cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)) !important;
    gap: 16px;
  }
}
@media screen and (max-width: 992px) {
    .services-section .cards {
        gap: 16px;
    }

    .services-section .cards .card {
        padding: 20px;
    }

}

@media screen and (max-width: 769px) {
    .services-section .cards .card {
        min-height: 300px;
        padding: 32px;
    }

    .services-section .cards .card p {
        max-height: 100%;
        opacity: 1;
        margin-top: 15px;
    }
    .services-section .section-title {
        flex-direction: column;
        align-items: start;
        gap: 16px;
    }

    .services-section .section-title a {
        display: none;
    }

    .services-section .section-title h2 {
        font-size: 40px;
    }

    .services-section .read-more-link a {
        display: flex;
    }

    .services-section .read-more-link a svg {
        width: 18px;
    }
}
