/* Local font faces for self-hosted Google Fonts */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans/ibm-plex-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans/ibm-plex-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans/ibm-plex-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-code-pro/source-code-pro-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/source-code-pro/source-code-pro-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/source-code-pro/source-code-pro-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/vt323/vt323-latin.woff2') format('woff2');
}

/* Design Tokens - Mycopunk Aesthetic */
:root {
  /* Core Tones - Mycopunk Earth */
  --color-fungal-brown: #4B3621;
  --color-charcoal-black: #0A0A0A;
  --color-sporeskin-beige: #EEEAE0;

  /* Electric Accents - Cypherpunk Neon */
  --color-crypto-lime: #aeff00;
  --color-myco-magenta: #FF00CC;
  --color-biolume-cyan: #00FFFF;

  /* Supplementary */
  --color-rust-orange: #B7410E;
  --color-signal-gray: #AAAAAA;

  /* Semantic Colors - Light Mode */
  --color-primary: var(--color-fungal-brown);
  --color-primary-light: #6B5231;
  --color-primary-dark: #99CC00;
  --color-secondary: #d800a2;
  --color-accent: #008B8B;
  --color-warning: var(--color-rust-orange);

  --color-text: var(--color-charcoal-black);
  --color-text-light: #666666;
  --color-background: var(--color-sporeskin-beige);
  --color-surface: #E8E3DC;
  --color-border: var(--color-fungal-brown);

  /* Additional semantic colors */
  --color-gray: #595959;
  --color-gray-light: #C0C0C0;

  /* Neon accents for interactive elements only (on dark backgrounds) */
  --color-neon-lime: var(--color-crypto-lime);
  --color-neon-magenta: var(--color-myco-magenta);
  --color-neon-cyan: var(--color-biolume-cyan);

  /* Typography - Cyberpunk Aesthetic */
  --font-heading: 'VT323', monospace;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Source Code Pro', monospace;

  --font-size-base: 16px;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  --line-height-tight: 1.2;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-prose: 72ch;

  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* Dark Mode - Mycopunk Night */
[data-theme="dark"] {
  --color-text: var(--color-sporeskin-beige);
  --color-text-light: #B8B8B8;
  --color-background: var(--color-charcoal-black);
  --color-surface: #1A1611;
  --color-border: #6B5231;
  --color-primary: var(--color-crypto-lime);
  --color-primary-light: #E0FF66;
  --color-secondary: var(--color-myco-magenta);
  --color-accent: var(--color-biolume-cyan);

  /* Dark mode grays */
  --color-gray: #B8B8B8;
  --color-gray-light: #3A3A3A;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-background);
  transition: color var(--transition-base), background-color var(--transition-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.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;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-sm);
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Wrapper */
.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Header */
.site-header {
  background: linear-gradient(90deg, var(--color-charcoal-black) 0%, var(--color-fungal-brown) 50%, var(--color-charcoal-black) 100%);
  border-bottom: 2px solid var(--color-primary);
  padding: var(--spacing-lg) 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(204, 255, 0, 0.3);
}

[data-theme="dark"] .site-header {
  background: linear-gradient(90deg, var(--color-charcoal-black) 0%, #1A1611 50%, var(--color-charcoal-black) 100%);
  border-bottom-color: var(--color-primary);
}

.site-header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo__image {
  width: clamp(48px, 5vw, 64px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(174, 255, 0, 0.6));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.site-logo:hover .site-logo__image {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(174, 255, 0, 0.9));
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-trigger {
  display: none;
}

.menu-icon {
  display: none;
  color: var(--color-sporeskin-beige);
  transition: color var(--transition-fast);
}

.trigger {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.page-link {
  color: var(--color-sporeskin-beige);
  text-decoration: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.page-link:hover {
  color: var(--color-neon-lime);
  text-shadow: 0 0 2px var(--color-neon-lime);
  border-color: var(--color-neon-lime);
}

.page-link.active {
  color: var(--color-neon-lime);
  text-shadow: 0 0 2px var(--color-neon-lime);
  border-color: var(--color-neon-lime);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 0;
  padding: var(--spacing-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: all var(--transition-fast);
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: var(--color-charcoal-black);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.theme-toggle i {
  font-size: 1.2rem;
  color: inherit;
}

.sun-icon {
  display: block;
}

.moon-icon {
  display: none;
}

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

[data-theme="light"] .sun-icon {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .moon-icon {
  color: rgba(10, 10, 10, 0.6);
}

[data-theme="dark"] .theme-toggle {
  border-color: rgba(174, 255, 0, 0.75);
  color: rgba(174, 255, 0, 0.9);
  text-shadow: 0 0 8px rgba(174, 255, 0, 0.5);
}

[data-theme="dark"] .theme-toggle:hover {
  background-color: rgba(174, 255, 0, 0.2);
  color: var(--color-charcoal-black);
  box-shadow: 0 0 20px rgba(174, 255, 0, 0.35);
}

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

/* Phosphor Icons Styling */
.page-link i {
  margin-right: var(--spacing-xs);
  font-size: 1rem;
}

.btn i {
  margin-right: var(--spacing-xs);
  font-size: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-right: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
}

.social-link i {
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.social-link:hover i {
  transform: scale(1.1);
}

.read-more i {
  margin-right: var(--spacing-xs);
  transition: transform var(--transition-fast);
}

.read-more:hover i {
  transform: translateX(4px);
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: var(--spacing-2xl) var(--spacing-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.layout-home .main-content {
  padding-top: 0;
}

/* Content Wrappers */
.home,
.blog-index,
.portfolio-index,
.page,
.post {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Typography - Mycopunk Cyberpunk Style */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  line-height: var(--line-height-tight);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
  text-shadow: 0 0 2px var(--color-primary);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 2.8rem;
  letter-spacing: 0.02em;
}
h3 {
  font-size: 2.2rem;
  letter-spacing: 0.02em;
}
h4 {
  font-size: 1.8rem;
  letter-spacing: 0.02em;
}
h5 {
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
h6 {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

/* Reset heading color for specific contexts */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--color-text);
}

p {
  margin-bottom: var(--spacing-md);
  max-width: var(--max-width-prose);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: from-font;
  transition: all var(--transition-fast);
  font-weight: 500;
}

a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Buttons - Mycopunk Style */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 2px solid var(--color-primary);
  background: transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-sporeskin-beige);
  text-shadow: none;
  box-shadow: 0 0 20px var(--color-primary);
  text-decoration: none;
}

[data-theme="dark"] .btn-primary {
  color: var(--color-neon-lime);
  border-color: var(--color-neon-lime);
  text-shadow: 0 0 1px var(--color-neon-lime);
}

[data-theme="dark"] .btn-primary:hover {
  background-color: var(--color-neon-lime);
  color: var(--color-charcoal-black);
}

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

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-sporeskin-beige);
  text-shadow: none;
  box-shadow: 0 0 20px var(--color-secondary);
  text-decoration: none;
}

[data-theme="dark"] .btn-secondary {
  color: var(--color-neon-magenta);
  border-color: var(--color-neon-magenta);
  text-shadow: 0 0 1px var(--color-neon-magenta);
}

[data-theme="dark"] .btn-secondary:hover {
  background-color: var(--color-neon-magenta);
  color: var(--color-charcoal-black);
}

/* Home Page - Mycopunk Style */
.hero {
  text-align: center;
  padding: var(--spacing-3xl) 0;
  border-bottom: 2px solid var(--color-primary);
  background-color: var(--color-sporeskin-beige);
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  --hero-overlay-color: var(--color-sporeskin-beige);
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 50vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--hero-overlay-color);
  z-index: 0;
}

.hero.hero--interactive::before {
  background: transparent;
}

.hero-reveal-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--spacing-md);
  color: var(--color-fungal-brown);
  text-shadow: none;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--line-height-relaxed);
  opacity: 1;
}

/* Dark mode hero text - WCAG compliant */
[data-theme="dark"] .hero-title {
  color: var(--color-crypto-lime);
  text-shadow: 0 0 3px var(--color-primary);
}

[data-theme="dark"] .hero-subtitle {
  color: var(--color-sporeskin-beige);
}

[data-theme="dark"] .hero {
  background-color: var(--color-charcoal-black);
  --hero-overlay-color: rgba(10, 10, 10, 0.98);
}

.hero-links {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

.hero--hide-mobile {
  display: block;
}

@media (max-width: 767px) {
  .hero--hide-mobile {
    display: none;
  }
}

.parallax-spotlight {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: calc(var(--spacing-3xl) * 1.4) var(--spacing-lg);
  min-height: clamp(400px, 80vh, 640px);
  color: var(--color-sporeskin-beige);
  background-image: url('../images/CEDA-panel.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-spotlight__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      135deg,
      rgba(10, 10, 10, 0.75) 0%,
      rgba(75, 54, 33, 0.65) 45%,
      rgba(18, 18, 18, 0.8) 100%
    );
  pointer-events: none;
}

.parallax-spotlight__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
  display: grid;
  gap: var(--spacing-md);
}

.parallax-spotlight__content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: lowercase;
  letter-spacing: 0.03em;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
}

.parallax-spotlight__content p {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.parallax-spotlight .btn {
  justify-self: center;
  box-shadow: 0 0 25px rgba(174, 255, 0, 0.3);
}

.parallax-paragraph {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .parallax-spotlight {
  border-top-color: rgba(160, 255, 0, 0.25);
  border-bottom-color: rgba(160, 255, 0, 0.25);
}

[data-theme="dark"] .parallax-spotlight__overlay {
  background: linear-gradient(
      135deg,
      rgba(10, 10, 10, 0.85) 0%,
      rgba(0, 0, 0, 0.7) 50%,
      rgba(0, 0, 0, 0.9) 100%
    );
}

@media (max-width: 768px) {
  .parallax-spotlight {
    background-attachment: scroll;
    padding: var(--spacing-2xl) var(--spacing-lg);
  }

  .parallax-spotlight__content {
    gap: var(--spacing-sm);
  }

  .parallax-spotlight__content p {
    font-size: 1rem;
  }
}

.bio-block {
  padding: var(--spacing-2xl) var(--spacing-lg);
  max-width: 800px;
  margin: 0 auto;
}

.bio-content {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
}

.bio-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-border);
}

.bio-text {
  flex: 1;
}

/* Organizations Section */
.organizations-section {
  padding: var(--spacing-3xl) var(--spacing-lg);
  background: linear-gradient(135deg, var(--color-charcoal-black) 0%, var(--color-fungal-brown) 100%);
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.organizations-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" patternUnits="userSpaceOnUse" width="10" height="10"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23CCFF00" stroke-width="0.5" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
  pointer-events: none;
  opacity: 0.3;
}

.organizations-container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.organizations-section h2 {
  text-align: center;
  color: var(--color-sporeskin-beige);
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--spacing-2xl);
  text-shadow: 0 0 2px var(--color-neon-lime);
}

.organizations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-2xl);
  align-items: center;
  justify-items: center;
}

