.services-section {
  padding: 80px 20px;
  /* max-width: 1500px; */
  margin: 0 auto;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../assets/services/1.jpg");
  background-size: cover;
  /* background-position: center; */
  /* justify-content: center;
  align-items: center; */
  object-fit: cover;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  color: #01447a;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: transparent;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: white;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 50px;
}

.service-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(1, 68, 122, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #01447a;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(1, 68, 122, 0.2);
  border-color: #01447a;
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  background: #01447a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(360deg);
}

.service-title {
  font-size: 1.4rem;
  color: #01447a;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
}

.service-description {
  color: #666;
  text-align: center;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 8px 0;
  color: #555;
  position: relative;
  padding-left: 25px;
  font-size: 0.9rem;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #dc151a;
  font-weight: bold;
  font-size: 1.1rem;
}

.learn-more-btn {
  background: linear-gradient(135deg, #01447a, #dc151a);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  width: 100%;
}

.learn-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 21, 26, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .services-section {
    padding: 60px 15px;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-card {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }

  .service-card {
    padding: 25px 15px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Animation for cards on scroll */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.3s;
}

.service-card:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
