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

.services-container {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000080; /* Changed from #1877f2 to navy blue #000080 */
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
  font-weight: 300;
}

.services-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, #000080, transparent); /* Changed gradient color to #000080 */
  width: 80%;
  max-width: 600px;
  margin: 0 auto 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1000px; /* 3D perspective for hover effects */
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  will-change: transform, box-shadow; /* Optimize for animation performance */
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Smooth spring-like animation */
  position: relative;
  z-index: 1;
}

/* Enhanced Hover Animation */
.service-card-link:hover .service-card {
  transform: translateY(-10px) scale(1.03); /* Lift and subtly scale up */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 
              0 5px 15px rgba(0, 0, 128, 0.1); /* Changed shadow color to navy blue #000080 */
}

/* Add subtle glow effect on hover */
.service-card-link:hover .service-icon {
  box-shadow: 0 0 20px rgba(0, 0, 128, 0.4); /* Changed glow color to navy blue #000080 */
  transform: scale(1.1); /* Icon grows slightly */
}

.service-icon {
  width: 75px;
  height: 75px;
  background: linear-gradient(135deg, #000080, #34b7f1); /* Changed from #1877f2 to navy blue #000080 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: white;
  font-size: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for icon */
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #000080; /* Changed from #1877f2 to navy blue #000080 */
  font-weight: 600;
  transition: transform 0.2s ease; /* Smooth title animation */
}

/* Title slightly moves up on hover */
.service-card-link:hover .service-title {
  transform: translateY(-2px);
}

.service-description {
  color: #666;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 300;
  max-width: 200px;
}

/* Active state for when card is clicked */
.service-card-link:active .service-card {
  transform: translateY(-5px) scale(0.98); /* Slightly compress when clicked */
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Add some padding to account for fixed header if needed */
html .table-container {
  scroll-margin-top: 80px; /* Adjust this value based on your header height */
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .service-card {
    height: auto; /* Let it expand naturally on smaller screens */
    padding: 25px;
  }
  
  /* Slightly reduced hover effect on mobile */
  .service-card-link:hover .service-card {
    transform: translateY(-5px) scale(1.02);
  }
}