/* Executive Architectural & BIM Engineering Portfolio Stylesheet */
:root {
  --bg-primary: #090d16;
  --bg-secondary: #0d1424;
  --bg-surface: #121a2d;
  --bg-card: rgba(14, 20, 35, 0.7);
  --bg-card-hover: rgba(20, 29, 50, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(255, 255, 255, 0.18);
  --border-active: #38bdf8;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-blue: #38bdf8;
  --accent-steel: #60a5fa;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-surface: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #f8fafc;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(0, 0, 0, 0.16);
  --text-primary: #090d16;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 3px 0 #020617,
    0 6px 14px rgba(15, 23, 42, 0.25);
}

[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 5px 0 #020617,
    0 10px 18px rgba(15, 23, 42, 0.35);
}

[data-theme="light"] .btn-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-top-color: #e2e8f0;
  box-shadow: 
    inset 0 1px 0 #ffffff,
    0 3px 0 #94a3b8,
    0 6px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-secondary:hover {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: #94a3b8;
  box-shadow: 
    inset 0 1px 0 #ffffff,
    0 5px 0 #64748b,
    0 10px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-card-action {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-top-color: #e2e8f0;
  box-shadow: 
    inset 0 1px 0 #ffffff,
    0 3px 0 #94a3b8,
    0 6px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-card-action:hover {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 5px 0 #0369a1,
    0 10px 18px rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .nav-btn {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: #334155;
  border: 1px solid #cbd5e1;
  border-top-color: #e2e8f0;
  box-shadow: 
    inset 0 1px 0 #ffffff,
    0 2px 0 #94a3b8,
    0 4px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-btn:hover {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #38bdf8;
  color: #0284c7;
  box-shadow: 
    inset 0 1px 0 #ffffff,
    0 3px 0 #0284c7,
    0 6px 12px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .nav-btn:active {
  transform: translateY(1px) !important;
  box-shadow: 
    inset 0 1px 0 #ffffff,
    0 1px 0 #0284c7,
    0 2px 3px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .nav-divider {
  background: rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Technical Grid Overlay */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient Architectural Wireframe Running Top to Bottom */
.bg-wireframe-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/subtle_architectural_wireframe.jpg');
  background-size: 800px auto;
  background-repeat: repeat;
  background-position: center top;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 65%);
  top: -200px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* Navbar - Minimalist Technical Bar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.navbar .container {
  max-width: 1440px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-monogram {
  width: 36px;
  height: 36px;
  background: #ffffff;
  color: #090d16;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.5px;
}

.brand-info h1 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.brand-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: block;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Tactile 3D Navigation Buttons (Matching Export PDF) */
.nav-btn {
  padding: 7px 12px;
  font-size: 0.81rem;
  gap: 7px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-btn i {
  font-size: 0.78rem;
  color: var(--accent-blue);
  transition: transform 0.15s ease;
}

.nav-btn:hover i {
  transform: scale(1.15);
}

.nav-btn:hover {
  border-color: #38bdf8;
  border-top-color: #7dd3fc;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 5px 0 #020617,
    0 10px 18px rgba(56, 189, 248, 0.25);
}

.nav-btn.active {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 0 #075985,
    0 4px 10px rgba(56, 189, 248, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 12px;
}

.nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
}

.mobile-toggle {
  display: none !important;
  width: 36px;
  height: 36px;
  padding: 0;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* Executive Tactile 3D Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
  position: relative;
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.12s cubic-bezier(0.4, 0, 0.2, 1), 
              background 0.2s ease, 
              border-color 0.2s ease, 
              color 0.2s ease;
}

.btn:active {
  transform: translateY(2px) !important;
}

.btn-primary {
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  color: #090d16;
  border: 1px solid #ffffff;
  border-bottom: 1px solid #cbd5e1;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 0 #94a3b8,
    0 6px 14px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 0 #ffffff,
    0 5px 0 #94a3b8,
    0 10px 20px rgba(0, 0, 0, 0.45);
}

.btn-primary:active {
  transform: translateY(2px) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 0 #64748b,
    0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

.btn-secondary {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 3px 0 #020617,
    0 6px 12px rgba(0, 0, 0, 0.4);
}

.btn-secondary:hover {
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border-color: rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 5px 0 #020617,
    0 10px 18px rgba(0, 0, 0, 0.5);
}

.btn-secondary:active {
  transform: translateY(2px) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 0 #020617,
    0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.btn-outline {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 3px 0 rgba(0, 0, 0, 0.6),
    0 5px 10px rgba(0, 0, 0, 0.3);
}

.btn-outline:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 5px 0 rgba(0, 0, 0, 0.7),
    0 8px 16px rgba(0, 0, 0, 0.4);
}

.btn-outline:active {
  transform: translateY(2px) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(0, 0, 0, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.12s cubic-bezier(0.4, 0, 0.2, 1), 
              color 0.2s ease;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 2px 0 #020617,
    0 4px 8px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 3px 0 #020617,
    0 6px 12px rgba(0, 0, 0, 0.4);
}

.theme-toggle:active {
  transform: translateY(1px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 0 #020617,
    0 2px 3px rgba(0, 0, 0, 0.2);
}

/* Hero Section - Clean Two-Column Architecture */
.hero {
  padding: 70px 0 50px;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-intro {
  display: flex;
  flex-direction: column;
}

.status-badge-row {
  display: flex;
  margin-bottom: 18px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.hero-title {
  font-size: clamp(1.75rem, 2.25vw, 2.1rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1px;
  margin-bottom: 14px;
  color: #ffffff;
}

@media (min-width: 993px) {
  .hero-line-nowrap {
    white-space: nowrap;
  }
}

.hero-title span.text-highlight {
  color: var(--accent-blue);
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 14px;
  line-height: 1.5;
}

.hero-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 26px;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

/* Quick Specs Chip Row */
.hero-quick-specs {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.spec-chip {
  display: flex;
  flex-direction: column;
}

.spec-chip strong {
  font-size: 0.92rem;
  font-family: var(--font-mono);
  color: #ffffff;
}

.spec-chip span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
}

/* Authentic Production Systems Console */
.system-console-frame {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transition: var(--transition-normal);
}

.system-console-frame:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.console-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.console-controls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

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

.console-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.8px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-pill {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.console-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.console-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.console-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-focus);
  transform: translateX(3px);
}

.console-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.console-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 0.95rem;
}

.console-item h5 {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.console-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.console-metric {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--accent-blue);
}

.console-footer {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Metrics Section */
.metrics-section {
  padding: 20px 0 60px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: left;
  transition: var(--transition-fast);
}

.metric-card:hover {
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 2px;
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Section Header Styles */
.section {
  padding: 70px 0;
  position: relative;
}

.section-header {
  margin-bottom: 44px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.65;
}

/* Automation Tools Section */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tool-card:hover {
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
}

.tool-card-top {
  margin-bottom: 18px;
}

.tool-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tool-icon-wrapper,
.tool-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.tool-tag-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-blue);
}

.tool-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tool-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 12px;
}

.tool-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

/* Tactile 3D Card Action Button */
.btn-card-action {
  width: 100%;
  padding: 11px 16px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: #f1f5f9;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  user-select: none;
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.12s cubic-bezier(0.4, 0, 0.2, 1), 
              background 0.2s ease, 
              border-color 0.2s ease, 
              color 0.2s ease;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 0 #020617,
    0 8px 16px rgba(0, 0, 0, 0.5);
}

.btn-card-action:hover {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
  border-top-color: #7dd3fc;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 6px 0 #075985,
    0 12px 22px rgba(56, 189, 248, 0.35);
}

.btn-card-action:active {
  transform: translateY(2px) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 0 #075985,
    0 2px 5px rgba(0, 0, 0, 0.4) !important;
}

.btn-card-action i {
  transition: transform 0.15s ease;
}

.btn-card-action:hover i {
  transform: scale(1.15);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 26px;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
}

.project-banner {
  height: 160px;
  background: #0e1626;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.project-banner-icon {
  font-size: 3rem;
  color: #94a3b8;
  opacity: 0.4;
  transition: var(--transition-fast);
}

.project-card:hover .project-banner-icon {
  color: #ffffff;
  opacity: 0.8;
  transform: scale(1.05);
}

.project-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.project-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.project-subtitle {
  font-size: 0.84rem;
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.project-highlights li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.project-highlights i {
  color: var(--accent-emerald);
  font-size: 0.8rem;
  margin-top: 3px;
}

/* Skills Matrix */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.skill-category-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.skill-item {
  margin-bottom: 16px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.skill-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent-blue);
}

/* Professional Journey Section */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.journey-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.journey-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.journey-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.quote-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--accent-blue);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #cbd5e1;
  font-style: italic;
  margin-top: 10px;
}

/* Education - Neatly Tucked Underneath */
.education-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
}

.education-strip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.education-strip-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.edu-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-blue);
}

.edu-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.edu-text p {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.edu-badge-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  white-space: nowrap;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 1.05rem;
}

.contact-row h5 {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.contact-row a,
.contact-row span {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.contact-row a:hover {
  color: var(--accent-blue);
}

.export-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Modal Popup Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

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

.modal-container {
  background: #0d1424;
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  max-width: 1100px;
  width: 94%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
  position: relative;
  padding: 30px;
}

.gallery-tab-btn {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gallery-tab-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.gallery-tab-btn.active {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .gallery-tab-btn {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

[data-theme="light"] .gallery-tab-btn.active {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border-color: #10b981 !important;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 22px;
}

.modal-section {
  margin-bottom: 18px;
}

.modal-section h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 1120px) {
  .brand-info span {
    display: none;
  }
  .nav-links {
    gap: 6px;
  }
  .nav-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 992px) {
  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(9, 13, 22, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 20px 20px;
    display: none;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    z-index: 99;
  }

  .nav-menu.active {
    display: block;
    animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .nav-btn {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.85rem;
    justify-content: flex-start;
  }

  .mobile-toggle {
    display: inline-flex !important;
  }

  .nav-action-pdf {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .journey-grid,
  .skills-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .education-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .nav-links {
    grid-template-columns: 1fr;
  }
  .brand-info span {
    display: none;
  }
  .nav-action-contact {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print / PDF Mode */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .bg-grid-overlay,
  .ambient-glow,
  .navbar,
  .theme-toggle,
  .btn-card-action,
  .footer,
  .modal-overlay {
    display: none !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .hero-profile-card,
  .tool-card,
  .project-card,
  .metric-card,
  .journey-card,
  .skill-category-card,
  .education-strip,
  .contact-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #000000 !important;
    page-break-inside: avoid;
  }
  .hero-title,
  h3, h4, strong {
    color: #000000 !important;
  }
  .skill-fill {
    background: #0284c7 !important;
  }
}

/* ==========================================================================
   COMPREHENSIVE HIGH-CONTRAST EXECUTIVE LIGHT THEME STANDARD
   ========================================================================== */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-surface: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border-subtle: #e2e8f0;
  --border-focus: #cbd5e1;
  --border-active: #0284c7;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --accent-blue: #0284c7;
  --accent-steel: #0369a1;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
}

/* Pure Clean Modern Executive Canvas (Zero Grid / Zero Clutter in Light Mode) */
[data-theme="light"] body {
  background: #f8fafc !important;
  background-image: none !important;
  color: #0f172a !important;
}

[data-theme="light"] .bg-grid-overlay,
[data-theme="light"] .bg-wireframe-overlay,
[data-theme="light"] .ambient-glow {
  display: none !important;
}

/* Light Theme Navbar */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .brand-monogram {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .brand-info h1 {
  color: #0f172a;
}

[data-theme="light"] .brand-info span {
  color: #64748b;
}

[data-theme="light"] .theme-toggle {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

[data-theme="light"] .theme-toggle:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0284c7;
}

/* Light Theme Hero */
[data-theme="light"] .hero-title {
  color: #0f172a !important;
}

[data-theme="light"] .hero-title span.text-highlight {
  color: #0284c7 !important;
}

[data-theme="light"] .hero-tagline {
  color: #334155 !important;
}

[data-theme="light"] .hero-desc {
  color: #475569 !important;
}

[data-theme="light"] .status-badge {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #047857 !important;
}

[data-theme="light"] .spec-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .spec-chip strong {
  color: #0f172a !important;
}

[data-theme="light"] .spec-chip span {
  color: #64748b !important;
}

/* Light Theme Console */
[data-theme="light"] .system-console-frame {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .system-console-frame:hover {
  border-color: #38bdf8 !important;
}

[data-theme="light"] .console-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .console-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .console-pill {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}

[data-theme="light"] .console-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .console-item:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
}

[data-theme="light"] .console-item h5 {
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .console-item p {
  color: #475569 !important;
}

[data-theme="light"] .console-metric {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #0284c7 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .console-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

/* Light Theme Sections & Typography */
[data-theme="light"] .section-tag {
  color: #0284c7 !important;
}

[data-theme="light"] .section-title {
  color: #0f172a !important;
}

[data-theme="light"] .section-desc {
  color: #475569 !important;
}

[data-theme="light"] .metric-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .metric-value {
  color: #0284c7 !important;
}

[data-theme="light"] .metric-label {
  color: #0f172a !important;
}

[data-theme="light"] .metric-sub {
  color: #64748b !important;
}

/* Light Theme Tool Cards & Project Cards */
[data-theme="light"] .tool-card,
[data-theme="light"] .project-card,
[data-theme="light"] .skill-category,
[data-theme="light"] .journey-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .tool-card:hover,
[data-theme="light"] .project-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .tool-card h3,
[data-theme="light"] .project-card h3,
[data-theme="light"] .skill-category h3,
[data-theme="light"] .journey-card h3 {
  color: #0f172a !important;
}

[data-theme="light"] .tool-subtitle,
[data-theme="light"] .project-subtitle {
  color: #0284c7 !important;
}

[data-theme="light"] .tool-desc,
[data-theme="light"] .project-desc,
[data-theme="light"] .journey-card p {
  color: #334155 !important;
}

[data-theme="light"] .tag {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="light"] .project-highlights li {
  color: #334155 !important;
}

[data-theme="light"] .project-highlights li i {
  color: #059669 !important;
}

/* Light Theme Modal */
[data-theme="light"] .modal-content {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2) !important;
  color: #0f172a !important;
}

[data-theme="light"] .modal-title {
  color: #0f172a !important;
}

[data-theme="light"] .modal-subtitle {
  color: #0284c7 !important;
}

[data-theme="light"] .modal-section h4 {
  color: #0f172a !important;
}

[data-theme="light"] .modal-section p {
  color: #334155 !important;
}

[data-theme="light"] .modal-close {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .modal-close:hover {
  background: #e2e8f0 !important;
  color: #dc2626 !important;
}


.export-card-icon {
  font-size: 2.8rem;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.section-alt {
  background: rgba(14, 20, 35, 0.4);
}

.modal-box-text {
  color: #cbd5e1;
}

/* ==========================================================================
   COMPREHENSIVE HIGH-CONTRAST LIGHT THEME SUITE (Zero Invisible Elements)
   ========================================================================== */
[data-theme="light"] .section-alt {
  background: #f1f5f9 !important;
}

[data-theme="light"] .contact-card,
[data-theme="light"] .export-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .contact-card h3,
[data-theme="light"] .export-card h3 {
  color: #0f172a !important;
}

[data-theme="light"] .contact-card p,
[data-theme="light"] .export-card p {
  color: #475569 !important;
}

[data-theme="light"] .contact-icon-box {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
}

[data-theme="light"] .contact-icon-box i {
  color: #0284c7 !important;
  font-size: 1.05rem !important;
}

[data-theme="light"] .contact-row h5 {
  color: #64748b !important;
  font-weight: 600 !important;
}

[data-theme="light"] .contact-row a,
[data-theme="light"] .contact-row span {
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .contact-row a:hover {
  color: #0284c7 !important;
}

[data-theme="light"] .export-card-icon {
  color: #0284c7 !important;
}

[data-theme="light"] .quote-box {
  background: #f8fafc !important;
  border-left: 3px solid #0284c7 !important;
  color: #0f172a !important;
  font-weight: 500 !important;
  font-style: italic !important;
}

[data-theme="light"] .tool-icon-wrapper,
[data-theme="light"] .tool-icon-box {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
}

[data-theme="light"] .tool-icon-wrapper i,
[data-theme="light"] .tool-icon-box i {
  color: #0284c7 !important;
}

[data-theme="light"] .education-strip {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}

[data-theme="light"] .edu-icon-circle {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
}

[data-theme="light"] .edu-icon-circle i {
  color: #0284c7 !important;
}

[data-theme="light"] .edu-text h4 {
  color: #0f172a !important;
}

[data-theme="light"] .edu-text p {
  color: #475569 !important;
}

[data-theme="light"] .edu-badge-tag {
  background: #fef3c7 !important;
  border: 1px solid #fde68a !important;
  color: #b45309 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .skill-category-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .skill-category-card h3 {
  color: #0f172a !important;
}

[data-theme="light"] .skill-header {
  color: #475569 !important;
}

[data-theme="light"] .skill-bar {
  background: #e2e8f0 !important;
}

[data-theme="light"] .skill-fill {
  background: #0284c7 !important;
}

[data-theme="light"] .project-banner {
  background: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .project-banner-icon {
  color: #94a3b8 !important;
  opacity: 0.6 !important;
}

[data-theme="light"] .project-card:hover .project-banner-icon {
  color: #0284c7 !important;
  opacity: 0.9 !important;
}

[data-theme="light"] .modal-container {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2) !important;
  color: #0f172a !important;
}

[data-theme="light"] .modal-title {
  color: #0f172a !important;
}

[data-theme="light"] .modal-subtitle {
  color: #0284c7 !important;
}

[data-theme="light"] .modal-section h4 {
  color: #0f172a !important;
}

[data-theme="light"] .modal-section p {
  color: #334155 !important;
}

[data-theme="light"] .modal-box-text {
  color: #1e293b !important;
}

[data-theme="light"] .modal-close {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .modal-close:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

[data-theme="light"] .footer {
  border-top: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}

[data-theme="light"] .footer-links a {
  color: #475569 !important;
}

[data-theme="light"] .footer-links a:hover {
  color: #0284c7 !important;
}

[data-theme="light"] .footer-copy {
  color: #64748b !important;
}

[data-theme="light"] .skill-header {
  color: #475569 !important;
}

[data-theme="light"] .skill-name {
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .skill-pct {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .skill-bar {
  background: #e2e8f0 !important;
}

[data-theme="light"] .skill-fill {
  background: #0284c7 !important;
}
/* 10th Card Full-Width Balance in Desktop Grid (Zero Awkward Empty Void) */
@media (min-width: 992px) {
  .tools-grid > .tool-card-featured,
  .tools-grid > .tool-card:last-child {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 32px !important;
    padding: 30px 36px !important;
  }
  .tools-grid > .tool-card-featured .tool-card-top,
  .tools-grid > .tool-card:last-child .tool-card-top {
    margin-bottom: 0 !important;
    flex: 1 !important;
  }
  .tools-grid > .tool-card-featured .btn-card-action,
  .tools-grid > .tool-card:last-child .btn-card-action {
    width: auto !important;
    min-width: 220px !important;
    white-space: nowrap !important;
    align-self: center !important;
  }
}

[data-theme="light"] .modal-revit-sheet-box {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .modal-revit-sheet-box span {
  color: #0f172a !important;
}

[data-theme="light"] .modal-revit-sheet-box p {
  color: #334155 !important;
}


/* ==========================================================================
   Commercial SaaS Marketing, Pricing & Admin Control Showcase
   ========================================================================== */
.saas-marketing-panel {
  margin-top: 42px;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(14, 20, 35, 0.85));
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .saas-marketing-panel {
  background: linear-gradient(160deg, #ffffff, #f8fafc);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.saas-marketing-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 30px;
}

.saas-trial-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

[data-theme="light"] .saas-trial-pill {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.28);
}

.saas-marketing-header h3 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.saas-marketing-header p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.saas-sectors-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.saas-sector-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
}

[data-theme="light"] .saas-sector-chip {
  background: #f1f5f9;
  color: #334155;
}

.saas-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .saas-pricing-grid {
    grid-template-columns: 1fr;
  }
}

.saas-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.saas-price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
}

[data-theme="light"] .saas-price-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
}

.saas-price-featured {
  border: 2px solid #facc15;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.14);
}

[data-theme="light"] .saas-price-featured {
  background: linear-gradient(180deg, #fffbeb, #ffffff);
  border-color: #eab308;
}

.saas-best-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: #facc15;
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.saas-price-head h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.saas-price-amount {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.saas-price-amount span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.saas-price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.saas-price-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.saas-price-list li i {
  color: var(--accent-emerald);
  margin-top: 3px;
  font-size: 0.8rem;
}

.saas-price-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saas-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.85rem;
  padding: 10px 14px;
}

.saas-btn-gold {
  width: 100%;
  justify-content: center;
  background: linear-gradient(180deg, #fde047 0%, #eab308 100%);
  color: #0f172a;
  border: 1px solid #ca8a04;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 11px 16px;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.3);
}

.saas-btn-gold:hover {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  transform: translateY(-1px);
}

/* Modern SaaS Admin Control Showcase */
.saas-admin-panel {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  background: rgba(11, 17, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .saas-admin-panel {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.saas-admin-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: all var(--transition-fast);
}

.saas-admin-link:hover {
  background: rgba(56, 189, 248, 0.22);
}

.saas-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 22px 24px;
}

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

.saas-admin-card {
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

[data-theme="light"] .saas-admin-card {
  background: #f8fafc;
}

.saas-admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.saas-admin-card-head i {
  color: var(--accent-blue);
  margin-right: 6px;
}

.saas-admin-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.saas-mock-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saas-mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #cbd5e1;
}

[data-theme="light"] .saas-mock-pill {
  background: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
}

.saas-mock-accent {
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

[data-theme="light"] .saas-mock-accent {
  color: #059669;
}

.saas-ops-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.saas-ops-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-primary);
}

[data-theme="light"] .saas-ops-row {
  background: #ffffff;
}

.saas-ops-row i {
  margin-right: 7px;
}

.saas-ops-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
}
