/* ================================================================
   Quantum Next Digital — Business Transformation Showcase
   Interactive industry selector with AI solution previews
================================================================ */

/* ── SECTION WRAPPER ── */
.qn-showcase-section {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
.qn-showcase-section .qn-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,102,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}
.qn-showcase-section .container { position: relative; z-index: 1; }

/* ── INDUSTRY SELECTOR TABS ── */
.qn-industry-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 40px 0 52px;
}
.qn-ind-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.6);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.23,1,0.32,1);
  white-space: nowrap;
  user-select: none;
}
.qn-ind-tab .tab-icon { font-size: 16px; }
.qn-ind-tab:hover {
  border-color: rgba(0,102,255,0.35);
  background: rgba(0,102,255,0.08);
  color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}
.qn-ind-tab.active {
  background: linear-gradient(135deg, rgba(0,102,255,0.2), rgba(124,58,237,0.15));
  border-color: rgba(0,102,255,0.5);
  color: #fff;
  box-shadow:
    0 0 20px rgba(0,102,255,0.2),
    0 4px 16px rgba(0,0,0,0.3);
}

/* ── SHOWCASE DISPLAY AREA ── */
.qn-showcase-display {
  position: relative;
  min-height: 420px;
}
.qn-showcase-panel {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.23,1,0.32,1),
    transform 0.45s cubic-bezier(0.23,1,0.32,1);
}
.qn-showcase-panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
  position: relative;
}

/* ── PANEL LAYOUT ── */
.qn-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .qn-panel-grid { grid-template-columns: 1fr; }
}

/* ── LEFT: PREVIEW MOCKUP ── */
.qn-preview-mockup {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(6,9,21,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.03) inset;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qn-mockup-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.qn-mockup-topbar {
  height: 36px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
  flex-shrink: 0;
}
.qn-topbar-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.qn-topbar-dot:nth-child(1) { background: #ff5f57; }
.qn-topbar-dot:nth-child(2) { background: #ffbd2e; }
.qn-topbar-dot:nth-child(3) { background: #28ca41; }
.qn-topbar-url {
  margin-left: 10px;
  flex: 1;
  height: 18px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  max-width: 200px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  font-family: monospace;
  overflow: hidden;
  white-space: nowrap;
}
.qn-mockup-body {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
}

/* Skeleton UI elements inside mockup */
.qn-sk { border-radius: 6px; background: rgba(255,255,255,0.06); }
.qn-sk-h1 { height: 28px; width: 65%; }
.qn-sk-h2 { height: 16px; width: 80%; }
.qn-sk-p  { height: 10px; width: 95%; }
.qn-sk-p2 { height: 10px; width: 75%; }
.qn-sk-btn {
  height: 34px; width: 140px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(0,102,255,0.4), rgba(124,58,237,0.3));
  margin-top: 4px;
}
.qn-sk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.qn-sk-card {
  height: 64px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.qn-sk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  white-space: nowrap;
}
.qn-sk-badge.green {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.25);
  color: #22c55e;
}
.qn-sk-badge.blue {
  background: rgba(0,102,255,0.15);
  border: 1px solid rgba(0,102,255,0.25);
  color: #60a5fa;
}
.qn-sk-badge.purple {
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.25);
  color: #a78bfa;
}

/* Animated gradient accent */
.qn-mockup-accent {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: qn-blob-move 10s ease-in-out infinite alternate;
}

/* Industry-specific accent colours */
[data-industry="restaurant"]  .qn-mockup-accent { background: rgba(251,146,60,0.18); }
[data-industry="realestate"]  .qn-mockup-accent { background: rgba(34,197,94,0.16); }
[data-industry="startup"]     .qn-mockup-accent { background: rgba(0,102,255,0.18); }
[data-industry="healthcare"]  .qn-mockup-accent { background: rgba(6,182,212,0.18); }
[data-industry="ecommerce"]   .qn-mockup-accent { background: rgba(234,179,8,0.15); }
[data-industry="education"]   .qn-mockup-accent { background: rgba(124,58,237,0.18); }

/* ── RIGHT: SOLUTION CARDS ── */
.qn-solutions-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qn-solution-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  cursor: default;
  animation: qn-sol-in 0.45s cubic-bezier(0.23,1,0.32,1) both;
}
.qn-solution-card:nth-child(1) { animation-delay: 0.05s; }
.qn-solution-card:nth-child(2) { animation-delay: 0.12s; }
.qn-solution-card:nth-child(3) { animation-delay: 0.19s; }
.qn-solution-card:nth-child(4) { animation-delay: 0.26s; }
.qn-solution-card:nth-child(5) { animation-delay: 0.33s; }
@keyframes qn-sol-in {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.qn-solution-card:hover {
  border-color: rgba(0,102,255,0.25);
  background: rgba(0,102,255,0.06);
  transform: translateX(4px);
}
.qn-sol-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: rgba(0,102,255,0.1);
  border: 1px solid rgba(0,102,255,0.2);
}
.qn-sol-text strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}
.qn-sol-text span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.5;
}
.qn-sol-metric {
  margin-left: auto;
  flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #22c55e;
  white-space: nowrap;
  padding-top: 2px;
}

/* ── BOTTOM CTA STRIP ── */
.qn-showcase-cta-strip {
  margin-top: 52px;
  text-align: center;
}
.qn-showcase-cta-strip p {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  margin-bottom: 20px;
  font-family: 'DM Sans', sans-serif;
}

/* ── INDUSTRY STATS BAR ── */
.qn-industry-stats {
  display: flex;
  gap: 0;
  margin-top: 24px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.qn-ind-stat {
  flex: 1;
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.25s;
}
.qn-ind-stat:last-child { border-right: none; }
.qn-ind-stat:hover { background: rgba(0,102,255,0.06); }
.qn-ind-stat-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0066ff, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.qn-ind-stat-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  font-family: 'DM Sans', sans-serif;
  margin-top: 3px;
}

/* ── SECTION HEADER INLINE BADGE ── */
.qn-industry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0,102,255,0.1);
  border: 1px solid rgba(0,102,255,0.25);
  font-size: 0.75rem;
  font-weight: 600;
  color: #60a5fa;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 12px;
  transition: all 0.3s;
}
.qn-industry-badge .badge-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0066ff;
  animation: qn-blink 1.5s ease-in-out infinite;
}

/* ── ANIMATED COUNTER IN SHOWCASE ── */
.qn-sc-counter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .qn-showcase-section { padding: 80px 0 60px; }
  .qn-industry-tabs { gap: 6px; }
  .qn-ind-tab { padding: 7px 12px; font-size: 0.78rem; }
  .qn-industry-stats { flex-wrap: wrap; }
  .qn-ind-stat { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .qn-ind-stat:last-child { border-bottom: none; }
}
@media (max-width: 480px) {
  .qn-ind-tab .tab-label { display: none; }
  .qn-ind-tab { padding: 9px 12px; }
}
