.services-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
  text-align: justify;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
}

.container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: red;
  border-radius: 3px;
}

.header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #e70d18, #e91f1f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  letter-spacing: -0.5px;
}

.header p {
  color: #4b5563;
  max-width: 1000px;
  text-align: justify;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.8;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  padding: 5px;
}

.service-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05),
              0 10px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(0, 0, 0, 0.05);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0.8;
}

.service-card:nth-child(1) { color: #2563eb; }
.service-card:nth-child(2) { color: #7c3aed; }
.service-card:nth-child(3) { color: #059669; }
.service-card:nth-child(4) { color: #ea580c; }
.service-card:nth-child(5) { color: #dc2626; }
.service-card:nth-child(6) { color: #4f46e5; }

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
  position: relative;
}

.card-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.2;
}

.service-category {
  font-size: 0.9rem;
  color: currentColor;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-weight: 600;
  opacity: 0.8;
}

.service-title {
  font-size: 1.75rem;
  color: #1f2937;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.service-card:hover .service-title {
  color: currentColor;
}

.service-description {
  color: #4b5563;
  line-height: 1.8;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .services-section {
      padding: 60px 20px;
  }
  
  .services-grid {
      grid-template-columns: 1fr;
      gap: 30px;
  }
  
  .header h1 {
      font-size: 2.5rem;
  }
  
  .header p {
      font-size: 1.1rem;
      padding: 0 20px;
  }
  
  .card-content {
      padding: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .card-image {
      transition: none;
  }
}

@keyframes subtle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}