.organization-logo-wrapper {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.organization-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Light mode adjustments for organizations */
[data-theme="light"] .organizations-section {
  background: linear-gradient(135deg, var(--color-fungal-brown) 0%, var(--color-charcoal-black) 100%);
}

[data-theme="light"] .organizations-section h2 {
  color: var(--color-sporeskin-beige);
}

/* Featured Posts Cards */
.featured-posts {
  padding: var(--spacing-3xl) var(--spacing-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.featured-posts h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--spacing-2xl);
  color: var(--color-primary);
}

.post-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.post-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.post-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.post-card:hover::before {
  opacity: 1;
}

.post-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.post-card-date {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.post-card-date i {
  font-size: 1rem;
}

.post-card-categories {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.post-category {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--color-primary);
  color: var(--color-sporeskin-beige);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .post-category {
  background-color: var(--color-neon-lime);
  color: var(--color-charcoal-black);
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  text-transform: lowercase;
  letter-spacing: 0.01em;
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-tight);
}

.post-card-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.post-card-excerpt {
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-lg);
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.post-card-link:hover {
  color: var(--color-secondary);
  gap: var(--spacing-sm);
}

.post-card-link i {
  transition: transform var(--transition-fast);
}

.post-card-link:hover i {
  transform: translateX(4px);
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  border-radius: 0;
  transition: all var(--transition-base);
  margin: 0 auto;
  display: inline-flex;
}

.view-all-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-sporeskin-beige);
  box-shadow: 0 0 20px rgba(174, 255, 0, 0.3);
  transform: translateY(-2px);
}

