/* ─────────────────────────────────────────
   ALL SELECTORS PREFIXED  hfx-
   Safe to merge — zero collision risk
───────────────────────────────────────── */
.hfx-wrap,
.hfx-wrap *,
.hfx-wrap *::before,
.hfx-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── SECTION SHELL ── */
.hfx-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  font-family: "Open Sans", sans-serif;

  background:
    /* linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), */ url("../images/background-forBFSI.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 520px;
}

/* ── ANIMATED NETWORK CANVAS ── */
#hfx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── BLUEPRINT CORNER (top-right) ── */
.hfx-blueprint {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 220px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

/* Blueprint grid lines */
.hfx-blueprint svg {
  width: 100%;
  height: 100%;
}

/* ── MAIN CONTENT ── */
.hfx-content {
  position: relative;
  z-index: 2;
  max-width: 1210px;
  margin: 0 auto;
  padding: 59px 9px 64px;
}

/* ── HEADING BLOCK ── */
.hfx-heading-block {
  text-align: center;
  margin-bottom: 44px;
  opacity: 0;
  animation: hfx-fadedown 0.7s ease forwards 0.1s;
}

.hfx-heading-block h2 {
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  padding-top: 50px;
  font-family: ui-sans-serif;
}

.hfx-heading-block p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto;
}

/* ── CARDS ROW ── */
.hfx-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .hfx-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .hfx-cards-row {
    grid-template-columns: 1fr;
  }
}

/* ── SINGLE CARD ── */
.hfx-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 41px 25px 31px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 1;
  transform: translateY(30px);
  transition:
    transform 0.38s ease,
    box-shadow 0.38s ease;
  /* Stagger set by JS */
}

.hfx-card.hfx-in {
  opacity: 1;
  transform: translateY(0);
}

.hfx-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

/* ── ICON CIRCLE ── */
.hfx-icon-wrap {
  width: 151px;
  height: 151px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

/* Card 1 – compass/chart: warm beige ring */
.hfx-icon-wrap--1 {
  background: #f5f0e8;
}

/* Card 2 – shield: light teal ring */
.hfx-icon-wrap--2 {
  background: #e8f4f8;
}

/* Card 3 – clipboard: light grey-blue */
.hfx-icon-wrap--3 {
  background: #edf2f7;
}

/* Card 4 – eye/scan: light blue */
.hfx-icon-wrap--4 {
  background: #e8f0f8;
}

.hfx-icon-wrap svg {
  width: 114px;
  height: 114px;
}

/* ── CARD TEXT ── */
.hfx-card-title {
  /* font-family: "Open Sans", sans-serif; */
  font-size: 21px;
  font-weight: 700;
  color: #b17a00;
  margin-bottom: 10px;
  line-height: 1.35;
  font-family: emoji;
}

.hfx-card-desc {
  font-size: 15.5px;
  color: #5a6a7a;
  line-height: 1.5;
  font-weight: 500;
  font-family: "bootstrap-icons";
}

/* ── ANIMATIONS ── */
@keyframes hfx-fadedown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hfx-card,
  .hfx-heading-block {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------------new csss---------------- */

/* ── Reset scoped only inside our section ── */
.tgc-section,
.tgc-section *,
.tgc-section *::before,
.tgc-section *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ══════════════════════
   SECTION SHELL
══════════════════════ */
.tgc-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  font-family: "Open Sans", Arial, sans-serif;

  /* Same navy-blue gradient as the main section above */
  /* background: linear-gradient(
    112deg,
    #071629 0%,
    #0b2040 20%,
    #0d2b55 45%,
    #103368 70%,
    #1d5299 100%
  ); */

  background: linear-gradient(
    242deg,
    #000000 0%,
    #000000 20%,
    #000000 45%,
    #000000 70%,
    #000000 100%
  );
  padding: 72px 24px 88px;
}

/* ── Animated particle canvas (background layer) ── */
#tgc-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Subtle radial glow in centre ── */
.tgc-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(30, 100, 200, 0.22) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════
   INNER CONTENT
══════════════════════ */
.tgc-inner {
  position: relative;
  z-index: 2;
  max-width: 1250px;
  margin: 0 auto;
}

/* ══════════════════════
   SECTION HEADING
══════════════════════ */
#tgc-heading-block {
  text-align: center;
  margin-bottom: 56px;

  /* Entrance animation */
  opacity: 0;
  animation: tgc-fade-down 0.75s cubic-bezier(0.22, 0.68, 0, 1.15) forwards 0.1s;
}

/* Badge pill above heading */
#tgc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 180, 255, 0.1);
  border: 1px solid rgba(0, 180, 255, 0.3);
  border-radius: 999px;
  padding: 5px 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5bc8f5;
  margin-bottom: 18px;
}

