/* ==========================================================================
   Tech Capabilities Section
   Red #ef3139 | Blue #022d62 | White background
   Desktop: CSS sticky windmill (right col) + GSAP rotation scrub
   Mobile:  Cards hidden, windmill + floating tech label only
   ========================================================================== */

/* ── Section ─────────────────────────────────────────────────────────────── */
.tech-capabilities-pin-section {
  position: relative;
  background: #ffffff;
  padding: 70px 0 80px;
  /* overflow: clip → allows CSS sticky inside while clipping decorative BG */
  overflow: clip;
}

.tech-capabilities-pin-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 49, 57, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.tech-capabilities-pin-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 45, 98, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.tech-capabilities-pin-section .container {
  position: relative;
  z-index: 2;
}

/* ── Left column ─────────────────────────────────────────────────────────── */
.tech-capabilities-content-col {
  padding-right: 28px;
}

/* ── Intro ───────────────────────────────────────────────────────────────── */
.tech-capabilities-sticky-intro {
  margin-bottom: 28px;
}

.tc-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ef3139;
  margin-bottom: 12px;
}

.tc-badge-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 3px;
  background: #ef3139;
  border-radius: 2px;
  flex-shrink: 0;
}

.tc-main-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  color: #022d62;
  margin-bottom: 10px;
}

.tc-main-title span {
  color: #ef3139;
}

.tc-main-desc {
  font-size: 13.5px;
  color: #6070a0;
  line-height: 1.6;
  margin: 0;
}

/* ── Capability Cards ────────────────────────────────────────────────────── */
.capabilities-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.capability-card {
  display: flex;
  gap: 16px;
  background: #f8faff;
  border: 1.5px solid #e8eef8;
  border-radius: 12px;
  padding: 18px;
  will-change: transform, opacity;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.capability-card:hover {
  background: #fff;
  border-color: rgba(239, 49, 57, 0.2);
  box-shadow: 0 6px 24px rgba(239, 49, 57, 0.07), 0 2px 6px rgba(2, 45, 98, 0.04);
  transform: translateY(-2px) !important;
}

/* Card icons */
.capability-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.tc-icon-red {
  background: rgba(239, 49, 57, 0.09);
}

.tc-icon-red i {
  font-size: 19px;
  color: #ef3139;
  transition: color 0.3s;
}

.capability-card:hover .tc-icon-red {
  background: #ef3139;
  box-shadow: 0 4px 14px rgba(239, 49, 57, 0.28);
}

.capability-card:hover .tc-icon-red i {
  color: #fff;
}

.tc-icon-blue {
  background: rgba(2, 45, 98, 0.08);
}

.tc-icon-blue i {
  font-size: 19px;
  color: #022d62;
  transition: color 0.3s;
}

.capability-card:hover .tc-icon-blue {
  background: #022d62;
  box-shadow: 0 4px 14px rgba(2, 45, 98, 0.22);
}

.capability-card:hover .tc-icon-blue i {
  color: #fff;
}

.tc-icon-dark {
  background: rgba(85, 96, 128, 0.09);
}

.tc-icon-dark i {
  font-size: 19px;
  color: #556080;
  transition: color 0.3s;
}

.capability-card:hover .tc-icon-dark {
  background: #556080;
  box-shadow: 0 4px 14px rgba(85, 96, 128, 0.22);
}

.capability-card:hover .tc-icon-dark i {
  color: #fff;
}

.capability-card-body {
  flex: 1;
}

.capability-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #022d62;
  margin-bottom: 4px;
}

.capability-card-desc {
  font-size: 12.5px;
  color: #7080a0;
  line-height: 1.5;
  margin: 0 0 10px;
}

/* Tech pills */
.tc-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tc-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
  transition: all 0.22s ease;
  cursor: default;
}

.tc-pill-red {
  background: rgba(239, 49, 57, 0.07);
  color: #c0242b;
  border: 1px solid rgba(239, 49, 57, 0.16);
}