[data-theme="dark"] .view-all-btn {
  color: var(--color-neon-lime);
  border-color: var(--color-neon-lime);
}

[data-theme="dark"] .view-all-btn:hover {
  background-color: var(--color-neon-lime);
  color: var(--color-charcoal-black);
}

.view-all-btn i {
  transition: transform var(--transition-fast);
}

.view-all-btn:hover i {
  transform: translateX(4px);
}

.featured-posts {
  text-align: center;
}

.featured-projects {
  margin-top: var(--spacing-3xl);
  padding: var(--spacing-2xl) 0;
}

.featured-projects-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.featured-projects-subtitle {
  margin-top: var(--spacing-xs);
  color: var(--color-text-light);
  max-width: 52ch;
}

.featured-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
}

.featured-project-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  gap: var(--spacing-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.featured-project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.featured-project-media,
.project-featured-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  max-height: 220px;
}

.project-featured-image {
  max-height: none;
}

.featured-project-media img,
.project-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.featured-project-media::before,
.project-featured-image::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-slow);
}

.featured-project-media::before,
.project-featured-image::before {
  background: linear-gradient(
      135deg,
      rgba(174, 255, 0, 0.18),
      transparent 55%
    ),
    linear-gradient(
      -135deg,
      rgba(0, 255, 255, 0.12),
      transparent 60%
    ),
    radial-gradient(circle at 20% 25%, rgba(174, 255, 0, 0.12), transparent 55%),
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 0, 204, 0.12) 50%,
      transparent 100%
    );
  mix-blend-mode: screen;
  opacity: 0.45;
}

.featured-project-card:hover .featured-project-media img {
  transform: scale(1.05);
}

.featured-project-card:hover .featured-project-media::before {
  opacity: 0.6;
  transform: translateY(-4px);
}

.project-featured-image:hover img {
  transform: scale(1.03);
}

.project-featured-image:hover::before {
  opacity: 0.55;
  transform: translateY(-8px);
}

