/* ==========================================================================
   AIDEN HOCKINBERRY - MECHANICAL ENGINEERING PORTFOLIO DESIGN SYSTEM
   Theme: Precision Engineering Blueprint / Dark Glassmorphism
   ========================================================================== */

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

:root {
  /* Color Palette - Precision Dark & Blueprint */
  --bg-primary: #080c14;
  --bg-secondary: #0d1424;
  --bg-tertiary: #131d33;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 36, 66, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --bg-glass-heavy: rgba(10, 16, 30, 0.88);

  --border-color: rgba(56, 189, 248, 0.18);
  --border-color-hover: rgba(56, 189, 248, 0.5);
  --border-accent: rgba(0, 240, 255, 0.6);

  /* Accents */
  --cyan-primary: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.35);
  --blue-primary: #38bdf8;
  --blue-dark: #0284c7;
  --orange-accent: #ff6b00;
  --orange-glow: rgba(255, 107, 0, 0.3);
  --emerald-accent: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --amber-accent: #f59e0b;
  --purple-accent: #8b5cf6;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  /* Typography Fonts */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Spacing */
  --container-max: 1320px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  --bg-surface-subtle: rgba(2, 6, 23, 0.6);
  --bg-input: rgba(2, 6, 23, 0.8);

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.2);
  --shadow-orange-glow: 0 0 25px rgba(255, 107, 0, 0.25);
}

/* Light Theme Variables */
[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-heavy: rgba(255, 255, 255, 0.95);
  --bg-surface-subtle: #f1f5f9;
  --bg-input: #ffffff;

  --border-color: rgba(14, 165, 233, 0.22);
  --border-color-hover: rgba(14, 165, 233, 0.5);
  --border-accent: rgba(2, 132, 199, 0.7);

  --cyan-primary: #0284c7;
  --cyan-glow: rgba(2, 132, 199, 0.2);
  --blue-primary: #0369a1;
  --orange-accent: #ea580c;
  --orange-glow: rgba(234, 88, 12, 0.2);
  --emerald-accent: #059669;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-accent: #0284c7;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Engineering Blueprint Background Grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 15% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255, 107, 0, 0.04) 0%, transparent 45%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  pointer-events: none;
  z-index: -1;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(56, 189, 248, 0.05));
  border: 1px solid var(--cyan-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan-primary);
  font-size: 1.1rem;
  box-shadow: 0 0 12px var(--cyan-glow);
  position: relative;
}

.logo-badge::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  background: var(--emerald-accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--emerald-accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan-primary);
  box-shadow: 0 0 8px var(--cyan-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  border-color: var(--cyan-primary);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 15px var(--cyan-glow);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff;
  border-color: rgba(251, 146, 60, 0.4);
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 0 20px var(--orange-glow);
  border-color: var(--orange-accent);
  transform: translateY(-1px);
}

.btn-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-icon-only:hover {
  color: var(--cyan-primary);
  border-color: var(--cyan-primary);
}

.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-primary);
  letter-spacing: 0.05em;
  width: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-primary);
  box-shadow: 0 0 8px var(--cyan-primary);
  animation: pulse-glow 2s infinite;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-title-accent {
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan-primary) 60%, var(--blue-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title-accent {
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 50%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-quote {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  border-left: 3px solid var(--cyan-primary);
  padding-left: 1rem;
  margin: 0.25rem 0;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan-primary);
  line-height: 1;
}

.metric-val.orange {
  color: var(--orange-accent);
}

.metric-val.emerald {
  color: var(--emerald-accent);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Portrait & Interactive Visual */
.hero-visual-wrapper {
  position: relative;
}

.hero-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 240, 255, 0.1);
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-primary), var(--orange-accent), var(--blue-primary));
}

.hero-portrait-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  aspect-ratio: 4/5;
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}

.hero-portrait-frame:hover .hero-portrait-img {
  transform: scale(1.03);
}

.hero-badge-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overlay-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.overlay-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-primary);
}

.overlay-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--emerald-accent);
}

/* ==========================================================================
   ERA FILTER & TIMELINE CONTROLS
   ========================================================================== */
.filter-section {
  padding: 1.5rem 0 2rem;
  position: sticky;
  top: 72px;
  z-index: 90;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.filter-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.era-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.era-tab {
  padding: 0.6rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.era-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.era-tab.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(56, 189, 248, 0.05));
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.discipline-filters {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.discipline-btn {
  padding: 0.3rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.discipline-btn:hover {
  color: var(--text-primary);
  border-color: var(--blue-primary);
}

.discipline-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

/* ==========================================================================
   ERA SECTIONS & PROJECT CARDS
   ========================================================================== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.7;
}

/* Project Card Architecture */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
}

.project-card-featured {
  border-color: rgba(0, 240, 255, 0.35);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(13, 20, 36, 0.85) 100%);
}

[data-theme="light"] .project-card-featured {
  border-color: rgba(2, 132, 199, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.era-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  color: var(--blue-primary);
  border: 1px solid rgba(56, 189, 248, 0.25);
  text-transform: uppercase;
}

.era-badge.virtual {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.3);
}

.era-badge.manufacturing {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.card-tech-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.card-content-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.card-media-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #020617;
  cursor: pointer;
}

.project-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-normal);
}

