/* ========================================
   Service Cards - Premium Professional
   Quantique Minds - Refined Sophistication
   ======================================== */

/* Service Grid Layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 0 1rem;
}

/* Base Service Card */
.service-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

/* Professional Hover Effect - Simplified */
.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(107, 33, 168, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 30px rgba(107, 33, 168, 0.1);
}

/* Service Icon Container */
.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    rgba(107, 33, 168, 0.1), 
    rgba(8, 145, 178, 0.1)
  );
  border-radius: 20px;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, 
    rgba(107, 33, 168, 0.15), 
    rgba(8, 145, 178, 0.15)
  );
}

/* Service Content */
.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-description {
  color: var(--neutral-700);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Expertise Section */
.service-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.expertise-badge {
  background: linear-gradient(135deg, 
    rgba(107, 33, 168, 0.1), 
    rgba(8, 145, 178, 0.1)
  );
  color: var(--color-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(107, 33, 168, 0.2);
  transition: all 0.3s ease;
}

.expertise-badge:hover {
  background: linear-gradient(135deg, 
    rgba(107, 33, 168, 0.15), 
    rgba(8, 145, 178, 0.15)
  );
  transform: translateY(-2px);
}

/* Team Excellence Section */
.team-excellence {
  margin-top: auto;
}

.excellence-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--neutral-600);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.service-card:hover .excellence-item {
  color: var(--color-secondary);
}

.excellence-icon {
  font-size: 1.2rem;
  filter: grayscale(0.3);
  transition: filter 0.3s ease;
}

.service-card:hover .excellence-icon {
  filter: grayscale(0);
}

/* Technology Highlights */
.tech-highlights {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-stack {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--neutral-500);
}

.tech-item {
  background: rgba(8, 145, 178, 0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.service-card:hover .tech-item {
  background: rgba(8, 145, 178, 0.2);
  color: var(--color-accent);
}

/* Professional Focus Indicators */
.focus-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .focus-indicator {
  opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
    min-height: 280px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .service-title {
    font-size: 1.3rem;
  }
  
  /* Simplified mobile interactions */
  .service-card:hover {
    transform: translateY(-4px);
  }
}

/* Accessibility Support */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-icon,
  .expertise-badge,
  .tech-item {
    transition: none;
  }
  
  .service-card:hover {
    transform: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .service-card {
    border: 2px solid var(--color-primary);
    background: rgba(255, 255, 255, 0.95);
  }
  
  .service-title {
    color: var(--color-primary);
  }
  
  .expertise-badge {
    border: 2px solid var(--color-secondary);
    background: rgba(107, 33, 168, 0.1);
  }
}