/* Upgraded Scoped Stylesheet for Service Detail Template (solution-detail.php) */

/* 1. Hero Section */
.detail-hero.service-hero {
  height: 420px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.detail-hero.service-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.05'%3E%3Cpath d='M10 10h60v40h40v60'/%3E%3Ccircle cx='10' cy='10' r='3' fill='%23ffffff'/%3E%3Ccircle cx='70' cy='50' r='3' fill='%23ffffff'/%3E%3Ccircle cx='110' cy='110' r='3' fill='%23ffffff'/%3E%3Cpath d='M150 20v50h-30v80h60'/%3E%3Ccircle cx='150' cy='20' r='3' fill='%23ffffff'/%3E%3Ccircle cx='180' cy='150' r='3' fill='%23ffffff'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 1;
}
.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,30,80,0.88) 0%, rgba(0,15,45,0.75) 100%);
  z-index: 0;
}
.detail-container {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* 2. Layout (Full-Width / Single Column Grid) */
.detail-layout {
  display: block;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 40px;
}
.detail-content {
  line-height: 1.8;
  color: var(--text);
  width: 100%;
}
.section-title {
  color: var(--blue);
  font-size: 1.65rem;
  font-weight: 700;
  margin-top: 50px;
  margin-bottom: 25px;
  position: relative;
  padding-left: 28px;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
}

/* Schematic Junction Node Dot */
.section-title::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue2);
  z-index: 2;
}

/* Schematic Trace Line */
.section-title::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 2px;
  background: var(--blue2);
  z-index: 1;
}

/* 2b. Short Description Component (Schematic Spec Layout) */
.service-short-desc {
  background: linear-gradient(135deg, rgba(0, 48, 135, 0.02) 0%, rgba(232, 160, 32, 0.02) 100%);
  border: 1px solid rgba(0, 48, 135, 0.08);
  border-radius: 12px;
  padding: 30px 35px;
  margin-bottom: 50px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 48, 135, 0.015);
  overflow: hidden;
}

/* Subtle background technical grid */
.service-short-desc::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 48, 135, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 48, 135, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

.service-short-desc .tech-tag {
  display: inline-block;
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(232, 160, 32, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(232, 160, 32, 0.05);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.service-short-desc p {
  margin: 0;
  font-size: 1.22rem;
  color: var(--blue);
  font-weight: 500;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* Schematic Corner Accent on top-left */
.service-short-desc::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
}

/* 3. Capabilities Checklist (Upgraded to Card Grid) */
.capability-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 30px 0;
}
.capability-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.015);
}
.capability-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 87, 184, 0.08);
}
.capability-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 150, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.capability-icon svg {
  width: 13px;
  height: 13px;
  stroke: var(--accent);
  stroke-width: 3.5px;
}
.capability-text {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

/* 4. Industry 4.0 Callout (Upgraded Glassmorphic Panel) */
.integration-callout {
  background: linear-gradient(135deg, rgba(0, 87, 184, 0.03) 0%, rgba(0, 150, 255, 0.03) 100%);
  border: 1px solid rgba(0, 87, 184, 0.15);
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}
.integration-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--blue2), var(--accent));
}

/* 5. What's Included — Alternating Rows */
.included-rows {
  display: flex;
  flex-direction: column;
}
.included-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 50px 0;
  border-bottom: 1px solid var(--border);
}
.included-rows .included-row:last-child { border-bottom: none; }

.included-row.img-left .included-media { grid-column: 1; order: 1; }
.included-row.img-left .included-text { grid-column: 2; order: 2; }
.included-row.img-right .included-media { grid-column: 2; order: 2; }
.included-row.img-right .included-text { grid-column: 1; order: 1; }

/* Scroll Reveal & Stagger Animation Setup */
/* Disable default parent reveal movement, let children stagger */
.reveal.included-row {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.included-row .included-media {
  border-radius: 12px;
  overflow: hidden;
  background: var(--light);
  aspect-ratio: 4 / 3;
  box-shadow: 0 15px 40px rgba(0, 30, 80, 0.06), 0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s,
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s,
              box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background-color 0.5s ease;
}
.included-row.visible .included-media {
  opacity: 1;
  transform: translateY(0);
}

.included-row .included-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.included-row .included-text {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.25s,
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.25s;
}
.included-row.visible .included-text {
  opacity: 1;
  transform: translateY(0);
}

.included-row:hover .included-media {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 87, 184, 0.12);
}
.included-row:hover .included-media img {
  transform: scale(1.06);
}

/* Fallback Gradient Design (Part 2) */
.included-media-fallback {
  padding: 0;
}
.fallback-gradient {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
}

