/* ===================================================================
   AUDITTECH360 — TECHNOLOGY CAPABILITIES & DELIVERY PROCESS STYLES
   Scoped CSS for Homepage Sections:
   - 06 // TECHNOLOGY CAPABILITIES (id="capabilities")
   - 07 // HOW WE DELIVER (id="delivery")
   Theme: Premium Orange + White Visual Identity
   =================================================================== */

/* -------------------------------------------------------------------
   0. SHARED TOKENS & UTILITIES
   ------------------------------------------------------------------- */
#capabilities,
#delivery {
  scroll-margin-top: 86px;
  position: relative;
  overflow: hidden;
}

/* -------------------------------------------------------------------
   1. SECTION 06 — TECHNOLOGY CAPABILITIES
   ------------------------------------------------------------------- */
.tech-capabilities-section {
  padding: 110px 0;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-subtle, #EAE6E1);
  position: relative;
}

/* Subtle background architectural watermark */
.tech-capabilities-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at top right, rgba(22, 119, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.tech-capability-card {
  background: #FFFFFF;
  border: 1px solid rgba(234, 230, 225, 0.95);
  border-radius: 20px;
  padding: 32px 28px 26px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 16px rgba(23, 23, 23, 0.03);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
  overflow: hidden;
}

/* Top Accent Glow Bar */
.tech-capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1677FF, #0A2348);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-capability-card:hover {
  transform: translateY(-8px);
  border-color: rgba(22, 119, 255, 0.45);
  box-shadow: 0 20px 40px -10px rgba(22, 119, 255, 0.16), 0 4px 14px rgba(23, 23, 23, 0.04);
}

.tech-capability-card:hover::before {
  opacity: 1;
}

/* Card Header: Index Stamp + Category Tag */
.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tech-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-orange-primary, #1677FF);
  background: rgba(22, 119, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(22, 119, 255, 0.18);
  letter-spacing: 0.5px;
}

.tech-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #737373;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tech-card-tag .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-orange-primary, #1677FF);
  box-shadow: 0 0 6px rgba(22, 119, 255, 0.7);
  animation: pulseBeacon 2.4s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* Modern Technology Illustration Box */
