/* =============================================================================
   PETE SCHWEISS - PERSONAL WEBSITE
   Global Stylesheet
   =============================================================================

   HOW TO CUSTOMIZE THE LOOK:
   The easiest way to change the entire color scheme is to edit the
   "CSS Custom Properties" section at the top. Those variables are used
   everywhere throughout the file.

   TABLE OF CONTENTS:
   1.  CSS Variables (Colors, Fonts, Spacing) ← START HERE to customize
   2.  Reset & Base
   3.  Typography
   4.  Layout
   5.  Navigation
   6.  Hero Section
   7.  Buttons
   8.  Social Widget (sidebar)
   9.  Cards (blog/recipe listings)
   10. Filter Bar & Search
   11. Single Post Page
   12. Resume Page
   13. Speaking / Events Page
   14. Contact Page
   15. Footer
   16. Dark Mode
   17. Utility Classes
   18. Responsive / Mobile
   19. Print Styles (for resume)
   ============================================================================= */


/* =============================================================================
   1. CSS VARIABLES
   Edit these to change colors, fonts, and spacing site-wide.
   ============================================================================= */
:root {
  /* --- Primary Colors --- */
  /* Purple + cyan palette: conveys AI, innovation, and Salesforce expertise */
  --color-primary:        #4c1d95;   /* Deep violet — headings, nav background */
  --color-primary-mid:    #6d28d9;   /* Medium violet — gradient midpoint */
  --color-primary-light:  #7c3aed;   /* Bright violet — links, active states */
  --color-accent:         #06b6d4;   /* Cyan — buttons, highlights (AI/tech feel) */
  --color-accent-hover:   #0891b2;   /* Darker cyan for hover states */
  --color-accent-glow:    rgba(6, 182, 212, 0.25); /* Cyan glow for effects */

  /* --- Backgrounds & Surfaces --- */
  --color-bg:             #faf9ff;   /* Very slight purple tint on background */
  --color-surface:        #ffffff;   /* Cards, modals, panels */
  --color-border:         #ede9fe;   /* Violet-tinted borders */

  /* --- Text Colors --- */
  --color-text:           #1e1b4b;   /* Deep indigo body text */
  --color-text-muted:     #6b7280;   /* Secondary text, captions */
  --color-text-light:     #a5b4fc;   /* Placeholders, disabled states */

  /* --- Typography --- */
  --font-heading: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Open Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'Fira Code', 'Consolas', 'Monaco', monospace;

  /* --- Spacing (multiples of 4px) --- */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* --- Layout --- */
  --max-width:      1100px;
  --sidebar-width:   260px;
  --nav-height:       64px;

  /* --- Borders & Shadows --- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:  16px;
  --radius-full: 9999px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);

  /* --- Transition speed --- */
  --transition: 0.2s ease;
}

/* Dark mode variables: applied when <html class="dark"> */
html.dark {
  --color-bg:           #0d0a1f;   /* Very dark purple-black background */
  --color-surface:      #160d2e;   /* Dark purple surface — like deep space */
  --color-border:       #2d1f5e;   /* Purple-tinted borders */
  --color-text:         #ede9fe;   /* Soft violet-white text */
  --color-text-muted:   #a78bfa;   /* Muted violet */
  --color-text-light:   #6d28d9;
  --color-primary:      #c4b5fd;   /* Light violet for headings in dark mode */
  --color-primary-light:#a78bfa;
  --color-accent-glow:  rgba(6, 182, 212, 0.35);
}


/* =============================================================================
   2. RESET & BASE
   ============================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color var(--transition), color var(--transition);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-accent); }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* Skip to main content link — only visible when focused by keyboard */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--color-accent);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-to-content:focus {
  top: 0;
  color: white;
}


/* =============================================================================
   3. TYPOGRAPHY
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 700;
  transition: color var(--transition);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem);    margin-bottom: var(--space-6); }
h3 { font-size: clamp(1.1rem,  2vw, 1.4rem);  margin-bottom: var(--space-4); }
h4 { font-size: 1.05rem; }

p {
  margin-bottom: var(--space-4);
  max-width: 72ch;  /* Optimal reading line length */
}
p:last-child { margin-bottom: 0; }

/* Section heading with colored underline accent */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-3);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

/* Colored banner at the top of internal pages */
.page-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-mid));
  color: white;
  padding: var(--space-12) var(--space-6);
  text-align: center;
  margin-bottom: var(--space-10);
}
.page-header h1 { color: white; margin-bottom: var(--space-3); }
.page-header p  { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 60ch; margin: 0 auto; }


/* =============================================================================
   4. LAYOUT
   ============================================================================= */

