/* ═══════════════════════════════════════════════════════════════════════════
   Intelligent Transformation Page
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── HERO ────────────────────────────────────────────────────────────────── */

.it-hero {
  min-height: 640px;
}

/* Animated transformation pipeline decoration */
.it-hero__pipeline {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0.25;
  pointer-events: none;
}

.it-pipe__node {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 200, 255, 0.8);
  background: rgba(0, 0, 171, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: nodeBlink 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.it-pipe__node:nth-child(1) { animation-delay: 0s; }
.it-pipe__node:nth-child(3) { animation-delay: 0.4s; }
.it-pipe__node:nth-child(5) { animation-delay: 0.8s; }
.it-pipe__node:nth-child(7) { animation-delay: 1.2s; }
.it-pipe__node:nth-child(9) { animation-delay: 1.6s; }

@keyframes nodeBlink {
  0%, 100% { border-color: rgba(0, 200, 255, 0.8); box-shadow: 0 0 8px rgba(0, 200, 255, 0.3); }
  50%       { border-color: rgba(0, 200, 255, 0.3); box-shadow: none; }
}

.it-pipe__connector {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.6), rgba(0, 200, 255, 0.2));
  position: relative;
  flex-shrink: 0;
}

.it-pipe__connector::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateY(-50%);
  animation: flowDot 1.8s linear infinite;
}

.it-pipe__node:nth-child(3) + .it-pipe__connector::after { animation-delay: 0.3s; }
.it-pipe__node:nth-child(5) + .it-pipe__connector::after { animation-delay: 0.6s; }
.it-pipe__node:nth-child(7) + .it-pipe__connector::after { animation-delay: 0.9s; }

@keyframes flowDot {
  0%   { left: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}

/* Node inner icons */
.it-pipe__node svg {
  color: rgba(0, 200, 255, 0.9);
}

/* ── STATS BAR ──────────────────────────────────────────────────────────── */

.it-stats {
  background: var(--blue);
  padding: 36px 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.it-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 52px;
}

.it-stats__num {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -2px;
}

.it-stats__num sup {
  font-size: 20px;
  letter-spacing: 0;
}

.it-stats__label {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
}

.it-stats__divider {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* ── CORE SERVICE AREAS (3×2 grid) ─────────────────────────────────────── */

.it-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.it-service-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-md), box-shadow var(--transition-md), transform var(--transition-md);
}

.it-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--blue-mid));
  border-radius: 10px 10px 0 0;
}

.it-service-card:hover {
  border-color: rgba(0, 200, 255, 0.38);
  box-shadow: 0 8px 32px rgba(0, 0, 171, 0.08);
  transform: translateY(-3px);
}

.it-service-card__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.12), rgba(0, 0, 171, 0.07));
  border: 1px solid rgba(0, 200, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue-mid);
}

.it-service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.it-service-card p {
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.75;
}

/* ── ADVANTAGES GRID (4-col dark) ──────────────────────────────────────── */

.it-adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.it-adv-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 28px 22px;
  position: relative;
  transition: border-color var(--transition-md), transform var(--transition-md);
}

.it-adv-card:hover {
  border-color: rgba(0, 200, 255, 0.3);
  transform: translateY(-4px);
}

.it-adv-card__num {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: rgba(0, 200, 255, 0.4);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.it-adv-card__icon {
  color: var(--cyan);
  margin-bottom: 16px;
}

.it-adv-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.it-adv-card p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
}

/* ── TECH STACK (2×2 grid, pale bg) ────────────────────────────────────── */

.it-stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.it-stack-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
}

.it-stack-group__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue-mid);
  margin-bottom: 16px;
}

.it-stack-group__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.it-stack-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 171, 0.06);
  border: 1px solid rgba(0, 0, 171, 0.3);
  color: var(--ink);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.it-stack-tag:hover {
  background: rgba(0, 200, 255, 0.1);
  border-color: rgba(0, 200, 255, 0.35);
  color: var(--blue);
}

/* ── INDUSTRIES ─────────────────────────────────────────────────────────── */

.it-industries {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.it-industry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 12px;
  text-align: center;
  transition: border-color var(--transition-md), box-shadow var(--transition-md), transform var(--transition-md);
}

.it-industry:hover {
  border-color: rgba(0, 200, 255, 0.4);
  box-shadow: 0 6px 24px rgba(0, 0, 171, 0.07);
  transform: translateY(-3px);
}

.it-industry__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.1), rgba(0, 0, 171, 0.07));
  border: 1px solid rgba(0, 200, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-mid);
  flex-shrink: 0;
}

.it-industry span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

/* ── WHY PGI ─────────────────────────────────────────────────────────────── */

.it-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.it-why-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-md), transform var(--transition-md);
}

.it-why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--blue-mid));
  border-radius: 10px 10px 0 0;
}

.it-why-card:hover {
  border-color: rgba(0, 200, 255, 0.28);
  transform: translateY(-3px);
}

.it-why-card__num {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: rgba(0, 200, 255, 0.12);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.it-why-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.it-why-card p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .it-adv-grid   { grid-template-columns: repeat(2, 1fr); }
  .it-industries { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .it-services-grid { grid-template-columns: repeat(2, 1fr); }
  .it-stack-grid    { grid-template-columns: 1fr; }
  .it-why-grid      { grid-template-columns: 1fr; }
}

/* Tablet: stats wrap to 2×2 */
@media (max-width: 860px) {
  .it-stats {
    flex-wrap: wrap;
    gap: 20px;
    padding: 32px 36px;
  }
  .it-stats__item   { flex: 1 1 calc(50% - 20px); }
  .it-stats__divider { display: none; }
}

@media (max-width: 768px) {
  .it-stats {
    padding: 28px 20px;
    gap: 24px;
  }
  .it-stats__item       { padding: 0; flex: 1 1 calc(50% - 12px); }
  .it-services-grid     { grid-template-columns: 1fr; }
  .it-adv-grid          { grid-template-columns: 1fr; }
  .it-industries        { grid-template-columns: repeat(3, 1fr); }
  .it-hero__pipeline    { display: none; }
}

@media (max-width: 480px) {
  .it-industries    { grid-template-columns: repeat(2, 1fr); }
  .it-stats__item   { flex: 1 1 100%; text-align: center; }
}
