/* Modern Design System for Justin Pohl Portfolio */

/* Prevent horizontal scrolling globally and enable sticky footer layout */
html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  min-height: 100%;
}
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  min-height: 100vh;
}

*, *::before, *::after {
  box-sizing: border-box;
  max-width: 100%;
}

.card-tag,
.card-tag *,
.card-tag-text,
.card-meta .material-symbols-outlined {
  max-width: none !important;
}

:root {
  /* Color System */
  --background: #f7f3ec;
  --foreground: #0f172a;
  --primary: #0f172a;
  --primary-foreground: #ffffff;
  --secondary: #f8fafc;
  --secondary-foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #0f172a;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #0f172a;
  --radius: 0.5rem;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #1c1916;
    --foreground: #f8fafc;
    --primary: #f8fafc;
    --primary-foreground: #0f172a;
    --secondary: #1e293b;
    --secondary-foreground: #f8fafc;
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    --accent: #1e293b;
    --accent-foreground: #f8fafc;
    --destructive: #ef4444;
    --destructive-foreground: #ffffff;
    --border: #334155;
    --input: #334155;
    --ring: #f8fafc;
  }
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content wrapper grows to fill space above footer on all pages */
.main-container {
  flex: 1 0 auto !important; /* override per-page .main-container definitions */
}

/* All footers stay pinned to the bottom when content is short */
footer.footer {
  flex-shrink: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-4);
  color: var(--muted-foreground);
}

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-20) 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
  text-decoration: none;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.2s ease;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--background) 0%, var(--muted) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.05;
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  opacity: 0.05;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
  max-width: 800px;
  z-index: 1;
  position: relative;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto var(--space-8);
  border: 4px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-foreground) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  line-height: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--foreground);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--accent);
  border-color: var(--foreground);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
}

/* Cards */
.card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: var(--space-2);
}

.card-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-foreground) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Project Cards */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--background);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  padding: var(--space-6);
}

