/* ==========================================================================
   Base & Design System (Theme Variables)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root, [data-theme="light"] {
  /* LIGHT THEME (Locked: Blue-Green Mix with Emerald) */
  --bg: #e6f0ed; /* Matches video background exactly */
  --surface: #FFFFFF;
  --surface-hover: #F3F4F6;
  --text-main: #111827;
  --text-muted: #4B5563;
  --border: #E5E7EB;
  
  /* Accents */
  --primary: #059669; /* Deep Emerald */
  --primary-hover: #047857;
  --secondary: #D4A373; /* Gold/Bronze */
  
  /* Effects */
  --glow: rgba(5, 150, 105, 0.08);
  --mesh-1: rgba(5, 150, 105, 0.1);
  --mesh-2: rgba(4, 120, 87, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  /* Base Dark Theme (Deep Slate) */
  --bg: #12141C;
  --surface: #1A1D27;
  --surface-hover: #252A36;
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --border: #2D3342;
  
  /* DEFAULT: Emerald Green */
  --primary: #10B981; 
  --primary-hover: #059669;
  --secondary: #D4A373; 
  --glow: rgba(16, 185, 129, 0.12);
  --mesh-1: rgba(16, 185, 129, 0.15);
  --mesh-2: rgba(13, 148, 136, 0.15);
  --glass-bg: rgba(18, 20, 28, 0.85);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

[data-color-theme="midnight-blue"] {
  /* Deep Navy Background with Electric Blue Accents */
  --bg: #0B1121;
  --surface: #131B2F;
  --surface-hover: #1E293B;
  --border: #1E293B;
  --primary: #3B82F6; /* Electric Blue */
  --primary-hover: #2563EB;
  --secondary: #38BDF8;
  --glow: rgba(59, 130, 246, 0.12);
  --mesh-1: rgba(59, 130, 246, 0.15); /* Blue */
  --mesh-2: rgba(14, 165, 233, 0.15); /* Sky Cyan */
}

[data-color-theme="deep-ocean"] {
  /* Dark Teal Background with Cyan/Mint Accents */
  --bg: #07161B;
  --surface: #0F2229;
  --surface-hover: #193640;
  --border: #193640;
  --primary: #06B6D4; /* Cyan */
  --primary-hover: #0891B2;
  --secondary: #10B981;
  --glow: rgba(6, 182, 212, 0.12);
  --mesh-1: rgba(6, 182, 212, 0.15); /* Cyan */
  --mesh-2: rgba(16, 185, 129, 0.15); /* Mint Green */
}

[data-color-theme="neon-mint"] {
  /* Ultra-dark slate with extremely bright Mint/Green accents */
  --bg: #090B10;
  --surface: #11151F;
  --surface-hover: #1B2130;
  --border: #1B2130;
  --primary: #2DD4BF; /* Neon Mint */
  --primary-hover: #14B8A6;
  --secondary: #34D399;
  --glow: rgba(45, 212, 191, 0.12);
  --mesh-1: rgba(45, 212, 191, 0.15); /* Mint */
  --mesh-2: rgba(16, 185, 129, 0.15); /* Emerald */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

blockquote {
  margin: 0;
  padding: 0;
  border: none;
  font-style: normal;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  background-image: var(--bg-gradient, none);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.2;
  color: var(--text-main);
}

.serif-text {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 12px 0;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background-color: var(--surface-hover);
  color: var(--text-main);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background-color: var(--primary);
  color: #0B0F19 !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
[data-theme="light"] .btn-primary {
  color: #fff !important;
}
[data-color-theme="monochrome"] .btn-primary {
  color: #0B0F19 !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.btn-outline:hover {
  background-color: var(--surface);
  border-color: var(--text-muted);
}

/* ==========================================================================
   Floating Theme Panel (For Design Review)
   ========================================================================== */
.theme-panel {
  position: fixed;
  top: 80px;
  right: 24px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 12px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.theme-panel-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94A3B8;
  font-weight: 700;
  margin-bottom: 4px;
}
.theme-panel button {
  background: #1E293B;
  color: #F8FAFC;
  border: 1px solid #334155;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.theme-panel button:hover, .theme-panel button.active {
  background: #10B981;
  border-color: #10B981;
}

/* ==========================================================================
   Hero Scroll Cue & Section Bridge
   ========================================================================== */
.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 0 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.scroll-arrow {
  animation: bounceDown 1.8s ease-in-out infinite;
  color: var(--primary);
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* Bridge between Hero and Journey */
.section-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 24px;
  gap: 0;
}

.bridge-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary));
  opacity: 0.35;
}

.bridge-line:last-child {
  background: linear-gradient(to left, transparent, var(--primary));
}

.bridge-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(5, 150, 105, 0.08);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 110px 0 40px;
  position: relative;
  /* Removed overflow: hidden so background glows can bleed smoothly into next section */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center; /* Vertically centers both columns */
  min-height: calc(100vh - 110px); /* Fills the viewport height */
}

.hero-content {
  text-align: left;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatAvatar 6s ease-in-out infinite;
  /* Fade edges into background — works regardless of video background color */
  -webkit-mask-image: radial-gradient(ellipse 85% 90% at 55% 50%, black 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 90% at 55% 50%, black 55%, transparent 100%);
}