.tech-card-visual {
  width: 100%;
  height: 140px;
  background: linear-gradient(145deg, #FFF9F5 0%, #FBF8F5 100%);
  border: 1px solid rgba(234, 230, 225, 0.8);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tech-capability-card:hover .tech-card-visual {
  background: linear-gradient(145deg, #FFF6EE 0%, #FFF2E8 100%);
  border-color: rgba(22, 119, 255, 0.25);
}

.tech-card-visual svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-capability-card:hover .tech-card-visual svg {
  transform: scale(1.03);
}

/* Card Content */
.tech-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #171717;
  margin-bottom: 10px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.tech-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 18px;
}

/* Bullet Features with Geometric Diamond/Chevron */
.tech-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-card-feature-item {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #333333;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tech-card-feature-item .feat-icon {
  color: var(--color-orange-primary, #1677FF);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Tech Stack Pill Strips */
.tech-card-pill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.tech-stack-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: #666666;
  background: #F8F6F2;
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid rgba(234, 230, 225, 0.8);
  transition: all 0.2s ease;
}

.tech-capability-card:hover .tech-stack-pill {
  background: #FFFFFF;
  border-color: rgba(22, 119, 255, 0.2);
  color: #222222;
}

/* Card Action Footer */
.tech-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed rgba(234, 230, 225, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tech-card-cta {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-orange-primary, #1677FF);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.tech-card-cta:hover {
  color: #061A3A;
  transform: translateX(3px);
}

.tech-card-cta .cta-arrow {
  transition: transform 0.2s ease;
}

.tech-card-cta:hover .cta-arrow {
  transform: translateX(4px);
}

.tech-card-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #888888;
}

/* -------------------------------------------------------------------
   2. SECTION 07 — HOW WE DELIVER (5-STEP PROCESS TIMELINE)
   ------------------------------------------------------------------- */
.delivery-process-section {
  padding: 110px 0;
  background-color: var(--bg-warm-white, #FFF9F5);
  border-top: 1px solid var(--border-subtle, #EAE6E1);
  position: relative;
}

/* Background grid motif */
.delivery-process-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(234, 230, 225, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(234, 230, 225, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

.delivery-timeline-wrap {
  position: relative;
  z-index: 1;
  margin-top: 60px;
}

/* Continuous Progress Rail connecting the 5 steps (Desktop) */
.delivery-rail-horizontal {
  position: absolute;
  top: 36px;
  left: 60px;
  right: 60px;
  height: 4px;
  background: #EAE6E1;
  border-radius: 9999px;
  z-index: 1;
  overflow: hidden;
}

.delivery-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #1677FF 0%, #0A2348 50%, #1677FF 100%);
  background-size: 200% 100%;
  border-radius: 9999px;
  animation: gradientRailFlow 4s ease infinite;
}

@keyframes gradientRailFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 5 Column Grid for Steps */
.delivery-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

/* Individual Step Item */
.delivery-step-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Step Node (Circle Badge) */
.delivery-node-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 3;
}

.delivery-step-node {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.25), 0 8px 20px rgba(23, 23, 23, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
  cursor: pointer;
}

.delivery-step-node .node-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-orange-primary, #1677FF);
  line-height: 1;
}

.delivery-step-node .node-icon {
  font-size: 1.05rem;
  color: #171717;
  line-height: 1;
  margin-top: 3px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.delivery-step-item:hover .delivery-step-node,
.delivery-step-item.is-active .delivery-step-node {
  transform: scale(1.1);
  box-shadow: 0 0 0 5px rgba(22, 119, 255, 0.35), 0 12px 28px rgba(22, 119, 255, 0.25);
  border-color: #FFFFFF;
}

.delivery-step-item:hover .delivery-step-node .node-icon,
.delivery-step-item.is-active .delivery-step-node .node-icon {
  color: var(--color-orange-primary, #1677FF);
  transform: translateY(-1px);
}

/* Step Card Box */
.delivery-step-card {
  background: #FFFFFF;
  border: 1px solid rgba(234, 230, 225, 0.9);
  border-radius: 18px;
  padding: 24px 20px 22px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(23, 23, 23, 0.03);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
  position: relative;
}

.delivery-step-item:hover .delivery-step-card,
.delivery-step-item.is-active .delivery-step-card {
  transform: translateY(-6px);
  border-color: rgba(22, 119, 255, 0.4);
  box-shadow: 0 18px 36px -8px rgba(22, 119, 255, 0.15), 0 4px 12px rgba(23, 23, 23, 0.03);
}

/* Step Phase Tag */
.delivery-step-phase {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-orange-primary, #1677FF);
  margin-bottom: 8px;
  display: inline-block;
}

/* Step Title */
.delivery-step-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #171717;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Step Description */
.delivery-step-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #555555;
  margin-bottom: 18px;
}

/* Deliverables Drawer Box */
.delivery-deliverables-box {
  margin-top: auto;
  background: #FBF9F6;
  border: 1px solid rgba(234, 230, 225, 0.7);
  border-radius: 10px;
  padding: 12px 14px;
}

.delivery-deliverables-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 8px;
  display: block;
}

.delivery-deliverables-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.delivery-deliverable-item {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.delivery-deliverable-item i {
  color: var(--color-orange-primary, #1677FF);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Bottom Delivery Callout Bar */
.delivery-bottom-bar {
  margin-top: 50px;
  background: #FFFFFF;
  border: 1px solid rgba(234, 230, 225, 0.95);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(23, 23, 23, 0.04);
  position: relative;
  z-index: 2;
}

.delivery-bottom-text {
  display: flex;
  align-items: center;
  gap: 16px;
}

.delivery-bottom-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(22, 119, 255, 0.1);
  color: var(--color-orange-primary, #1677FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.delivery-bottom-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #171717;
  margin: 0;
}

.delivery-bottom-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #666666;
  margin: 2px 0 0 0;
}

/* -------------------------------------------------------------------
   3. RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ------------------------------------------------------------------- */

/* Tablets / Medium Desktops (992px to 1199px) */
@media (max-width: 1199px) {
  .delivery-steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .delivery-rail-horizontal {
    display: none;
  }

  .delivery-step-item:nth-child(4),
  .delivery-step-item:nth-child(5) {
    grid-column: span 1;
  }
}

/* Tablets (768px to 991px) */
@media (max-width: 991px) {
  .tech-capabilities-section,
  .delivery-process-section {
    padding: 80px 0;
  }

  .delivery-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .delivery-step-item:nth-child(5) {
    grid-column: span 2;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .delivery-bottom-bar {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .delivery-bottom-text {
    flex-direction: column;
    gap: 10px;
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767px) {
  .tech-capabilities-section,
  .delivery-process-section {
    padding: 60px 0;
  }

  .tech-capability-card {
    padding: 24px 20px 20px 20px;
  }

  .tech-card-visual {
    height: 120px;
  }

  /* Switch Delivery Timeline to Connected Vertical Stack */
  .delivery-timeline-wrap {
    margin-top: 40px;
  }

  .delivery-steps-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    padding-left: 64px;
  }

  /* Vertical Connecting Line */
  .delivery-steps-grid::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 28px;
    width: 3px;
    background: linear-gradient(180deg, #1677FF 0%, #0A2348 60%, #1677FF 100%);
    border-radius: 9999px;
    z-index: 1;
  }

  .delivery-step-item {
    position: relative;
  }

  .delivery-node-wrapper {
    position: absolute;
    top: 14px;
    left: -64px;
    width: 58px;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
  }

  .delivery-step-node {
    width: 58px;
    height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .delivery-step-node .node-num {
    font-size: 0.74rem;
    line-height: 1;
  }

  .delivery-step-node .node-icon {
    font-size: 0.88rem;
    line-height: 1;
    margin-top: 0;
  }

  .delivery-step-card {
    padding: 20px 18px 18px 18px;
  }

  .delivery-bottom-bar {
    margin-top: 36px;
  }
}
