.about-me {
  margin-top: 50px;
}

.about-me img {
  display: block;
  width: 100%;
  max-width: 430px;
  border-radius: 30px;
  margin-inline: auto;
}

.text-section,
.services-section h2,
.services-section p {
  padding-inline: 16px;
}

.carousel-container {
  position: relative;
}

.services-list {
  display: flex;
  width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  margin-top: 32px;
  scrollbar-width: none;
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.services-list::-webkit-scrollbar {
  display: none;
}

.service-card {
  scroll-snap-align: center;
  width: 100%;
  flex-shrink: 0;
  background: var(--secondary);
}

.carousel-container path {
  fill: var(--text);
}

.image-content {
  position: relative;
  display: block;
  width: 100%;
  height: 30vh;
  overflow: hidden;
  background: linear-gradient(var(--light-pink), var(--light-green));
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 -25px 20px var(--secondary);
}

.text-content {
  padding-inline: 16px;
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
}

.text-content p {
  padding: 0;
  margin: 0;
}

.slide-buttons {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 20px;
  z-index: 10;
}

.slide-buttons button {
  background: none;
}

@media screen and (min-width: 800px) {
  .service-card {
    display: flex;
  }
  .image-content {
    width: 50%;
    flex-shrink: 0;
    height: auto;
  }
  .image-content::after {
    box-shadow: inset -25px 0 20px var(--secondary);
  }

  .text-content {
    padding-inline: 64px;
    justify-content: center;
  }
}

@media screen and (min-width: 850px) {
  .about-me h2 {
    margin-bottom: 0;
  }
  .about-me {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
  }

  .about-me h2,
  .about-me p {
    grid-column: 1;
  }

  .about-me p {
    margin: 0;
    padding: 0;
  }

  .about-me img {
    grid-column: 2;
    grid-row: 1 / span 5;
    height: auto;
    align-self: center;
  }
}

@media screen and (min-width: 1250px) {
  .services-section .text-content {
    font-size: 1.2rem;
  }
}
