/* About Page CTA Section */
.about-cta {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-secondary) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-12) var(--space-8) var(--space-10) var(--space-8);
  text-align: center;
  border: 1px solid var(--primary-100);
  transition: all 200ms ease-in-out;
}

.about-cta:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary-200);
}

.about-cta h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.about-cta-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
/* Modern Design System */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Font Stacks */
  --font-sans: 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;

  /* Typography Scale */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* Primary Colors */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;
  --primary-950: #082f49;

  /* Secondary Colors */
  --secondary-50: #faf5ff;
  --secondary-100: #f3e8ff;
  --secondary-200: #e9d5ff;
  --secondary-300: #d8b4fe;
  --secondary-400: #c084fc;
  --secondary-500: #a855f7;
  --secondary-600: #9333ea;
  --secondary-700: #7e22ce;
  --secondary-800: #6b21a8;
  --secondary-900: #581c87;
  --secondary-950: #3b0764;

  /* Neutral Colors */
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;
  --gray-950: #09090b;

  /* Semantic Colors */
  --success-light: #10b981;
  --success-default: #059669;
  --success-dark: #047857;
  
  --error-light: #f87171;
  --error-default: #ef4444;
  --error-dark: #dc2626;
  
  --warning-light: #fbbf24;
  --warning-default: #f59e0b;
  --warning-dark: #d97706;
  
  --info-light: #60a5fa;
  --info-default: #3b82f6;
  --info-dark: #2563eb;

  /* Gradient System */
  --gradient-linear: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-stripe: linear-gradient(135deg, #a960ee 0%, #ff333d 50%, #90e0ff 100%);
  --gradient-subtle: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
  --gradient-dark: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-950) 100%);

  /* Spacing System - 8px Base */
  --space-0: 0;
  --space-px: 1px;
  --space-0\.5: 0.125rem;  /* 2px */
  --space-1: 0.25rem;     /* 4px */
  --space-1\.5: 0.375rem;  /* 6px */
  --space-2: 0.5rem;      /* 8px */
  --space-2\.5: 0.625rem;  /* 10px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-8: 2rem;        /* 32px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */
  --space-24: 6rem;       /* 96px */
  --space-32: 8rem;       /* 128px */

  /* Container Widths */
  --container-xs: 20rem;   /* 320px */
  --container-sm: 24rem;   /* 384px */
  --container-md: 28rem;   /* 448px */
  --container-lg: 32rem;   /* 512px */
  --container-xl: 36rem;   /* 576px */
  --container-2xl: 42rem;  /* 672px */
  --container-3xl: 48rem;  /* 768px */
  --container-4xl: 56rem;  /* 896px */
  --container-5xl: 64rem;  /* 1024px */
  --container-6xl: 72rem;  /* 1152px */
  --container-7xl: 80rem;  /* 1280px */
  --container-full: 100%;

  /* Breakpoints */
  --screen-sm: 640px;
  --screen-md: 768px;
  --screen-lg: 1024px;
  --screen-xl: 1280px;
  --screen-2xl: 1536px;

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;   /* 2px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-3xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 0 0 1px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-none: none;

  /* Z-Index Scale */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-auto: auto;

  /* Animation Durations */
  --duration-75: 75ms;
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;
  --duration-700: 700ms;
  --duration-1000: 1000ms;

  /* Easing Functions */
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Standard Transitions */
  --transition-default: all 150ms var(--ease-in-out);
  --transition-slow: all 300ms var(--ease-in-out);
  --transition-fast: all 75ms var(--ease-in-out);
  --transition-colors: background-color 150ms var(--ease-in-out), border-color 150ms var(--ease-in-out), color 150ms var(--ease-in-out);
  --transition-transform: transform 150ms var(--ease-in-out);
  --transition-opacity: opacity 150ms var(--ease-in-out);

  /* Icon Sizes */
  --icon-xs: 12px;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --icon-xl: 32px;

  /* Icon Stroke Widths */
  --icon-stroke-thin: 1.5px;
  --icon-stroke-normal: 2px;

  /* Legacy/Backward Compatibility */
  --accent-orange: var(--warning-default);
  --accent-orange-hover: var(--warning-dark);
  --accent-green: var(--success-light);
  --success: var(--success-default);
  --warning: var(--warning-default);
  --error: var(--error-default);

  /* Theme Variables */
  --bg-primary: var(--gray-50);
  --bg-secondary: #ffffff;
  --bg-tertiary: var(--gray-100);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-500);
  --border-color: var(--gray-200);
  --border-hover: var(--gray-300);

  /* Theme transition - smooth color changes when switching themes */
  --theme-transition: background-color 0.3s ease, 
                     color 0.3s ease, 
                     border-color 0.3s ease, 
                     box-shadow 0.3s ease;

  /* Legacy/Compatibility Spacing */
  --max-width: 1200px;
  --header-height: 80px;

  /* Legacy/Compatibility Transitions */
  --transition-fast: var(--duration-150) var(--ease-in-out);
  --transition-normal: var(--transition-slow);
  --transition-slow: var(--duration-500) var(--ease-in-out);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: var(--gray-900);
  --bg-secondary: var(--gray-800);
  --bg-tertiary: var(--gray-700);
  --text-primary: var(--gray-50);
  --text-secondary: var(--gray-300);
  --text-muted: var(--gray-400);
  --border-color: var(--gray-700);
  --border-hover: var(--gray-600);
}