.project-figure {
  margin: var(--spacing-2xl) 0;
  padding: var(--spacing-xl);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.project-figure .project-image {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.project-figure figcaption {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

[data-theme="dark"] .project-figure {
  background: rgba(174, 255, 0, 0.08);
  border-color: var(--color-neon-lime);
}

[data-theme="dark"] .project-figure .project-image {
  border-color: rgba(174, 255, 0, 0.2);
  background-color: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .project-figure figcaption {
  color: var(--color-sporeskin-beige);
}

.featured-project-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  flex: 1;
}

.featured-project-header h3 {
  margin: 0;
  font-size: var(--font-size-2xl);
}

.featured-project-header h3 a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.featured-project-card:hover .featured-project-header h3 a {
  color: var(--color-primary);
}

.featured-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.featured-project-meta-item {
  display: inline-flex;
  align-items: center;
  margin-top: var(--spacing-sm);
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: rgba(0, 0, 0, 0.05);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.featured-project-meta-item i {
  color: var(--color-primary);
}

.featured-project-description {
  margin: 0;
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

.featured-project-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.featured-project-tags li {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: rgba(0, 0, 0, 0.04);
}

.featured-project-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
}

[data-theme="dark"] .featured-project-card {
  background: #151010;
  border-color: var(--color-border);
}

[data-theme="dark"] .featured-project-card:hover {
  border-color: var(--color-neon-lime);
}

[data-theme="dark"] .featured-project-meta-item {
  border-color: var(--color-neon-lime);
  background-color: rgba(174, 255, 0, 0.08);
  color: var(--color-sporeskin-beige);
}

[data-theme="dark"] .featured-project-meta-item i {
  color: var(--color-neon-lime);
}

[data-theme="dark"] .featured-project-tags li {
  border-color: var(--color-neon-lime);
  background-color: rgba(174, 255, 0, 0.08);
  color: var(--color-sporeskin-beige);
}

@media (min-width: 48rem) {
  .featured-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Maintain two-column layout at larger breakpoints */

.testimonials-section {
  margin-top: var(--spacing-4xl);
  padding: var(--spacing-3xl) 0;
  border-top: 2px solid var(--color-border);
}

.testimonials-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.testimonials-subtitle {
  margin-top: var(--spacing-xs);
  color: var(--color-text-light);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.testimonial-control {
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-control:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.testimonial-control[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.testimonial-carousel {
  position: relative;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-2xl) var(--spacing-xl);
}

.testimonial-track {
  position: relative;
  min-height: 280px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(4%);
  transition: opacity var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  padding: var(--spacing-lg) 0;
}

.testimonial-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  text-align: center;
}

.testimonial-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 20px rgba(174, 255, 0, 0.18);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-sporeskin-beige);
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  text-transform: uppercase;
}

[data-theme="dark"] .testimonial-initial {
  background: var(--color-neon-lime);
  color: var(--color-charcoal-black);
}

.testimonial-quote {
  text-align: center;
}

.testimonial-quote p {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  margin: 0;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.testimonial-name {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
}

.testimonial-title {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
}

.testimonial-dots {
  display: none;
}

[data-theme="dark"] .testimonial-control {
  border-color: var(--color-neon-lime);
  color: var(--color-sporeskin-beige);
}

[data-theme="dark"] .testimonial-control:hover {
  color: var(--color-neon-lime);
}

[data-theme="dark"] .testimonial-carousel {
  background: #151010;
  border-color: var(--color-border);
}

[data-theme="dark"] .testimonial-avatar {
  border-color: var(--color-neon-lime);
  box-shadow: 0 0 20px rgba(174, 255, 0, 0.32);
}

[data-theme="dark"] .testimonial-quote p {
  color: var(--color-sporeskin-beige);
}

[data-theme="dark"] .testimonial-title {
  color: var(--color-sporeskin-beige);
}

[data-theme="dark"] .testimonial-dot {
  border-color: var(--color-neon-lime);
}

[data-theme="dark"] .testimonial-dot.is-active {
  background: var(--color-neon-lime);
}

@media (min-width: 56rem) {
  .testimonial-slide {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-2xl);
  }

  .testimonial-author {
    flex-shrink: 0;
    align-items: flex-start;
    text-align: left;
  }

  .testimonial-avatar {
    width: 120px;
    height: 120px;
  }

  .testimonial-initial {
    font-size: var(--font-size-4xl);
  }

  .testimonial-quote {
    flex: 1;
    text-align: left;
  }
}

.contact-page {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3xl);
}

.contact-hero {
  text-align: center;
  padding: var(--spacing-3xl) var(--spacing-2xl);
  background: linear-gradient(135deg, rgba(174, 255, 0, 0.08), rgba(255, 0, 204, 0.08));
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-sm);
}

.contact-hero h2 {
  margin: 0 auto var(--spacing-md);
  max-width: 45ch;
}

.contact-intro {
  margin: 0 auto;
  max-width: 60ch;
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

.contact-actions {
  margin-top: var(--spacing-xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
}

.contact-grid {
  display: grid;
  gap: var(--spacing-2xl);
  grid-template-columns: minmax(0, 1fr);
}

.contact-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

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

.contact-card h3 {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin: 0;
  text-transform: none;
  font-size: var(--font-size-xl);
}

.contact-card h3 i {
  color: var(--color-primary);
  font-size: 1.4rem;
}

.contact-card p {
  margin: 0;
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

.contact-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--spacing-xs);
}

.contact-card ul li {
  position: relative;
  padding-left: var(--spacing-lg);
}

.contact-card ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.contact-links li {
  padding-left: 0;
}

.contact-links li::before {
  display: none;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.contact-links a:hover {
  color: var(--color-secondary);
  transform: translateX(2px);
}

.contact-links i {
  font-size: 1.2rem;
}

.contact-note {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.contact-footer {
  display: flex;
  justify-content: center;
}

.contact-footer-card {
  max-width: 720px;
  text-align: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-3xl) var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(120deg, rgba(0, 139, 139, 0.1), rgba(174, 255, 0, 0.08));
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-footer-card h3 {
  margin: 0;
  font-size: var(--font-size-2xl);
}

.contact-footer-card p {
  margin: 0;
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
}

.contact-footer-card .btn {
  align-self: center;
}

@media (min-width: 48rem) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

[data-theme="dark"] .contact-hero {
  background: linear-gradient(135deg, rgba(174, 255, 0, 0.16), rgba(0, 139, 139, 0.18));
  border-color: var(--color-neon-lime);
}

[data-theme="dark"] .contact-card {
  background: rgba(21, 16, 16, 0.85);
  border-color: var(--color-border);
}

[data-theme="dark"] .contact-card:hover {
  border-color: var(--color-neon-lime);
}

[data-theme="dark"] .contact-card h3 i {
  color: var(--color-neon-lime);
}

[data-theme="dark"] .contact-card ul li::before {
  color: var(--color-neon-lime);
}

[data-theme="dark"] .contact-footer-card {
  background: linear-gradient(120deg, rgba(174, 255, 0, 0.12), rgba(255, 0, 204, 0.08));
  border-color: var(--color-neon-lime);
}

[data-theme="dark"] .contact-links a {
  color: var(--color-neon-lime);
}

[data-theme="dark"] .contact-links a:hover {
  color: var(--color-secondary);
}

/* Blog Index Page */
.blog-index {
  padding: var(--spacing-2xl) 0;
}

/* Category Filter Menu */
.category-filter-wrapper {
  margin-bottom: var(--spacing-3xl);
  padding: 0 var(--spacing-lg);
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-sporeskin-beige);
  box-shadow: 0 0 12px rgba(174, 255, 0, 0.3);
}

[data-theme="dark"] .filter-btn.active {
  background-color: var(--color-neon-lime);
  border-color: var(--color-neon-lime);
  color: var(--color-charcoal-black);
}

.filter-btn i {
  font-size: 1rem;
}

/* Hide filtered posts */
.post-card.hidden {
  display: none;
}

/* Tag Filter Menu */
.tag-filter-wrapper {
  margin-bottom: var(--spacing-xl);
  padding: 0 var(--spacing-lg);
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  justify-content: center;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--color-background-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.tag-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.9rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tag-filter-btn:hover {
  border-color: var(--color-neon-lime);
  color: var(--color-text);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(174, 255, 0, 0.15);
}

.tag-filter-btn.active {
  background-color: var(--color-neon-lime);
  border-color: var(--color-neon-lime);
  color: var(--color-charcoal-black);
  box-shadow: 0 0 12px rgba(174, 255, 0, 0.3);
}

[data-theme="dark"] .tag-filter-btn.active {
  background-color: var(--color-neon-lime);
  border-color: var(--color-neon-lime);
  color: var(--color-charcoal-black);
}

/* Blog */
.post-item {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 1px solid var(--color-border);
}

.post-item:last-child {
  border-bottom: none;
}

.post-item h2 {
  margin-top: 0;
  font-size: var(--font-size-2xl);
}

.post-item h2 a {
  color: var(--color-primary);
  text-decoration: none;
}

.post-item h2 a:hover {
  color: var(--color-secondary);
}

.post-meta {
  color: var(--color-gray);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--spacing-md);
}

.post-excerpt {
  margin-bottom: var(--spacing-md);
}

.read-more {
  font-weight: 500;
}

/* Post Page */
.post-header {
  max-width: var(--max-width-prose);
  margin: 0 auto var(--spacing-2xl);
}

.post-title {
  margin-bottom: var(--spacing-md);
}

.post-content {
  max-width: var(--max-width-prose);
  margin: 0 auto var(--spacing-2xl);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--spacing-lg) 0;
}

.post-figure {
  margin: var(--spacing-2xl) 0;
}

.post-figure__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 0;
}

.post-figure__caption {
  margin-top: var(--spacing-sm);
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  text-align: center;
  display: grid;
  gap: var(--spacing-xs);
}

.post-figure__credit {
  font-size: 0.75rem;
  color: var(--color-gray);
}

[data-theme="dark"] .post-figure__image {
  box-shadow: none;
}

[data-theme="dark"] .post-figure__credit {
  color: var(--color-gray-light);
}

.post-tags {
  max-width: var(--max-width-prose);
  margin: 0 auto var(--spacing-xl);
}

.tag-link {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--color-gray-light);
  color: var(--color-gray);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-right: var(--spacing-xs);
  text-decoration: none;
}

.tag-link:hover {
  background-color: var(--color-secondary);
  color: white;
  text-decoration: none;
}

.post-footer {
  max-width: var(--max-width-prose);
  margin: 0 auto var(--spacing-2xl);
}

.proem-text {
  white-space: pre-line;
  font-size: 1.05rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: var(--spacing-xl);
}

.related-posts {
  margin-top: var(--spacing-3xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  position: relative;
}

.related-posts__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.related-posts__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin: 0;
}

.related-posts__controls {
  display: inline-flex;
  gap: var(--spacing-xs);
}

.related-posts__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.related-posts__arrow i {
  font-size: 1.25rem;
}

.related-posts__arrow:hover,
.related-posts__arrow:focus-visible {
  background-color: var(--color-primary);
  color: var(--color-sporeskin-beige);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

.related-posts__arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--color-gray);
  box-shadow: none;
}

