/* ============================================
   360 DEGREE M - SERVICES SECTION
   ============================================ */

.services {
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.service-card {
  position: relative;
  background: rgba(123, 44, 255, 0.04);
  border: 1px solid rgba(123, 44, 255, 0.15);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  transform-style: preserve-3d;
  perspective: 1000px;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123, 44, 255, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  background: rgba(123, 44, 255, 0.08);
  border-color: rgba(123, 44, 255, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(123, 44, 255, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

/* Animated border on hover */
.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--gradient-primary);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  transition: opacity var(--transition-base);
}

.service-card:hover::after {
  opacity: 0.5;
  animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(123, 44, 255, 0.15);
  border: 1px solid rgba(123, 44, 255, 0.3);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
  position: relative;
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: rgba(123, 44, 255, 0.25);
  border-color: rgba(123, 44, 255, 0.5);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(123, 44, 255, 0.4);
}

.service-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: var(--gradient-primary);
  opacity: 0;
  filter: blur(12px);
  z-index: -1;
  transition: opacity var(--transition-base);
}

.service-card:hover .service-icon::before {
  opacity: 0.5;
}

.service-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--text-white);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.service-description {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  z-index: 1;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.service-feature::before {
  content: '✓';
  width: 18px;
  height: 18px;
  background: rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--neon-cyan);
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--primary-purple-light);
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}

.service-link::after {
  content: '→';
  transition: transform var(--transition-base);
}

.service-link:hover {
  color: var(--neon-cyan);
  gap: var(--space-3);
}

.service-link:hover::after {
  transform: translateX(4px);
}

/* Featured Service Card */
.service-card.featured {
  background: rgba(123, 44, 255, 0.1);
  border-color: rgba(123, 44, 255, 0.4);
}

.service-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-white);
  opacity: 1;
}

/* Service Number Badge */
.service-number {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: rgba(123, 44, 255, 0.1);
  line-height: 1;
  transition: all var(--transition-base);
}

.service-card:hover .service-number {
  color: rgba(123, 44, 255, 0.2);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: var(--space-6);
  }
}