/* Dark mode button adjustments */
[data-theme="dark"] .btn-secondary {
  background: var(--gray-800);
  color: var(--gray-300);
  border-color: var(--gray-600);
}

[data-theme="dark"] .btn-secondary:hover {
  background: var(--gray-700);
  color: var(--gray-100);
  border-color: var(--gray-500);
}

[data-theme="dark"] .btn-ghost {
  color: var(--gray-400);
}

[data-theme="dark"] .btn-ghost:hover {
  background: var(--gray-800);
  color: var(--gray-100);
}

/* Performance optimizations */
* {
  /* Improve scrolling performance */
  -webkit-overflow-scrolling: touch;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: var(--gray-900);
    --text-muted: var(--gray-800);
  }

  [data-theme="dark"] {
    --border-color: var(--gray-100);
    --text-muted: var(--gray-200);
  }
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: var(--theme-transition);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.25rem;
}
h3 {
  font-size: 1.875rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-700);
}

header {
  background-color: var(--header-bg);
  margin: 0 -2rem 3rem -2rem;
  padding: 2rem;
  text-align: center;
  border-bottom: 2px solid var(--card-border);
}

header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2.5rem;
  font-weight: 600;
}

header h1 a {
  color: var(--text-color);
  text-decoration: none;
}

header h1 a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.post-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.post-item {
  padding: var(--space-6);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all 200ms ease-in-out, var(--theme-transition);
  box-shadow: var(--shadow-sm);
}

.post-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-300);
}

.post-link {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.post-link:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.post-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.post-content {
  line-height: 1.7;
  background: var(--bg-secondary);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 200ms ease-in-out;
}

.post-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.tagline {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 400;
}

/* Article Content Styling */
.article-content {
  max-width: 65ch;
  margin: 0 auto;
  line-height: 1.8;
}

.article-content h2 {
  margin: 2rem 0 1rem 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.article-content h3 {
  margin: 1.5rem 0 0.75rem 0;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content pre {
  background-color: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
}

.article-content code {
  font-family: var(--font-mono);
  background-color: var(--bg-tertiary);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
}

.article-content pre code {
  background: none;
  padding: 0;
  border: none;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-600);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-content strong {
  font-weight: 600;
  color: var(--text-primary);
}

.article-content a {
  color: var(--primary-600);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition-fast);
}

.article-content a:hover {
  text-decoration-color: var(--primary-600);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.8);
  transition: var(--theme-transition);
}

[data-theme="dark"] .header {
  background-color: rgba(31, 41, 55, 0.8);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--primary-600);
}

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

