/* ==========================================================================
   TIEN DANG (TED) PORTFOLIO - DESIGN SYSTEM
   Theme: Executive Dark Slate & Electric Blue Accents
   ========================================================================== */

:root {
  /* Core Backgrounds - Stark and clean */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.9);
  
  /* Borders - High contrast, sharp lines */
  --border-subtle: #e2e8f0;
  --border-focus: #3b82f6;
  --border-accent: #2563eb;
  
  /* Typography - Maximum legibility */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  /* Primary Accents - Trust & Technology */
  --primary-accent: #2563eb;
  --primary-dark: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.1);
  --cyan-accent: #0ea5e9;
  
  /* Status Colors */
  --emerald-accent: #10b981;
  --amber-accent: #f59e0b;
  --purple-accent: #8b5cf6;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* UI Elements - Sharper corners for a technical dashboard feel */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Flatter dashboard shadows */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 15px rgba(37, 99, 235, 0.12);
  
  --transition: all 0.2s ease;
}

/* Dark Theme Variable Overrides */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --bg-glass: rgba(15, 23, 42, 0.85);
  
  --border-subtle: #334155;
  --border-focus: #38bdf8;
  --border-accent: #3b82f6;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --primary-accent: #3b82f6;
  --primary-dark: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --cyan-accent: #38bdf8;
  
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.2);
}

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

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

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

/* Ambient Background Glow Removed for Peak Performance */

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-accent), var(--cyan-accent));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.35);
}

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

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-accent);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-accent), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(238, 77, 45, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 77, 45, 0.45);
}

.btn-secondary {
  background: var(--bg-secondary);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-outline-glow {
  background: transparent;
  border: 1px solid var(--primary-accent);
  color: var(--primary-accent);
}

.btn-outline-glow:hover {
  background: var(--accent-glow);
  box-shadow: var(--shadow-glow);
  color: #ffffff;
}

.reference-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.reference-link:hover {
  color: var(--primary-accent);
}

.reference-link i {
  color: var(--primary-accent);
  font-size: 0.85rem;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
}

/* Hero Section */
.hero-section {
  padding: 32px 0 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}

.hero-photo-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
}

.hero-photo-frame {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 2px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  background: var(--bg-secondary);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-accent);
  box-shadow: 0 0 8px var(--emerald-accent);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(238, 77, 45, 0.1);
  border: 1px solid rgba(238, 77, 45, 0.25);
  color: var(--primary-accent);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--primary-accent);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-bio {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.65;
}

.hero-contact-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.hero-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.hero-contact-item:hover {
  color: var(--primary-accent);
}

