@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

body {
  font-family: "Work Sans";
  background: linear-gradient(135deg, #191919, #232323);
  padding: 0;
  margin: 0;
  -ms-overflow-style: none;
  /* text-align: center; */
  color: #ffffff;
}

#blurLogo-Services {
  position: absolute;
  width: 55.625rem;
  height: 33.75rem;
  top: 0rem;
  left: -20rem;
  filter: blur(6.25rem);
  z-index: -999;
}

#blurLogo-Services-2 {
  position: absolute;
  width: 55.625rem;
  height: 33.75rem;
  bottom: -20rem;
  right: 0rem;
  filter: blur(6.25rem);
  z-index: -999;
}

#blurLogo-Services-3 {
  position: absolute;
  width: 55.625rem;
  height: 33.75rem;
  bottom: 20rem;
  left: -0rem;
  filter: blur(6.25rem);
  z-index: -999;
}

/* Services Section */
.services-section {
  padding: 10rem 0 0 0;
}

.section-title {
  font-family: "Oswald";
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  top: 4rem;
  left: 50.5%;
  transform: translateX(-50%);
  width: 16.5rem;
  height: 0.3125rem;
  background: linear-gradient(
    90deg,
    #e51e27 -1.08%,
    rgba(229, 30, 39, 0) 96.83%
  );
}

/* Category */
.category-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
  transition: 0.3s;
  margin: 1.5rem 30rem;
  text-decoration: none;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1.138rem);
  position: relative; /* Required for ::after to position correctly */
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 0.188rem; /* Border thickness */
  background: linear-gradient(
    -125deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none; /* Prevents blocking clicks */
}

.category-card a {
  color: white;
  text-decoration: none;
}

.category-card h3 {
  font-family: "Oswald";
  color: white;
  font-size: 1.5rem;
  margin: 0;
  padding: 0;
}

.category-card h3:hover {
  color: #e51e27;
}
/* End of Category */

/* Services List */
.service-list-title {
  margin-top: 12rem;
  font-family: "Oswald";
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block; /* Adjusts width to match text */
}

.service-list-title::after {
  content: "";
  position: absolute;
  bottom: -0rem; /* Adjust spacing */
  left: 0;
  width: 110%; /* Matches text width */
  height: 0.3125rem;
  background: linear-gradient(
    90deg,
    #e51e27 -1.08%,
    rgba(229, 30, 39, 0) 96.83%
  );
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 1.25rem;
  max-width: 75rem;
  margin: 0 auto 5rem auto;
  padding: 1.25rem;
}

.service-card {
  position: relative; /* Needed for absolute positioning of ::after */
  width: 20rem;
  height: 20rem;
  padding: 1.25rem;
  transition: 0.3s;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1.138rem);
  text-align: start;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 0.188rem; /* Border thickness */
  background: linear-gradient(
    -125deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-0.625rem);
  box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.5);
}

.service-card img {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
  border-radius: 0.625rem;
}

.service-card h3 {
  color: white;
  text-decoration: none;
}

.service-card p {
  color: #ffffff;
  font-size: 1rem;
  margin-top: 1rem;
  text-decoration: none;
}
/* End of Services List */

/* Responsive */
@media screen and (max-width: 1024px) {
  .category-card {
    margin: 1.5rem 15rem;
  }

  .service-list-title {
    margin-top: 10rem;
    font-size: 2.5rem;
  }

  .services-grid {
    max-width: 768px;
  }
}

@media screen and (max-width: 768px) {
  #blurLogo-Services-3 {
    position: absolute;
    width: 30rem;
    height: 30rem;
    bottom: 40rem;
    left: 0rem;
    filter: blur(6.25rem);
    z-index: -999;
  }

  .category-card {
    margin: 1.5rem 8rem;
  }

  .service-list-title {
    margin-top: 8rem;
    font-size: 2rem;
  }

  .services-grid {
    max-width: 576px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 480px) {
  #blurLogo-Services {
    position: absolute;
    width: 20rem;
    height: 20rem;
    top: 0rem;
    left: 0rem;
    filter: blur(3rem);
    z-index: -999;
  }

  #blurLogo-Services-3 {
    display: none;
  }

  .services-section {
    padding: 5rem 0 0 0;
  }

  .categories-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }

  .category-card {
    margin: 1.5rem 0;
    width: 100%;
    max-width: 20rem;
  }

  .category-card h3 {
    font-size: 1.125rem;
  }

  .service-list-title {
    margin-top: 10rem;
    font-size: 1.5rem;
  }

  .services-grid {
    max-width: 320px;
  }
}

@media screen and (max-width: 375px) {
  .section-title {
    font-size: 2.5rem;
  }

  .section-title::after {
    width: 14.5rem;
    top: 3.25rem;
    left: 53%;
  }

  .categories-grid {
    padding: 1rem;
  }

  .category-card {
    margin: 1.5rem 0;
    width: 100%;
    max-width: 18rem;
    text-align: center;
  }

  .service-list-title {
    margin-top: 8rem;
    font-size: 1.5rem;
  }

  .service-list-title::after {
    display: none;
  }

  .services-grid {
    gap: 2.5rem;
  }

  .service-card {
    width: 18rem;
    height: 18rem;
  }

  .service-card img {
    height: 10rem;
  }
}
