.services-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-header {
  text-align: left;
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.services-header h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  color: #333;
  margin-bottom: 0;
  position: relative;
}

.services-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(45deg, green, #ffc107);
  animation: expandWidth 1.5s ease-out 0.5s forwards;
}

.services-header h2 span {
  font-weight: 300;
  display: inline-block;
  animation: bounce 2s ease-in-out 1s infinite;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: white;
  border: 2px solid #444;
  border-radius: 25px;
  padding: 40px 35px;
  color: black;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 1 !important;
  /* transform: translateY(50px) scale(0.95); */
  transition: all  0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;

}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: green;
  box-shadow: 0 10px 20px rgba(90, 90, 90, 0.2);
}

.service-card.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.service-card h3 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.1;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: #e7af06;
}

.service-card .subtitle {
  font-weight: 300;
  color: #6f6f6f;
  transition: color 0.3s ease;
}

.service-card:hover .subtitle {
  color: green;
}

.service-card p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.service-card:hover p {
  color: black;
}

.service-details {
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  line-height: 1.5;
  color: #aaa;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.service-card:hover .service-details {
  color: #ccc;
}


/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

@keyframes float2 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  .services-section {
    padding: 60px 20px;
  }

  .services-grid {
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 50px 15px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    min-height: auto;
    padding: 30px 25px;
  }

  .services-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .services-section {
    padding: 40px 10px;
  }

  .service-card {
    padding: 25px 20px;
    border-radius: 20px;
  }

  .services-header {
    margin-bottom: 30px;
  }
}

@media (max-width: 320px) {
  .service-card {
    padding: 20px 15px;
    border-radius: 15px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for accessibility */
.service-card:focus {
  outline: 2px solid #ffc107;
  outline-offset: 2px;
}


/* Add this to your existing CSS */

.services-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-section.section-animate {
  opacity: 1;
  transform: translateY(0);
}

.service-card {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}