.nav-link {
  color: var(--text-secondary);
  font-weight: var(--font-medium);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all 150ms ease-in-out;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
  background: var(--gray-100);
  transform: translateY(-1px);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  background: var(--gray-800);
}

.nav-link:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* ===== MOBILE HAMBURGER MENU ===== */
/* Hide the checkbox input */
.mobile-menu-toggle {
  display: none;
}

/* Hamburger button - hidden by default */
.hamburger-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: all var(--duration-150) var(--ease-in-out);
  position: relative;
  z-index: var(--z-50);
}

.hamburger-button:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

[data-theme="dark"] .hamburger-button:hover {
  background: var(--gray-800);
}

.hamburger-button:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Hamburger lines */
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--duration-300) var(--ease-in-out);
  transform-origin: center;
}

.hamburger-line:not(:last-child) {
  margin-bottom: 4px;
}

/* Animate hamburger to X when menu is open */
.mobile-menu-toggle:checked ~ .hamburger-button .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle:checked ~ .hamburger-button .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle:checked ~ .hamburger-button .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu overlay - hidden by default */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-40);
  display: none;
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity var(--duration-300) var(--ease-in-out);
  backdrop-filter: blur(4px);
}

/* Mobile menu content panel */
.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-2xl);
  transform: translateX(100%);
  transition: transform var(--duration-300) var(--ease-in-out), var(--theme-transition);
  overflow-y: auto;
}

/* Mobile menu header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.mobile-menu-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-2xl);
  color: var(--text-secondary);
  transition: all var(--duration-150) var(--ease-in-out);
  line-height: 1;
  background: transparent;
  border: none;
}

.mobile-menu-close:hover {
  background: var(--gray-100);
  color: var(--text-primary);
  transform: translateY(-1px);
}

[data-theme="dark"] .mobile-menu-close:hover {
  background: var(--gray-700);
}

.mobile-menu-close:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Mobile menu navigation links */
.mobile-menu-links {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav-link {
  display: block;
  padding: var(--space-4);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--duration-150) var(--ease-in-out);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-nav-link:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  transform: translateX(4px);
}

[data-theme="dark"] .mobile-nav-link:hover {
  background: var(--gray-800);
  color: var(--primary-400);
}

.mobile-nav-link:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Show mobile menu when checkbox is checked */
.mobile-menu-toggle:checked ~ .mobile-menu {
  display: block;
}

.mobile-menu-toggle:checked ~ .mobile-menu .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-toggle:checked ~ .mobile-menu .mobile-menu-content {
  transform: translateX(0);
}

/* Mobile responsive styles */
@media (max-width: 767px) {
  /* Hide desktop navigation */
  .nav {
    display: none !important;
  }
  
  /* Show hamburger button */
  .hamburger-button {
    display: flex !important;
  }
  
  /* Adjust header content alignment */
  .header-content {
    position: relative;
  }
}

/* Ensure desktop navigation shows on larger screens */
@media (min-width: 768px) {
  .mobile-menu,
  .hamburger-button {
    display: none !important;
  }
  
  .nav {
    display: flex !important;
  }
}

/* ===== BUTTON SYSTEM ===== */
/* Base button styles */
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  line-height: var(--leading-none);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-default);
  user-select: none;
  outline: none;
  
  /* Disable default button styles */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Button variants */
.btn-primary,
.hero-cta {
  background: var(--primary-600);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-sm);
  transition: all 150ms ease-in-out;
}

.btn-primary:hover,
.hero-cta:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-primary:focus,
.hero-cta:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-xs);
  transition: all 150ms ease-in-out;
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  transition: all 150ms ease-in-out;
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-900);
  transform: translateY(-1px);
}

.btn-ghost:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Button sizes */
.btn-sm {
  padding: var(--space-1\.5) var(--space-3);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}

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

/* Button states */
.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled:hover,
.btn[disabled]:hover {
  transform: none;
}

/* Theme toggle button - enhanced */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  cursor: pointer;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  width: 40px;
  height: 40px;
  transition: all 150ms ease-in-out;
}

