/* ============================================
   DESIGN SYSTEM — Raj Jaiswal Portfolio
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Backgrounds */
  --bg-primary: #0E1116;
  --bg-secondary: #131722;
  --bg-tertiary: #161B26;
  --bg-card: #1B2130;
  --bg-card-hover: #212738;
  /* Borders */
  --border: #2A3142;
  --border-subtle: #232A3A;
  /* Text */
  --text-primary: #E8ECF1;
  --text-secondary: #9AA4B2;
  --text-tertiary: #6B7280;
  /* Accent */
  --accent: #4F46E5;
  --accent-light: #6366F1;
  --accent-lighter: #818CF8;
  --accent-glow: rgba(79, 70, 229, 0.25);
  --accent-glow-strong: rgba(79, 70, 229, 0.30);
  --accent-glow-subtle: rgba(79, 70, 229, 0.12);
  /* Indicators only */
  --success: #22C55E;
  --warning: #38BDF8;
  --danger: #EF4444;
  /* Typography */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  /* Layout */
  --max-width: 1160px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 1px rgba(42, 49, 66, 0.5);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 40px rgba(79, 70, 229, 0.15);
  --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.15);
  /* Transitions */
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  background-image: linear-gradient(180deg, #0E1116 0%, #131722 50%, #161B26 100%);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

::selection {
  background: var(--accent);
  color: white;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.1s;
}

.fade-in-delay-2 {
  transition-delay: 0.2s;
}

.fade-in-delay-3 {
  transition-delay: 0.3s;
}

.fade-in-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  transition: var(--transition-smooth);
}

.nav.scrolled {
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(42, 49, 66, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: white !important;
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 8px;
  transition: all var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background: linear-gradient(170deg, #0E1116 0%, #111520 40%, #161B26 100%);
}

/* Grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 15%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 15%, transparent 65%);
  animation: grid-shimmer 10s ease-in-out infinite;
}

@keyframes grid-shimmer {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* Ambient glow — indigo */
.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.20) 0%, rgba(79, 70, 229, 0.08) 35%, transparent 65%);
  top: 10%;
  right: 5%;
  pointer-events: none;
  filter: blur(80px);
  animation: glow-pulse 8s ease-in-out infinite;
}

/* Secondary glow — subtle indigo on left */
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
  bottom: 10%;
  left: -5%;
  pointer-events: none;
  filter: blur(100px);
}