.project-img-wrapper:hover .project-img {
  transform: scale(1.02);
}

.img-inspect-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-glass-heavy);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(8px);
  opacity: 0.9;
  transition: var(--transition-fast);
}

.img-inspect-btn:hover {
  background: var(--cyan-primary);
  color: #000;
  box-shadow: 0 0 10px var(--cyan-primary);
}

.card-info-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.project-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Feature & Challenge Callout Boxes */
.card-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.spec-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.spec-box-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.spec-box.orange .spec-box-title {
  color: var(--orange-accent);
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.spec-list li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.5;
}

.spec-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan-primary);
}

.spec-box.orange .spec-list li::before {
  color: var(--orange-accent);
}

/* Table Format for Hardware / Specs */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.tech-table th,
.tech-table td {
  padding: 0.6rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.tech-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-primary);
  background: rgba(0, 240, 255, 0.05);
  font-weight: 600;
  text-transform: uppercase;
}

.tech-table td {
  color: var(--text-secondary);
}

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

/* ==========================================================================
   INTERACTIVE SUB-COMPONENTS
   ========================================================================== */

/* Multi-View CAD Switcher */
.cad-viewer-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cad-view-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cad-view-btn {
  padding: 0.4rem 0.85rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cad-view-btn:hover {
  color: var(--cyan-primary);
  border-color: var(--cyan-primary);
}

.cad-view-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  font-weight: 600;
}

.cad-display-frame {
  position: relative;
  background: #020617;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cad-display-img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

/* Piston Engine 70+ Gallery Grid */
.engine-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.5rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.engine-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.15);
  background: var(--bg-card);
  cursor: pointer;
  aspect-ratio: 16/9;
  transition: var(--transition-fast);
}

.engine-item:hover {
  border-color: var(--cyan-primary);
  transform: scale(1.04);
  z-index: 2;
  box-shadow: 0 0 12px var(--cyan-glow);
}

.engine-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.engine-number {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 5px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan-primary);
}

/* Staging Architecture Interactive Breakdown (Mun Mission) */
.rocket-stages-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
}

.stage-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stage-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.stage-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan-primary);
  color: var(--text-primary);
}

.stage-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(56, 189, 248, 0.05));
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
}

.stage-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.stage-dv {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--orange-accent);
}

.stage-detail-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.stage-detail-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stage-detail-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   SKILLS & MATRIX SECTION
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.skill-cat-icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
}

.skill-cat-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-badges-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.skill-badge:hover {
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  background: rgba(0, 240, 255, 0.08);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.channel-item:hover {
  border-color: var(--cyan-primary);
  background: var(--bg-card-hover);
}

.channel-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.channel-icon {
  width: 38px;
  height: 38px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.channel-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.copy-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan-primary);
}

/* Contact Form */
.contact-form-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* ==========================================================================
   LIGHTBOX MODAL & DOCUMENT VIEWER
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 1.5rem;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-modal {
  position: relative;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--cyan-primary);
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.modal-image {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.modal-video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-sm);
  background: #000000;
  outline: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

/* Video Preview Overlay on Cards */
.video-preview-wrapper {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.video-preview-wrapper .project-img {
  transition: transform 0.35s ease;
}

.video-preview-wrapper:hover .project-img {
  transform: scale(1.02);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: var(--transition-normal);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.video-preview-wrapper:hover .video-play-overlay {
  background: rgba(2, 6, 23, 0.15);
}

.play-icon-pulse {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cyan-primary);
  color: #020617;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px var(--cyan-glow);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.video-preview-wrapper:hover .play-icon-pulse {
  transform: scale(1.12);
  background: #38bdf8;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7), 0 0 25px var(--cyan-glow);
}

.video-play-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.5);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.modal-caption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 700px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.75rem 1.25rem;
  background: var(--bg-glass-heavy);
  border: 1px solid var(--cyan-primary);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 15px var(--cyan-glow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toast-in 0.3s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

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

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

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .card-content-layout {
    grid-template-columns: 1fr;
  }

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

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

  .rocket-stages-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.35rem;
  }

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

  .card-spec-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 1.25rem;
  }

  .contact-card {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   EXPORT STUDIO MODAL & PRINTABLE PDF PORTFOLIO
   ========================================================================== */

.export-studio-modal {
  max-width: 1350px;
  width: 95vw;
  height: 88vh;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.export-studio-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  height: calc(100% - 65px);
  overflow: hidden;
  padding: 1.25rem;
}

.export-config-sidebar {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.config-sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cyan-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.sheet-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.sheet-toggle-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.sheet-toggle-item:hover {
  border-color: var(--cyan-primary);
  color: var(--text-primary);
}

.sheet-toggle-item input[type="checkbox"] {
  accent-color: var(--cyan-primary);
  cursor: pointer;
}

.print-instruction-box {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-top: auto;
}

.export-preview-container {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.preview-zoom-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-primary);
  letter-spacing: 0.08em;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* Printable Sheets Container */
.printable-portfolio {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 820px;
}

.print-sheet {
  width: 100%;
  min-height: 1060px;
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 2.25rem 2.25rem 1.75rem;
  border-radius: 4px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.print-sheet.hidden-for-print {
  display: none !important;
}

.print-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #0284c7;
  padding-bottom: 0.85rem;
  gap: 1rem;
}

.print-brand-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.05em;
}

.print-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.15rem 0 0.1rem;
  letter-spacing: -0.02em;
}

