/* =====================================================
   BITNEKA PORTFOLIO SYSTEM CSS
   Production Enterprise-Grade Stylesheet
   - Main Portfolio Hub (Hero, Stats, Filters, 20-Card Grid)
   - Detailed Case Study Architecture (Breadcrumbs, Hero Meta,
     Challenge/Solution, Process, Features, Tech Matrix,
     Outcomes, Testimonials, Prev/Next Loop, Related)
   - Interactive Preview Modal & Live Sandboxes
   - Pixel-Perfect Desktop + Tablet + Mobile Responsive System
   ===================================================== */

/* ── MAIN PORTFOLIO HUB ───────────────────────────── */

.portfolio-hero {
  padding: 80px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(1px 1px at 20px 20px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.portfolio-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.portfolio-hero .eyebrow i {
  color: #ffffff;
  flex-shrink: 0;
}

.portfolio-hero h1 {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
}

.portfolio-hero h1 .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-hero p.lead-text {
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
  color: #94a3b8;
  padding: 0 16px;
}

/* ── STATS COUNTER STRIP ──────────────────────────── */
.portfolio-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.portfolio-stat-card {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.portfolio-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  background: #141414;
}

.portfolio-stat-card .stat-number {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-stat-card .stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── FILTER NAVIGATION ────────────────────────────── */
.portfolio-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 48px auto 36px;
  padding: 8px 12px;
  background: rgba(14, 14, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  max-width: 1080px;
  backdrop-filter: blur(16px);
}

.portfolio-filter-pill {
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portfolio-filter-pill:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.portfolio-filter-pill.active {
  color: #000000;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 2px 14px rgba(255, 255, 255, 0.2);
}

.portfolio-filter-pill .count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.portfolio-filter-pill.active .count {
  background: rgba(0, 0, 0, 0.12);
  color: #000000;
  font-weight: 700;
}

/* ── 20-CARD PROJECT GRID ─────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 28px;
  margin-bottom: 72px;
}

.project-card {
  background: rgba(14, 14, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  background: #141414;
}

.project-card-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  background: #0a0a0a;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-media img {
  transform: scale(1.04);
}

.project-badge-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
}

.status-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(8px);
}

.status-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  flex-shrink: 0;
}

.project-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-client {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 6px;
}

.project-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.project-card:hover .project-card-title {
  color: #60a5fa;
}

.project-card-summary {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 18px;
}

.project-card-metric i {
  color: #f59e0b;
  font-size: 13px;
  flex-shrink: 0;
}

.project-card-metric span {
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.project-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-chip {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.project-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  transition: transform 0.2s ease, color 0.2s ease;
}

.project-card:hover .project-card-link {
  color: #38bdf8;
  transform: translateX(3px);
}

.project-card-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-card-live-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

/* ── CASE STUDY DETAIL PAGE STYLES ───────────────── */

.case-breadcrumbs {
  padding: 20px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  line-height: 1.5;
}

.case-breadcrumbs a {
  color: #94a3b8;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.case-breadcrumbs a:hover {
  color: #60a5fa;
}

.case-breadcrumbs a i {
  font-size: 12px;
  flex-shrink: 0;
}

.case-breadcrumbs .sep {
  color: #475569;
  font-size: 11px;
}

.case-breadcrumbs .current {
  color: #e2e8f0;
  font-weight: 600;
}

/* ── CASE HERO ────────────────────────────────────── */
.case-hero {
  padding: 24px 0 44px;
  position: relative;
}

.case-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.case-year {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.case-hero h1 {
  font-size: clamp(28px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}

.case-hero-lead {
  font-size: clamp(15.5px, 1.8vw, 18.5px);
  line-height: 1.65;
  color: #94a3b8;
  max-width: 880px;
  margin-bottom: 32px;
}

/* ── CASE METADATA STRIP ──────────────────────────── */
.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  background: rgba(14, 14, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 36px;
  backdrop-filter: blur(16px);
}

.case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-meta-item .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.case-meta-item .value {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  word-break: break-word;
  line-height: 1.4;
}

/* ── CASE ACTION BUTTONS ──────────────────────────── */
.case-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-case-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-case-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
  color: #ffffff;
}

.btn-case-primary i,
.btn-case-secondary i,
.btn-case-ghost i {
  flex-shrink: 0;
  font-size: 14px;
}

.btn-case-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-case-secondary:hover {
  background: rgba(37, 99, 235, 0.28);
  color: #ffffff;
  border-color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-case-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-case-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ── MOCKUP SHOWCASE FRAME ────────────────────────── */
.mockup-frame {
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8),
              0 0 50px -10px rgba(37, 99, 235, 0.15);
  margin-bottom: 56px;
}

.mockup-header-bar {
  background: #070a14;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-address-bar {
  flex: 1;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 11.5px;
  color: #94a3b8;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mockup-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mockup-visit-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
  border-color: #38bdf8;
}

.mockup-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #020617;
  line-height: 0;
}

.mockup-img-link {
  display: block;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

.mockup-viewport img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.mockup-img-link:hover img {
  transform: scale(1.02);
}

.mockup-hover-cue {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 8px 18px;
  background: rgba(14, 14, 14, 0.94);
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  opacity: 0.92;
  transition: all 0.25s ease;
  pointer-events: none;
}

.mockup-img-link:hover .mockup-hover-cue {
  background: #2563eb;
  border-color: #3b82f6;
  opacity: 1;
  transform: translateY(-2px);
}

/* ── SECTION CONTENT SYSTEM ───────────────────────── */
.case-section {
  padding: 52px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.case-section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.case-section-lead {
  font-size: 16px;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 820px;
  margin-bottom: 32px;
}

/* ── CHALLENGE & SOLUTION 2-COL ──────────────────── */
.challenge-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.cs-box {
  background: rgba(14, 14, 14, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.cs-box.challenge {
  border-left: 4px solid #ef4444;
}

.cs-box.solution {
  border-left: 4px solid #10b981;
}

.cs-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cs-box-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.cs-box.challenge .cs-box-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.cs-box.solution .cs-box-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.cs-box h3 {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.cs-box p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.cs-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.55;
}

.cs-points li i {
  margin-top: 3.5px;
  font-size: 13px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cs-box.challenge .cs-points li i { color: #f87171; }
.cs-box.solution .cs-points li i { color: #34d399; }

/* ── PROCESS TIMELINE ─────────────────────────────── */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
  position: relative;
}

.process-card {
  background: rgba(14, 14, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  position: relative;
  transition: all 0.3s ease;
}

.process-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-3px);
  background: rgba(20, 30, 55, 0.75);
}

.process-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #3b82f6;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.process-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.process-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

/* ── KEY FEATURES GRID ────────────────────────────── */
.case-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 32px 0;
}

.feature-box {
  background: rgba(14, 14, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.feature-box:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-4px);
  background: rgba(20, 30, 55, 0.75);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 18px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feature-box h4 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.feature-box p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

/* ── TECH STACK MATRIX ────────────────────────────── */
.tech-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.tech-layer-card {
  background: rgba(14, 14, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 20px;
}

.tech-layer-card h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #60a5fa;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-layer-card h4 i {
  font-size: 15px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tech-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tech-badge-deep {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  font-weight: 500;
  color: #e2e8f0;
}

/* ── OUTCOMES & IMPACT ────────────────────────────── */
.impact-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.impact-metric-box {
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.10) 0%, rgba(14, 14, 14, 0.88) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.impact-metric-box .val {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 40%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.impact-metric-box .desc {
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.4;
}

/* ── CLIENT TESTIMONIAL QUOTE ─────────────────────── */
.case-testimonial-card {
  background: rgba(14, 14, 14, 0.90);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 20px;
  padding: 36px 40px;
  margin: 40px 0;
  position: relative;
  backdrop-filter: blur(16px);
}

.case-testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  left: 30px;
  font-size: 76px;
  line-height: 1;
  color: rgba(59, 130, 246, 0.18);
  font-family: serif;
  pointer-events: none;
}

.case-testi-quote {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
  color: #e2e8f0;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  font-style: italic;
}

.case-testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.case-testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 2px solid #3b82f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 16px;
  flex-shrink: 0;
}

.case-testi-meta strong {
  display: block;
  font-size: 14.5px;
  color: #ffffff;
  font-weight: 700;
}

.case-testi-meta span {
  font-size: 12.5px;
  color: #94a3b8;
  display: block;
}

/* ── PREV / NEXT NAVIGATION LOOP ──────────────────── */
.project-loop-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  margin: 44px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 20px;
}

.loop-nav-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  max-width: 40%;
}

.loop-nav-item.next {
  text-align: right;
  align-items: flex-end;
}

.loop-nav-item .nav-direction {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3b82f6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.loop-nav-item .nav-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  transition: color 0.2s ease;
}

.loop-nav-item:hover .nav-title {
  color: #60a5fa;
}

.loop-nav-hub {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.loop-nav-hub:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ── RELATED PROJECTS ─────────────────────────────── */
.related-projects-section {
  padding: 40px 0 64px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

/* ── MODAL PROTOTYPE PREVIEW & INTERACTIVE RUNTIME ─── */
.prototype-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.prototype-modal.active {
  display: flex;
}

.prototype-modal-content {
  background: #0d0d0f;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 18px;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

.prototype-modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.modal-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.modal-live-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  display: inline-block;
  animation: modalPulse 1.8s infinite;
}

@keyframes modalPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.prototype-modal-header h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.prototype-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  line-height: 1;
}

.prototype-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.prototype-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-browser-chrome {
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.modal-browser-bar {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0b0b0b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-browser-url {
  flex: 1;
  max-width: 460px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12px;
  color: #94a3b8;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-url-launch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.modal-url-launch:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
}

.modal-viewport-box {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #020617;
  line-height: 0;
}

.modal-viewport-box img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.modal-viewport-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.90) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.modal-overlay-card {
  background: rgba(14, 14, 14, 0.94);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  padding: 16px 20px;
  width: 100%;
  backdrop-filter: blur(12px);
}

.modal-pulse-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.modal-pulse-row .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
}

.modal-pulse-row .pulse-txt {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.08em;
}

.modal-overlay-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.modal-specs-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: rgba(14, 14, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
}

.modal-spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.modal-spec-item .spec-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.modal-spec-item .spec-val {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-actions-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ADAPTATIONS (Desktop, Tablet, Mobile) ─ */

@media (max-width: 1024px) {
  .portfolio-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-meta-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 18px 20px;
  }
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .case-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .tech-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .impact-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .modal-specs-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    padding: 50px 0 32px;
  }
  .portfolio-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .portfolio-filter-bar {
    border-radius: 16px;
    padding: 10px;
    gap: 8px;
    margin: 32px auto 28px;
  }
  .portfolio-filter-pill {
    padding: 8px 14px;
    font-size: 12.5px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Case study mobile adjustments */
  .case-breadcrumbs {
    padding: 14px 0 10px;
    font-size: 12px;
    gap: 6px 10px;
  }
  .case-hero {
    padding: 16px 0 32px;
  }
  .case-hero h1 {
    font-size: clamp(24px, 6vw, 34px);
    line-height: 1.2;
    margin-bottom: 14px;
  }
  .case-hero-lead {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .case-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
    gap: 14px;
    margin-bottom: 28px;
    border-radius: 14px;
  }
  .case-meta-item .label {
    font-size: 10.5px;
  }
  .case-meta-item .value {
    font-size: 13px;
  }

  /* Case actions on mobile - full touch buttons */
  .case-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 28px;
    width: 100%;
  }
  .btn-case-primary,
  .btn-case-secondary,
  .btn-case-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 18px;
    font-size: 14px;
  }

  /* Mockup frame mobile */
  .mockup-frame {
    margin-bottom: 36px;
    border-radius: 14px;
  }
  .mockup-header-bar {
    padding: 10px 12px;
    gap: 8px;
  }
  .mockup-address-bar {
    font-size: 10.5px;
    padding: 4px 8px;
    max-width: 180px;
  }
  .mockup-viewport img {
    max-height: 280px;
  }
  .mockup-hover-cue {
    bottom: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 11px;
  }

  /* Section padding & titles */
  .case-section {
    padding: 36px 0;
  }
  .case-section-title {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .case-section-lead {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* Challenge & solution on mobile */
  .challenge-solution-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 24px;
  }
  .cs-box {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .cs-box-header {
    gap: 10px;
    margin-bottom: 12px;
  }
  .cs-box h3 {
    font-size: 17.5px;
  }
  .cs-box p {
    font-size: 13.5px;
    margin-bottom: 14px;
  }

  /* Process timeline on mobile */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 20px 0;
  }
  .process-card {
    padding: 18px 16px;
    border-radius: 14px;
    min-height: auto;
  }

  /* Key features on mobile */
  .case-features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 20px 0;
  }
  .feature-box {
    padding: 18px 16px;
    border-radius: 14px;
  }

  /* Tech matrix on mobile */
  .tech-matrix-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 20px 0;
  }
  .tech-layer-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  /* Impact metrics on mobile */
  .impact-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
  }
  .impact-metric-box {
    padding: 18px 12px;
    border-radius: 14px;
  }
  .impact-metric-box .val {
    font-size: 26px;
  }

  /* Testimonial on mobile */
  .case-testimonial-card {
    padding: 22px 18px;
    border-radius: 16px;
    margin: 28px 0;
  }
  .case-testimonial-card::before {
    font-size: 46px;
    top: 10px;
    left: 14px;
  }
  .case-testi-quote {
    font-size: 14.5px;
    margin-bottom: 16px;
  }
  .case-testi-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* Project loop nav on mobile */
  .project-loop-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 20px 0;
    margin: 28px 0;
  }
  .loop-nav-item,
  .loop-nav-item.next {
    max-width: 100%;
    width: 100%;
    align-items: center;
    text-align: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
  }
  .loop-nav-hub {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 16px;
  }

  /* Related grid on mobile */
  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Prototype modal on mobile */
  .prototype-modal {
    padding: 12px;
  }
  .prototype-modal-content {
    border-radius: 16px;
    max-height: 94vh;
  }
  .prototype-modal-header {
    padding: 14px 16px;
  }
  .prototype-modal-header h3 {
    font-size: 14.5px;
  }
  .prototype-modal-body {
    padding: 16px 14px;
  }
  .modal-viewport-box img {
    max-height: 220px;
  }
  .modal-specs-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
  }
  .modal-actions-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .modal-actions-footer .btn-case-primary,
  .modal-actions-footer .btn-case-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 440px) {
  .case-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 12px;
  }
  .impact-metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .modal-specs-strip {
    grid-template-columns: 1fr;
  }
  .mockup-address-bar {
    max-width: 120px;
  }
  .mockup-visit-btn span {
    display: none;
  }
}

/* ─── NDA Protected Badge on Portfolio Cards ─── */
.project-card-nda-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.project-card-nda-btn i {
  font-size: 10px;
}

/* ==========================================================================
   PORTFOLIO DETAIL POLISH: HERO BREATHING ROOM & MINIMAL TECH STACK CLOUD
   ========================================================================== */

/* ── Hero Breathing Room & Spacing ── */
.case-hero {
  padding: clamp(36px, 5vw, 54px) 0 clamp(40px, 6vw, 60px) !important;
}

.case-breadcrumbs {
  margin-bottom: 24px !important;
  gap: 10px !important;
}

.case-header-meta {
  gap: 12px !important;
  margin-bottom: 22px !important;
}

.case-hero h1 {
  font-size: clamp(30px, 4.2vw, 52px) !important;
  font-weight: 800 !important;
  line-height: 1.22 !important; /* Increased line-height for elegance */
  margin-bottom: 24px !important; /* Generous breathing room */
  letter-spacing: -0.025em !important;
}

.case-hero-lead {
  font-size: clamp(16px, 1.6vw, 19px) !important;
  line-height: 1.72 !important;
  margin-bottom: 38px !important; /* Breathing room before metadata strip */
  max-width: 900px !important;
}

.case-meta-grid {
  margin-bottom: 42px !important; /* Breathing room before actions */
  padding: 24px 28px !important;
  gap: 20px !important;
}

.case-actions {
  gap: 16px !important;
  margin-bottom: 44px !important; /* Breathing room before mockup */
}

@media (max-width: 768px) {
  .case-hero {
    padding: 24px 0 36px !important;
  }
  .case-hero h1 {
    font-size: clamp(24px, 7vw, 34px) !important;
    line-height: 1.24 !important;
    margin-bottom: 18px !important;
  }
  .case-hero-lead {
    margin-bottom: 26px !important;
    line-height: 1.65 !important;
  }
  .case-meta-grid {
    margin-bottom: 28px !important;
    padding: 16px 14px !important;
  }
  .case-actions {
    margin-bottom: 32px !important;
  }
}

/* ── Minimal Tech Stack Cloud (Completely Stripped Card Containers) ── */
.tech-matrix-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  margin: 28px 0 42px !important;
  background: rgba(14, 14, 14, 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 20px !important;
  padding: 26px 30px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.tech-layer-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
}

.tech-layer-card:not(:last-child) {
  padding-bottom: 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.tech-layer-card h4 {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: #7c9aff !important;
  margin: 0 !important;
  min-width: 170px !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.tech-tag-list {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 8px 10px !important;
  align-items: center !important;
  flex: 1 !important;
}

.tech-badge-deep {
  display: inline-flex !important;
  align-items: center !important;
  padding: 7px 16px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #f1f5f9 !important;
  letter-spacing: 0.01em !important;
  transition: all 0.2s ease !important;
}

.tech-badge-deep:hover {
  background: rgba(79, 134, 255, 0.16) !important;
  border-color: rgba(79, 134, 255, 0.45) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(13, 91, 255, 0.2) !important;
}

@media (max-width: 768px) {
  .tech-matrix-grid {
    padding: 20px 16px !important;
    gap: 16px !important;
  }
  .tech-layer-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .tech-layer-card h4 {
    min-width: unset !important;
  }
  .tech-badge-deep {
    font-size: 12px !important;
    padding: 5px 12px !important;
  }
}

/* ── 2. Massive Typographic Impact Metrics (Strip Box Borders) ── */
.impact-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 28px !important;
  margin: 40px 0 !important;
  padding: 10px 0 !important;
}

.impact-metric-box {
  background: transparent !important;
  border: none !important;
  border-left: 2px solid rgba(79, 134, 255, 0.4) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 8px 0 8px 22px !important;
  text-align: left !important;
  transition: border-color 0.25s ease !important;
}

.impact-metric-box:hover {
  border-left-color: #4f86ff !important;
}

.impact-metric-box .val {
  font-family: 'Manrope', -apple-system, sans-serif !important;
  font-size: clamp(2.8rem, 4.2vw, 4.4rem) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.035em !important;
  background: linear-gradient(135deg, #ffffff 35%, #4f86ff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  margin-bottom: 8px !important;
  display: block !important;
}

.impact-metric-box .desc {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  line-height: 1.5 !important;
}

@media (max-width: 900px) {
  .impact-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 480px) {
  .impact-metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
  .impact-metric-box {
    padding: 4px 0 4px 14px !important;
  }
  .impact-metric-box .val {
    font-size: 26px !important;
  }
  .impact-metric-box .desc {
    font-size: 11.5px !important;
  }
}
