@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&family=Space+Grotesk:wght@600;700;800&display=swap');

:root {
  /* Streamlined Color System */
  --primary: #ffffff;
  --primary-dark: #ffffff;
  --secondary: #ffffff;
  --accent: #ffffff;
  --danger: #ef4444;
  
  /* Vaporwave Palette */
  --white: #ffffff;
  --gray-50: #cccccc;
  --gray-100: #bbbbbb;
  --gray-200: #aaaaaa;
  --gray-300: #999999;
  --gray-400: #888888;
  --gray-500: #777777;
  --gray-600: #ffffff;
  --gray-700: #ffffff;
  --gray-800: #1F1326;
  --gray-900: #0D0D0D;
  
  /* Vaporwave Theme */
  --bg-primary: #0D0D0D;
  --bg-secondary: #1F1326;
  --bg-tertiary: #0D0D0D;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-tertiary: #aaaaaa;
  --border: rgba(255, 255, 255, 0.4);
  --border-light: rgba(255, 255, 255, 0.3);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  
  /* Tactical Typography Scale */
  --text-xs: 0.7rem;
  --text-sm: 0.8rem;
  --text-base: 0.9rem;
  --text-lg: 1.0rem;
  --text-xl: 1.1rem;
  --text-2xl: 1.3rem;
  --text-3xl: 1.6rem;
  --text-4xl: 2.0rem;
  --text-5xl: 2.5rem;
  --text-6xl: 3.2rem;
  
  /* Tactical Letter Spacing */
  --letter-spacing-tight: 1px;
  --letter-spacing-normal: 2px;
  --letter-spacing-wide: 3px;
  --letter-spacing-wider: 4px;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-colors: color 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family) !important;
  background: linear-gradient(135deg, #0D0D0D 0%, #1F1326 50%, #0D0D0D 100%) !important;
  background-attachment: fixed !important;
  color: var(--text-tactical-secondary) !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

/* Floating orbs for extra visual interest */
body::after {
  content: '';
  position: fixed;
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(0px) translateX(-10px); }
  75% { transform: translateY(20px) translateX(5px); }
}

/* VAPORWAVE VISUAL VARIETY SYSTEM */

body, html {
  background: linear-gradient(135deg, #0D0D0D 0%, #1F1326 50%, #0D0D0D 100%) !important;
  background-attachment: fixed !important;
  color: #CCCCCC !important;
}

/* Subtle background styles for visual variety */
.section:nth-child(odd) {
  background: rgba(10, 10, 10, 0.5);
  position: relative;
}

.section:nth-child(even) {
  background: rgba(15, 15, 15, 0.3);
  position: relative;
}

/* Subtle grid patterns */
.section:nth-child(odd)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
  pointer-events: none;
}

.section:nth-child(even)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  pointer-events: none;
}

/* Navigation styling */
nav, nav[style] {
  background: rgba(31, 19, 38, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* All navigation links */
nav a, nav a[style] {
  color: #CCCCCC !important;
  transition: all 0.3s ease !important;
}

/* Navigation logo/brand */
nav a[href="/"], nav a[href="/"][style] {
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  text-shadow: none !important;
}

/* Navigation hover effects */
nav a:hover, nav a[style]:hover {
  color: #ffffff !important;
  text-shadow: none !important;
}

/* Force sections on main pages only - NOT experiment pages */
body:not(.experiment-page) section {
  background: rgba(31, 19, 38, 0.3) !important;
}

/* Force headings on main pages only - NOT experiment pages */
body:not(.experiment-page) h1 {
  color: #ffffff !important;
  text-shadow: none !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  filter: none !important;
}

h2, h2[style], h3, h3[style], h4, h4[style], h5, h5[style], h6, h6[style] {
  color: #FFFFFF !important;
}

/* Force all text to proper colors */
p, p[style], span, span[style], div, div[style] {
  color: #CCCCCC !important;
}

/* Force buttons to vaporwave styling */
button, button[style], .btn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: none !important;
}

/* Secondary buttons */
button[style*="border"], a[style*="border"]:not([style*="background"]) {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

/* Vaporwave gradients only for main titles */
h1 {
  font-weight: 900 !important;
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  filter: none !important;
  font-size: var(--text-5xl);
  margin-bottom: var(--space-8);
  text-shadow: none !important;
}

h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
}

h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
}

h4 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

h5 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

h6 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-large {
  font-size: var(--text-xl);
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-tertiary);
}

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

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-10);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-12);
  }
}

/* Navigation - Overridden by inline styles for black opacity background */

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
}