.theme-toggle:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.theme-toggle:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Theme toggle icon switching - now handled by SVG icons with proper classes */

/* Main Content */
main {
  min-height: calc(100vh - var(--header-height));
  padding: 3rem 0;
}

/* Hero Section - Enhanced with style guide gradients and typography */
.hero {
  text-align: center;
  padding: var(--space-20) 0 var(--space-24) 0;
  background: var(--gradient-stripe);
  margin-bottom: var(--space-20);
  position: relative;
  overflow: hidden;
}

/* Add subtle animation to the gradient background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-linear);
  opacity: 0.1;
  animation: gradient-shift 8s ease-in-out infinite alternate;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

[data-theme="dark"] .hero {
  background: var(--gradient-dark);
}

[data-theme="dark"] .hero::before {
  background: var(--gradient-stripe);
  opacity: 0.05;
}

.hero h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-600) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .hero h1 {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-400) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 42rem;
  margin: 0 auto var(--space-10) auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Gradient animation keyframes */
@keyframes gradient-shift {
  0% {
    transform: translateX(-10px) scale(1);
    opacity: 0.1;
  }
  100% {
    transform: translateX(10px) scale(1.05);
    opacity: 0.15;
  }
}

/* Enhanced hero CTA - updated padding and styles */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--primary-600);
  color: white;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-weight: var(--font-medium);
  font-size: var(--text-base);
  transition: all 150ms ease-in-out;
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.hero-cta:hover {
  background-color: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.hero-cta:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 200ms ease-in-out, var(--theme-transition);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-300);
}

.blog-card-content {
  padding: 0;
}

.blog-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--primary-600);
}

.blog-card-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.blog-card-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

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

.footer-content {
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  color: var(--text-muted);
}

/* Enhanced focus states for accessibility */
a:focus-visible,
button:focus-visible,
.theme-toggle:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Remove focus outline on mouse click */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.theme-toggle:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
  outline: none;
}

.blog-card:focus-within {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-600);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100;
}

.skip-link:focus {
  top: 6px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print styles */
@media print {
  .header,
  .footer,
  .theme-toggle,
  .hero-cta {
    display: none;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .article-content {
    max-width: none;
  }

  .blog-card {
    break-inside: avoid;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .header-content {
    padding: 0 1rem;
  }

  .nav {
    gap: 1rem;
  }

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

  .hero h1 {
    font-size: var(--text-4xl);
    line-height: var(--leading-tight);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    padding: 0 var(--space-4);
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .article-content {
    max-width: 100%;
  }

  .article-content pre {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}



/* ===== FOOTER ENHANCEMENTS ===== */
/* Enhanced footer layout and social links */
.social-links {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all 150ms ease-in-out;
  text-decoration: none;
}

.social-link:hover {
  color: var(--primary-600);
  background: var(--gray-100);
  transform: translateY(-1px);
}

[data-theme="dark"] .social-link:hover {
  background: var(--gray-800);
}

.social-link:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* ===== TAG SYSTEM ===== */
.tag {
  display: inline-flex;
  align-items: center;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border: 1px solid var(--gray-200);
  transition: all 150ms ease-in-out;
}

.tag:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .tag {
  background: var(--gray-800);
  color: var(--gray-300);
  border-color: var(--gray-700);
}

[data-theme="dark"] .tag:hover {
  background: var(--gray-700);
  color: var(--gray-200);
  border-color: var(--gray-600);
}

/* ===== CARD SYSTEM ===== */
/* Base card component following style guide specifications */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all 200ms ease-in-out, var(--theme-transition);
}

.card-interactive:hover,
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary-200);
}

.card-xl {
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.card-header {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-4);
}

.card-content {
  padding: 0;
}

.card-footer {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-4);
}

/* ===== LOADING ANIMATION SYSTEM ===== */
/* Keyframe animations from style guide */
@keyframes spin {
  to { 
    transform: rotate(360deg); 
  }
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
  }
  50% { 
    opacity: 0.5; 
  }
}