/* Standard centered container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Content + sidebar grid */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-10);
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-10) var(--space-6);
}

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

/* Responsive card grid for listings */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}


/* =============================================================================
   5. NAVIGATION
   ============================================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  gap: var(--space-4);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: white !important;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.nav-brand span { color: var(--color-accent); }
.nav-brand:hover { color: white !important; }

.nav-links {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-links li { list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.8);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.15);
}

.nav-actions { display: flex; align-items: center; gap: var(--space-2); }

.dark-mode-toggle {
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: var(--radius-full);
  padding: 6px 10px;
  font-size: 1rem;
  transition: background var(--transition);
  line-height: 1;
}
.dark-mode-toggle:hover { background: rgba(255,255,255,0.2); }

.nav-hamburger {
  display: none;
  color: white;
  font-size: 1.4rem;
  padding: var(--space-2);
  line-height: 1;
}


/* =============================================================================
   6. HERO SECTION (Home Page)
   ============================================================================= */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 55%, #0e7490 100%);
  color: white;
  padding: var(--space-16) var(--space-6);
  position: relative;
  overflow: hidden;
}
/* AI dot-grid pattern overlay — gives a "neural network / data" feel */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Radial dot grid — classic AI/tech aesthetic */
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
/* Cyan glow orb in top-right corner */
.hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-10);
  align-items: center;
}

.hero-text h1     { color: white; margin-bottom: var(--space-3); }
.hero-subtitle    { font-size: 1rem; color: var(--color-accent); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-5); }
.hero-bio         { color: rgba(255,255,255,0.87); font-size: 1.05rem; max-width: 600px; margin-bottom: var(--space-6); line-height: 1.7; }

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.3);
  object-fit: cover;
  flex-shrink: 0;
}

.hero-btns {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Featured items grid on home page */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}


/* =============================================================================
   7. BUTTONS
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-accent);
  color: white;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(6,182,212,0.4);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
}
.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
  color: white;
}
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}


/* =============================================================================
   8. SOCIAL WIDGET
   ============================================================================= */
.social-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.social-widget h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.social-links { display: flex; flex-direction: column; gap: var(--space-2); }

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.social-link:hover {
  border-color: var(--color-border);
  background: var(--color-bg);
  transform: translateX(3px);
  color: var(--color-text);
}
.social-link .social-icon { width: 20px; flex-shrink: 0; }

/* Platform-specific hover colors */
.social-link.linkedin:hover  { color: #0077b5; border-color: #0077b5; }
.social-link.github:hover    { color: #333; border-color: #333; }
.social-link.facebook:hover  { color: #1877f2; border-color: #1877f2; }
.social-link.instagram:hover { color: #e1306c; border-color: #e1306c; }
.social-link.trailhead:hover { color: #00a1e0; border-color: #00a1e0; }
html.dark .social-link.github:hover { color: #f0f6fc; border-color: #aaa; }

.widget-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-4) 0;
}

.sidebar-profile { text-align: center; margin-bottom: var(--space-4); }
.sidebar-profile img {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto var(--space-2);
  border: 2px solid var(--color-border);
  object-fit: cover;
}
.sidebar-profile h4 { font-size: 0.92rem; margin-bottom: 2px; }
.sidebar-profile p  { font-size: 0.78rem; color: var(--color-text-muted); margin: 0; }

.widget-bio {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 100%;
}


/* =============================================================================
   9. CARDS (Blog / Recipe Listings)
   ============================================================================= */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,58,237,0.3), 0 8px 40px rgba(109,40,217,0.12);
  color: inherit;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-image-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.card-category {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-title {
  font-size: 1.05rem;
  margin-bottom: var(--space-3);
  color: var(--color-primary);
  line-height: 1.35;
  transition: color var(--transition);
}
.card:hover .card-title { color: var(--color-primary-light); }

.card-excerpt {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  flex: 1;
  margin-bottom: var(--space-4);
  line-height: 1.55;
  max-width: 100%;
}

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

.read-more {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--color-primary-light);
}

.reading-time { font-size: 0.78rem; color: var(--color-text-light); }

/* Recipe card extras */
.recipe-quick-info {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.recipe-info-item {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}


/* =============================================================================
   10. FILTER BAR & SEARCH
   ============================================================================= */
.filter-search-area {
  margin-bottom: var(--space-8);
}

.search-bar {
  position: relative;
  margin-bottom: var(--space-5);
}
.search-bar input {
  width: 100%;
  padding: var(--space-3) var(--space-5) var(--space-3) 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar input:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}
.search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
.filter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-right: var(--space-2);
}
.filter-btn {
  padding: 6px var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.83rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--color-primary-light); color: var(--color-primary-light); }
.filter-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.no-results {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  color: var(--color-text-muted);
  display: none;
}
.no-results.visible { display: block; }
.no-results .no-results-icon { font-size: 3rem; margin-bottom: var(--space-4); }


/* =============================================================================
   11. SINGLE POST PAGE
   ============================================================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: 0.83rem;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-primary-light); }
.breadcrumb span { color: var(--color-text-muted); }

.post-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.post-header h1 { margin: var(--space-3) 0 var(--space-4); max-width: none; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* Rendered Markdown styles */
.post-body {
  line-height: 1.8;
  font-size: 1.02rem;
}
.post-body h2,
.post-body h3,
.post-body h4 { margin: var(--space-8) 0 var(--space-4); max-width: none; }
.post-body p  { margin-bottom: var(--space-5); }
.post-body ul,
.post-body ol {
  margin-left: var(--space-6);
  margin-bottom: var(--space-5);
}
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: var(--space-2); }
.post-body blockquote {
  border-left: 4px solid var(--color-primary-light);
  padding: var(--space-3) var(--space-5);
  margin: var(--space-6) 0;
  color: var(--color-text-muted);
  font-style: italic;
  background: var(--color-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body code {
  font-family: var(--font-mono);
  background: var(--color-bg);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.88em;
  border: 1px solid var(--color-border);
}
.post-body pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-5) 0;
}
.post-body pre code {
  background: none;
  padding: 0;
  border: none;
  font-size: 0.9em;
}
.post-body img {
  border-radius: var(--radius-md);
  margin: var(--space-5) 0;
}

/* Recipe info grid */
.recipe-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
}
.recipe-meta-item { text-align: center; }
.recipe-meta-item .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.recipe-meta-item .value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
}