@keyframes floatAvatar {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.hero-image img,
.hero-image video {
  width: 100%;
  max-width: 550px;
  display: block;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  filter: blur(90px);
  -webkit-filter: blur(90px);
  pointer-events: none;
}

.hero::before {
  top: -10%; 
  left: -5%;
  width: 50vw; height: 50vw;
  max-width: 500px; max-height: 500px;
  background: var(--mesh-1);
}

.hero::after {
  bottom: 0%; 
  left: 25%; 
  right: auto; /* moved from right side to left side */
  width: 40vw; height: 40vw;
  max-width: 400px; max-height: 400px;
  background: var(--mesh-2);
}

.hero-intro {
  display: none; /* Removed */
}

.hero-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 20px;
}

.hero-prose {
  margin-bottom: 40px;
}

.prose-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

/* Fancy blockquote for the poetic lines */
.prose-fancy {
  border-left: none; /* Temporarily removed for debugging */
  margin: 0 0 0 0;
  padding: 12px 0 12px 0;
  position: relative;
}

.prose-fancy::before {
  content: '\201C'; /* Opening curly quote */
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  top: -10px;
  left: -10px;
  line-height: 1;
  pointer-events: none;
}

.prose-fancy p {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.9;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.prose-fancy p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text-main);
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  justify-content: flex-start;
}

.hero-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.badge {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--surface);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-strip {
  background-color: transparent;
  padding: 20px 0 60px 0;
}

.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px; /* Brings the two items closer together in the center */
  text-align: center;
}

.stat-item {
  /* Removed border for cleaner flex layout */
  padding: 0 20px;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  margin-bottom: 4px;
}
.stat-num span {
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.section {
  padding: 64px 0;
}

.about-grid {
  max-width: 800px;
  margin: 0 auto;
}

.about-stanza {
  position: sticky;
  top: 120px;
}

.avatar-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 32px;
  border: 2px solid var(--border);
  background: var(--surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
}

.stanza-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-main);
  border-left: 2px solid var(--primary);
  padding-left: 24px;
  font-style: italic;
}

.about-story p {
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ==========================================================================
   Winding Road Process Timeline (Exact Replica)
   ========================================================================== */
.road-node {
  position: absolute;
  z-index: 2;
}

.road-circle {
  position: absolute;
  left: -32px;
  top: -32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 3;
}

.road-content {
  position: absolute;
  right: 50px;
  width: 240px;
  text-align: right;
  z-index: 2;
}

.road-content h4 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.road-content p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Expertise Cards
   ========================================================================== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.expertise-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.expertise-icon {
  width: 48px;
  height: 48px;
  background-color: var(--surface-hover);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  transition: background-color 0.3s;
}

.expertise-card:hover .expertise-icon {
  background-color: var(--glow);
}

.expertise-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.expertise-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Software Stack
   ========================================================================== */
.stack-section {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.stack-grid {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.stack-item h4 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.stack-item p {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   CTA & Footer
   ========================================================================== */
.cta-section {
  text-align: center;
  padding: 120px 0;
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 40px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: var(--text-muted);
}
.footer-social a:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .about-grid, .timeline { grid-template-columns: 1fr; }
  .about-stanza { position: relative; top: 0; }
  .stack-grid { gap: 32px; }
  
  /* Enable horizontal scroll on mobile for the wide winding road */
  .journey-section .container {
    overflow-x: auto;
    padding-bottom: 20px;
  }
  .road-container {
    width: 1200px !important;
    height: 450px !important;
  }
}
@media (max-width: 768px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
    flex-direction: column;
  }
  .hero-badges {
    justify-content: center;
  }
  .nav-links { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .footer-content { flex-direction: column; gap: 24px; }
}
/* ==========================================================================
   Experience Page - Tabs, Bento & Soft Cards
   ========================================================================== */
.experience-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 60px;
  text-align: center;
}

.experience-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.experience-hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Modern Segmented Controls */
.tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.segmented-control {
  display: inline-flex;
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 100px;
  position: relative;
}

.tab-btn {
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s ease;
}

.tab-btn.active {
  color: var(--text-main);
}

.tab-indicator {
  position: absolute;
  top: 6px;
  left: 6px;
  bottom: 6px;
  background: var(--surface-hover);
  border-radius: 100px;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glassmorphism Soft Cards for Software Grid */
.software-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.software-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.software-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: var(--primary);
  z-index: 2;
}

.software-card .icon-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.software-card:hover .icon-wrap {
  transform: scale(1.1);
}

.software-card h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.software-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--glow);
  padding: 4px 12px;
  border-radius: 100px;
}

/* Bento Box Technical Expertise */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.bento-icon {
  width: 56px;
  height: 56px;
  background: var(--surface-hover);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 32px;
}

.bento-card h3 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bento-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-list li {
  font-size: 1.05rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.bento-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: block;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .software-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card { padding: 32px; }
}
@media (max-width: 600px) {
  .software-grid { grid-template-columns: 1fr; }
  .segmented-control { width: 100%; display: flex; }
  .tab-btn { flex: 1; padding: 12px 0; text-align: center; }
}
/* ==========================================================================
   Case Studies Page
   ========================================================================== */
.case-studies-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 60px;
  text-align: center;
}
.case-studies-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}
.case-studies-hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.case-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 80px;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  border-color: var(--primary);
}

.case-header .case-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  display: block;
  margin-bottom: 16px;
}

.case-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.case-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 700;
}

.case-section p {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.7;
}

@media (max-width: 992px) {
  .case-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }
}