.related-posts__viewport {
  overflow: hidden;
}

.related-posts__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18rem, 1fr);
  gap: var(--spacing-lg);
  overflow-x: auto;
  padding-bottom: var(--spacing-md);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.related-posts__list::-webkit-scrollbar {
  height: 6px;
}

.related-posts__list::-webkit-scrollbar-track {
  background: transparent;
}

.related-posts__list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}

[data-theme="dark"] .related-posts__list::-webkit-scrollbar-thumb {
  background-color: rgba(174, 255, 0, 0.35);
}

.related-post {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-lg);
  scroll-snap-align: start;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.related-post__link {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.related-post__heading {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  text-transform: lowercase;
  margin: 0;
  color: var(--color-primary);
}

.related-post__meta {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray);
  margin: 0;
}

.related-post__excerpt {
  margin: 0;
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
}

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

.related-post__link:hover .related-post__heading {
  color: var(--color-secondary);
}

[data-theme="dark"] .related-posts {
  background-color: rgba(26, 22, 17, 0.85);
  border-color: rgba(107, 82, 49, 0.6);
  box-shadow: none;
}

[data-theme="dark"] .related-posts__arrow {
  background-color: rgba(107, 82, 49, 0.35);
  border-color: rgba(174, 255, 0, 0.45);
  color: var(--color-neon-lime);
}

