/**
 * Working Process Section Stylesheet — Web Techiq Official
 * Developed by MH Badhon Ahmed (Web Techiq)
 *
 * Glassmorphic Process Cards & Animated Chain Connected Timeline:
 *  - Animated pulse glowing chain connector lines between steps
 *  - High-contrast step badge pills with glowing accent halos
 *  - Section Header: Dark title ("Our Streamlined Working") + Orange word ("Process")
 *  - Interactive hover tilt and step phase indicators
 *
 * @package Web_Techiq_Official
 */

.web-techiq-working-process-section {
  position: relative;
  width: 100%;
  padding: var(--wt-process-pad-top, 80px) 0 var(--wt-process-pad-bottom, 90px);
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}

/* Background Glow Orbs */
.proc-bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

.proc-bg-glow.glow-1 {
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, #ff6b00 0%, transparent 70%);
}

.proc-bg-glow.glow-2 {
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

/* Header Styling */
.proc-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 55px;
}

.proc-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.25);
  margin-bottom: 16px;
}

.proc-badge-icon {
  font-size: 13px;
}

.proc-badge-text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ff6b00;
  text-transform: uppercase;
}

.proc-section-title {
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.proc-section-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 auto;
}

/* Cards Grid */
.proc-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wt-proc-card-gap, 32px);
  position: relative;
}

.web-techiq-working-process-section.cols-4 .proc-cards-grid {
  grid-template-columns: repeat(4, 1fr);
}

.web-techiq-working-process-section.cols-2 .proc-cards-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Process Card Item */
.proc-card-item {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: var(--wt-proc-card-pad-v, 34px) var(--wt-proc-card-pad-h, 28px);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.proc-card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.12);
  border-color: var(--step-accent, #ff6b00);
}

/* Node Dot & Pulse Indicator */
.proc-chain-node {
  position: absolute;
  top: -8px;
  right: 28px;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proc-node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--step-accent, #ff6b00);
  box-shadow: 0 0 10px var(--step-accent, #ff6b00);
}

.proc-node-pulse {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--step-accent, #ff6b00);
  animation: procNodePulse 2s infinite;
  opacity: 0;
}

@keyframes procNodePulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Step Header */
.proc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.proc-step-badge {
  color: #ffffff;
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 15px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 99px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.04em;
}

.proc-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.3s ease;
}

.proc-card-item:hover .proc-icon-box {
  transform: scale(1.1) rotate(-4deg);
}

/* Step Content */
.proc-card-body {
  flex-grow: 1;
  margin-bottom: 20px;
}

.proc-item-title {
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 4px;
}

.proc-item-sub {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--step-accent, #ff6b00);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.proc-item-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* Step Footer */
.proc-card-footer {
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
  margin-top: auto;
}

.proc-step-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  transition: all 0.25s ease;
}

.proc-card-item:hover .proc-step-link {
  color: var(--step-accent, #ff6b00);
  transform: translateX(4px);
}

/* Horizontal Chain Connector Line */
.proc-chain-connector {
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--wt-proc-card-gap, 32px));
  width: var(--wt-proc-card-gap, 32px);
  height: 2px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.proc-connector-svg {
  overflow: visible;
}

.proc-connector-pulse {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--step-accent, #ff6b00);
  box-shadow: 0 0 8px var(--step-accent, #ff6b00);
  animation: procChainTravel 2.5s infinite linear;
}

@keyframes procChainTravel {
  0% { left: 0%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .proc-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .proc-chain-connector {
    display: none;
  }
}

@media (max-width: 640px) {
  .proc-cards-grid {
    grid-template-columns: 1fr !important;
  }
  .proc-section-title {
    font-size: 30px;
  }
  .proc-card-item {
    padding: max(16px, calc(var(--wt-proc-card-pad-v, 34px) * 0.75)) max(16px, calc(var(--wt-proc-card-pad-h, 28px) * 0.7));
  }
}