.project-tags {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.project-tag {
  background-color: var(--accent);
  color: var(--accent-foreground);
  padding: var(--space-1) var(--space-3);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Skill Cards */
.skill-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.skill-info {
  flex: 1;
}

.skill-name {
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.skill-level {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: var(--space-2);
}

.skill-progress {
  width: 100%;
  height: 0.5rem;
  background-color: var(--muted);
  border-radius: 9999px;
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  background-color: var(--primary);
  border-radius: 9999px;
  transition: width 1s ease;
}

/* Footer - architecture-style frosted background (all pages) */
.footer {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 24px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 12px 0 8px;
}

[data-theme="dark"] .footer {
  background: rgba(26, 24, 22, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  font-size: 0.75rem;
}

.footer-grid,
.footer-main {
  gap: 12px;
  margin-bottom: 12px;
}

.footer-section h3,
.footer-section h4,
.footer-social-title,
.footer-section p,
.footer-section li,
.footer-section a,
.footer-info-section p,
.social-links a,
.footer-legal-links a,
.footer-copyright,
.footer-disclaimer,
.footer-bottom p {
  font-size: 0.75rem !important;
}

.footer-section h3 {
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-section h4,
.footer-social-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 4px;
}

.footer-section a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
  color: var(--muted-foreground);
}

/* Responsive Design - Mobile cleanup: no overlapping cards, readable text */
@media (max-width: 768px) {
  /* Keep base font readable on tablets  html {
    font-size: 15px;
  }

  .hero-title {
    font-size: 2.25rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .nav {
    display: none;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  /* Cards: single column, no overlap, clear spacing */
  .card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    padding: var(--space-5);
    box-sizing: border-box;
  }
  
  .card:hover {
    transform: none;
  }
  
  .card-title {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: var(--space-3);
  }
  
  .card-description {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  
  .project-card {
    width: 100%;
    max-width: 100%;
  }
  
  .project-card:hover {
    transform: none;
  }
  
  .project-content {
    padding: var(--space-5);
  }
  
  .skill-card {
    padding: var(--space-5);
  }
}

@media (max-width: 480px) {
  /* Slightly smaller but still readable on small phones */
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--space-4);
  }
  
  .hero-title {
    font-size: 1.85rem;
  }
  
  .hero-description {
    font-size: 0.9375rem;
  }
  
  .btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: 0.9375rem;
  }
  
  .card {
    padding: var(--space-4);
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-description {
    font-size: 0.875rem;
    line-height: 1.6;
  }
}

/* Sunburst animated footer background (shared across pages) */
.footer.footer-with-sunburst {
  position: relative;
  min-height: 260px;
  max-height: 600px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease, opacity 0.25s ease;
}


[data-theme="dark"] .footer.footer-with-sunburst {
  background: transparent;
}

.footer-with-sunburst .footer-content {
  position: relative;
  z-index: 2;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 16px 20px 12px;
  pointer-events: none;
}

.footer-with-sunburst .footer-content a,
.footer-with-sunburst .footer-content button {
  pointer-events: auto;
}

.footer-with-sunburst .footer-section h3,
.footer-with-sunburst .footer-section h4,
.footer-with-sunburst .footer-social-title,
.footer-with-sunburst .footer-section p,
.footer-with-sunburst .footer-section li,
.footer-with-sunburst .footer-info-section p,
.footer-with-sunburst .footer-copyright,
.footer-with-sunburst .footer-disclaimer,
.footer-with-sunburst .footer-bottom p,
.footer-with-sunburst .footer-section a,
.footer-with-sunburst .social-links a,
.footer-with-sunburst .footer-legal-links a,
.footer-with-sunburst .footer-section a:hover,
.footer-with-sunburst .social-links a:hover,
.footer-with-sunburst .footer-legal-links a:hover {
  color: #000 !important;
  text-shadow: none !important;
}
.footer-with-sunburst .footer-section h3,
.footer-with-sunburst .footer-section h4,
.footer-with-sunburst .footer-social-title {
  font-weight: 700 !important;
}
.footer-with-sunburst .footer-section p,
.footer-with-sunburst .footer-section li,
.footer-with-sunburst .footer-info-section p,
.footer-with-sunburst .footer-copyright,
.footer-with-sunburst .footer-disclaimer,
.footer-with-sunburst .footer-bottom p,
.footer-with-sunburst .footer-section a,
.footer-with-sunburst .social-links a,
.footer-with-sunburst .footer-legal-links a {
  font-weight: 500 !important;
}
.footer-with-sunburst .footer-main {
  border-bottom-color: rgba(255,255,255,0.25);
}
.footer-with-sunburst .footer-info-section,
.footer-with-sunburst .footer-social-section {
  border-bottom-color: rgba(255,255,255,0.25);
}
.footer-with-sunburst .footer-legal-links {
  border-bottom-color: rgba(255,255,255,0.25);
}

/* Unified sunburst footer layout (index-style on all pages): Connect + controls on right, no Navigate */
.footer.footer-with-sunburst {
  min-height: 0;
  max-height: none;
}
.footer-with-sunburst .footer-content {
  padding: 10px 16px 8px;
}
.footer-with-sunburst .footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 32px;
  margin-bottom: 8px;
  padding-bottom: 8px;
}
.footer-with-sunburst .footer-controls-section {
  min-width: 0;
  margin-left: auto;
}
#footer .sunburst-controls,
.footer.footer-with-sunburst .sunburst-controls {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
}
.footer.footer-with-sunburst .sunburst-controls .play-pause {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.footer.footer-with-sunburst .sunburst-controls .play-pause button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  outline: none;
  background: #000;
  border-radius: 6px;
  color: #fff;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer.footer-with-sunburst .sunburst-controls .play-pause button:hover,
.footer.footer-with-sunburst .sunburst-controls .play-pause button:focus {
  background: #000;
  border: none;
  outline: none;
  color: #fff;
  box-shadow: none;
}
.footer.footer-with-sunburst .sunburst-controls .play-pause button svg {
  fill: currentColor !important;
  color: inherit;
}
.footer.footer-with-sunburst .sunburst-controls .sunburst-toggle-background {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px 8px;
  border: none !important;
  outline: none;
  background: #000 !important;
  border-radius: 6px;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
}
.footer.footer-with-sunburst .sunburst-controls .sunburst-toggle-background:hover,
.footer.footer-with-sunburst .sunburst-controls .sunburst-toggle-background:focus {
  background: #000 !important;
  border: none !important;
  outline: none;
  color: #fff !important;
  box-shadow: none !important;
}
.footer.footer-with-sunburst .sunburst-controls .sunburst-toggle-background svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
}
.footer.footer-with-sunburst .sunburst-controls .sunburst-time-options {
  width: 100%;
  flex-basis: 100%;
  gap: 2px 0;
}
.footer.footer-with-sunburst .sunburst-controls .time-option {
  padding: 3px 6px;
  font-size: 0.7rem !important;
  color: #fff !important;
  background: #000 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}
.footer.footer-with-sunburst .sunburst-controls .time-option:hover,
.footer.footer-with-sunburst .sunburst-controls .time-option:focus,
.footer.footer-with-sunburst .sunburst-controls .time-option.active {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}
.footer.footer-with-sunburst .sunburst-controls .time-option svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}
.footer.footer-with-sunburst .footer-section h3,
.footer.footer-with-sunburst .footer-section h4,
.footer.footer-with-sunburst .footer-social-title {
  margin-bottom: 4px;
  font-size: 0.7rem !important;
}
.footer.footer-with-sunburst .footer-section li {
  margin-bottom: 2px;
}
.footer.footer-with-sunburst .footer-section a,
.footer.footer-with-sunburst .footer-section p,
.footer.footer-with-sunburst .footer-section li {
  font-size: 0.7rem !important;
}
.footer.footer-with-sunburst .footer-connect-links {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 0 1em;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer.footer-with-sunburst .footer-connect-links li {
  margin-bottom: 0;
}
.footer.footer-with-sunburst .footer-info-section {
  margin-bottom: 6px;
  padding-bottom: 6px;
}
.footer.footer-with-sunburst .footer-info-section h4,
.footer.footer-with-sunburst .footer-social-title {
  margin-bottom: 4px;
}
.footer.footer-with-sunburst .footer-info-section p {
  font-size: 0.65rem !important;
  line-height: 1.35;
  margin-bottom: 0;
}
.footer.footer-with-sunburst .footer-bottom {
  padding-top: 6px;
  padding-bottom: 6px;
}
.footer.footer-with-sunburst .footer-legal-links {
  gap: 6px 8px;
  margin-bottom: 4px;
}
.footer.footer-with-sunburst .footer-legal-links a,
.footer.footer-with-sunburst .footer-copyright,
.footer.footer-with-sunburst .footer-disclaimer {
  font-size: 0.65rem !important;
}
.footer.footer-with-sunburst .footer-copyright {
  margin: 0 0 2px 0;
}
.footer.footer-with-sunburst .footer-disclaimer {
  font-size: 0.6rem !important;
  line-height: 1.3;
  margin: 0;
}

/* Hidden state for sunburst footer: collapse so it takes no space */
.footer.footer-with-sunburst.footer-hidden {
  max-height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

/* Mobile: simplified footer – Connect links, Privacy, Terms, copyright only */
@media (max-width: 768px) {
  .footer.footer-with-sunburst {
    position: relative !important;
    min-height: 0;
    max-height: none;
    padding: 0;
    margin-top: 24px;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* Shorter sunburst band so footer isn’t tall */
  .footer-with-sunburst .sunburst-section {
    position: absolute;
    inset: 0;
    height: 100%;
    max-height: none;
    min-height: 0;
  }

  #footer .sunburst-controls,
  .footer.footer-with-sunburst .sunburst-controls,
  .footer-with-sunburst .footer-controls-section {
    display: none !important;
  }

  .footer-with-sunburst .footer-main {
    display: block !important;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .footer-with-sunburst .footer-connect-section {
    display: block !important;
    min-width: 0;
  }

  .footer-with-sunburst .footer-info-section {
    display: none !important;
  }

  .footer-with-sunburst .footer-social-section {
    display: none !important;
  }

  .footer-with-sunburst .footer-content {
    padding: 10px 12px 8px;
    box-sizing: border-box;
    width: 100%;
  }

  .footer.footer-with-sunburst .footer-connect-section h3,
  .footer.footer-with-sunburst .footer-connect-section h4,
  .footer.footer-with-sunburst .footer-section h3,
  .footer.footer-with-sunburst .footer-section h4,
  .footer.footer-with-sunburst .footer-social-title {
    margin-bottom: 4px;
    font-size: 0.7rem !important;
  }

  .footer.footer-with-sunburst .footer-connect-links {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0 0.75em;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .footer.footer-with-sunburst .footer-connect-links li {
    margin-bottom: 0;
  }

  .footer.footer-with-sunburst .footer-connect-section a {
    font-size: 0.75rem !important;
  }

  .footer-with-sunburst .footer-bottom {
    padding: 6px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: left;
  }

  .footer-with-sunburst .footer-legal-links {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 4px;
  }

  .footer-with-sunburst .footer-legal-links a,
  .footer-with-sunburst .footer-copyright {
    font-size: 0.65rem !important;
  }

  .footer-with-sunburst .footer-copyright {
    margin: 0 0 2px 0;
    line-height: 1.3;
  }

  .footer-with-sunburst .footer-disclaimer {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .footer-with-sunburst .footer-content {
    padding: 8px 10px 6px;
  }

  .footer-with-sunburst .footer-legal-links a,
  .footer-with-sunburst .footer-copyright {
    font-size: 0.6rem !important;
  }
}

/* Site-wide search results panel (used by sidebar search on all pages) */
#site-search-results {
  position: fixed;
  top: 80px;
  left: 320px;
  right: 20px;
  max-width: 560px;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 10004;
  font-family: var(--font-sans);
}
#site-search-results .site-search-result-item {
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
#site-search-results .site-search-result-item:hover {
  background: var(--surface-hover);
}
@media (max-width: 768px) {
  #site-search-results {
    left: 16px;
    right: 16px;
    top: 76px;
    max-width: none;
    max-height: 60vh;
  }
}

/* Sunburst section (footer background) – behind all footer content */
.sunburst-section {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: background 1.2s ease;
  z-index: 0;
}
.sunburst-section .sunburst-gradient {
  position: absolute;
  inset: 0;
  transition: opacity 1.2s ease;
}
.sunburst-section canvas {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
  cursor: crosshair;
}
.sunburst-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.sunburst-controls .play-pause {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.sunburst-controls .sunburst-toggle-background {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 6px 8px;
  margin-bottom: 4px;
  border: none;
  background: #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  color: #333;
  font-family: inherit;
}
.sunburst-controls .sunburst-toggle-background:hover {
  background: #e0e0e0;
}
.sunburst-controls .sunburst-toggle-background svg {
  width: 16px;
  height: 16px;
}
.sunburst-controls .sunburst-time-options {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.sunburst-controls.expanded .sunburst-time-options {
  max-height: 280px;
}
.sunburst-controls .play-pause button {
  width: 28px;
  height: 28px;
  border: none;
  background: #f0f0f0;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}
.sunburst-controls .play-pause button:hover {
  background: #e0e0e0;
}
.sunburst-controls .play-pause button svg {
  width: 14px;
  height: 14px;
  fill: #333 !important;
  color: #333;
  flex-shrink: 0;
  display: block;
}
.sunburst-controls .play-pause button:hover svg {
  fill: #1a1a1a !important;
  color: #1a1a1a;
}
.sunburst-controls .time-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: 2px 0;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #333;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.sunburst-controls .time-option:hover {
  background: rgba(0, 0, 0, 0.05);
}
.sunburst-controls .time-option.active {
  background: rgba(37, 99, 235, 0.15);
  color: #1d4ed8;
}
.sunburst-controls .time-option svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Home icon: solid black house with door as cutout (left menu) */
.md3-nav-top > a[href="index.html"] .md3-nav-icon svg path { fill: #000 !important; stroke: none !important; }

/* Complementary nav icon colors (all viewports) – higher specificity overrides inline stroke */
.nav-architecture .md3-nav-icon svg { stroke: none !important; fill: none !important; }
.nav-architecture .md3-nav-icon svg path { fill: #111 !important; stroke: none !important; }
.nav-architecture:hover .md3-nav-icon svg path,
.nav-architecture.active .md3-nav-icon svg path { fill: #000 !important; stroke: none !important; }
[data-theme="dark"] .nav-architecture .md3-nav-icon svg path,
[data-theme="dark"] .nav-architecture:hover .md3-nav-icon svg path,
[data-theme="dark"] .nav-architecture.active .md3-nav-icon svg path { fill: #f7f3ec !important; stroke: none !important; }

.nav-web-mobile .md3-nav-icon svg { stroke: #2563eb !important; }
.nav-web-mobile .md3-nav-icon svg rect { fill: #dbeafe !important; } /* light blue fill */
.nav-web-mobile:hover .md3-nav-icon svg,
.nav-web-mobile.active .md3-nav-icon svg { stroke: #1d4ed8 !important; }

.nav-financial .md3-nav-icon svg { stroke: #4f6b45 !important; }
.nav-financial:hover .md3-nav-icon svg,
.nav-financial.active .md3-nav-icon svg { stroke: #3c5234 !important; }

.nav-resources .md3-nav-icon svg { stroke: #b45309 !important; }
.nav-resources .md3-nav-icon svg path { fill: #ffedd5 !important; } /* light orange fill */
.nav-resources:hover .md3-nav-icon svg,
.nav-resources.active .md3-nav-icon svg { stroke: #92400e !important; }

.nav-resume .md3-nav-icon svg { stroke: #047857 !important; }
.nav-resume .md3-nav-icon svg path { fill: #bbf7d0 !important; } /* light green fill */
.nav-resume:hover .md3-nav-icon svg,
.nav-resume.active .md3-nav-icon svg { stroke: #065f46 !important; }

.nav-shop .md3-nav-icon svg { stroke: #6d28d9 !important; }
.nav-shop .md3-nav-icon svg path { fill: #ede9fe !important; } /* light purple fill */
.nav-shop:hover .md3-nav-icon svg,
.nav-shop.active .md3-nav-icon svg { stroke: #5b21b6 !important; }

.nav-travels .md3-nav-icon svg { stroke: #c2410c !important; }
.nav-travels .md3-nav-icon svg circle { fill: #fed7aa !important; } /* light warm fill */
.nav-travels:hover .md3-nav-icon svg,
.nav-travels.active .md3-nav-icon svg { stroke: #9a3412 !important; }

.pay-invoice-nav .md3-nav-icon svg,
.pay-invoice-nav .md3-nav-icon svg rect,
.pay-invoice-nav .md3-nav-icon svg polyline { stroke-width: 1.75 !important; stroke: #111 !important; fill: none !important; }
.pay-invoice-nav:hover .md3-nav-icon svg,
.pay-invoice-nav:hover .md3-nav-icon svg rect,
.pay-invoice-nav:hover .md3-nav-icon svg polyline,
.pay-invoice-nav.active .md3-nav-icon svg,
.pay-invoice-nav.active .md3-nav-icon svg rect,
.pay-invoice-nav.active .md3-nav-icon svg polyline { stroke: #000 !important; fill: none !important; }

/* Hide desktop-style footers on mobile views */
@media (max-width: 768px) {
  /* Hide any legacy/basic footers on mobile, but
     keep the new sunburst footers visible. */
  .footer:not(.footer-with-sunburst),
  .modern-footer,
  footer:not(.footer-with-sunburst) {
    display: none !important;
  }
}

/* ========================================
   MOBILE FULL-SCREEN NAVIGATION (all pages)
   ========================================
   When hamburger is tapped, sidebar becomes full-screen overlay
   with large icons in a grid. Overrides page-specific narrow sidebar.
*/
@media (max-width: 768px) {
  /* Compact hamburger for all pages */
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 1003 !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    color: #1a1a1a !important;
    background-color: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16) !important;
  }
  .mobile-menu-toggle svg {
    width: 20px !important;
    height: 20px !important;
    fill: #1a1a1a !important;
    stroke: #1a1a1a !important;
    color: #1a1a1a !important;
    flex-shrink: 0 !important;
    display: block !important;
  }

  /* Sidebar: full viewport overlay when open (override any width: 36px etc.) */
  .md3-side-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248, 246, 244, 0.98) !important;
    box-shadow: none !important;
    padding: 12px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    z-index: 1002 !important;
  }

  .md3-side-nav.open {
    transform: translateX(0);
  }

  .md3-nav-menu {
    flex: 1 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(48px, auto) !important;
    gap: 10px !important;
    align-content: center !important;
    justify-items: center !important;
    padding: 8px 4px !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
  }

  .md3-nav-item {
    width: 100% !important;
    max-width: 76px !important;
    padding: 6px 4px !important;
    margin: 0 !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
  }

  .md3-nav-icon {
    width: 20px !important;
    height: 20px !important;
    margin-bottom: 2px !important;
  }

  .md3-nav-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* Pay Invoice nav icon: bolder stroke for legibility, distinct complementary color */
  .pay-invoice-nav .md3-nav-icon svg,
  .pay-invoice-nav .md3-nav-icon svg rect,
  .pay-invoice-nav .md3-nav-icon svg polyline {
    stroke-width: 1.75 !important;
    stroke: #111 !important;
    fill: none !important;
  }
  .pay-invoice-nav:hover .md3-nav-icon svg,
  .pay-invoice-nav:hover .md3-nav-icon svg rect,
  .pay-invoice-nav:hover .md3-nav-icon svg polyline,
  .pay-invoice-nav.active .md3-nav-icon svg,
  .pay-invoice-nav.active .md3-nav-icon svg rect,
  .pay-invoice-nav.active .md3-nav-icon svg polyline {
    stroke: #000 !important;
    fill: none !important;
  }

  /* Complementary icon colors per nav section */
  .nav-architecture .md3-nav-icon svg { stroke: none !important; fill: none !important; }
  .nav-architecture .md3-nav-icon svg path { fill: #111 !important; stroke: none !important; }
  .nav-architecture:hover .md3-nav-icon svg path,
  .nav-architecture.active .md3-nav-icon svg path { fill: #000 !important; stroke: none !important; }
  [data-theme="dark"] .nav-architecture .md3-nav-icon svg path,
  [data-theme="dark"] .nav-architecture:hover .md3-nav-icon svg path,
  [data-theme="dark"] .nav-architecture.active .md3-nav-icon svg path { fill: #f7f3ec !important; stroke: none !important; }
  .nav-web-mobile .md3-nav-icon svg { stroke: #2563eb !important; }
  .nav-web-mobile:hover .md3-nav-icon svg,
  .nav-web-mobile.active .md3-nav-icon svg { stroke: #1d4ed8 !important; }
  .nav-financial .md3-nav-icon svg { stroke: #4f6b45 !important; }
  .nav-financial:hover .md3-nav-icon svg,
  .nav-financial.active .md3-nav-icon svg { stroke: #3c5234 !important; }
  .nav-resources .md3-nav-icon svg { stroke: #b45309 !important; }
  .nav-resources:hover .md3-nav-icon svg,
  .nav-resources.active .md3-nav-icon svg { stroke: #92400e !important; }
  .nav-resume .md3-nav-icon svg { stroke: #047857 !important; }
  .nav-resume:hover .md3-nav-icon svg,
  .nav-resume.active .md3-nav-icon svg { stroke: #065f46 !important; }
  .nav-shop .md3-nav-icon svg { stroke: #6d28d9 !important; }
  .nav-shop:hover .md3-nav-icon svg,
  .nav-shop.active .md3-nav-icon svg { stroke: #5b21b6 !important; }
  .nav-travels .md3-nav-icon svg { stroke: #c2410c !important; }
  .nav-travels:hover .md3-nav-icon svg,
  .nav-travels.active .md3-nav-icon svg { stroke: #9a3412 !important; }

  .md3-nav-label {
    font-size: 0.6rem !important;
    line-height: 1.15 !important;
    max-width: 76px !important;
    white-space: normal !important;
    font-weight: 700 !important;
  }

  .md3-nav-bottom {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    padding-top: 6px !important;
    padding-bottom: 4px !important;
    margin-top: 4px !important;
  }

  .md3-nav-top {
    padding-bottom: 6px !important;
    margin-bottom: 4px !important;
  }

  /* Hide footer toggle (scroll down icon) on mobile */
  #footer-toggle,
  button#footer-toggle,
  .md3-nav-item#footer-toggle,
  .md3-nav-bottom #footer-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* Language picker (multilingual nav) - match other nav items, no shadow, same layout as Pause/Theme/Footer */
.lang-picker-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  box-shadow: none !important;
}
.lang-picker-wrap .lang-picker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  padding: 8px 4px;
  min-height: 48px;
  background: transparent !important;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  font: inherit;
  text-align: center;
  box-shadow: none !important;
}
.lang-picker-wrap .lang-picker-btn:hover {
  background: var(--surface-hover) !important;
  box-shadow: none !important;
}
.lang-picker-wrap .md3-nav-icon {
  box-shadow: none !important;
}
@media (max-width: 768px) {
  .md3-nav-bottom .lang-picker-wrap .lang-picker-btn {
    min-height: auto;
    padding: 6px 4px;
  }
}
@media (max-width: 640px) {
  .md3-nav-bottom .lang-picker-wrap .lang-picker-btn {
    padding: 2px 1px;
    min-height: 28px;
  }
}
@media (max-width: 480px) {
  .md3-nav-bottom .lang-picker-wrap .lang-picker-btn {
    padding: 2px 0;
    min-height: 24px;
  }
}
.lang-dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 4px;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
}
.lang-dropdown.lang-dropdown-open {
  display: block;
}
.lang-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--text-primary);
  text-align: left;
}
.lang-dropdown button:hover {
  background: var(--surface-hover);
}

@media (max-width: 480px) {
  .md3-nav-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.pt-20 { padding-top: var(--space-20); }
.pb-20 { padding-bottom: var(--space-20); }

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--muted-foreground) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   RESUME/CV SECTION STYLES
   ======================================== */

.section-resume {
  padding: var(--space-8) 0;
  background: var(--background);
}

.resume-card {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.resume-content {
  padding: var(--space-8);
}

/* Resume Header */
.resume-header {
  text-align: center;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 2px solid var(--border);
}

.resume-name {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.resume-contact {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.resume-links {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.resume-citizen {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.resume-header a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.resume-header a:hover {
  color: var(--accent-foreground);
  text-decoration: underline;
}

/* Resume Grid */
.resume-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.resume-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Resume Sections */
.resume-section {
  margin-bottom: var(--space-6);
}

.resume-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.resume-text {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  text-align: justify;
}

/* Resume Jobs */
.resume-job {
  margin-bottom: var(--space-4);
}

.resume-job-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.resume-job-location {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: var(--space-2);
  font-style: italic;
}

.resume-job-duties {
  list-style: none;
  padding-left: 0;
}

.resume-job-duties li {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: var(--space-2);
  padding-left: var(--space-4);
  position: relative;
}

.resume-job-duties li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Resume Education */
.resume-education {
  margin-bottom: var(--space-4);
}

.resume-education-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.resume-education-location {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: var(--space-1);
  font-style: italic;
}

.resume-education-details {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Resume Skills */
.resume-skills {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.resume-skill-category {
  margin-bottom: var(--space-3);
}

.resume-skill-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-1);
}

.resume-skill-text {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

/* Resume Lists */
.resume-awards,
.resume-projects,
.resume-volunteering {
  list-style: none;
  padding-left: 0;
}

.resume-awards li,
.resume-projects li,
.resume-volunteering li {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: var(--space-2);
  padding-left: var(--space-4);
  position: relative;
}

.resume-awards li::before,
.resume-projects li::before,
.resume-volunteering li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Resume Tool Confidence */
.resume-tool-note {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin-bottom: var(--space-4);
  text-align: center;
}

.resume-tool-category {
  margin-bottom: var(--space-4);
}

.resume-tool-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.resume-tool-item {
  margin-bottom: var(--space-3);
}

.resume-tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.resume-tool-name {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.resume-tool-score {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.resume-tool-bar {
  background: var(--muted);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--space-1);
}

.resume-tool-fill {
  background: var(--primary);
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease-out;
}

.resume-tool-duration {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-style: italic;
}

/* Responsive Design for Resume */
@media (max-width: 1200px) {
  .resume-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  
  .resume-name {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .resume-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .resume-content {
    padding: var(--space-4);
  }
  
  .resume-name {
    font-size: 1.75rem;
  }
  
  .resume-header {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
  }
}

@media (max-width: 480px) {
  .resume-content {
    padding: var(--space-3);
  }
  
  .resume-name {
    font-size: 1.5rem;
  }
  
  .resume-contact,
  .resume-links {
    font-size: 0.9rem;
  }
  
  .resume-section-title {
    font-size: 1rem;
  }
  
  .resume-job-title,
  .resume-education-title {
    font-size: 0.9rem;
  }
  
  .resume-text,
  .resume-job-duties li,
  .resume-awards li,
  .resume-projects li,
  .resume-volunteering li {
    font-size: 0.8rem;
  }
}

/* ========================================
   MOBILE NAVIGATION STYLES
   ======================================== */

/* Mobile Hamburger Button */
.mobile-hamburger {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mobile-hamburger:hover {
  background: var(--muted);
  transform: scale(1.05);
}

.mobile-hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--foreground);
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* Page-load only: dark → default side-nav reveal (desktop) */
.md3-side-nav {
  isolation: isolate;
  background: #efe6d8 !important;
  border-right-color: #e0d2c2 !important;
}

[data-theme="dark"] .md3-side-nav {
  background: #2c2620 !important;
  border-right-color: rgba(232, 214, 190, 0.14) !important;
}

html,
body,
.main-container {
  background-color: #f7f3ec !important;
  background-image: none !important;
}

[data-theme="dark"] html,
[data-theme="dark"] body,
[data-theme="dark"] .main-container {
  background-color: #1c1916 !important;
}

.simple-search-bar,
.simple-search-bar.show,
.simple-search-bar.active {
  width: min(520px, calc(100vw - 110px)) !important;
  max-width: none !important;
  padding: 10px 14px !important;
  overflow: visible;
}

.simple-search-input {
  width: 100% !important;
  max-width: none !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  padding: 8px 4px !important;
}

.simple-search-results {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-height: min(320px, 50vh);
  overflow: auto;
}

.simple-search-results:empty,
.simple-search-results[hidden] {
  display: none !important;
}

.simple-search-results a,
.simple-search-results button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 2px;
  border: 0;
  border-top: 1px solid var(--border-default, #e0d2c2);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.simple-search-results a:hover,
.simple-search-results button:hover {
  text-decoration: underline;
}

.simple-search-results small {
  display: block;
  color: var(--muted-foreground, #64748b);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .simple-search-bar,
  .simple-search-bar.show,
  .simple-search-bar.active {
    width: min(560px, calc(100vw - 72px)) !important;
  }
}

.md3-side-nav .md3-nav-item:hover,
.md3-side-nav .md3-nav-search:hover {
  background: #e6d9c8 !important;
}

.md3-nav-bottom button:hover,
.md3-nav-bottom .lang-picker-btn:hover,
.md3-nav-bottom .md3-nav-item:hover {
  transform: none !important;
  box-shadow: none !important;
}

[data-theme="dark"] .md3-side-nav .md3-nav-item:hover,
[data-theme="dark"] .md3-side-nav .md3-nav-search:hover {
  background: #3a332c !important;
}

.md3-side-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #3a332c;
  z-index: 10002;
  pointer-events: none;
  /* Cover the menu, then peel the bar off from right to left. */
  clip-path: inset(0 0 0 0);
  animation: md3-nav-reveal 2.8s ease-in-out 0.12s forwards;
}

[data-theme="dark"] .md3-side-nav::before {
  background-color: #f7f3ec;
}

.md3-side-nav > * {
  position: relative;
  z-index: 1;
}

@keyframes md3-nav-reveal {
  from { clip-path: inset(0 0 0 0); }
  to { clip-path: inset(0 100% 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .md3-side-nav::before {
    animation: none;
    clip-path: inset(0 100% 0 0);
  }
}

/* Mobile Responsive Sidebar */
@media (max-width: 768px) {
  .md3-side-nav::before {
    animation: none;
    clip-path: inset(0 100% 0 0);
  }

  .md3-side-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .md3-side-nav.mobile-expanded {
    left: 0;
  }
  
  /* Ensure sidebar content is visible on mobile */
  .md3-side-nav .md3-nav-top,
  .md3-side-nav .md3-nav-menu,
  .md3-side-nav .md3-nav-bottom {
    opacity: 1;
    visibility: visible;
  }
  
  /* Adjust main container for mobile */
  .main-container {
    margin-left: 0;
    width: 100vw;
  }
}

/* Mobile Responsive Layout */
@media (max-width: 768px) {
  .mobile-hamburger {
    display: flex;
  }
  
  /* Mobile-first card layout: single column, no overlap */
  .index-cards-container {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .index-card {
    margin: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  
  /* Mobile hero section */
  .hero-content {
    padding: 20px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
  }
  
  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 24px;
  }
  
  /* Mobile section spacing - prevent sections stacking on top of each other */
  .scroll-section {
    padding: 20px 0;
    margin-bottom: 24px;
  }
  
  .card-area-wrapper {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .mobile-nav-content {
    max-width: 100%;
  }
  
  .mobile-nav-header {
    padding: 20px;
  }
  
  .mobile-nav-menu {
    padding: 12px 0;
  }
  
  .mobile-nav-item {
    padding: 14px 20px;
  }
  
  .mobile-nav-footer {
    padding: 20px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

/* Dark sidebar: light icons and labels so the menu stays readable */
@media (min-width: 769px) {
  [data-theme="dark"] .md3-side-nav .md3-nav-item,
  [data-theme="dark"] .md3-side-nav .md3-nav-label,
  [data-theme="dark"] .md3-side-nav .md3-nav-btn,
  [data-theme="dark"] .md3-side-nav .lang-picker-btn,
  [data-theme="dark"] .md3-side-nav button {
    color: #f7f3ec !important;
  }

  [data-theme="dark"] .md3-side-nav .md3-nav-icon svg,
  [data-theme="dark"] .md3-side-nav .md3-nav-icon svg *,
  [data-theme="dark"] .md3-side-nav .md3-nav-item:hover .md3-nav-icon svg,
  [data-theme="dark"] .md3-side-nav .md3-nav-item:hover .md3-nav-icon svg *,
  [data-theme="dark"] .md3-side-nav .md3-nav-item.active .md3-nav-icon svg,
  [data-theme="dark"] .md3-side-nav .md3-nav-item.active .md3-nav-icon svg *,
  [data-theme="dark"] .md3-side-nav .md3-nav-search svg,
  [data-theme="dark"] .md3-side-nav .md3-nav-search svg *,
  [data-theme="dark"] .md3-side-nav .md3-nav-bottom svg,
  [data-theme="dark"] .md3-side-nav .md3-nav-bottom svg * {
    stroke: #f7f3ec !important;
    fill: none !important;
  }

  [data-theme="dark"] .md3-side-nav .md3-nav-top > a[href="index.html"] .md3-nav-icon svg path {
    fill: #f7f3ec !important;
    stroke: none !important;
  }

  [data-theme="dark"] .md3-side-nav .md3-nav-item.nav-architecture .md3-nav-icon svg path {
    fill: #f7f3ec !important;
    stroke: none !important;
  }

}

/* Left-rail hover shortcuts */
.nav-flyout-host {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.nav-flyout {
  position: fixed;
  z-index: 10050;
  min-width: 210px;
  max-width: 280px;
  padding: 10px;
  background: #fff8f5;
  color: #2b1d16;
  border: 1px solid #e0d2c2;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(43, 29, 22, 0.16);
}

.nav-flyout[hidden] {
  display: none !important;
}

.nav-flyout::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -16px;
  width: 16px;
}

.nav-flyout-title {
  margin: 2px 10px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b3a2a;
}

.nav-flyout a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #2b1d16;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.3;
}

.nav-flyout a:hover,
.nav-flyout a:focus-visible {
  background: #6b3a2a;
  color: #fff8f5;
  outline: none;
}

[data-theme="dark"] .nav-flyout {
  background: #2c2620;
  color: #f7f3ec;
  border-color: rgba(232, 214, 190, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .nav-flyout-title {
  color: #ffb68e;
}

[data-theme="dark"] .nav-flyout a {
  color: #f7f3ec;
}

[data-theme="dark"] .nav-flyout a:hover,
[data-theme="dark"] .nav-flyout a:focus-visible {
  background: #ffb68e;
  color: #3a1d12;
}

#projectGrid,
#projectFilters,
#public-clients,
#design-partners,
#project-overview,
#web-mobile-preview,
#fp-schooling,
#fp-courses,
#fp-reading,
#fp-paths,
#archive,
#transcripts,
#resume,
#blog,
#web-mobile,
#resources,
#resume-download,
#resume-summary,
#resume-experience,
#resume-education,
#resume-skills,
#rendering-pricing,
#web-design-pricing,
#service-process,
#professional-services,
#travel-globe,
#travel-places,
#contact-form,
#quick-purchase,
#a-place-for-notes,
#what-stays-public {
  scroll-margin-top: 24px;
}

/* Footer: links on one row, the two notes on their own lines */
html body .footer.footer-with-sunburst .footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 8px 16px;
  box-sizing: border-box;
  width: calc(100vw - 128px);
  max-width: calc(100vw - 128px);
  margin: 0 16px 0 112px;
  padding: 16px 64px 20px 0;
}
html body .footer.footer-with-sunburst .footer-main,
html body .footer.footer-with-sunburst .footer-bottom {
  display: contents;
}
html body .footer.footer-with-sunburst .footer-copyright,
html body .footer.footer-with-sunburst .footer-disclaimer {
  flex: 1 1 100%;
  margin: 0;
  max-width: none;
  font-size: 0.8rem !important;
  line-height: 1.45;
  text-align: left;
}
html body .footer.footer-with-sunburst .footer-connect-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px 12px;
  text-align: left;
}
html body .footer.footer-with-sunburst .footer-connect-section h3 {
  margin: 0;
  font-size: 0.68rem !important;
}
html body .footer.footer-with-sunburst .footer-section h3::after {
  display: none;
}
html body .footer.footer-with-sunburst .footer-connect-links {
  flex-direction: row;
  align-items: center;
  gap: 0 12px;
}
html body .footer.footer-with-sunburst .footer-legal-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  border: none;
}
html body .footer.footer-with-sunburst .footer-controls-section {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: none;
}
html body .footer.footer-with-sunburst .sunburst-controls {
  position: relative;
}
html body .footer.footer-with-sunburst .sunburst-controls:not(.expanded) .sunburst-time-options {
  position: absolute;
  width: 0;
  min-width: 0;
  flex: 0 0 0;
  overflow: hidden;
}

/* Related content, above the footer */
.related {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: calc(100vw - 128px);
  max-width: calc(100vw - 128px);
  margin: 48px 16px 8px 112px;
  padding: 8px 0 12px;
}
.related h2 {
  margin: 0 0 22px;
  padding-left: 14px;
  border-left: 3px solid #1d2430;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1d2430;
}
.related-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}
.related-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 168px;
  padding: 22px 18px 18px;
  background: transparent;
  border: 1px solid #000;
  color: #1d2430;
  text-decoration: none;
}
.related-card:hover,
.related-card:focus-visible {
  background: #000;
  color: #f7f3ec;
}
.related-card:hover .related-kicker,
.related-card:focus-visible .related-kicker,
.related-card:hover .related-note,
.related-card:focus-visible .related-note {
  color: inherit;
}
.related-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d2430;
}
.related-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.related-note {
  margin-top: auto;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #5c6b7a;
}
.related-more {
  margin: 18px 0 0;
  text-align: right;
}
.related-more button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: #1d2430;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.related-more button:hover,
.related-more button:focus-visible { text-decoration: underline; }
[data-theme="dark"] .related h2 { color: #f7f3ec; border-left-color: #f7f3ec; }
[data-theme="dark"] .related-card { background: transparent; border-color: #f7f3ec; color: #f7f3ec; }
[data-theme="dark"] .related-card:hover,
[data-theme="dark"] .related-card:focus-visible { background: #f7f3ec; color: #1d2430; }
[data-theme="dark"] .related-kicker { color: #f7f3ec; }
[data-theme="dark"] .related-note { color: #c5d0dc; }
[data-theme="dark"] .related-more button { color: #f7f3ec; }

@media (max-width: 1100px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  html body .footer.footer-with-sunburst .footer-content {
    display: flex;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 8px 12px;
  }
  html body .footer.footer-with-sunburst .footer-bottom {
    display: contents;
    text-align: left;
  }
  html body .footer.footer-with-sunburst .footer-connect-section,
  html body .footer.footer-with-sunburst .footer-legal-links,
  html body .footer.footer-with-sunburst .footer-copyright,
  html body .footer.footer-with-sunburst .footer-disclaimer {
    text-align: left;
  }
  html body .footer.footer-with-sunburst .footer-connect-links,
  html body .footer.footer-with-sunburst .footer-legal-links {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .related {
    width: auto;
    max-width: none;
    margin: 28px 0 8px;
    padding: 0 20px;
  }
  .related-grid { grid-template-columns: 1fr; }
}