.nav-logo {
  font-family: var(--font-family);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  text-decoration: none;
  transition: var(--transition-colors);
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-link {
  color: #CCCCCC;
  text-decoration: none;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
  text-shadow: none;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* Breadcrumbs */
.breadcrumb {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: lowercase;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-2);
  color: var(--text-tertiary);
}

.breadcrumb-link {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: var(--transition-colors);
}

.breadcrumb-link:hover {
  color: var(--text-secondary);
}

.breadcrumb-current {
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--font-family);
}

.btn-primary {
  background: rgba(30, 30, 30, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: rgba(35, 35, 35, 1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  text-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Cards */
.card {
  background: rgba(15, 15, 15, 0.25);
  border: 1px solid rgba(85, 85, 85, 0.3);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  background: rgba(20, 20, 20, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(255, 255, 255, 0.2), 0 8px 16px rgba(0, 0, 0, 0.4);
}

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

/* SUBTLE CARD VARIATIONS FOR HOMEPAGE */

/* Slight variations without overdoing it */
.card:nth-child(3n+1) {
  background: rgba(18, 18, 18, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.card:nth-child(3n+2) {
  background: rgba(16, 16, 16, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.card:nth-child(3n) {
  background: rgba(20, 20, 20, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* EXPERIMENT/MODULE PAGES GET FULL VAPORWAVE TREATMENT */
/* Preserve inline styles for experiment pages - don't override them */
body[data-page="experiment"] section[style],
body[data-page="module"] section[style],
.experiment-page section[style],
.module-page section[style] {
  background: initial !important;
}

body[data-page="experiment"] h1[style],
body[data-page="module"] h1[style],
.experiment-page h1[style],
.module-page h1[style] {
  background: initial !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  filter: initial !important;
}

/* Module pages get exciting button effects */
.experiment-page .btn-primary,
.module-page .btn-primary {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
}

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

.experiment-page .btn-primary:hover::before,
.module-page .btn-primary:hover::before {
  left: 100%;
}

.experiment-page .btn-primary:hover,
.module-page .btn-primary:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.8) !important;
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

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

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

.card-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

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

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(30, 30, 30, 0.8);
  color: #CCCCCC;
  border-radius: 20px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(85, 85, 85, 0.4);
  transition: all 0.3s ease;
}

.tag.primary {
  background: rgba(35, 35, 35, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.tag.secondary {
  background: rgba(32, 32, 32, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Sections */
.section {
  padding: 80px 40px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
}

.section-subtitle {
  font-size: var(--text-xl);
  color: #AAAAAA;
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

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

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

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

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

/* Forms */
.form-input {
  width: 100%;
  padding: var(--space-3);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

/* Code blocks */
.code-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-6) 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.code-lang {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: var(--transition-colors);
}

.copy-btn:hover {
  color: var(--text-secondary);
}

code {
  display: block;
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Hero Section */
.hero {
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 768px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 900;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .text-large {
  margin-bottom: var(--space-8);
  font-size: var(--text-xl);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin: var(--space-16) 0;
}

.stat {
  text-align: center;
  padding: var(--space-6);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--primary-light);
  margin-bottom: var(--space-2);
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Article specific */
.article-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8) 0;
  margin-top: var(--space-24);
}

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

.footer-section h3 {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-section ul li {
  margin-bottom: var(--space-2);
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  transition: var(--transition-colors);
}

.footer-section ul li a:hover {
  color: var(--primary-light);
}

.footer-section p {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.footer-tech-info {
  display: flex;
  gap: var(--space-6);
}

/* Status bar */
.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

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

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulse 2s infinite;
}

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

/* Filter tags */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
  justify-content: center;
}

.filter-tag {
  padding: var(--space-2) var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: var(--space-4);
  }
  
  .nav-logo {
    font-size: var(--text-base);
  }
  
  .section {
    padding: var(--space-12) 0;
  }
  
  .hero {
    padding: var(--space-16) 0;
  }
  
  .card {
    padding: var(--space-4);
  }
  
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
  
  .footer-tech-info {
    gap: var(--space-4);
  }
}

/* Tactical Design System */

/* Tactical Containers */
.tactical-container {
  background: linear-gradient(135deg, var(--bg-tactical-panel), var(--bg-tactical-overlay));
  border: 2px solid var(--border-tactical-primary);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.tactical-panel {
  background: var(--bg-tactical-panel);
  border: 1px solid var(--border-tactical-secondary);
  font-family: var(--font-mono);
}

.tactical-button-primary {
  background: linear-gradient(135deg, var(--tactical-secondary), var(--tactical-primary));
  color: #000000;
  border: none;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-mono);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.tactical-button-secondary {
  background: var(--bg-tactical-panel);
  color: var(--tactical-secondary);
  border: 2px solid var(--tactical-secondary);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-mono);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.tactical-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(136, 136, 136, 0.3);
}

.tactical-button-secondary:hover {
  background: var(--tactical-secondary);
  color: #000000;
  transform: translateY(-2px);
}

/* Enhanced Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--text-tactical-primary) !important;
  border-bottom: 2px solid var(--tactical-accent) !important;
}

/* Tactical Grid Background */
.tactical-grid-bg {
  background: 
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(102, 102, 102, 0.08) 51px, rgba(102, 102, 102, 0.08) 52px),
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(102, 102, 102, 0.08) 51px, rgba(102, 102, 102, 0.08) 52px);
}

/* Mobile Navigation */
.nav-links.mobile-active {
  display: flex !important;
  position: fixed !important;
  top: 85px !important;
  left: 0 !important;
  right: 0 !important;
  flex-direction: column !important;
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: var(--space-8) var(--space-6) !important;
  z-index: 1000 !important;
  gap: var(--space-6) !important;
  animation: slideDown 0.3s ease-out !important;
}

.nav-links.mobile-active .nav-link {
  color: #ffffff !important;
  font-size: 1.2rem !important;
  padding: 0.5rem 0 !important;
}

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

.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: #ffffff;
  color: #000;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(20, 20, 20, 0.98));
  border-bottom: 2px solid var(--tactical-secondary);
  z-index: 2001;
  display: none;
  padding: var(--space-6);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--tactical-tertiary);
}

.mobile-menu-close {
  background: none;
  border: 2px solid var(--tactical-secondary);
  color: var(--text-tactical-secondary);
  padding: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: all 0.3s ease;
}

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

.mobile-menu-link {
  font-family: var(--font-mono);
  color: var(--text-tactical-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  padding: var(--space-4);
  border: 1px solid var(--tactical-quaternary);
  background: rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  background: var(--tactical-secondary);
  color: #000000;
  border-color: var(--tactical-secondary);
}

/* Enhanced Responsiveness */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
  }
  
  .tactical-container {
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  }
  
  .tactical-button-primary,
  .tactical-button-secondary {
    padding: var(--space-2) var(--space-4);
    font-size: 0.85rem;
  }
  
  .nav-logo {
    font-size: 0.9rem !important;
  }
  
  .nav-container {
    justify-content: space-between;
  }
}

/* Tactical Typography Utilities */
.tactical-heading-1 {
  font-family: var(--font-mono);
  font-size: var(--text-6xl);
  font-weight: bold;
  color: var(--text-tactical-primary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  line-height: 1.1;
}

.tactical-heading-2 {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: bold;
  color: var(--text-tactical-primary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  line-height: 1.2;
}

.tactical-heading-3 {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: bold;
  color: var(--text-tactical-primary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-normal);
  line-height: 1.3;
}

.tactical-text-primary {
  font-family: var(--font-mono);
  color: var(--text-tactical-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
}

.tactical-text-secondary {
  font-family: var(--font-mono);
  color: var(--text-tactical-tertiary);
  font-size: var(--text-sm);
  line-height: 1.5;
  letter-spacing: var(--letter-spacing-tight);
}

.tactical-command-text {
  font-family: var(--font-mono);
  color: var(--text-tactical-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-normal);
}

/* Tactical Layout Utilities */
.tactical-container-sm {
  background: var(--bg-tactical-panel);
  border: 1px solid var(--border-tactical-secondary);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  padding: var(--space-4);
}

.tactical-container-md {
  background: linear-gradient(135deg, var(--bg-tactical-panel), var(--bg-tactical-overlay));
  border: 2px solid var(--border-tactical-primary);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  padding: var(--space-6);
}

.tactical-container-lg {
  background: linear-gradient(135deg, var(--bg-tactical-panel), var(--bg-tactical-overlay));
  border: 2px solid var(--border-tactical-primary);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  padding: var(--space-8);
}

/* Tactical Status Indicators */
.tactical-status-online {
  color: var(--tactical-accent);
}

.tactical-status-active {
  color: var(--tactical-primary);
}

.tactical-status-offline {
  color: var(--tactical-quaternary);
}

/* Standard Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-mono { font-family: var(--font-mono); }
.font-tactical { font-family: var(--font-mono); color: var(--text-tactical-secondary); }

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

/* Typing animation styles for .exe text */
.exe-text {
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}