.service-card {
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  margin-top: -50px;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 5px solid white;
}

.service-card:hover .service-icon {
  transform: rotateY(180deg);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0px;
  color: var(--dark-color);
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
}



.service-card p {
  color: #666;
  margin-bottom: 18px;
  flex-grow: 1;
  font-size: 15px;
}

.service-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
  width: fit-content;
}

.service-link i {
  transition: transform 0.3s ease;
}

.service-link:hover {
  color: var(--secondary-color);
}

.service-link:hover i {
  transform: translateX(5px);
}

@media (max-width: 992px) {
  .service-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .service-image {
    height: 180px;
  }

  .service-content {
    padding: 25px;
    margin-top: -40px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }
}