.tc-pill-red:hover {
  background: #ef3139;
  color: #fff;
  border-color: #ef3139;
}

.tc-pill-blue {
  background: rgba(2, 45, 98, 0.07);
  color: #022d62;
  border: 1px solid rgba(2, 45, 98, 0.14);
}

.tc-pill-blue:hover {
  background: #022d62;
  color: #fff;
  border-color: #022d62;
}

.tc-pill-dark {
  background: rgba(85, 96, 128, 0.07);
  color: #445070;
  border: 1px solid rgba(85, 96, 128, 0.16);
}

.tc-pill-dark:hover {
  background: #556080;
  color: #fff;
  border-color: #556080;
}


/* Purple Theme for Blockchain */
.tc-icon-purple {
  background: rgba(142, 68, 173, 0.09);
}

.tc-icon-purple i {
  font-size: 19px;
  color: #8e44ad;
  transition: color 0.3s;
}

.capability-card:hover .tc-icon-purple {
  background: #8e44ad;
  box-shadow: 0 4px 14px rgba(142, 68, 173, 0.28);
}

.capability-card:hover .tc-icon-purple i {
  color: #fff;
}

.tc-pill-purple {
  background: rgba(142, 68, 173, 0.07);
  color: #7023b0;
  border: 1px solid rgba(142, 68, 173, 0.16);
}

.tc-pill-purple:hover {
  background: #8e44ad;
  color: #fff;
  border-color: #8e44ad;
}

/* Green Theme for SEO & SMO */
.tc-icon-green {
  background: rgba(46, 204, 113, 0.09);
}

.tc-icon-green i {
  font-size: 19px;
  color: #2ecc71;
  transition: color 0.3s;
}

.capability-card:hover .tc-icon-green {
  background: #2ecc71;
  box-shadow: 0 4px 14px rgba(46, 204, 113, 0.28);
}

.capability-card:hover .tc-icon-green i {
  color: #fff;
}

.tc-pill-green {
  background: rgba(46, 204, 113, 0.07);
  color: #27ae60;
  border: 1px solid rgba(46, 204, 113, 0.16);
}

.tc-pill-green:hover {
  background: #2ecc71;
  color: #fff;
  border-color: #2ecc71;
}


/* Sticky wrapper */
.tech-windmill-sticky-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding: 30px 0;
}

.tech-capabilities-sticky-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

/* Desktop: pinned, centered vertically in viewport while cards stack and fade */
@media (min-width: 992px) {
  .tech-capabilities-pin-section {
    height: 300vh;
    position: relative;
    display: block !important;
    padding: 0 !important;
  }

  .tech-capabilities-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
  }

  .tech-capabilities-content-col {
    padding-left: 40px;
    padding-right: 0;
  }

  .tech-windmill-pin-col {
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .tech-windmill-sticky-wrap {
    position: relative !important;
    top: auto !important;
    height: 380px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .capabilities-cards-wrapper {
    position: relative;
    height: 220px;
    margin-top: 24px;
    display: block !important;
  }

  .capability-card {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
    will-change: transform, opacity;
    /* remove transition on transform/opacity to prevent conflicts with GSAP */
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
  }

  .capability-card.active-card {
    pointer-events: auto;
  }
}

/* Windmill SVG */
.tech-windmill-svg-wrapper {
  width: 200px;
  height: 200px;
  will-change: transform;
  filter: drop-shadow(0 10px 36px rgba(239, 49, 57, 0.16));
}

/* ── Floating Tech Label ─────────────────────────────────────────────────── */
/* Hidden by default — enabled on mobile via media query */
.wm-tech-label {
  display: none;
  text-align: center;
  margin-top: 20px;
  pointer-events: none;
}

.wm-label-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ef3139;
  margin-bottom: 6px;
}

