/* .service-section {
  min-height: 550px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  z-index: 9;
  margin-top: 10px;
}

.service-cards .service-card {
  width: 280px;
  min-height: 200px;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  padding: 0.8%;
  background-color: #f4f4f4;
  position: relative;
  padding: 20px;
  border-radius: 10px;
}

.service-cards .service-card h3 {
  text-align: center;
}

.service-cards .service-card::before {
  width: 100%;
  height: 100%;
  position: absolute;
  content: " ";
  top: 0;
  left: 0;
  border-radius: 11px;
  background-color: #0057a0;
  transition: 0.6s;

  transform: rotate(0deg);
  z-index: -1;
}

.service-cards .service-card:hover.service-card::before {
  transform: rotate(8deg);
}

@media screen and (max-width: 1024px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }
}

@media screen and (max-width: 600px) {
  .service-cards {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .service-cards .service-card {
    width: 80%;
  }
} */


.service-section {
  min-height: 550px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  z-index: 9;
  margin-top: 10px;
}

.service-cards .service-card {
  width: 280px;
  min-height: 200px;
  position: relative;
  /* Initial state for fade-in animation */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* The main card content */
.service-cards .service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f4f4f4;
  border-radius: 10px;
  z-index: 1;
}

/* The card content container */
.service-cards .service-card {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  padding: 20px;
}

.service-cards .service-card > * {
  position: relative;
  z-index: 2;
}

.service-cards .service-card h3 {
  text-align: center;
  margin: 0;
  padding: 0;
}

.service-cards .service-card p {
  margin: 0;
  padding-top: 10px;
}

/* The background pseudo-element for hover effect */
.service-cards .service-card::before {
  width: 100%;
  height: 100%;
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  border-radius: 10px;
  background-color: #0057a0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  transform: rotate(0deg);
  z-index: 0;
  opacity: 0; /* Initially hidden */
}

/* Show the blue background on hover with rotation */
.service-cards .service-card:hover::before {
  transform: rotate(8deg);
  opacity: 1;
}

/* Fade-in animation class */
.service-cards .service-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 1024px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }
}

@media screen and (max-width: 600px) {
  .service-cards {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .service-cards .service-card {
    width: 80%;
  }
}