/* ============================================================
   TECHNOLOGIES.CSS — Technologies Page Styles
   Extends existing design system — no global overrides
   ============================================================ */

.tech-accent { color: var(--color-accent); }

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.tech-hero {
  position: relative;
  background: var(--color-primary);
  padding: 140px 0 80px;
  overflow: hidden;
}

.tech-hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,51,74,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,51,74,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.tech-orb-1 {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,51,74,0.15) 0%, transparent 70%);
  top: -150px; right: -150px;
}
.tech-orb-2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,51,74,0.08) 0%, transparent 70%);
  bottom: -80px; left: -100px;
}

.tech-hero-inner {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.tech-hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 20px;
}

.tech-hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 36px;
}

.tech-hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Stats strip */
.tech-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 24px 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

.tech-hero-stat {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tech-stat-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.tech-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.tech-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ============================================================
   SECTION 2 — CATEGORY TABS
   ============================================================ */
.tech-categories-section {
  background: #F4F6FB;
  padding: 96px 0;
}

/* Tab nav */
.tech-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}

.tech-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid #E5E7EB;
  background: var(--color-white);
  color: var(--color-gray);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.25s ease;
}

.tech-tab-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.tech-tab-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(232,51,74,0.3);
}

/* Tab panels */
.tech-tab-panel {
  display: none;
}

.tech-tab-panel.active {
  display: block;
  animation: fadeInPanel 0.3s ease;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tech grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Tech card */
.tech-card {
  background: var(--color-white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border-color: rgba(232,51,74,0.25);
}

.tech-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: #F4F6FB;
  border: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 10px;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.tech-card:hover .tech-card-icon {
  background: rgba(232,51,74,0.06);
  border-color: rgba(232,51,74,0.2);
}

.tech-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tech-card-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.tech-card-desc {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.tech-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tech-card-tags span {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(232,51,74,0.08);
  border: 1px solid rgba(232,51,74,0.15);
  border-radius: 4px;
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  transition: gap 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.tech-card-link:hover {
  gap: 10px;
  color: #c0202f;
}

/* ============================================================
   SECTION 3 — APPROACH (reuses svc-detail styles from services.css)
   ============================================================ */
.tech-approach-section {
  background: var(--color-white);
  padding: 96px 0;
}

/* ============================================================
   SECTION 4 — STATS BAND
   ============================================================ */
.tech-stats-band {
  position: relative;
  background: var(--color-primary);
  padding: 72px 0;
  overflow: hidden;
}

.tech-stats-band-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,51,74,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,51,74,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.tech-stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.tech-stat-item {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-stat-big {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}

.tech-stat-item .tech-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.tech-stat-divider-v {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .tech-hero { padding: 120px 0 64px; }

  .tech-hero-stats {
    padding: 16px;
  }

  .tech-stat-divider { display: none; }

  .tech-hero-stat {
    min-width: calc(50% - 8px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 12px 8px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-stat-divider-v { display: none; }

  .tech-stat-item {
    min-width: calc(50% - 8px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 16px;
  }
}

@media (max-width: 767px) {
  .tech-categories-section,
  .tech-approach-section { padding: 64px 0; }

  .tech-hero-btns { flex-direction: column; }

  .tech-hero-btns .btn-primary-lg,
  .tech-hero-btns .btn-outline-lg { width: 100%; justify-content: center; }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech-tab-nav {
    gap: 6px;
  }

  .tech-tab-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}
