/* Section — services */

.services-section {
  padding: 0.5rem 0;
}
.services-section .section-title {
  font-family: var(--ws-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  color: var(--ws-text-dark);
  margin-bottom: clamp(2rem, 6vw, 4rem);
}
.services-section .section-title span {
  color: var(--ws-primary);
}
.services-section {
  padding: 1rem 0rem;
  margin: 0 auto;
}

/* ─── Header ─── */
.services-header {
  text-align: center;
  margin-bottom: 1rem;
}
.services-header .label {
  font-family: var(--ws-font-display);
  font-weight: 800;
    font-size: clamp(1.6rem, 2vw, 1.8rem);
      color: var(--ws-primary);
}

/* ─── Service item ─── */
.service-item {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
  margin-top: 0;
  display: flex;
  align-items: center;
  min-height: min(88vh, 820px);
  padding: 4rem 0;
}

/* Background layer — professional imagery per service */
.service-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--ws-bg-page);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.bg-1 {
  background-image: url(../../assets/images/services/service-design-engineering.webp);
  background-position: left center;
}

.bg-2 {
  background-image: url(../../assets/images/services/service-web-platforms.webp);
  background-position: right center;
}

.bg-3 {
  background-image: url(../../assets/images/services/service-saas-cloud.webp);
  background-position: left center;
}

.bg-4 {
  background-image: url(../../assets/images/services/service-mobile-apps.webp);
  background-position: right center;
}

/* Phones/tablets: half-size images (~4x fewer bytes) */
@media (max-width: 768px) {
  .bg-1 { background-image: url(../../assets/images/services/service-design-engineering-800.webp); }
  .bg-2 { background-image: url(../../assets/images/services/service-web-platforms-800.webp); }
  .bg-3 { background-image: url(../../assets/images/services/service-saas-cloud-800.webp); }
  .bg-4 { background-image: url(../../assets/images/services/service-mobile-apps-800.webp); }
}

/* ─── Card ─── */
.service-card {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  height: auto;
  margin: 0 5vw;
  /* Dark frosted glass: translucent navy so the image shows through, blurred */
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2.25rem 2.5rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.1),
    0 20px 50px rgba(15, 23, 42, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  text-align: left;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ws-primary-border),
    var(--ws-primary),
    var(--ws-primary-border),
    transparent
  );
  opacity: 0.85;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--ws-primary-border);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.05),
    0 28px 60px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-card__index {
  display: inline-block;
  margin-bottom: 0.875rem;
  font-family: var(--ws-font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ws-primary);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--ws-primary-light);
  border: 1px solid var(--ws-primary-border);
}

/* Card aligned to the right */
.service-card.right {
  margin-left: auto;
  margin-right: 5vw;
}

.service-card:not(.right) {
  margin-left: 5vw;
  margin-right: auto;
}

.service-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #a78bfa;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.service-title {
  font-family: var(--ws-font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 1rem;
  color: var(--ws-text-body);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-lead {
  font-family: var(--ws-font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.service-detail {
  font-family: var(--ws-font-body);
  font-size: 0.9375rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin: 0;
}
/* ─── Decorative mockups ─── */
.mockup-wrap {
  position: absolute;
  z-index: 1;
  right: 2.5rem;
  bottom: 0;
  pointer-events: none;
}

/* Web screen mockup */
.screen-mock {
  width: 320px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.screen-topbar {
  height: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.red {
  background: #ef4444;
}
.dot.amber {
  background: #f59e0b;
}
.dot.green {
  background: #22c55e;
}
.screen-body {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.metric-card {
  background: rgba(139, 92, 246, 0.22);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 55px;
}
.metric-card.teal {
  background: rgba(45, 212, 191, 0.18);
}
.metric-card.amber {
  background: rgba(251, 191, 36, 0.18);
}
.metric-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
}
.metric-val {
  font-size: 16px;
  font-weight: 600;
  color: #a78bfa;
}
.metric-card.teal .metric-val {
  color: #5eead4;
}
.metric-card.amber .metric-val {
  color: #fde68a;
}
.progress-row {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 10px;
}
.progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}
.progress-fill {
  height: 100%;
  background: #a78bfa;
  border-radius: 2px;
}
.progress-pct {
  font-size: 10px;
  color: #a78bfa;
}

/* Dashboard screen */
.dash-mock {
  width: 260px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.dash-header {
  height: 32px;
  background: rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}
.dash-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.dash-title {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}
.dash-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.line-block {
  height: 10px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
}
.line-block.w80 {
  width: 80%;
}
.line-block.w60 {
  width: 60%;
}
.line-block.accent {
  background: rgba(139, 92, 246, 0.35);
  width: 45%;
}

/* Phone mockup */
.phone-mock {
  width: 100px;
  height: 210px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.phone-line {
  height: 10px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
}
.phone-line.accent {
  background: rgba(139, 92, 246, 0.4);
}
.phone-line.short {
  width: 60%;
}

/* App cards mockup */
.app-cards {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 0;
}
.app-card {
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-card.teal {
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.22);
}
.app-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.3);
}
.app-card.teal .app-icon {
  background: rgba(45, 212, 191, 0.25);
}
.app-line {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
.app-line.short {
  width: 60%;
}

/* Phone pair */
.phone-pair {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
  .service-item {
    min-height: min(70vh, 640px);
    padding: 3rem 0;
  }

  .service-card {
    margin: 0 4vw;
  }
}

@media (max-width: 768px) {
  .service-item {
    min-height: auto;
    flex-direction: column;
    padding: 3rem 0;
  }

  .service-bg {
    background-position: center 30%;
  }

  .service-card,
  .service-card.right,
  .service-card:not(.right) {
    margin: 0 1.5rem;
    max-width: 100%;
    width: auto;
    padding: 1.75rem 1.5rem;
  }
  .mockup-wrap {
    display: none;
  }
  .services-header .label {
    font-size: clamp(1.35rem, 5vw, 1.6rem);
  }
}