/* ======================================================
   INDUSTRIES – DARK PREMIUM (LOCKED / CLEAN)
====================================================== */

:root {
  --nx-ind-bg-1: #0b0e14;
  --nx-ind-bg-2: #10131b;

  --nx-card-1: rgba(32, 38, 52, 1);
  --nx-card-2: rgba(20, 24, 34, 1);

  --nx-text-soft: rgba(255, 255, 255, 0.72);
  --nx-text-muted: rgba(255, 255, 255, 0.75);

  --nx-outline: rgba(255, 255, 255, 0.03);
  --nx-outline-strong: rgba(255, 255, 255, 0.06);

  --nx-bubble-1: rgba(124, 92, 255, 0.35);
  --nx-bubble-2: #ff4fbf;
}

/* ---------------- Section ---------------- */

.nx-industries {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--nx-section-bg-main);
  color: #fff;
}

/* ---------------- Background bubbles ---------------- */

.nx-industries-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.nx-bg-bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.45;
}

.bubble-1 {
  width: 420px;
  height: 420px;
  background: var(--nx-bubble-1);
  top: 12%;
  right: -90px;
}

.bubble-2 {
  width: 320px;
  height: 320px;
  background: var(--nx-bubble-2);
  top: 55%;
  left: -60px;
  opacity: 0.3;
}

/* ---------------- Pin wrapper ---------------- */

.nx-industries-pin {
  position: relative;
  z-index: 1;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  overflow: visible;
}

/* ---------------- Header ---------------- */

.nx-industries-header {
  position: absolute;
  width: 100%;
  text-align: center;

  margin: 0 auto 96px auto;
  margin-top: -7vh;
  /* kept same */
}

.nx-industries-title {
  font-size: clamp(44px, 6vw, 96px);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.nx-industries-subtitle {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: var(--nx-text-soft);
}

/* ---------------- Cards stage ---------------- */

.nx-industries-cards {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin-top: 120vh;
  /* start AFTER header (kept same) */
}

/* ---------------- Card ---------------- */

.nx-industry-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  width: 100%;
  padding: 28px 32px;
  z-index: 0;

  background: linear-gradient(180deg, var(--nx-card-1), var(--nx-card-2));

  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.60),
    0 6px 16px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  border-radius: 18px;
  outline: 1px solid var(--nx-outline);
  outline-offset: -1px;

  will-change: transform, opacity;
}

/* Texture overlay */
.nx-industry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background-image: url("/assets/icons/Other/card-bg.svg");
  background-repeat: repeat;
  background-size: 200px 200px;

  /* IMPORTANT: keep subtle */
  opacity: 0.16;

  /* Optional: if you like the “soft-light” look, uncomment */
  /* mix-blend-mode: soft-light; */
}

/* Active card emphasis (JS toggles .is-active) */
.nx-industry-card.is-active {
  box-shadow:
    0 34px 84px rgba(0, 0, 0, 0.78),
    0 10px 24px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  outline-color: var(--nx-outline-strong);
}

/* ---------------- Card content layout ---------------- */

.nx-industry-meta {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.nx-industry-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;

  display: grid;
  place-items: center;

  /* Icon background “tile” */
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nx-industry-icon img {
  width: 22px;
  height: 22px;
  display: block;
  opacity: 0.92;
}

.nx-industry-text {
  min-width: 0;
}

.nx-industry-title {
  font-size: 1.25rem;
  font-weight: 650;
  margin: 0 0 6px;
}

.nx-industry-summary {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--nx-text-muted);
  margin: 0;
}

.nx-industry-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.nx-industry-points ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nx-industry-points li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 10px;

  font-size: 15px;
  line-height: 1.6;
  color: rgba(230, 235, 225, 0.85);
}

.nx-industry-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(180, 200, 160, 0.75);
}

/* ---------------- View all ---------------- */

.nx-industries-viewall {
  position: absolute;
  bottom: 48px;
  left: 48px;
  z-index: 10;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;

  transition: color 0.25s ease, transform 0.25s ease;

  /* hidden initially (JS adds .is-visible) */
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}

.nx-industries-viewall:hover {
  color: #fff;
  transform: translateY(14px) translateX(4px);
}

.nx-industries-viewall.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------------- Hover (no transform so GSAP won't conflict) ---------------- */

@media (hover: hover) {
  .nx-industry-card:hover {
    z-index: 2;

    background: linear-gradient(180deg,
        rgba(44, 50, 66, 1),
        rgba(28, 32, 44, 1));

    box-shadow:
      0 48px 110px rgba(0, 0, 0, 0.88),
      0 20px 44px rgba(0, 0, 0, 0.65),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);

    outline-color: rgba(255, 255, 255, 0.16);
  }
}

/* ---------------- Mobile ---------------- */

@media (max-width: 768px) {
  .nx-industries {
    padding: 60px 35px 40px;
  }

  .nx-industries-pin {
    min-height: auto;
  }

  .nx-industries-header {
    position: relative;
    margin-bottom: auto;
    margin-top: 200px;
  }

  .nx-industries-cards {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-top: 24px;
  }

  .nx-industry-card {
    position: relative;
    left: auto;
    transform: none;
    width: 100%;
    padding: 18px 16px;
    opacity: 0.95;
    transition: box-shadow 0.2s ease;

  }

  .nx-industry-points {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .nx-industries-viewall {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    margin-top: 30px;

  }

  .nx-industry-card.is-active {
    box-shadow:
      0 32px 80px rgba(0, 0, 0, 0.8),
      0 12px 28px rgba(0, 0, 0, 0.55);
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .nx-industries-cards {
    max-width: 580px;
  }

  .nx-industry-points li {
    font-size: 12px;
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .nx-industries-cards {
    max-width: 690px;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .nx-industries-cards {
    max-width: 690px;
  }
}