@keyframes shimmer {
  0% { 
    background-position: -200% 0; 
  }
  100% { 
    background-position: 200% 0; 
  }
}

/* Loading spinner component */
.loading-spinner,
.spinner {
  animation: spin 1s linear infinite;
  display: inline-block;
  width: var(--icon-md);
  height: var(--icon-md);
  border: 2px solid var(--gray-200);
  border-top: 2px solid var(--primary-600);
  border-radius: var(--radius-full);
}

.loading-spinner.spinner-sm {
  width: var(--icon-sm);
  height: var(--icon-sm);
  border-width: 1.5px;
}

.loading-spinner.spinner-lg {
  width: var(--icon-lg);
  height: var(--icon-lg);
  border-width: 3px;
}

.loading-spinner.spinner-xl {
  width: var(--icon-xl);
  height: var(--icon-xl);
  border-width: 3px;
}

/* Dark theme spinner adjustments */
[data-theme="dark"] .loading-spinner,
[data-theme="dark"] .spinner {
  border-color: var(--gray-700);
  border-top-color: var(--primary-500);
}

/* Skeleton loading placeholders */
.loading-skeleton,
.skeleton {
  background: linear-gradient(90deg, 
    var(--gray-200) 25%, 
    var(--gray-100) 50%, 
    var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius-sm);
  display: block;
}

[data-theme="dark"] .loading-skeleton,
[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, 
    var(--gray-800) 25%, 
    var(--gray-700) 50%, 
    var(--gray-800) 75%);
  background-size: 200% 100%;
}

/* Skeleton variants */
.skeleton-text {
  height: 1rem;
  margin-bottom: var(--space-2);
}

.skeleton-text.skeleton-sm {
  height: 0.875rem;
}

.skeleton-text.skeleton-lg {
  height: 1.25rem;
}

.skeleton-title {
  height: 2rem;
  margin-bottom: var(--space-3);
}

.skeleton-paragraph {
  height: 0.875rem;
  margin-bottom: var(--space-1);
}

.skeleton-paragraph:last-child {
  width: 70%;
}

.skeleton-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
}

.skeleton-avatar.avatar-sm {
  width: 2rem;
  height: 2rem;
}

.skeleton-avatar.avatar-lg {
  width: 4rem;
  height: 4rem;
}

.skeleton-card {
  height: 8rem;
  border-radius: var(--radius-lg);
}

.skeleton-image {
  height: 12rem;
  border-radius: var(--radius-md);
}

/* Shimmer effect for content placeholders */
.loading-shimmer,
.shimmer {
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .loading-shimmer,
[data-theme="dark"] .shimmer {
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%);
  background-size: 200% 100%;
}

/* Pulse loading effect */
.loading-pulse,
.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Blog-specific loading states */
.blog-card-skeleton {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.blog-card-skeleton .skeleton-title {
  height: 1.5rem;
  width: 80%;
  margin-bottom: var(--space-3);
}

.blog-card-skeleton .skeleton-paragraph {
  height: 0.875rem;
  margin-bottom: var(--space-1);
}

.blog-card-skeleton .skeleton-paragraph:nth-child(2) {
  width: 95%;
}

.blog-card-skeleton .skeleton-paragraph:nth-child(3) {
  width: 85%;
}

.blog-card-skeleton .skeleton-paragraph:nth-child(4) {
  width: 60%;
}

.blog-card-skeleton .skeleton-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.blog-card-skeleton .skeleton-meta .skeleton-text {
  height: 0.75rem;
  width: 4rem;
  margin-bottom: 0;
}

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

.nav-skeleton {
  height: 1rem;
  width: 4rem;
  border-radius: var(--radius-sm);
}

/* Button loading states */
.btn-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--icon-sm);
  height: var(--icon-sm);
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  color: inherit;
}

/* Page transition loading */
.page-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--primary-600) 0%, 
    var(--secondary-500) 100%);
  transform: translateX(-100%);
  animation: loading-bar 2s ease-in-out infinite;
  z-index: var(--z-50);
}