/* =============================================================================
   12. RESUME PAGE
   ============================================================================= */
.resume-download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.resume-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.resume-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-mid));
  color: white;
  padding: var(--space-10);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
}
.resume-header h1     { color: white; margin-bottom: var(--space-2); font-size: 2rem; }
.resume-header .title {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-6);
}
.resume-contact-items { display: flex; flex-direction: column; gap: var(--space-2); }
.resume-contact-item  { display: flex; align-items: center; gap: var(--space-3); font-size: 0.88rem; color: rgba(255,255,255,0.9); }
.resume-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.4);
  object-fit: cover;
}

.resume-body {
  display: grid;
  grid-template-columns: 240px 1fr;
}
.resume-sidebar {
  background: var(--color-bg);
  padding: var(--space-8);
  border-right: 1px solid var(--color-border);
}
.resume-main { padding: var(--space-8); }

.resume-section { margin-bottom: var(--space-8); }
.resume-section:last-child { margin-bottom: 0; }

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

.resume-job          { margin-bottom: var(--space-6); }
.resume-job:last-child { margin-bottom: 0; }
.resume-job-title   { font-weight: 700; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }
.resume-job-company { color: var(--color-text-muted); font-size: 0.88rem; margin-bottom: 2px; }
.resume-job-dates   { font-size: 0.83rem; font-weight: 600; color: var(--color-primary-light); margin-bottom: var(--space-3); }
.resume-job-bullets { padding-left: var(--space-5); }
.resume-job-bullets li {
  list-style: disc;
  font-size: 0.88rem;
  margin-bottom: var(--space-2);
  line-height: 1.5;
  color: var(--color-text);
}

.skill-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.skill-badge {
  background: var(--color-primary);
  color: white;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
}
.cert-item:last-child { border-bottom: none; }
.cert-icon   { font-size: 1.3rem; }
.cert-name   { font-weight: 600; color: var(--color-text); }
.cert-issuer { color: var(--color-text-muted); font-size: 0.78rem; }

.edu-item    { margin-bottom: var(--space-5); }
.edu-degree  { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.02em; }
.edu-school  { color: var(--color-text-muted); font-size: 0.83rem; }
.edu-dates   { font-size: 0.82rem; font-weight: 600; color: var(--color-primary-light); }


/* =============================================================================
   13. SPEAKING / EVENTS
   ============================================================================= */
.events-section { padding: var(--space-10) 0; }

.event-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  transition: box-shadow var(--transition);
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: var(--space-5);
  align-items: start;
}
.event-card:hover { box-shadow: var(--shadow-md); }
.event-card.past  { opacity: 0.65; }

.event-date-badge {
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  text-align: center;
  padding: var(--space-3) var(--space-2);
  flex-shrink: 0;
}
.event-date-badge .month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; display: block; }
.event-date-badge .day   { font-size: 1.7rem; font-weight: 700; line-height: 1; display: block; }
.event-date-badge .year  { font-size: 0.72rem; opacity: 0.8; display: block; }
.event-card.past .event-date-badge { background: var(--color-text-muted); }