.print-subtitle {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
}

.print-header-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #334155;
  text-align: right;
  line-height: 1.45;
}

.print-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.print-metric-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0.5rem;
  text-align: center;
}

.print-metric-num {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: #0284c7;
}

.print-metric-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.print-cover-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.print-section-lead {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0369a1;
  font-style: italic;
  margin-bottom: 0.6rem;
}

.print-body-text {
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.print-highlights-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  padding: 0.75rem;
}

.print-hl-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 0.35rem;
}

.print-hl-list {
  padding-left: 1rem;
  margin: 0;
  font-size: 0.72rem;
  color: #1e293b;
  line-height: 1.45;
}

.print-cover-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.print-portrait-frame {
  width: 100%;
  height: 190px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid #cbd5e1;
}

.print-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.print-qr-card {
  background: #f8fafc;
  border: 1px solid #0284c7;
  border-radius: 6px;
  padding: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.print-qr-card.mini {
  padding: 0.4rem 0.65rem;
}

.print-qr-img-box {
  width: 78px;
  height: 78px;
  min-width: 78px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.print-qr-img-box.mini {
  width: 60px;
  height: 60px;
  min-width: 60px;
}

.print-qr-img-box img,
.print-qr-img-box canvas,
.print-qr-img-box svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  display: block;
}

.print-qr-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.print-qr-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 0.04em;
}

.print-qr-desc {
  font-size: 0.65rem;
  color: #475569;
  line-height: 1.3;
}

.print-sheet-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #0284c7;
  border-left: 3px solid #0284c7;
  padding-left: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.print-sheet-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.2rem 0 0.35rem;
  letter-spacing: -0.01em;
}

.print-sheet-desc {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.print-projects-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.print-proj-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.print-proj-card,
.print-proj-full {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.65rem;
  box-sizing: border-box;
}

.print-proj-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.print-proj-meta {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: #0284c7;
  margin: 0.15rem 0 0.3rem;
}

.print-thumb-row {
  display: flex;
  gap: 0.4rem;
  margin: 0.3rem 0;
}

.print-thumb {
  height: 60px;
  flex: 1;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
}

.print-thumb-single {
  width: 100%;
  height: 85px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
}

.print-proj-summary {
  font-size: 0.68rem;
  color: #334155;
  line-height: 1.35;
  margin: 0;
}

.print-table-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.67rem;
}

.print-table th {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  padding: 0.3rem 0.45rem;
  text-align: left;
  border: 1px solid #bae6fd;
}

.print-table td {
  padding: 0.3rem 0.45rem;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.print-sheet-qr-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  margin: 0.65rem 0;
}

.print-qr-strip-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.68rem;
}

.print-qr-strip-text strong {
  font-family: var(--font-mono);
  color: #15803d;
  font-size: 0.68rem;
}

.print-qr-strip-text span {
  color: #334155;
}

.print-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.print-skill-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.65rem;
}

.print-skill-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 0.35rem;
}

.print-skill-list {
  padding-left: 0.85rem;
  margin: 0;
  font-size: 0.68rem;
  color: #334155;
  line-height: 1.45;
}

.print-contact-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0.75rem;
  margin-top: 0.5rem;
  gap: 1rem;
}

.print-footer {
  border-top: 1px solid #cbd5e1;
  padding-top: 0.45rem;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: #64748b;
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

/* Print Engine Rules */
@media print {
  @page {
    size: letter portrait;
    margin: 0.35in;
  }
  
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Hide all interactive screen elements */
  header,
  footer,
  .hero-section,
  .filter-section,
  main,
  .modal-backdrop:not(#exportStudioModal),
  .toast-container,
  .modal-header,
  .export-config-sidebar,
  .preview-zoom-label,
  .modal-close-btn {
    display: none !important;
  }

  #exportStudioModal {
    position: static !important;
    background: transparent !important;
    display: block !important;
    padding: 0 !important;
    z-index: auto !important;
  }

  .export-studio-modal {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .export-studio-body {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .export-preview-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    overflow: visible !important;
    display: block !important;
  }

  .printable-portfolio {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .print-sheet {
    display: flex !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0.25in 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 9.9in !important;
    min-height: 9.9in !important;
    max-height: 10.3in !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    box-sizing: border-box !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .print-sheet:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  .print-sheet.hidden-for-print {
    display: none !important;
  }
}