@keyframes loading-bar {
  0% { 
    transform: translateX(-100%); 
  }
  50% { 
    transform: translateX(0%); 
  }
  100% { 
    transform: translateX(100%); 
  }
}

/* Content placeholder patterns */
.content-loading {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
}

.content-loading .skeleton-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.content-loading .skeleton-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.content-loading .skeleton-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-4);
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .loading-spinner,
  .spinner,
  .loading-skeleton,
  .skeleton,
  .loading-shimmer,
  .shimmer,
  .loading-pulse,
  .pulse,
  .page-loading {
    animation: none !important;
  }
  
  /* Provide alternative visual feedback for reduced motion */
  .loading-spinner,
  .spinner {
    opacity: 0.6;
  }
  
  .loading-skeleton,
  .skeleton {
    background: var(--gray-200);
  }
  
  [data-theme="dark"] .loading-skeleton,
  [data-theme="dark"] .skeleton {
    background: var(--gray-700);
  }
}

/* Loading state utility classes */
.loading-state {
  pointer-events: none;
  user-select: none;
}

.loading-overlay {
  position: relative;
}

.loading-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  z-index: 1;
}

[data-theme="dark"] .loading-overlay::after {
  background: rgba(0, 0, 0, 0.8);
}

/* Screen reader support */
.loading-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hide loading elements from screen readers to avoid confusion */
.loading-spinner,
.skeleton,
.loading-skeleton,
.shimmer,
.loading-shimmer {
  aria-hidden: true;
}

/* ===== STANDARDIZED ICON SYSTEM ===== */
/* Base icon styles - following style guide specifications */
.icon,
svg.icon {
  display: inline-block;
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
  flex-shrink: 0;
  vertical-align: middle;
  transition: var(--transition-colors);
}

/* Icon sizes following design system */
.icon-xs,
svg.icon-xs {
  width: var(--icon-xs);
  height: var(--icon-xs);
}

.icon-sm,
svg.icon-sm {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.icon-md,
svg.icon-md {
  width: var(--icon-md);
  height: var(--icon-md);
}

.icon-lg,
svg.icon-lg {
  width: var(--icon-lg);
  height: var(--icon-lg);
}

.icon-xl,
svg.icon-xl {
  width: var(--icon-xl);
  height: var(--icon-xl);
}

/* Icon stroke styles for outlined icons */
.icon-outline,
svg.icon-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke-thin);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-outline-thick,
svg.icon-outline-thick {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke-normal);
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Icon filled styles for solid icons */
.icon-filled,
svg.icon-filled {
  fill: currentColor;
  stroke: none;
}

/* Icon color variants */
.icon-muted,
svg.icon-muted {
  color: var(--text-muted);
}

.icon-primary,
svg.icon-primary {
  color: var(--primary-600);
}

.icon-secondary,
svg.icon-secondary {
  color: var(--text-secondary);
}

/* Interactive icon states */
.icon-interactive,
svg.icon-interactive {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-interactive:hover,
svg.icon-interactive:hover {
  color: var(--primary-600);
  transform: translateY(-1px);
}

/* Icon spacing utilities for use with text */
.icon-before,
svg.icon-before {
  margin-right: var(--space-2);
}

.icon-after,
svg.icon-after {
  margin-left: var(--space-2);
}

.icon-before-sm,
svg.icon-before-sm {
  margin-right: var(--space-1);
}

.icon-after-sm,
svg.icon-after-sm {
  margin-left: var(--space-1);
}

/* Decorative icons should be hidden from screen readers */
.icon[aria-hidden="true"],
svg[aria-hidden="true"] {
  /* No additional styles needed, just ensures proper accessibility */
}

/* Social media icon specific styles */
.social-link svg {
  width: var(--icon-md);
  height: var(--icon-md);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

/* Enhanced theme toggle with proper SVG icon */
.theme-toggle-icon {
  width: var(--icon-md);
  height: var(--icon-md);
  transition: all var(--transition-fast);
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}