[data-theme="dark"] .related-posts__arrow:hover,
[data-theme="dark"] .related-posts__arrow:focus-visible {
  background-color: var(--color-neon-lime);
  color: var(--color-charcoal-black);
  box-shadow: 0 0 18px rgba(174, 255, 0, 0.45);
}

[data-theme="dark"] .related-posts__arrow:disabled {
  background-color: rgba(107, 82, 49, 0.2);
  border-color: rgba(174, 255, 0, 0.2);
  color: var(--color-gray);
  box-shadow: none;
}

[data-theme="dark"] .related-post {
  box-shadow: none;
  background-color: rgba(26, 22, 17, 0.65);
  border-color: rgba(107, 82, 49, 0.6);
}

[data-theme="dark"] .related-post__meta {
  color: var(--color-gray);
}

[data-theme="dark"] .related-post__excerpt {
  color: var(--color-text-light);
}

@media (max-width: 900px) {
  .related-posts__list {
    grid-auto-columns: minmax(16rem, 70%);
  }
}

@media (max-width: 600px) {
  .related-posts__list {
    grid-auto-columns: minmax(14rem, 80%);
  }
}

/* Portfolio */
.portfolio-filters {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: #ffffff;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary-dark);
  color: var(--color-charcoal-black);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: none;
}

[data-theme="dark"] .filter-btn {
  background-color: rgba(174, 255, 0, 0.16);
  color: var(--color-neon-lime);
  border-color: var(--color-neon-lime);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
  background-color: var(--color-neon-lime);
  color: var(--color-charcoal-black);
  border-color: var(--color-neon-lime);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
}

.portfolio-grid .featured-project-card {
  height: 100%;
}

@media (min-width: 48rem) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project {
  display: block;
}