/* Blinking dot inside badge */
#tgc-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5bc8f5;
  animation: tgc-blink 1.6s ease-in-out infinite;
}

#tgc-heading-block h2 {
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.28;
  margin-bottom: 14px;
}

#tgc-heading-block p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.72;
  max-width: 520px;
  margin: 0 auto;
}

/* ══════════════════════
   MAIN CARDS GRID
   2 columns on desktop,
   1 column on mobile
══════════════════════ */
#tgc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 700px) {
  #tgc-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════
   GROUP CARD  (big card)
══════════════════════ */
.tgc-group-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 36px 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;

  /* Scroll-reveal start state */
  opacity: 1;
  transform: translateY(32px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* Revealed state (added by JS) */
.tgc-group-card.tgc-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover glow */
.tgc-group-card:hover {
  border-color: rgba(91, 200, 245, 0.38);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(91, 200, 245, 0.12) inset;
  transform: translateY(-4px) !important;
}

/* Top accent line that sweeps in on hover */
.tgc-group-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  border-radius: 18px 18px 0 0;
  transition: width 0.45s ease;
}

.tgc-group-card:hover::before {
  width: 100%;
}

/* Each card gets its own accent colour */
#tgc-card-a::before {
  background: linear-gradient(90deg, #ffc10754, #faaf0c);
}

#tgc-card-b::before {
  background: linear-gradient(90deg, #f4b942, #f7941d);
}

/* Decorative large icon watermark bottom-right */
.tgc-card-watermark {
  position: absolute;
  bottom: -18px;
  right: -14px;
  width: 110px;
  height: 110px;
  opacity: 0.055;
  pointer-events: none;
}

/* ── Card header row ── */
.tgc-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

/* Icon box */
.tgc-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.tgc-group-card:hover .tgc-card-icon {
  transform: rotate(6deg) scale(1.1);
}

/* Icon colour variants */
.tgc-icon-blue {
  background: rgba(79, 172, 254, 0.15);
}

.tgc-icon-gold {
  background: rgba(244, 185, 66, 0.15);
}

.tgc-card-icon svg {
  width: 28px;
  height: 28px;
}

/* Card title */
.tgc-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

/* Client count badge */
.tgc-count-badge {
  display: inline-block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 11px;
  border-radius: 999px;
}

.tgc-badge-blue {
  background: rgba(79, 172, 254, 0.15);
  color: #7ec8f9;
}

.tgc-badge-gold {
  background: rgba(244, 185, 66, 0.15);
  color: #f4c96b;
}

/* ── Client chips list ── */
.tgc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

/* Single chip */
.tgc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  border: 1px solid transparent;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    transform 0.25s ease;
}

/* Blue chips (card A) */
.tgc-chip-blue {
  background: rgba(79, 172, 254, 0.1);
  border-color: rgba(79, 172, 254, 0.22);
  color: #cce8ff;
}

.tgc-chip-blue:hover {
  background: rgba(79, 172, 254, 0.22);
  border-color: rgba(79, 172, 254, 0.5);
  transform: translateY(-2px);
}

/* Gold chips (card B) */
.tgc-chip-gold {
  background: rgba(244, 185, 66, 0.1);
  border-color: rgba(244, 185, 66, 0.22);
  color: #fde9ac;
}

.tgc-chip-gold:hover {
  background: rgba(244, 185, 66, 0.22);
  border-color: rgba(244, 185, 66, 0.5);
  transform: translateY(-2px);
}

/* Small dot inside chip */
.tgc-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tgc-dot-blue {
  background: #4facfe;
}

.tgc-dot-gold {
  background: #f4b942;
}

/* ── Divider inside card ── */
.tgc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 18px 0;
}

/* ── Footer description ── */
.tgc-card-footer {
  font-size: 12.8px;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.68;
}

/* ══════════════════════
   BOTTOM STATS BAR
══════════════════════ */
#tgc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;

  /* Scroll-reveal */
  opacity: 1;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease 0.35s,
    transform 0.6s ease 0.35s;
}

#tgc-stats.tgc-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  #tgc-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Single stat cell */
.tgc-stat {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.3s ease;
}

.tgc-stat:last-child {
  border-right: none;
}

.tgc-stat:hover {
  background: rgba(91, 200, 245, 0.06);
}

/* Stat number */
.tgc-stat-num {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(90deg, #5bc8f5, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

/* Stat label */
.tgc-stat-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* ══════════════════════
   KEYFRAME ANIMATIONS
══════════════════════ */

/* Heading slide down */
@keyframes tgc-fade-down {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge dot blink */
@keyframes tgc-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .tgc-group-card,
  #tgc-stats,
  #tgc-heading-block {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
