.home-services-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.home-services-section .caption-text {
  margin-bottom: 16px;
}

.home-services-section .section-title {
  font-family: Satoshi, sans-serif;
  font-size: 64px;
  font-style: normal;
  font-weight: 700;
  line-height: 72px; /* 112.5% */
  color: #F5F7FC;
}

.home-services-section .services-cards-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(370px, 100%), 1fr));
  gap: 8px;
  padding: 0;
  margin: 0 0 80px;
  list-style: none;
  counter-reset: custom-counter;
}

.home-services-section .services-cards-item,
.home-services-section .services-cards-sub-item {
  position: relative;
  overflow: hidden;
  counter-increment: custom-counter;
  border-radius: 12px;
}

.home-services-section .services-cards-item::before,
.home-services-section .services-cards-sub-item::before {
  position: absolute;
  top: 26px;
  left: 32px;
  z-index: 4;
  font-family: Satoshi, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px; /* 150% */
  color: rgb(240 243 250 / 24%);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.64px;
  content: counter(custom-counter, decimal-leading-zero);
}

.home-services-section .services-card-wrapper,
.home-services-section .services-card-sub-wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  height: 520px;
  padding: 26px 32px 32px;
  color: #F5F7FC;
  background: rgb(14 16 21 / 40%);
  backdrop-filter: blur(60px);
  border-radius: 12px;
}

/* Styles for Lottie animations */
.lottie-animation-container {
  position: absolute;

  /* inset: 0; */
  bottom: 0;
  left: 50%;
  z-index: -2;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translateX(-50%);
}

.lottie-animation-container dotlottie-player {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1780px;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  .services-cards-item:hover .lottie-animation-container,
  .services-cards-sub-item:hover .lottie-animation-container {
    opacity: 1;
  }

  .home-services-section .services-cards-item:hover .services-card-wrapper,
  .home-services-section .services-cards-sub-item:hover .services-card-sub-wrapper {
    color: #01040A;
    background: rgb(14 16 21 / 40%);
    border-radius: 12px;
  }
}

.home-services-section .services-card-sub-wrapper {
  height: 400px;
}

.home-services-section .services-card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.home-services-section .services-card-heading {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.home-services-section .services-card-caption-text,
.home-services-section .services-card-sub-caption-text {
  padding: 0;
  margin: 0;
  font-family: Satoshi, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px; /* 150% */
  color: rgb(240 243 250 / 24%);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.64px;
}

.home-services-section .services-card-image-wrapper,
.home-services-section .services-card-sub-image-wrapper {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.home-services-section .services-card-image,
.home-services-section .services-card-sub-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.home-services-section .services-card-footer,
.home-services-section .services-card-sub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-services-section .services-card-title,
.home-services-section .services-card-sub-title {
  padding: 0;
  margin: 0;
  font-family: Satoshi, sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 40px; /* 125% */
  color: currentcolor;
}

.home-services-section .services-card-button,
.home-services-section .services-card-sub-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 16px;
  color: #01040A;
  background: #F5F7FC;
  border: none;
  border-radius: 50%;
  outline: none;
}

.home-services-section .services-card-button path,
.home-services-section .services-card-sub-button path {
  stroke: currentcolor;
}

@media (hover: hover) and (pointer: fine) {
  .home-services-section .services-cards-item:hover .services-card-button,
  .home-services-section .services-cards-sub-item:hover .services-card-sub-button {
    color: #F5F7FC;
    background: #01040A;
  }
}

.home-services-section .section-subtitle {
  margin-bottom: 24px;
  font-family: Satoshi, sans-serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: 56px; /* 116.667% */
  color: #F5F7FC;
  text-transform: capitalize;
}

.home-services-section .services-cards-sub-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: custom-counter;
}

.home-services-section .services-cards-sub-item {
  position: relative;
  counter-increment: custom-counter;
}

.home-services-section .services-cards-sub-item .lottie-animation-container svg {
  width: 1680px;
}

.home-services-section .services-card-sub-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.home-services-section .services-card-sub-heading {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.home-services-section .services-card-sub-image-wrapper {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media screen and (min-width: 1901px) {
  .home-services-section .services-card-wrapper,
  .home-services-section .services-card-sub-wrapper {
    height: 718px;
  }

  .home-services-section .services-card-sub-wrapper {
    height: 550px;
  }
}

@media screen and (max-width: 1900px) {
  @media (hover: hover) and (pointer: fine) {
    .services-cards-item:hover .services-card-image[src$=".svg"],
    .services-cards-sub-item:hover .services-card-sub-image[src$=".svg"] {
      filter: brightness(0)
    }
  }
}

@media screen and (max-width: 1440px) {
  .home-services-section {
    padding-top: clamp(40px, 0px + 8.3333vw, 120px);
    padding-bottom: clamp(40px, 0px + 8.3333vw, 120px);
  }

  .home-services-section .section-title {
    font-size: clamp(40px, 28px + 2.5vw, 64px);
    line-height: 1.12;
  }

  .home-services-section .services-card-title {
    font-size: clamp(28px, 26px + 0.4167vw, 32px);
    line-height: 1.25;
  }

  .home-services-section .section-subtitle {
    font-size: clamp(36px, 30px + 1.25vw, 48px);
    line-height: 1.16;
  }
}

@media screen and (max-width: 480px) {
  .home-services-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .home-services-section .section-title {
    font-size: 40px;
    line-height: 48px;
  }

  .home-services-section .services-card-title {
    font-size: 28px;
    line-height: 36px;
  }

  .home-services-section .section-subtitle {
    font-size: 36px;
    line-height: 44px;
  }

  .home-services-section .services-cards-list {
    margin: 0 0 32px;
  }

  .home-services-section .services-card-wrapper,
  .home-services-section .services-card-sub-wrapper {
    height: 423px;
    padding: 20px 24px 24px;
  }
}