.project-header {
  margin-bottom: var(--spacing-2xl);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.project-meta-item {
  display: inline-flex;
  align-items: center;
  margin-top: var(--spacing-xs);
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: rgba(0, 0, 0, 0.05);
  line-height: 1;
}

.project-meta-item i {
  font-size: 1rem;
  color: var(--color-primary);
}

[data-theme="dark"] .project-meta-item {
  border-color: var(--color-neon-lime);
  background-color: rgba(174, 255, 0, 0.08);
}

[data-theme="dark"] .project-meta-item i {
  color: var(--color-neon-lime);
}

.project-featured-image {
  margin: 0 0 var(--spacing-2xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.project-featured-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.project-sidebar {
  margin-top: var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.project-links {
  margin-top: var(--spacing-2xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.project-links .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  min-width: 12rem;
  justify-content: center;
}

.project-technologies,
.project-skills,
.project-abilities {
  margin-top: var(--spacing-2xl);
}

.project-technologies h3,
.project-skills h3,
.project-abilities h3 {
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.tech-list,
.skills-list,
.abilities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.tech-item,
.skill-item,
.ability-item,
.tech-tag {
  padding: calc(var(--spacing-xs) * 0.75) var(--spacing-sm);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.04);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

[data-theme="dark"] .tech-item,
[data-theme="dark"] .skill-item,
[data-theme="dark"] .ability-item,
[data-theme="dark"] .tech-tag {
  border-color: var(--color-neon-lime);
  background: rgba(174, 255, 0, 0.1);
}

.project-sidebar .project-technologies,
.project-sidebar .project-skills,
.project-sidebar .project-abilities,
.project-sidebar .project-links {
  margin-top: 0;
}

@media (min-width: 64rem) {
  .project-body {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--spacing-3xl);
  }

  .project-featured-image {
    margin-bottom: var(--spacing-3xl);
  }

  .project-featured-image img {
    max-height: 520px;
  }

  .project-sidebar {
    margin-top: 0;
    position: sticky;
    top: calc(var(--spacing-3xl) + 4rem);
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--color-charcoal-black) 0%, var(--color-fungal-brown) 50%, var(--color-charcoal-black) 100%);
  color: var(--color-sporeskin-beige);
  border-top: 2px solid var(--color-primary);
  padding: var(--spacing-2xl) 0;
  margin-top: var(--spacing-3xl);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
  animation: pulse 2s ease-in-out infinite alternate;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition-fast);
}

.site-footer a:hover {
  color: var(--color-neon-lime);
  text-shadow: 0 0 6px rgba(174, 255, 0, 0.4);
}

.site-footer h3 {
  color: var(--color-sporeskin-beige);
  font-family: var(--font-heading);
  text-transform: lowercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.site-footer .footer-links a,
.site-footer .social-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  opacity: 1;
}

.site-footer .footer-links a:hover,
.site-footer .social-link:hover {
  color: var(--color-neon-lime);
  border-bottom-color: rgba(174, 255, 0, 0.5);
  opacity: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  margin-top: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Mobile padding adjustments */
  .main-content {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .layout-home .main-content {
    padding-top: 0;
  }

  .home,
  .blog-index,
  .portfolio-index,
  .page,
  .post {
    padding: 0 var(--spacing-md);
  }

  .hero-content {
    padding: 0 var(--spacing-md);
  }

  .bio-block {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .site-nav .menu-icon {
    display: block;
    cursor: pointer;
    color: var(--color-sporeskin-beige);
  }

  .site-nav .menu-icon svg path {
    fill: currentColor;
  }

  .site-nav .trigger {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav input:checked ~ .trigger {
    display: flex;
  }

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

  .bio-content {
    flex-direction: column;
    text-align: center;
  }

  .organizations-section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .organizations-section h2 {
    font-size: var(--font-size-xl);
  }

  .organizations-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
  }

  .organization-logo-wrapper {
    height: 120px;
  }

  .featured-posts {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .featured-posts h2 {
    font-size: var(--font-size-2xl);
  }

  .post-cards-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .post-card {
    padding: var(--spacing-lg);
  }

  .post-card-title {
    font-size: var(--font-size-lg);
  }

  .category-filter-wrapper {
    padding: 0 var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
  }

  .category-filter {
    padding: var(--spacing-md);
    gap: var(--spacing-xs);
  }

  .filter-btn {
    font-size: 0.75rem;
    padding: var(--spacing-xs) var(--spacing-sm);
  }

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

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

@media (max-width: 768px) {
  .hero {
    background-image: none;
    background-color: var(--color-sporeskin-beige);
  }

  .site-nav .menu-icon {
    display: block;
    cursor: pointer;
    color: var(--color-sporeskin-beige);
  }

  .site-nav .menu-icon svg path {
    fill: currentColor;
  }

  .site-nav .trigger {
    gap: var(--spacing-sm);
  }

  .site-nav .trigger .page-link {
    color: var(--color-charcoal-black);
    width: 100%;
    margin: 0;
  }

  .site-nav .trigger .page-link:hover,
  .site-nav .trigger .page-link.active {
    color: var(--color-primary);
    border-color: var(--color-primary);
  }

  [data-theme="dark"] .site-nav .trigger {
    background-color: rgba(10, 10, 10, 0.95);
    border-color: rgba(204, 255, 0, 0.35);
  }

  [data-theme="dark"] .site-nav .trigger .page-link {
    color: var(--color-sporeskin-beige);
  }

  [data-theme="dark"] .site-nav .trigger .page-link:hover,
  [data-theme="dark"] .site-nav .trigger .page-link.active {
    color: var(--color-neon-lime);
    border-color: var(--color-neon-lime);
  }

  [data-theme="dark"] .site-nav .menu-icon {
    color: var(--color-neon-lime);
  }

  [data-theme="light"] .site-nav .trigger .theme-toggle {
    border-color: rgba(10, 10, 10, 0.55);
    color: rgba(10, 10, 10, 0.85);
    text-shadow: none;
    box-shadow: none;
    background-color: transparent;
  }

  [data-theme="light"] .site-nav .trigger .theme-toggle:hover {
    background-color: rgba(10, 10, 10, 0.08);
    color: rgba(10, 10, 10, 0.9);
    box-shadow: 0 0 12px rgba(10, 10, 10, 0.15);
  }

  [data-theme="light"] .site-nav .trigger .sun-icon {
    color: rgba(10, 10, 10, 0.85);
  }

  [data-theme="light"] .site-nav .trigger .moon-icon {
    color: rgba(10, 10, 10, 0.5);
  }

  [data-theme="dark"] .hero {
    background-image: none;
    background-color: var(--color-charcoal-black);
  }
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .theme-toggle,
  .related-posts {
    display: none;
  }
}

/* Code Blocks - M3Data Style */
pre, code {
  font-family: var(--font-mono);
}

code {
  padding: 0.125rem 0.25rem;
  font-size: 0.9em;
  color: var(--color-secondary);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

pre {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

pre code {
  display: block;
  padding: var(--spacing-md);
  border: none;
  color: var(--color-text);
  background-color: transparent;
}

[data-theme="dark"] code {
  color: var(--color-primary-light);
}

/* Blockquotes - M3Data Style */
blockquote {
  margin: var(--spacing-lg) 0;
  padding-left: var(--spacing-lg);
  border-left: 2px solid var(--color-myco-magenta);
  font-style: italic;
  color: var(--color-gray);
}

/* Lists - M3Data Style */
ul, ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-xl);
}

li {
  margin-bottom: var(--spacing-xs);
  line-height: var(--line-height-base);
}

/* Tables - M3Data Style */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
}

th, td {
  padding: var(--spacing-sm);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  background-color: var(--color-surface);
}

/* Horizontal Rules */
hr {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-secondary) 100%);
  margin: var(--spacing-2xl) 0;
}


/* === MYCOPUNK CYBERPUNK OVERRIDES === */

/* Animations */
@keyframes glitch {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(-2px, -1px); }
  20% { transform: translate(2px, 1px); }
  30% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  50% { transform: translate(-1px, -1px); }
  60% { transform: translate(1px, 1px); }
  70% { transform: translate(-2px, 1px); }
  80% { transform: translate(2px, -1px); }
  90% { transform: translate(-1px, -2px); }
}

@keyframes pulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.02); }
}

/* Code Style Overrides */
code {
  color: var(--color-accent) !important;
  background-color: var(--color-charcoal-black) !important;
  border: 1px solid var(--color-primary) !important;
}

pre {
  background: linear-gradient(135deg, var(--color-charcoal-black) 0%, #1A1611 100%) !important;
  border: 1px solid var(--color-primary) !important;
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.3) !important;
}

/* Post Style Overrides */
.post-item h2 a {
  color: var(--color-primary) !important;
  text-shadow: 0 0 4px var(--color-primary) !important;
}

.post-item h2 a:hover {
  color: var(--color-secondary) !important;
  text-shadow: 0 0 8px var(--color-secondary) !important;
}

