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

/* Enhanced Dark Theme Tokens */
:root {
  /* Background Colors */
  --bg-primary: #0a0e16;
  --bg-secondary: #0d1117;
  --bg-tertiary: #161b22;
  --bg-gradient-start: #0a0e16;
  --bg-gradient-mid: #0f1419;
  --bg-gradient-end: #1c2128;
  
  /* Text Colors */
  --text-primary: #f0f6fc;
  --text-secondary: #e6edf3;
  --text-muted: #8b949e;
  --text-subtle: #656d76;
  
  /* Border & Outline Colors */
  --border-default: rgba(240, 246, 252, 0.13);
  --border-muted: rgba(240, 246, 252, 0.08);
  --border-subtle: rgba(240, 246, 252, 0.05);
  
  /* Surface Colors */
  --surface-overlay: rgba(13, 17, 23, 0.8);
  --surface-glass: rgba(22, 27, 34, 0.7);
  --surface-elevated: rgba(33, 38, 45, 0.8);
  
  /* Accent Colors */
  --accent-warning: #f85149;  /* red */
  --accent-success: #3fb950;  /* green */
  --accent-info: #58a6ff;     /* blue */
  --accent-emphasis: #ffd33d; /* yellow */
  --accent-purple: #bc8cff;   /* purple */
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #ffd33d 0%, #58a6ff 50%, #bc8cff 100%);
  --gradient-accent: linear-gradient(90deg, rgba(255, 211, 61, 0.15), rgba(88, 166, 255, 0.15));
  
  /* Shadows & Glows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
  --glow-warning: rgba(248, 81, 73, 0.3);
  --glow-info: rgba(88, 166, 255, 0.3);
  --glow-emphasis: rgba(255, 211, 61, 0.3);
  
  /* Layout & Spacing */
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  /* Typography */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  font-weight: var(--font-weight-normal);
  background: 
    radial-gradient(ellipse 80% 50% at 20% -20%, rgba(88, 166, 255, 0.1), transparent),
    radial-gradient(ellipse 80% 50% at 80% 120%, rgba(188, 140, 255, 0.1), transparent),
    linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
  min-height: 100vh;
  color: var(--text-secondary);
  overflow-x: hidden;
  padding-top: 80px;
  opacity: 0;
  animation: fadeInBody 1.2s ease forwards;
  scroll-behavior: smooth;
}

body.loaded {
  opacity: 1;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface-elevated);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1001; }

@keyframes fadeInBody {
  to {
    opacity: 1;
  }
}

/* Animated background particles */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 800px at -10% 20%, rgba(255, 255, 255, 0.04), transparent 60%),
    radial-gradient(1200px 800px at 120% 80%, rgba(255, 255, 255, 0.04), transparent 60%);
  animation: float 20s ease-in-out infinite;
  z-index: -1;
}

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

.glass-container {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(110%);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
  border: 1px solid var(--outline);
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--shadow-1);
}

/* Enhanced Navigation Menu */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--surface-overlay);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-default);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  height: 80px;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: var(--font-weight-bold);
  font-size: 1.25rem;
  color: var(--text-primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.025em;
}

.nav-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  padding: 0.625rem 1.25rem;
  border-radius: var(--border-radius-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--surface-elevated);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-link.active {
  background: var(--gradient-accent);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

.nav-toggle:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }
.nav-toggle:active { transform: translateY(0); }
.nav-toggle::after {
  content: 'Menu';
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* compensate sticky nav and leave space */
}

/* Enhanced Header Styles */
header {
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 4rem 2rem;
  text-align: center;
  margin: 3rem auto;
  max-width: 1000px;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-subtle);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

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

/* Enhanced Typography */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  opacity: 0.9;
  margin: 0 auto 2rem auto;
  line-height: 1.5;
  font-weight: var(--font-weight-medium);
}

.source-link {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--surface-elevated);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-muted);
  font-size: 0.95rem;
}

.source-link span {
  color: var(--text-muted);
  margin-right: 0.5rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

h1 .emoji {
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: initial !important; /* restores native emoji color */
  font-size: 1.2em; /* optional */
  }

h2 {
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 .emoji {
  background: none !important;
  background-clip: unset !important;;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: initial !important; /* restores native emoji color */
  font-size: 1em; /* optional */
  }

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 235, 59, 0.8), rgba(33, 150, 243, 0.8));
  border-radius: 2px;
}

h3 {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

h4 {
  color: rgba(255, 255, 255, 0.9);
  margin: 1.5rem 0 1rem 0;
  font-size: 1.1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Content Styles */
section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2.25rem;
  position: relative;
  z-index: 1;
  scroll-margin-top: 120px; /* ensure anchor scroll places card below header */
}

/* Enhanced Responsive Layout with TOC */
.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 1.5rem;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.toc h3 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.toc-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.toc-link:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--outline);
  box-shadow: 0 8px 20px var(--glow-1);
}

.toc-link.active {
  background: linear-gradient(90deg, rgba(255, 238, 88, 0.18), rgba(100, 181, 246, 0.18));
  color: var(--text-1);
  border: 1px solid var(--outline-strong);
  box-shadow: 0 10px 24px var(--glow-2);
}

.content {
  min-width: 0;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: relative;
    top: 0;
    margin: 0 0 1rem 0;
  }
}

