/* ============================================================
   INDUSTRIES PAGE — Scoped Styles
   All classes prefixed with .industries- to avoid conflicts
   ============================================================ */

/* ── Hero ── */
.industries-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1b3e 0%, #1a3a6b 50%, #0e2240 100%);
}
.industries-hero .expertise__bg-img {
  opacity: 0.3;
}

/* ── Grid Section ── */
.industries-section {
  background-color: #ffffff;
  position: relative;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.industries-grid.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  position: absolute;
  width: 100%;
}

/* ── Industry Card ── */
.industries-card {
  position: relative;
  background: #0d1b3e;
  border-radius: 8px;
  padding: 36px 28px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  border: 1px solid rgba(74, 144, 217, 0.15);
}

.industries-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e85d2a, #4a90d9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.industries-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(13, 27, 62, 0.3);
}

.industries-card:hover::before {
  transform: scaleX(1);
}

.industries-card__icon {
  width: 44px;
  height: 44px;
  color: #e85d2a;
  transition: transform 0.35s ease;
}

.industries-card:hover .industries-card__icon {
  transform: scale(1.1);
}

.industries-card__name {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.industries-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  flex-grow: 1;
}

.industries-card__arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a90d9;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: gap 0.3s ease;
}

.industries-card:hover .industries-card__arrow {
  gap: 14px;
}

.industries-card__arrow i {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.industries-card:hover .industries-card__arrow i {
  transform: translateX(4px);
}

/* ── Detail View ── */
.industries-detail {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  position: absolute;
  width: 100%;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.industries-detail.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.industries-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4a90d9;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  margin-bottom: 32px;
  transition: gap 0.3s ease, color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.industries-detail__back:hover {
  gap: 12px;
  color: #e85d2a;
}

.industries-detail__back i {
  width: 18px;
  height: 18px;
}

.industries-detail__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.industries-detail__icon {
  width: 48px;
  height: 48px;
  color: #e85d2a;
}

.industries-detail__title {
  color: #1a3a6b;
  margin: 0;
}

.industries-detail__desc {
  color: #1a2744;
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-size: 16px;
}

.industries-detail__subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.industries-detail__subtitle img {
  width: 16px;
  height: auto;
}

.industries-detail__subtitle h3 {
  color: #1a3a6b;
  margin: 0;
  font-size: 22px;
}

/* ── Service Cards Grid ── */
.industries-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.industries-service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: #f5f5f3;
  border-radius: 8px;
  border: 1px solid rgba(26, 58, 107, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.industries-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13, 27, 62, 0.1);
  border-color: rgba(74, 144, 217, 0.3);
}

.industries-service-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.industries-service-card__header i {
  width: 22px;
  height: 22px;
  color: #e85d2a;
  flex-shrink: 0;
}

.industries-service-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #1a3a6b;
  margin: 0;
}

.industries-service-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #1a2744;
  margin: 0;
  flex-grow: 1;
}

.industries-service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4a90d9;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  transition: gap 0.3s ease;
}

.industries-service-card:hover .industries-service-card__cta {
  gap: 10px;
}

.industries-service-card__cta i {
  width: 14px;
  height: 14px;
  color: #4a90d9;
}

/* ── Content wrapper for transitions ── */
.industries-content-wrapper {
  position: relative;
  min-height: 400px;
  padding-top: 72px; /* Push content down to avoid overlapping the rounded hero overlay */
}

/* ── Scroll Reveal ── */
.industries-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.industries-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media screen and (max-width: 991px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .industries-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .industries-card {
    padding: 28px 22px;
    min-height: 200px;
  }
}

@media screen and (max-width: 767px) {
  .industries-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .industries-services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .industries-card {
    padding: 24px 20px;
    min-height: auto;
  }
  .industries-card__name {
    font-size: 16px;
  }
  .industries-detail__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
