/* ==========================================================================
   SERVICES PAGES SPECIFIC STYLES
   ========================================================================== */

/* --- 1. Breadcrumb --- */
.breadcrumb {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 2rem;
  font-weight: 500;
}
.breadcrumb a {
  color: #94a3b8;
  transition: color 0.3s ease;
}
.breadcrumb a:hover {
  color: #2563eb;
}
.breadcrumb span {
  margin: 0 0.5rem;
  color: #cbd5e1;
}

/* --- Global Spacing --- */
.section-spacer {
  margin-top: 5rem;
  margin-bottom: 5rem;
}
@media (min-width: 768px) {
  .section-spacer {
    margin-top: 8rem;
    margin-bottom: 8rem;
  }
}

/* --- 2. Service Hero Split Layout --- */
.service-hero {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 5rem;
  overflow: hidden;
}
.service-hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .service-hero {
    padding-top: 5rem;
    padding-bottom: 8rem;
  }
  .service-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
  }
}
.service-hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  color: #0f172a;
  letter-spacing: -0.03em;
}
@media (min-width: 768px) {
  .service-hero-title { font-size: 4rem; }
}
@media (min-width: 1024px) {
  .service-hero-title { font-size: 4.5rem; }
}
.service-hero-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #475569;
  max-width: 36rem;
}
@media (min-width: 768px) {
  .service-hero-desc { font-size: 1.25rem; }
}
.service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.service-hero-visual {
  position: relative;
  width: 100%;
  height: 400px;
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);
  border-radius: 2rem;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
}
@media (min-width: 1024px) {
  .service-hero-visual { height: 500px; }
}

/* --- 3. Trust Strip --- */
.trust-strip {
  padding: 3rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0.6;
}
@media (min-width: 768px) {
  .trust-strip-inner { gap: 4rem; justify-content: space-between; }
}
.trust-strip span {
  font-weight: 700;
  font-size: 1.125rem;
  color: #64748b;
  letter-spacing: -0.01em;
}

/* --- 4. Service Introduction --- */
.service-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .service-intro {
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
  }
}
.intro-left h2 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.intro-right p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 2rem;
}
.intro-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #e2e8f0;
}
.metric-box h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.metric-box p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

/* --- 5. Architecture Visual Section --- */
.architecture-section {
  background: #0f172a;
  background: #090e1a;
  background-image: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
                    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px, 30px 30px;
  padding: 5rem 2rem;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
  color: #ffffff !important;
}

.architecture-section h1,
.architecture-section h2,
.architecture-section h3,
.architecture-section h4,
.architecture-section h5,
.architecture-section h6,
.architecture-section .section-title,
.architecture-section .arch-flow-title,
.architecture-section .figma-title {
  color: #ffffff !important;
}

/* Visual Architecture Flow Grid System (Matching UI/UX Design Page Quality) */
.arch-flow-wrapper {
  max-width: 960px;
  margin: 3rem auto 0 auto;
  position: relative;
}

.arch-flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .arch-flow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .arch-flow-grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .arch-flow-grid.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.arch-flow-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--accent, #38bdf8);
  border-radius: 1.25rem;
  padding: 1.75rem;
  text-align: left;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.arch-flow-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
  border-top-color: var(--accent, #38bdf8);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.25);
}

.arch-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.arch-flow-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--bg-light, rgba(56, 189, 248, 0.15));
  color: var(--accent, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.arch-flow-step-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.arch-flow-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.arch-flow-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.arch-flow-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.arch-flow-pill {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- 6. Technology Stack --- */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tech-category {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.tech-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -8px rgba(37, 99, 235, 0.12);
  border-color: #bfdbfe;
}

.tech-category h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}

.tech-pills {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.tech-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  transition: all 0.25s ease;
}

.tech-pill:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
  transform: translateX(4px);
}

/* --- 7. Business Outcomes --- */
.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .outcomes-grid { grid-template-columns: repeat(3, 1fr); }
}
.outcome-card {
  position: relative;
  padding-left: 4rem;
}
.outcome-number {
  position: absolute;
  left: 0;
  top: -0.5rem;
  font-size: 3rem;
  font-weight: 900;
  color: #e2e8f0;
  line-height: 1;
}
.outcome-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}
.outcome-card p {
  color: #64748b;
  line-height: 1.6;
}

/* --- 8. Industries Grid --- */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
}
.industry-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.industry-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 10px 25px -5px rgba(37,99,235,0.1);
}
.industry-card svg {
  width: 2rem;
  height: 2rem;
  color: #2563eb;
  margin-bottom: 1.5rem;
}
.industry-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.industry-card p {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.industry-card .arrow {
  margin-top: auto;
  color: #94a3b8;
  transition: all 0.3s ease;
}
.industry-card:hover .arrow {
  color: #2563eb;
  transform: translateX(4px);
}

/* --- 9. Why Choose Us (6-Grid) --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}
.why-card {
  padding: 2rem;
  background: #f8fafc;
  border-radius: 1.5rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.why-card:hover {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}
.why-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}
.why-card p {
  color: #64748b;
  line-height: 1.6;
}

/* --- 10. FAQ Accordion --- */
.faq-container {
  max-width: 48rem;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #e2e8f0;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}
.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #2563eb;
  transition: transform 0.3s ease;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #475569;
  line-height: 1.6;
}
.faq-answer-inner {
  padding-bottom: 1.5rem;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --- 11. Final CTA --- */
.final-cta {
  background: #0f172a;
  border-radius: 2rem;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .final-cta { padding: 8rem 4rem; }
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(37,99,235,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .final-cta h2 { font-size: 3.5rem; }
}
.final-cta p {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 32rem;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
}
.final-cta-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #64748b;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