.read-more {
  color: var(--color-accent) !important;
  font-family: var(--font-mono) !important;
  text-transform: lowercase !important;
  text-shadow: 0 0 4px var(--color-accent) !important;
}

.read-more:hover {
  color: var(--color-primary) !important;
  text-shadow: 0 0 8px var(--color-primary) !important;
}


/* === SVG ANIMATION COMPONENTS === */

/* Mycelial Network */
.mycelial-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.mycelial-svg {
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

/* Cyber Divider */
.cyber-divider {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: hidden;
}

.divider-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Circuit Pattern */
.circuit-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

.pattern-svg {
  width: 100%;
  height: 100%;
}

/* Pulse Accents */
.pulse-accents {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.pulse-svg {
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0.7;
}

.pulse-1 {
  top: 20%;
  left: 80%;
  animation: float 6s ease-in-out infinite;
}

.pulse-2 {
  top: 60%;
  left: 10%;
  animation: float 4s ease-in-out infinite reverse;
}

.pulse-3 {
  top: 10%;
  left: 20%;
  animation: float 8s ease-in-out infinite;
}

.pulse-4 {
  top: 70%;
  left: 70%;
  animation: float 5s ease-in-out infinite reverse;
}

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

/* Data Stream */
.data-stream {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  margin: var(--spacing-lg) 0;
}

.stream-svg {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(204, 255, 0, 0.05) 50%, transparent 100%);
}

/* Section with animated background */
.section-with-animation {
  position: relative;
  overflow: hidden;
}

.section-with-animation .mycelial-network,
.section-with-animation .pulse-accents {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Hero section enhancements */
.hero {
  position: relative;
  overflow: hidden;
}

.hero .pulse-accents {
  opacity: 0.3;
}

/* Portfolio section with circuit pattern */
.portfolio-index {
  position: relative;
}

.portfolio-index::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><defs><pattern id=\"circuit\" patternUnits=\"userSpaceOnUse\" width=\"20\" height=\"20\"><line x1=\"0\" y1=\"10\" x2=\"20\" y2=\"10\" stroke=\"%23CCFF00\" stroke-width=\"0.5\" opacity=\"0.1\"/><line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"20\" stroke=\"%2300FFFF\" stroke-width=\"0.5\" opacity=\"0.1\"/><circle cx=\"10\" cy=\"10\" r=\"1\" fill=\"%23FF00CC\" opacity=\"0.2\"/></pattern></defs><rect width=\"100\" height=\"100\" fill=\"url(%23circuit)\"/></svg>") repeat;
  pointer-events: none;
  z-index: -1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pulse-svg {
    width: 60px;
    height: 60px;
  }

  .cyber-divider {
    height: 80px;
  }

  .data-stream {
    height: 150px;
  }
}

/* === CUSTOM CURSOR ANIMATION === */
body {
  cursor: none;
  position: relative;
}

/* Background distortion layer */
.cursor-distortion {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%),
              rgba(204, 255, 0, 0.03) 0%,
              rgba(255, 0, 204, 0.02) 30%,
              transparent 70%);
  filter: blur(0.5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.cursor-active .cursor-distortion {
  opacity: 1;
}

/* Ripple effect */
.cursor-ripple {
  position: fixed;
  pointer-events: none;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(204, 255, 0, 0.1) 0%,
              rgba(0, 255, 255, 0.05) 50%,
              transparent 100%);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleEffect 0.8s ease-out forwards;
}

@keyframes rippleEffect {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: all 0.1s ease;
  opacity: 1;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--color-crypto-lime);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 4px var(--color-crypto-lime);
}

.cursor-outline {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-crypto-lime);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  transition: all 0.15s ease;
}

.cursor-trail {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  background: var(--color-biolume-cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  animation: cursorPulse 2s infinite;
}

/* Cursor states */
body.cursor-hover .cursor-outline {
  width: 40px;
  height: 40px;
  border-color: var(--color-myco-magenta);
  opacity: 0.6;
}

body.cursor-hover .cursor-dot {
  background: var(--color-myco-magenta);
  box-shadow: 0 0 6px var(--color-myco-magenta);
  transform: scale(1.2);
}

body.cursor-click .cursor-outline {
  width: 16px;
  height: 16px;
  border-width: 2px;
  border-color: var(--color-rust-orange);
}

body.cursor-click .cursor-dot {
  background: var(--color-rust-orange);
  box-shadow: 0 0 8px var(--color-rust-orange);
  transform: scale(0.8);
}

@keyframes cursorPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.2;
  }
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto;
  }

  .custom-cursor {
    display: none;
  }
}

/* ==========================================================================
   SERVICES PAGE
   ========================================================================== */

.services-intro {
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  text-align: center;
  font-size: var(--font-size-lg);
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

@media (min-width: 48rem) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-card .service-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  transition: var(--transition-fast);
  display: block;
}

.service-card:hover .service-icon {
  color: var(--color-primary-dark);
  transform: scale(0.95);
}

[data-theme="dark"] .service-card .service-icon {
  color: var(--color-neon-lime);
}

[data-theme="dark"] .service-card:hover .service-icon {
  color: var(--color-neon-cyan);
}

.services-cta {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: var(--color-charcoal-black);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-2xl);
}

.services-cta h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  color: var(--color-neon-lime);
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.05em;
}

.services-cta p {
  color: var(--color-sporeskin-beige);
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
