.services-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #000 0%, #1a0a3e 50%, #000 100%);
  color: #fff;
  overflow: hidden;
}

.services-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.services-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(139, 92, 246, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
}

.services-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.services-header .section-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  color: #fff;
}

.services-header .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  border-radius: 2px;
}

.services-header .section-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 800px;
  margin: 25px auto 0;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.service-card-v2 {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 45px 35px;
  text-align: center;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease,
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(167, 139, 250, 0.3),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 1;
}

.service-card-v2:hover .card-glow {
  opacity: 1;
}

.service-card-v2 .service-icon-box,
.service-card-v2 h3,
.service-card-v2 p,
.service-card-v2 .service-links {
  position: relative;
  z-index: 2;
}

.service-card-v2:hover {
  transform: translateY(-15px);
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon-box {
  width: 80px;
  height: 80px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.service-card-v2:hover .service-icon-box {
  background: #8b5cf6;
  transform: rotate(10deg);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.service-icon {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.service-card-v2 h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.service-card-v2 p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 30px;
}

.service-links {
  margin-top: auto;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.service-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #8b5cf6;
  text-decoration: none;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.service-links a:hover {
  background: #8b5cf6;
  color: #fff;
  transform: scale(1.05);
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 60px 0;
  }
  .services-header .section-title {
    font-size: 2.5rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .service-card-v2 {
    padding: 35px 25px;
  }
}
