/* ============================================================
   NexMatrixLab — Services Page Styles
   ============================================================ */

/* ---------- SERVICES OVERVIEW ---------- */
.srv-overview {
  padding: var(--section-pad) 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.srv-overview .services-grid {
  gap: 20px;
}
.srv-overview .srv-card {
  border-radius: var(--radius-lg);
}

/* ---------- DETAILED SERVICE SECTIONS ---------- */
.srv-detail {
  padding: var(--section-pad) 0;
  background: var(--bg);
}
.srv-detail-alt {
  background: var(--bg2);
}
.srv-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}
.srv-detail-grid-reverse {
  grid-template-columns: 0.8fr 1.2fr;
  direction: rtl;
}
.srv-detail-grid-reverse > * {
  direction: ltr;
}
.srv-detail-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}
.srv-detail-title span {
  background: var(--gradient-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.srv-detail-desc {
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 28px;
}

/* ---------- TECH STACK CARDS (visual side) ---------- */
.srv-detail-card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.srv-stack-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.srv-stack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gradient-primary);
  transition: height var(--transition-slow);
}
.srv-stack-card:hover::before {
  height: 100%;
}
.srv-stack-card:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
}
/* Alternating accent colors */
.srv-stack-card:nth-child(2)::before {
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}
.srv-stack-card:nth-child(3)::before {
  background: var(--gradient-accent);
}
.srv-stack-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all var(--transition);
}
.srv-stack-card:hover .srv-stack-icon {
  background: rgba(59, 130, 246, 0.18);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}
/* Alternate icon colors */
.srv-stack-card:nth-child(2) .srv-stack-icon {
  border-color: rgba(6, 182, 212, 0.25);
}
.srv-stack-card:nth-child(2):hover .srv-stack-icon {
  background: rgba(6, 182, 212, 0.15);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}
.srv-stack-card:nth-child(3) .srv-stack-icon {
  border-color: rgba(16, 185, 129, 0.25);
}
.srv-stack-card:nth-child(3):hover .srv-stack-icon {
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}
.srv-stack-label {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.srv-stack-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey);
  letter-spacing: 0.02em;
}

/* ---------- PROCESS SECTION ---------- */
.srv-process {
  padding: var(--section-pad) 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- INDUSTRIES SECTION ---------- */
.srv-industries {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

/* ---------- WHY CHOOSE US ---------- */
.srv-why {
  padding: var(--section-pad) 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.srv-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.srv-why-text {
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-top: 18px;
}
.srv-why-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.srv-why-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.srv-why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gradient-primary);
  transition: height var(--transition-slow);
}
.srv-why-card:hover::before {
  height: 100%;
}
.srv-why-card:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
}
/* Alternate card accent colors */
.srv-why-card:nth-child(2)::before {
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}
.srv-why-card:nth-child(3)::before {
  background: var(--gradient-accent);
}
.srv-why-card:nth-child(4)::before {
  background: var(--gradient-warm);
}
.srv-why-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all var(--transition);
}
.srv-why-card:hover .srv-why-card-icon {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}
/* Alternate icon colors */
.srv-why-card:nth-child(2) .srv-why-card-icon {
  border-color: rgba(6, 182, 212, 0.25);
}
.srv-why-card:nth-child(2):hover .srv-why-card-icon {
  background: rgba(6, 182, 212, 0.15);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}
.srv-why-card:nth-child(3) .srv-why-card-icon {
  border-color: rgba(16, 185, 129, 0.25);
}
.srv-why-card:nth-child(3):hover .srv-why-card-icon {
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 20px var(--accent-glow);
}
.srv-why-card:nth-child(4) .srv-why-card-icon {
  border-color: rgba(245, 158, 11, 0.25);
}
.srv-why-card:nth-child(4):hover .srv-why-card-icon {
  background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}
.srv-why-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.srv-why-card-desc {
  color: var(--grey);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .srv-detail-grid,
  .srv-detail-grid-reverse {
    grid-template-columns: 1fr;
    gap: 50px;
    direction: ltr;
  }
  .srv-why-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .srv-detail-card-stack {
    gap: 12px;
  }
  .srv-stack-card {
    padding: 18px 20px;
    gap: 14px;
  }
  .srv-stack-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.2rem;
  }
}
