* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #f9fff1;
  background-blend-mode: multiply;
  background-position: center;
  color: #000;
}

h1,
h3 {
  text-align: center;
  text-transform: uppercase;
}

h1 {
  position: relative;
  max-width: max-content;
  margin: 2rem auto 5rem auto;
}

h1::after {
  content: "";
  position: absolute;
  width: 75%;
  height: 5px;
  background-color: #1b1b1b;
  bottom: -2rem;
  left: 25px;
}

/* H2 */
h2,
h3 {
  text-align: center;
  text-transform: uppercase;
  color: #87b842;
}

h2 {
  position: relative;
  max-width: max-content;
  margin: 2rem auto 5rem auto;
}

i {
  color: #1b1b1b;
  padding: 1rem;
  transition: all 0.3s linear;
  transform: rotate(-45deg);
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.service-card {
  border: 4px solid #e7e7e7;
  background-color: #fafafa6b;
  cursor: pointer;
  width: 200px;
  margin: 20px;
  padding: 2rem 20px 20px 20px;
  text-align: center;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.icon-container {
  border: 2px solid #1b1b1b;
  transition: 0.3s linear;
  width: max-content;
  margin: 0 auto;
  transform: rotate(45deg);
}

.icon-color {
  color: #87b842;
}

.service-card:hover {
  border: none;
  box-shadow: 0 0 30px 0 #1b1b1b;
  transform: scale(1.1);
}

.service-card a {
  color: #87b842;
  text-decoration: none;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  .services-container {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 90%;
    margin: 10px 0;
  }

  h1,
  h2,
  h3 {
    font-size: 1.5rem;
  }

  .icon-container {
    transform: rotate(0deg);
  }

  i {
    transform: rotate(0deg);
  }
}