.event-info h3 { margin-bottom: var(--space-2); font-size: 1rem; }
.event-details {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  font-size: 0.83rem; color: var(--color-text-muted); margin-bottom: var(--space-3);
}
.event-detail    { display: flex; align-items: center; gap: 5px; }
.event-desc      { font-size: 0.88rem; color: var(--color-text-muted); max-width: 100%; }

.event-status {
  display: inline-block;
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.event-status.upcoming  { background: #dcfce7; color: #16a34a; }
.event-status.past      { background: var(--color-bg); color: var(--color-text-muted); }
.event-status.confirmed { background: #dbeafe; color: #2563eb; }

.speaking-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}


/* =============================================================================
   14. CONTACT PAGE
   ============================================================================= */
.contact-page { padding: var(--space-10) 0 var(--space-16); }
.contact-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.contact-info p { color: var(--color-text-muted); margin-bottom: var(--space-8); }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.contact-icon {
  width: 44px; height: 44px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-detail-text strong { display: block; margin-bottom: 2px; font-size: 0.92rem; }
.contact-detail-text span   { color: var(--color-text-muted); font-size: 0.88rem; }

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { margin-bottom: var(--space-6); }

.form-group { margin-bottom: var(--space-5); }
.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}
.form-group textarea        { min-height: 140px; resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-light); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

.form-message {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: var(--space-3);
}
.form-message.success {
  background: #dcfce7; color: #16a34a;
  border: 1px solid #bbf7d0; display: flex;
}
.form-message.error {
  background: #fee2e2; color: #dc2626;
  border: 1px solid #fecaca; display: flex;
}


/* =============================================================================
   15. FOOTER
   ============================================================================= */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: var(--space-10) 0 var(--space-6);
  margin-top: var(--space-16);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-8);
}

.footer-brand h3 { color: white; margin-bottom: var(--space-3); }
.footer-brand p  { font-size: 0.88rem; line-height: 1.6; color: rgba(255,255,255,0.75); max-width: 100%; }
.footer-social   { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-social a:hover { color: white; }

.footer-links h4  { color: white; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-4); }
.footer-links ul  { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links li  { list-style: none; }
.footer-links a   { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: white; }


/* =============================================================================
   16. DARK MODE TWEAKS
   ============================================================================= */
html.dark .skill-badge  { background: var(--color-primary-light); }
html.dark .card-category { background: var(--color-primary-light); }
html.dark .event-status.upcoming { background: rgba(22,163,74,0.2);  color: #4ade80; }
html.dark .event-status.confirmed{ background: rgba(37,99,235,0.2); color: #60a5fa; }
html.dark .ingredients-list { background: rgba(255,255,255,0.04); }
html.dark .recipe-meta-grid  { background: rgba(255,255,255,0.03); }


/* =============================================================================
   17. UTILITY CLASSES
   ============================================================================= */
.text-center  { text-align: center; }
.text-muted   { color: var(--color-text-muted); }
.text-sm      { font-size: 0.875rem; }
.font-bold    { font-weight: 700; }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.hidden        { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}


/* =============================================================================
   18. RESPONSIVE / MOBILE
   ============================================================================= */
@media (max-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
    padding: var(--space-6);
  }
  .social-widget { position: static; }

  .resume-body { grid-template-columns: 1fr; }
  .resume-sidebar { border-right: none; border-bottom: 1px solid var(--color-border); }
  .resume-header { grid-template-columns: 1fr; }
  .resume-photo  { margin: var(--space-4) auto 0; }

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

@media (max-width: 600px) {
  :root { --nav-height: 56px; }

  /* Hide nav links and show hamburger on mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    gap: var(--space-1);
  }
  .nav-links.open { display: flex; }
  .nav-hamburger  { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { margin: 0 auto; order: -1; width: 120px; height: 120px; }
  .hero-btns  { justify-content: center; }
  .hero-bio   { margin: 0 auto var(--space-6); }

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

  .event-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .resume-header { padding: var(--space-6); }
  .resume-sidebar,
  .resume-main    { padding: var(--space-6); }
}


/* =============================================================================
   19. PRINT STYLES (for Resume page)
   When someone prints the page or uses Ctrl+P, this hides nav/footer.
   ============================================================================= */
@media print {
  .site-nav, .site-footer, .resume-download-bar,
  .social-widget, .dark-mode-toggle, .breadcrumb { display: none !important; }
  body { background: white !important; color: black !important; }
  .resume-container { box-shadow: none !important; border: none !important; }
  .resume-header { background: #4c1d95 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit !important; text-decoration: none !important; }
}