.hero-contact-item i {
  color: var(--primary-accent);
  font-size: 0.95rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

/* Metric Ribbon */
.metrics-ribbon {
  margin: 32px 0 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-accent);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* Section Common Styling */
.section {
  padding: 24px 0;
}

.section-header {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary-accent);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.section-title {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

/* Project Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--primary-accent);
  color: #ffffff;
  border-color: var(--primary-accent);
}

/* Project Grid & Cards */
/* Status Badge Component (Alpha / Beta / Live) */
.status-badge-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  user-select: none;
  line-height: 1;
}

/* Alpha Phase Amber Palette */
.status-badge-alpha {
  background-color: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
[data-theme="dark"] .status-badge-alpha {
  background-color: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}
.status-badge-alpha .status-dot {
  background-color: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-ring-amber 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

/* Production Green Palette */
.status-badge-production {
  background-color: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
[data-theme="dark"] .status-badge-production {
  background-color: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}
.status-badge-production .status-dot {
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring-emerald 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

/* Delivered Blue Palette */
.status-badge-delivered {
  background-color: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.35);
}
[data-theme="dark"] .status-badge-delivered {
  background-color: rgba(37, 99, 235, 0.18);
  color: #60a5fa;
  border-color: rgba(37, 99, 235, 0.4);
}
.status-badge-delivered .status-dot {
  background-color: #2563eb;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  animation: pulse-ring-blue 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

.status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes pulse-ring-amber {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes pulse-ring-emerald {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-ring-blue {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

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

.card-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--cyan-accent);
  font-weight: 600;
}

.card-status {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.card-title {
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--text-main);
}

.card-chip-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.card-chip {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 2px 5px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1d4ed8;
  white-space: nowrap;
  flex: 0 1 auto;
  max-width: 100%;
}

[data-theme="dark"] .card-chip {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(147, 197, 253, 0.45);
  color: #93c5fd;
}

.projects-section-lead {
  margin: -8px 0 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.card-highlights {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.highlight-icon {
  color: var(--primary-accent);
  font-size: 0.9rem;
  margin-top: 2px;
}

.card-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Timeline & Work Experience */
.timeline, .timeline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: var(--transition);
}

.timeline-item:hover {
  border-color: var(--border-focus);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.timeline-role {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-company {
  color: var(--primary-accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
}

.timeline-company:hover {
  text-decoration: underline;
  color: var(--border-focus);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.timeline-bullet {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.timeline-bullet::before {
  content: '▹';
  color: var(--primary-accent);
  font-weight: bold;
}

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

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.skill-category-title {
  font-size: 1.1rem;
  color: var(--primary-accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-badge {
  font-size: 0.825rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

/* Showcase Sub-Page Detail Styles */
.case-study-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb-link {
  color: var(--primary-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.case-study-title {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.case-study-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.5;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border-subtle);
}

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

.case-meta-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.case-meta-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Architecture Diagram Visual Container */
.arch-diagram-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 32px 0;
}

.diagram-node-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow-x: auto;
  padding: 16px 0;
}

.diagram-node {
  background: var(--bg-secondary);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-sm);
  padding: 16px;
  min-width: 170px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.node-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-accent);
}

.node-subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.diagram-arrow {
  color: var(--text-dim);
  font-size: 1.25rem;
  font-weight: bold;
}

/* Code Preview Box */
.code-preview-box {
  background: #0d1117;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #e6edf3;
  line-height: 1.6;
  overflow-x: auto;
  margin: 16px 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  margin-top: 32px;
  background: var(--bg-glass);
}

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

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

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

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

.footer-link:hover {
  color: var(--primary-accent);
}

/* Education & Certification Section Styles */
.education-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
}

.education-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.education-logo-wrap {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 6px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.education-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.education-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
}

.education-degree {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.education-institution {
  font-size: 0.95rem;
  color: var(--primary-accent);
  font-weight: 600;
}

.education-period {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  flex-shrink: 0;
}

.education-coursework {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* Certifications Styles */
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  transition: var(--transition);
}

.cert-card:hover {
  border-color: var(--border-focus);
}

.cert-info {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.cert-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.cert-details {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cert-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-accent);
  font-weight: 600;
  white-space: nowrap;
}

/* Skills Presentation Variants */
.skills-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.skills-tab:hover {
  border-color: var(--border-focus);
  color: var(--text-main);
}

.skills-tab.active {
  background: var(--primary-accent);
  color: #ffffff;
  border-color: var(--primary-accent);
}

.edu-cert-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .edu-cert-container {
    grid-template-columns: 1fr;
  }
}

.arch-stack-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-layer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.arch-layer-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.arch-layer-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary-accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.arch-layer-header h4 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 0;
}

.context-table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.context-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.context-table th, .context-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.context-table th {
  background: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.context-table td strong {
  color: var(--primary-accent);
}

.context-table tr:last-child td {
  border-bottom: none;
}

.tshape-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tshape-pillar, .tshape-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.tshape-header {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tshape-header i {
  color: var(--primary-accent);
}

.embedded-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.embedded-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  
  .hero-photo-wrapper {
    margin: 0 auto;
  }
  
  .hero-bio {
    margin: 0 auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .metrics-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .case-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .metrics-ribbon {
    grid-template-columns: 1fr;
  }
  
  .case-meta-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