.wm-label-text {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #022d62;
  letter-spacing: -0.3px;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wm-label-fade-out .wm-label-text {
  opacity: 0;
  transform: translateY(-8px) scale(0.9);
}

.wm-label-fade-in .wm-label-text {
  opacity: 1;
  transform: translateY(0) scale(1);
}



/* ── Progress Bar (desktop only) ────────────────────────────────────────── */
.tech-windmill-progress-bar {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 120px;
  background: rgba(2, 45, 98, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.tech-windmill-progress-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, #ef3139, #022d62);
  border-radius: 10px;
  will-change: height;
}

/* ── Reduced Motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  .capability-card,
  .tc-pill {
    transition: none;
  }

  .tech-windmill-svg-wrapper {
    will-change: auto;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE (< 992px) — Cards HIDDEN, windmill spins with tech name cycling
   Section is tall (150vh extra) so all 18 names can appear one by one
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {

  /* Pin section fullscreen setup for mobile */
  .tech-capabilities-pin-section {
    min-height: auto;
    display: block;
    padding: 50px 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .tech-capabilities-pin-section .container {
    width: 100%;
  }

  /* ── Cards hidden — names shown via windmill ──────────────────────────── */
  .capabilities-cards-wrapper {
    display: none !important;
  }

  /* ── Left column: compact intro only ─────────────────────────────────── */
  .tech-capabilities-content-col {
    padding-right: 0;
    margin-bottom: 30px;
    text-align: center;
  }

  .tc-badge-tag {
    justify-content: center;
  }

  .tc-main-title {
    font-size: 24px;
  }

  .tc-main-desc {
    font-size: 13px;
  }

  /* ── Right col: windmill full width ─────────────────────────── */
  .tech-windmill-pin-col {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .tech-windmill-sticky-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 320px;
    height: auto;
    padding: 0;
  }

  /* Windmill size */
  .tech-windmill-svg-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  /* ── Tech label: centered below windmill, no overlap ───────────────────── */
  .wm-tech-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
    padding: 0;
  }

  .wm-label-category {
    font-size: 11px;
    font-weight: 700;
    color: #ef3139;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    display: block;
    margin-bottom: 6px;
  }

  .wm-label-text {
    font-size: 23px;
    font-weight: 800;
    color: #022d62;
    letter-spacing: -0.5px;
    white-space: nowrap;
    display: block;
    overflow: visible;
  }

  /* Hide desktop progress bar */
  .tech-windmill-progress-bar {
    display: none !important;
  }
}

/* Small mobile */
@media (max-width: 575.98px) {
  .tech-capabilities-pin-section {
    padding: 30px 0;
  }

  .tc-main-title {
    font-size: 20px;
  }

  .tech-windmill-svg-wrapper {
    width: 130px;
    height: 130px;
  }

  .wm-label-text {
    font-size: 20px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE TECH STACK SECTION (after windmill, d-lg-none)
   ══════════════════════════════════════════════════════════════════════════ */
.tc-mobile-stack-section {
  background: #f4f7ff;
  padding: 32px 0 40px;
  border-top: 1px solid #e4eaf8;
}

.tc-ms-group {
  margin-bottom: 24px;
  padding: 18px;
  background: #ffffff;
  border-radius: 14px;
  border: 1.5px solid #e8eef8;
  box-shadow: 0 2px 12px rgba(2, 45, 98, 0.04);
}

.tc-ms-group:last-child {
  margin-bottom: 0;
}

.tc-ms-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tc-ms-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tc-dot-red {
  background: #ef3139;
  box-shadow: 0 0 0 3px rgba(239, 49, 57, 0.15);
}

.tc-dot-blue {
  background: #022d62;
  box-shadow: 0 0 0 3px rgba(2, 45, 98, 0.15);
}

.tc-dot-dark {
  background: #556080;
  box-shadow: 0 0 0 3px rgba(85, 96, 128, 0.15);
}

.tc-ms-title {
  font-size: 14px;
  font-weight: 700;
  color: #022d62;
  margin: 0;
}

.tc-ms-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}