@keyframes glow-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent-glow);
  border: 1px solid rgba(79, 70, 229, 0.25);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 28px;
  font-family: var(--font-mono);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-name {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.hero-headline {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.hero-credibility {
  font-size: 15px;
  color: var(--accent-light);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 500px;
  letter-spacing: -0.01em;
}

.hero-subtext {
  font-size: 16px;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
  opacity: 0.85;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 12px rgba(79, 70, 229, 0.15);
  position: relative;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, #7C3AED 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow-strong), 0 0 40px rgba(79, 70, 229, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

/* Hero Visual — KPI Cards */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Radial glow behind KPI grid */
.hero-visual::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.07) 0%, rgba(79, 70, 229, 0.02) 50%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(50px);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.kpi-card:hover {
  border-color: rgba(79, 70, 229, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.kpi-card--secondary {
  background: transparent;
  border-color: var(--border-subtle);
  box-shadow: none;
  padding: 20px 24px;
}

.kpi-card--secondary .kpi-value {
  font-size: 24px;
}

.kpi-card--secondary:hover {
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
  transform: none;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.kpi-value.accent {
  color: var(--accent-light);
}

.kpi-value.success {
  color: var(--success);
}

.kpi-value.warning {
  color: var(--warning);
}

.kpi-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 100px;
}

.kpi-change.positive {
  color: var(--success);
  background: rgba(34, 197, 94, 0.1);
}

.kpi-change.negative {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

/* Mini sparkline effect */
.kpi-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-top: 14px;
  height: 28px;
}

.kpi-sparkline .bar {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 100%);
  opacity: 0.25;
  transition: all var(--transition-fast);
}

.kpi-card:hover .kpi-sparkline .bar {
  opacity: 0.7;
}

/* ============================================
   PROOF BAR SECTION
   ============================================ */
.proof-bar {
  padding: 64px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.proof-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(79, 70, 229, 0.04) 50%, transparent 100%);
  pointer-events: none;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.proof-card {
  background: var(--bg-secondary);
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: background var(--transition-fast);
  position: relative;
}

.proof-card:hover {
  background: var(--bg-card);
}

.proof-card:hover .proof-icon {
  transform: scale(1.15);
}

.proof-icon {
  font-size: 24px;
  margin-bottom: 4px;
  transition: transform var(--transition-spring);
  filter: grayscale(0.15);
}

.proof-stat {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.proof-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-stat {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience {
  position: relative;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.exp-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

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

.exp-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid rgba(79, 70, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.exp-role {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.exp-org {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.exp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.exp-list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.exp-list li::before {
  content: '→';
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
}

.project-card:hover {
  border-color: rgba(79, 70, 229, 0.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.project-preview {
  width: 100%;
  height: 220px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

/* Overlay gradient for depth — blends into card */
.project-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 17, 22, 0.15) 0%, transparent 30%, transparent 55%, rgba(27, 33, 48, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.88;
  filter: brightness(0.88) saturate(0.9);
  transition: all var(--transition-smooth);
}

.project-card:hover .project-preview img {
  opacity: 1;
  filter: brightness(0.95) saturate(0.95);
  transform: scale(1.02);
}

/* Preview placeholder pattern */
.project-preview-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.project-preview-icon {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(79, 70, 229, 0.10);
  border: 1px solid rgba(79, 70, 229, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 24px rgba(79, 70, 229, 0.1);
  transition: all var(--transition-fast);
}

.project-card:hover .project-preview-icon {
  box-shadow: 0 0 32px rgba(79, 70, 229, 0.2);
  transform: scale(1.05);
}

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

.project-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text-primary);
}

.project-impact {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
  flex: 1;
}

.project-impact .impact-metric {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-light);
  margin-top: 8px;
  opacity: 0.9;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-light);
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-light);
  transition: all var(--transition-fast);
  padding: 6px 0;
}

.project-link:hover {
  gap: 12px;
  color: var(--accent-lighter);
  text-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

.project-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.project-link:hover svg {
  transform: translateX(2px);
}

.project-hook {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* ============================================
   HOW I THINK SECTION
   ============================================ */
.philosophy {
  position: relative;
}

.philosophy-header {
  text-align: center;
  margin-bottom: 64px;
}

.philosophy-header .section-subtitle {
  margin: 0 auto;
}

.philosophy-statement {
  text-align: center;
  margin-bottom: 56px;
}

.philosophy-highlight-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 680px;
  margin: 0 auto;
}

.philosophy-statement .muted {
  color: var(--text-secondary);
}

.philosophy-statement .highlight {
  color: var(--accent-light);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: all var(--transition-fast);
  position: relative;
  box-shadow: var(--shadow-card);
}

.principle-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.principle-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid rgba(79, 70, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 18px;
}

.principle-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
}

.principle-subtext {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.skill-category:hover {
  border-color: rgba(79, 70, 229, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.skill-category-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-category-title .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(79, 70, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-list li {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}

.skill-list li:hover {
  color: var(--text-primary);
}

.skill-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.testimonial-quote {
  flex: 1;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-quote .quote-mark {
  position: absolute;
  top: -8px;
  left: -4px;
  font-size: 48px;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  pointer-events: none;
}

.testimonial-quote p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 8px;
}

.testimonial-quote .highlight-phrase {
  color: var(--accent-light);
  font-weight: 600;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  gap: 12px;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.author-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.author-context {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

.verified-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 100px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  text-align: center;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
}

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-card .section-title {
  font-size: 28px;
}

.cta-highlight {
  color: var(--accent-light);
  font-weight: 700;
}

.cta-card .section-subtitle {
  max-width: 100%;
  margin: 0 auto 32px;
}

.cta-card .contact-links {
  margin-top: 0;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.contact-link:hover {
  border-color: rgba(79, 70, 229, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover), var(--shadow-glow);
}

.contact-link svg {
  width: 18px;
  height: 18px;
  color: var(--accent-light);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================
   CASE STUDY PAGE
   ============================================ */
.case-study-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.case-study-hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
  top: -20%;
  right: -5%;
  pointer-events: none;
  filter: blur(60px);
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  transition: color var(--transition-fast);
}

.case-back:hover {
  color: var(--accent-light);
}

.case-back svg {
  width: 16px;
  height: 16px;
}

.case-title {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 800px;
}

.case-outcome {
  font-size: 18px;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 28px;
  max-width: 700px;
}

.case-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.case-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.case-meta-item .label {
  color: var(--text-secondary);
}

.case-meta-item .value {
  color: var(--text-primary);
  font-weight: 600;
}

/* Case study content */
.case-content {
  padding: 80px 0;
}

.case-section {
  margin-bottom: 72px;
}

.case-section:last-child {
  margin-bottom: 0;
}

.case-section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.case-section-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.3;
}

.case-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 720px;
}

.case-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Architecture diagram */
.case-architecture {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 28px;
  overflow-x: auto;
}

.arch-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.arch-node {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.4;
  min-width: 120px;
}

.arch-node.highlight {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent-light);
}

.arch-arrow {
  font-size: 18px;
  color: var(--text-secondary);
}

/* Model details */
.model-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 28px;
}

.model-detail-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.model-detail-item:last-child {
  margin-bottom: 0;
}

.model-detail-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  min-width: 140px;
  padding-top: 2px;
}

.model-detail-value {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Dashboard screenshot */
.case-dashboard {
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.case-dashboard img {
  width: 100%;
  height: auto;
  display: block;
}

.dashboard-callout {
  position: absolute;
  background: rgba(14, 17, 22, 0.92);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 200px;
  backdrop-filter: blur(8px);
}

.dashboard-callout::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  display: inline-block;
  margin-right: 6px;
}

/* Impact metrics */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.impact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.impact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: var(--shadow-hover);
}

.impact-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.impact-value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: -0.02em;
}

.impact-detail {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Insights list */
.insights-list {
  list-style: none;
  margin-top: 20px;
}

.insights-list li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.insights-list li:last-child {
  border-bottom: none;
}

.insights-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Learning reflection */
.learning-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
}

/* Case study navigation */
.case-nav {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.case-nav-link {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  flex: 1;
  max-width: 48%;
}

.case-nav-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.case-nav-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.case-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.case-nav-link.next {
  text-align: right;
  margin-left: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    gap: 48px;
  }

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

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

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

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

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

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

  .hero-name {
    font-size: 44px;
  }

  .case-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  /* ============================================
     MOBILE DESIGN SYSTEM
     Unified layout, spacing, and behavior
     ============================================ */

  /* --- CONTAINER & SPACING SYSTEM --- */
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 60px 0;
  }

  /* Consistent spacing between section header and content */
  .fade-in + .experience-grid,
  .fade-in + .projects-grid,
  .fade-in + .principles-grid,
  .fade-in + .skills-grid,
  .fade-in + .testimonials-grid,
  .fade-in + .analytics-grid,
  .fade-in + .kpi-grid {
    margin-top: 32px;
  }

  /* --- TYPOGRAPHY SYSTEM --- */
  .section-title {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .section-subtitle {
    font-size: 14px;
    line-height: 1.7;
    max-width: 100%;
  }

  .section-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
  }

  /* --- NAVIGATION --- */
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(14, 17, 22, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px 20px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  /* ============================================
     HERO SECTION - MOBILE OPTIMIZED
     ============================================ */
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-content {
    gap: 32px;
  }

  .hero-text {
    max-width: 100%;
  }

  /* Hero Typography */
  .hero-badge {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 22px;
  }

  .hero-name {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .hero-headline {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .hero-credibility {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    max-width: 100%;
  }

  .hero-subtext {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 100%;
  }

  /* Hero CTAs */
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 14px;
  }

  .hero-visual {
    width: 100%;
  }

  /* ============================================
     UNIFIED CARD SYSTEM - HORIZONTAL SCROLL
     All card sections follow the same pattern
     ============================================ */

  /* Base horizontal scroll container */
  .experience-grid,
  .projects-grid,
  .principles-grid,
  .skills-grid,
  .testimonials-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 12px;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: none !important;
  }

  /* Analytics grid - vertical stack (only 2 cards) */
  .analytics-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    grid-template-columns: none !important;
  }

  /* Hide scrollbar */
  .experience-grid::-webkit-scrollbar,
  .projects-grid::-webkit-scrollbar,
  .principles-grid::-webkit-scrollbar,
  .skills-grid::-webkit-scrollbar,
  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  /* Unified card sizing - shows peek of next card */
  .exp-card,
  .project-card,
  .principle-card,
  .skill-category,
  .testimonial-card {
    min-width: 82%;
    max-width: 82%;
    flex: 0 0 auto;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  /* Analytics cards - full width stacked */
  .analytics-card {
    width: 100%;
    max-width: 100%;
    min-width: auto;
  }

  /* ============================================
     UNIFIED CARD STYLING
     All cards have consistent padding and spacing
     ============================================ */

  /* Standard cards */
  .exp-card,
  .principle-card,
  .skill-category,
  .testimonial-card {
    padding: 24px;
  }

  /* Project cards - separate body padding */
  .project-body {
    padding: 24px;
  }

  .project-preview {
    height: 190px;
  }

  /* Analytics cards */
  .analytics-card-body {
    padding: 18px 20px;
  }

  /* ============================================
     CARD CONTENT - REDUCED DENSITY
     ============================================ */

  /* Experience cards */
  .exp-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .exp-role {
    font-size: 15px;
    line-height: 1.3;
  }

  .exp-org {
    font-size: 12px;
    margin-top: 3px;
  }

  .exp-list {
    gap: 8px;
  }

  .exp-list li {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Project cards */
  .project-title {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .project-impact {
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 16px;
  }

  .project-impact .impact-metric {
    font-size: 11px;
    margin-top: 8px;
  }

  .project-tags {
    gap: 6px;
    margin-bottom: 16px;
  }

  .project-tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  .project-link {
    font-size: 13px;
  }

  .project-hook {
    font-size: 10px;
    margin-top: 6px;
  }

  /* Principle cards */
  .principle-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin-bottom: 14px;
  }

  .principle-text {
    font-size: 13px;
    line-height: 1.5;
  }

  .principle-subtext {
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.5;
  }

  /* Skills cards */
  .skill-category-title {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .skill-category-title .icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .skill-list {
    gap: 8px;
  }

  .skill-list li {
    font-size: 12px;
    line-height: 1.5;
  }

  /* Testimonial cards */
  .testimonial-quote p {
    font-size: 13px;
    line-height: 1.7;
    padding-left: 6px;
  }

  .testimonial-quote .quote-mark {
    font-size: 36px;
    top: -6px;
    left: -2px;
  }

  .testimonial-author {
    padding-top: 14px;
    gap: 10px;
  }

  .author-name {
    font-size: 13px;
  }

  .author-role {
    font-size: 11px;
  }

  .author-context {
    font-size: 10px;
  }

  .verified-badge {
    font-size: 9px;
    padding: 3px 7px;
  }

  /* Analytics cards */
  .analytics-card-title {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .analytics-card-desc {
    font-size: 12px;
    line-height: 1.65;
  }

  .analytics-card-cta {
    font-size: 12px;
    margin-top: 10px;
  }

  /* ============================================
     KPI GRID - 2 COLUMN LAYOUT
     ============================================ */
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .kpi-card {
    padding: 18px;
  }

  .kpi-value {
    font-size: 24px;
  }

  /* ============================================
     PHILOSOPHY SECTION
     ============================================ */
  .philosophy-header {
    margin-bottom: 36px;
  }

  .philosophy-statement {
    margin-bottom: 36px;
  }

  .philosophy-highlight-text {
    font-size: 16px;
    line-height: 1.5;
  }

  /* ============================================
     CONTACT SECTION
     ============================================ */
  .cta-card {
    padding: 40px 24px;
  }

  .cta-card .section-title {
    font-size: 22px;
    line-height: 1.3;
  }

  .cta-card .section-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .contact-links {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .contact-links > a {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  /* ============================================
     CASE STUDY PAGES
     ============================================ */
  .case-title {
    font-size: 26px;
  }

  .case-nav {
    flex-direction: column;
  }

  .case-nav-link {
    max-width: 100%;
  }

  /* ============================================
     INTERACTION STATES - MOBILE
     ============================================ */
  .exp-card:active,
  .project-card:active,
  .principle-card:active,
  .skill-category:active,
  .testimonial-card:active,
  .analytics-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
  }
}

@media (max-width: 480px) {
  /* ============================================
     SMALL MOBILE - TIGHTER SPACING
     ============================================ */

  /* Tighter spacing for small screens */
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 50px 0;
  }

  /* Hero section */
  .hero {
    padding-top: 100px;
    padding-bottom: 50px;
  }

  .hero-name {
    font-size: 28px;
  }

  .hero-headline {
    font-size: 16px;
  }

  .hero-credibility {
    font-size: 12px;
  }

  .hero-subtext {
    font-size: 12px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 4px 10px;
  }

  /* KPI Grid - Single Column */
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  /* Contact card */
  .cta-card {
    padding: 36px 20px;
  }
}

/* ============================================
   DECISION DASHBOARD PREVIEW
   ============================================ */
.case-dashboard-preview {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.dashboard-image {
  width: 100%;
  display: block;
}

/* ============================================
   LIVE ANALYTICS SYSTEMS — HOMEPAGE
   ============================================ */
.analytics-section {
  padding: 100px 0 60px;
  position: relative;
  z-index: 1;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.analytics-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
  display: block;
  text-decoration: none;
  color: inherit;
}

.analytics-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.analytics-card-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.analytics-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.analytics-card:hover .analytics-card-preview img {
  transform: scale(1.03);
}

.analytics-card-body {
  padding: 20px 24px;
}

.analytics-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.analytics-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.analytics-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  margin-top: 12px;
  transition: gap var(--transition-fast);
}

.analytics-card:hover .analytics-card-cta {
  gap: 10px;
}

@media (max-width: 768px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}