/* Hide top nav on desktop; keep for mobile */
@media (min-width: 981px) {
  .nav-menu {
    display: none;
  }

  body {
    padding-top: 0;
  }

  .toc {
    top: 20px;
  }
}

.glass-card {
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.6s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  background: rgba(16, 20, 32, 0.72);
}

.glass-card:hover::after {
  left: 100%;
}

/* Enhanced Timeline and Status Elements */
.timeline {
  background: var(--gradient-accent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  font-size: 1.05rem;
}

/* Resolved state: emphasize success (green) */
.timeline[data-resolved="true"] {
  background: rgba(63, 185, 80, 0.12); /* subtle green glass */
  border-left: 4px solid var(--accent-success);
  box-shadow: var(--shadow-md), 0 0 24px rgba(63, 185, 80, 0.3);
}

/* Prominent repo link below timeline */
.repo-cta {
  margin: 1rem 0 1.5rem 0;
  text-align: center;
}
.repo-cta a {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, rgba(63,185,80,0.18), rgba(63,185,80,0.1));
  border: 1px solid rgba(63,185,80,0.45);
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-sm), 0 0 18px rgba(63,185,80,0.2);
}
.repo-cta a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 0 22px rgba(63,185,80,0.28);
}

/* Enhanced Alert Styles */
.highlight {
  background: rgba(255, 211, 61, 0.1);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin: 2.5rem 0;
  border-left: 4px solid var(--accent-emphasis);
  box-shadow: var(--shadow-md), 0 0 24px var(--glow-emphasis);
  position: relative;
  overflow: hidden;
}

.warning {
  background: rgba(248, 81, 73, 0.1);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin: 2.5rem 0;
  border-left: 4px solid var(--accent-warning);
  box-shadow: var(--shadow-md), 0 0 24px var(--glow-warning);
  position: relative;
  overflow: hidden;
}

.info {
  background: rgba(88, 166, 255, 0.1);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin: 2.5rem 0;
  border-left: 4px solid var(--accent-info);
  box-shadow: var(--shadow-md), 0 0 24px var(--glow-info);
  position: relative;
  overflow: hidden;
}

.gratitude {
  background: rgba(171, 71, 188, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--outline);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid rgba(171, 71, 188, 0.7);
  box-shadow: 0 4px 20px rgba(156, 39, 176, 0.1);
  position: relative;
  overflow: hidden;
}

.highlight::before, .warning::before, .info::before, .gratitude::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.highlight:hover::before, .warning:hover::before, .info:hover::before, .gratitude:hover::before {
  left: 100%;
}

/* Enhanced Text and Links */
p, li {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

a {
  color: var(--accent-info);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent-info);
  text-shadow: 0 0 8px var(--glow-info);
}

/* Focus styles for accessibility */
:where(a, button, .nav-link):focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

ul {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.8rem;
}

.highlight strong, .warning strong, .info strong, .gratitude strong {
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Enhanced Code and Special Elements */
code {
  background: var(--surface-elevated);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-muted);
  color: var(--accent-emphasis);
  font-family: 'SFMono-Regular', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 0.9em;
  font-weight: var(--font-weight-medium);
}

.email-template {
  background: var(--bg-secondary);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  font-family: 'SFMono-Regular', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  white-space: pre-wrap;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: var(--shadow-md), inset 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.email-template::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
  pointer-events: none;
}

/* Quote and footer styles moved from inline */
.quote {
  font-style: italic;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  padding-left: 1rem;
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-subnote {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-info {
  margin-top: 1.5rem;
  padding: 1rem;
}

/* Grid and Layout Components */
.community-support {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.support-badge {
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Carousel styles for contributors */
.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.carousel-controls { display: flex; gap: 0.5rem; }
.carousel-prev-btn, .carousel-next-btn {
  appearance: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-prev-btn:hover, .carousel-next-btn:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }
.carousel-prev-btn:active, .carousel-next-btn:active { transform: translateY(0); }

.carousel-container {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.carousel-container > li { scroll-snap-align: start; min-width: 260px; }

/* Hide scrollbar utility */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Contributors Carousel */
/* Remove horizontal carousel wrapper; back to grid */
.contributors-carousel { display: contents; }

.contributor-category {
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contributor-category:hover {
  background: var(--surface-elevated);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.support-badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.contributor-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.contributor-list li {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  margin: 0.5rem 0;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--outline);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
/* Clean up per-card styles reverted */

.contributor-list li:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: rgba(255, 255, 255, 0.6);
}

/* Enhanced Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 4rem;
  background: var(--surface-overlay);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border-default);
  color: var(--text-secondary);
}

/* Scroll Animations */
.glass-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.glass-card:nth-child(1) { animation-delay: 0.1s; }
.glass-card:nth-child(2) { animation-delay: 0.2s; }
.glass-card:nth-child(3) { animation-delay: 0.3s; }
.glass-card:nth-child(4) { animation-delay: 0.4s; }
.glass-card:nth-child(5) { animation-delay: 0.5s; }
.glass-card:nth-child(6) { animation-delay: 0.6s; }
.glass-card:nth-child(7) { animation-delay: 0.7s; }
.glass-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--surface-overlay);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 1.5rem;
  }

  header {
    margin: 1.5rem 1rem;
    padding: 2.5rem 1.5rem;
  }

  .glass-card {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  section {
    padding: 0;
  }

  .community-support, .contributors-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .support-badge, .contributor-category {
    padding: 1.5rem;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
}