.services {
  position: relative;
  padding: 8rem 0;
  background: #080810;
  overflow: hidden;
}

.services-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(99,102,241,0.15) 1px,
    transparent 0
  );
  background-size: 40px 40px;
}

.services-container {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.services-header {
  text-align: center;
  margin-bottom: 5rem;
}

.services-eyebrow {
  color: #818cf8;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.services-title {
  margin: 1rem 0 1.5rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
}

.services-title .gradient {
  background: linear-gradient(90deg, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-description {
  max-width: 640px;
  margin: 0 auto;
  color: #9ca3af;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
}

.card-bg {
  position: absolute;
  inset: -1px;
  border-radius: 1.25rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover .card-bg {
  opacity: 0.12;
}

.card {
  position: relative;
  height: 100%;
  padding: 32px;
  border-radius: 1.25rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0.04), transparent);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.5s ease;
}

.service-card:hover .card {
  border-color: rgba(255,255,255,0.2);
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
  color: white;
  transition: transform 0.5s ease;
}

.service-card:hover .icon {
  transform: scale(1.1);
}

.card h3 {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

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

.card p {
  color: #9ca3af;
  line-height: 1.6;
}

/* Gradients */
.gradient-blue { background: linear-gradient(135deg, #3b82f6, #22d3ee); }
.gradient-violet { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.gradient-indigo { background: linear-gradient(135deg, #6366f1, #3b82f6); }
.gradient-cyan { background: linear-gradient(135deg, #22d3ee, #14b8a6); }
.gradient-pink { background: linear-gradient(135deg, #ec4899, #fb7185); }
.gradient-amber { background: linear-gradient(135deg, #f59e0b, #fb923c); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
