/* Services Section - 2025 Design Language */
.services {
  position: relative;
  padding: var(--space-20) var(--space-8);
  background-color: var(--color-background-surface);
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 40%;
  height: 50%;
  background: linear-gradient(135deg, rgba(217, 45, 39, 0.03) 0%, rgba(217, 45, 39, 0.01) 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  filter: blur(60px);
  z-index: 0;
  animation: morphShape 20s ease-in-out infinite alternate;
}

@keyframes morphShape {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.services-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.services-heading {
  text-align: center;
  margin-bottom: var(--space-16);
  position: relative;
}

.services-heading h2 {
  font-size: clamp(2rem, 4vw, var(--font-size-xxxl));
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  position: relative;
  display: inline-block;
}

.services-heading h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--color-brand-primary), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.service-card {
  position: relative;
  background: var(--color-background-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(203, 202, 210, 0.2);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(217, 45, 39, 0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: all 0.8s ease;
}

.service-card:hover::before {
  transform: translateX(100%);
}

.service-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  color: var(--color-brand-primary);
}

.service-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(217, 45, 39, 0.08);
  border-radius: var(--radius-full);
  z-index: -1;
  transform: scale(0.8);
  opacity: 0.5;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon::before {
  transform: scale(1);
  opacity: 1;
}

.service-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.service-description {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-unitless-normal);
  margin-bottom: var(--space-6);
  flex: 1;
}

.services-link {
  text-align: center;
  margin-top: var(--space-16);
}

.services-cta {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  color: var(--color-brand-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-brand-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.services-cta:hover {
  background-color: var(--color-brand-primary);
  color: var(--color-text-on-brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.services-cta svg {
  margin-left: var(--space-2);
  transition: transform var(--transition-duration-short) ease;
}

.services-cta:hover svg {
  transform: translateX(4px);
}

/* Responsive styles */
@media (max-width: 900px) {
  .services {
    padding: var(--space-16) var(--space-6);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (max-width: 600px) {
  .services {
    padding: var(--space-12) var(--space-4);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: var(--space-6);
  }
}