/* Alternate fallback gradient angle/position between odd/even rows (Part 5) */
.included-row:nth-child(odd) .fallback-gradient {
  background:
    radial-gradient(circle at 20% 20%, rgba(232, 160, 32, 0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 87, 184, 0.35), transparent 55%),
    linear-gradient(135deg, var(--blue) 0%, #001d52 100%);
}
.included-row:nth-child(even) .fallback-gradient {
  background:
    radial-gradient(circle at 80% 30%, rgba(232, 160, 32, 0.18), transparent 50%),
    radial-gradient(circle at 20% 75%, rgba(0, 87, 184, 0.35), transparent 55%),
    linear-gradient(225deg, var(--blue) 0%, #001d52 100%);
}

/* Faint circuit/grid overlay tying back to the schematic theme used elsewhere */
.fallback-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Soft drifting glow accent for subtle depth/movement on hover */
.fallback-gradient::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 160, 32, 0.25), transparent 70%);
  top: -40px;
  right: -40px;
  filter: blur(20px);
  transition: transform 0.6s ease;
}

.fallback-icon {
  font-size: 2.6rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.fallback-label {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 20px;
}

/* Drift the glow accent on hover of the row */
.included-row:hover .fallback-gradient::after {
  transform: translate(-20px, 20px);
}

.included-number {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.included-text h3 {
  color: var(--blue);
  font-size: 1.45rem;
  margin-bottom: 16px;
  font-weight: 700;
  transition: color 0.25s ease;
}
.included-row:hover .included-text h3 {
  color: var(--blue2);
}
.included-description p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.included-description p:last-child { margin-bottom: 0; }

/* 6. What We've Built — Blueprint Grid */
.showcase-panel {
  background-color: var(--light);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--border);
}
.showcase-panel h2 {
  margin-bottom: 25px;
}
.showcase-group-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 24px 0 12px;
}
.showcase-group-label:first-of-type {
  margin-top: 0;
}
.showcase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.showcase-pill {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.showcase-pill.is-visible {
  opacity: 1;
  transform: scale(1);
}
.showcase-pill:hover {
  border-color: var(--accent);
  color: var(--blue2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.12);
}

/* 7. Bottom Upgraded CTA Card */
.cta-block-upgraded a:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 150, 255, 0.25) !important;
}

/* 8. Related Services (Row layout at the bottom) */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 10px;
}
.related-card {
  position: relative;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  text-decoration: none;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.related-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.related-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,20,50,0.92) 0%, rgba(0,20,50,0.45) 60%, transparent 100%);
  z-index: 2;
  transition: opacity 0.4s ease;
}
.related-card-content {
  position: relative;
  z-index: 3;
  width: 100%;
}
.related-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.related-card h3 {
  color: var(--white) !important;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px !important;
  margin-top: 0 !important;
  transition: color 0.3s ease;
}
.related-card h3::after {
  display: none !important; /* Remove line overlay for small cards */
}
.related-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 87, 184, 0.15);
}
.related-card:hover .related-card-bg {
  transform: scale(1.08);
}
.related-card:hover .related-card-overlay {
  background: linear-gradient(to top, rgba(0,20,50,0.95) 0%, rgba(0,20,50,0.5) 60%, transparent 100%);
}
.related-card:hover .related-card-link {
  opacity: 1;
  transform: translateX(0);
}

/* 9. Responsive adjustments */
@media (max-width: 992px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .detail-hero.service-hero {
    height: 320px;
  }
  .detail-layout {
    padding: 0 24px;
    margin: 40px auto;
  }
  .detail-container {
    padding: 0 24px;
  }
  .capability-list {
    grid-template-columns: 1fr;
  }
  .included-row,
  .included-row.img-left,
  .included-row.img-right {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0;
  }
  .included-row.img-left .included-media,
  .included-row.img-right .included-media { grid-column: 1; order: 1; }
  .included-row.img-left .included-text,
  .included-row.img-right .included-text { grid-column: 1; order: 2; }
}
@media (max-width: 576px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Technology Stack Grid & Cards */
.tech-stack-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tech-group-block {
  border-top: 1px dashed var(--border);
  padding-top: 30px;
}

.tech-group-block:first-child {
  border-top: none;
  padding-top: 0;
}

.tech-group-title {
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-group-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 20px;
}

.tech-stack-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  cursor: default;
}

.tech-stack-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 87, 184, 0.25);
  box-shadow: 0 15px 30px rgba(0, 48, 135, 0.08);
}

.tech-logo {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  height: 54px;
}

.tech-logo i {
  font-size: 3rem;
  line-height: 1;
  display: block;
}

.tech-stack-card:hover .tech-logo {
  transform: scale(1.12);
}

.tech-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}


