/* ============================================
   SVEN NEURATH PORTFOLIO - POLISHED v3.1
   Clean, Modern
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(26, 26, 37, 0.4);
  --bg-card-hover: rgba(26, 26, 37, 0.6);
  
  --accent-red: #ff3366;
  --accent-orange: #ff6b35;
  --accent-cyan: #00d9ff;
  --accent-purple: #7c3aed;
  
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #6b6b7b;
  
  --gradient-hero: linear-gradient(90deg, #ff3366, #ff6b35, #ff3366);
  --gradient-card: linear-gradient(135deg, rgba(255, 51, 102, 0.1), rgba(0, 217, 255, 0.1));
  
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== SKIP LINK (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-cyan);
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

.bg-glow {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 51, 102, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 217, 255, 0.1) 0%, transparent 40%);
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-hero);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  gap: 0.75rem;
}

.nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero-mascot {
  margin-bottom: 2rem;
}

.avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 60px rgba(0, 217, 255, 0.5), 0 0 100px rgba(0, 217, 255, 0.3);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.gradient-text {
  background: var(--gradient-hero);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-hero);
  background-size: 200% auto;
  color: white;
  animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 51, 102, 0.5), 0 0 80px rgba(255, 51, 102, 0.3), 0 10px 30px rgba(255, 51, 102, 0.4);
}

.btn-secondary {
  background: transparent;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-secondary:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.5), 0 0 80px rgba(0, 217, 255, 0.3);
}

/* ===== SECTIONS ===== */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ===== HOMELAB TERMINAL ===== */
.homelab {
  background: transparent;
}

.terminal {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 255, 136, 0.08), 0 0 100px rgba(0, 255, 136, 0.04), 0 10px 40px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.terminal-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.terminal-live.active {
  color: #00ff88;
  opacity: 1;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.terminal-live.active .live-dot {
  background: #00ff88;
  box-shadow: 0 0 6px rgba(0, 255, 136, 0.6);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.terminal-line {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.terminal-prompt {
  color: var(--accent-cyan);
}

.terminal-command {
  color: var(--text-primary);
}

.terminal-output {
  color: var(--text-secondary);
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  text-align: center;
}

.status-icon {
  font-size: 1.5rem;
}

.status-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.status-value {
  color: var(--accent-cyan);
  font-weight: 600;
}

.docker-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.docker-item {
  display: flex;
  justify-content: space-between;
}

.docker-name {
  color: var(--accent-cyan);
}

.docker-status {
  color: var(--accent-green);
}

.cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===== SNAKE WIDGET - CRT TERMINAL STYLE ===== */
.snake-widget {
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
}

.crt-housing {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: linear-gradient(145deg, #0c0c10 0%, #06060a 50%, #0a0a10 100%);
  border-radius: 12px;
  padding: 3px;
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.15), 0 0 120px rgba(0, 255, 136, 0.08), 0 25px 80px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255,255,255,0.05);
  /* Neon border via box-shadow instead of ::before pseudo (mobile-safe) */
  outline: 1px solid rgba(0, 255, 136, 0.25);
  outline-offset: 0px;
}

.crt-housing::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(135deg, #00ff88 0%, transparent 30%, transparent 70%, #00d9ff 100%);
  opacity: 0.5;
  z-index: 0;
  animation: borderPulse 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes borderPulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

.crt-inner {
  position: relative;
  z-index: 1;
  background: #080810;
  border-radius: 10px;
  padding: 2px;
  border: 1px solid rgba(0, 255, 136, 0.08);
}

.crt-screen {
  position: relative;
  background: #020a06;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
}

/* Scanlines */
.crt-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 1px, rgba(0, 0, 0, 0.12) 1px, rgba(0, 0, 0, 0.12) 2px);
  pointer-events: none;
  z-index: 20;
}

/* Vignette */
.crt-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
  z-index: 21;
}

.crt-flicker {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 22;
  animation: flicker 0.15s infinite;
  background: transparent;
}

@keyframes flicker {
  0% { opacity: 0.01; background: rgba(0,255,136,0.01); }
  50% { opacity: 0; background: transparent; }
  100% { opacity: 0.01; background: rgba(0,255,136,0.005); }
}

.crt-scanbeam {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(180deg, transparent, rgba(0,255,136,0.06), transparent);
  pointer-events: none;
  z-index: 23;
  animation: scanbeam 6s linear infinite;
}

@keyframes scanbeam {
  0% { top: -3px; }
  100% { top: 100%; }
}

.crt-screen.glitch {
  animation: glitchShake 0.2s steps(4) 1;
}

@keyframes glitchShake {
  0% { transform: translate(0); filter: hue-rotate(0deg); }
  25% { transform: translate(-3px, 1px); filter: hue-rotate(90deg); }
  50% { transform: translate(2px, -1px); filter: hue-rotate(180deg); }
  75% { transform: translate(-1px, 2px); filter: hue-rotate(270deg); }
  100% { transform: translate(0); filter: hue-rotate(0deg); }
}

/* Header / Status / Footer share same z-index layer */
.term-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(0,255,136,0.06) 0%, transparent 100%);
  border-bottom: 1px solid rgba(0,255,136,0.12);
  position: relative;
  z-index: 5;
}

.term-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-title-text {
  font-weight: 700;
  font-size: 11px;
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0,255,136,0.5), 0 0 20px rgba(0,255,136,0.5);
  letter-spacing: 3px;
}

.term-version {
  font-size: 7px;
  color: #00d9ff;
  text-shadow: 0 0 6px rgba(0,217,255,0.4);
  opacity: 0.7;
  letter-spacing: 1px;
}

.term-dots {
  display: flex;
  gap: 5px;
}

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}

.term-dot.red { background: #ff4444; box-shadow: 0 0 6px rgba(255,68,68,0.5); }
.term-dot.yellow { background: #ffaa00; box-shadow: 0 0 6px rgba(255,170,0,0.5); }
.term-dot.green { background: #00ff88; box-shadow: 0 0 6px rgba(0,255,136,0.5); }

.term-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(0,255,136,0.06);
  position: relative;
  z-index: 5;
}

.stat-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.stat-item {
  font-size: 9px;
  color: rgba(0, 255, 136, 0.5);
  letter-spacing: 1px;
}

.stat-item .val {
  color: #00ff88;
  text-shadow: 0 0 6px rgba(0,255,136,0.5);
  font-weight: bold;
}

.stat-item.hi .val {
  color: #ff00aa;
  text-shadow: 0 0 8px rgba(255,0,170,0.4);
}

.stat-item.len .val {
  color: #00d9ff;
  text-shadow: 0 0 6px rgba(0,217,255,0.4);
}

/* Canvas wrapper - MOBILE FIX: use padding-bottom for bulletproof 1:1 ratio */
.canvas-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* forces 1:1 ratio on all browsers */
  overflow: hidden;
}

#snakeCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}



.snake-play-prompt {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(2, 10, 6, 0.45);
  color: #00ff88;
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: clamp(0.9rem, 2.4vw, 1.3rem);
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.snake-play-prompt::after {
  content: '';
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(0, 255, 136, 0.35);
  pointer-events: none;
}

.snake-play-prompt.hidden {
  opacity: 0;
  pointer-events: none;
}

.snake-play-prompt:hover,
.snake-play-prompt:focus-visible {
  background: rgba(2, 10, 6, 0.2);
  outline: none;
}
.term-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  border-top: 1px solid rgba(0,255,136,0.08);
  background: rgba(0,0,0,0.3);
  position: relative;
  z-index: 5;
}

.ai-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  color: #00d9ff;
  text-shadow: 0 0 6px rgba(0,217,255,0.4);
  letter-spacing: 2px;
}

.ai-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d9ff;
  box-shadow: 0 0 8px rgba(0,217,255,0.4);
  animation: aiPulse 1s ease-in-out infinite;
}

@keyframes aiPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.sys-info {
  font-size: 7px;
  color: rgba(0,255,136,0.3);
  letter-spacing: 1px;
}

.death-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.death-overlay.active {
  opacity: 1;
}

.death-text {
  font-weight: 900;
  font-size: 22px;
  color: #ff00aa;
  text-shadow: 0 0 20px rgba(255,0,170,0.5), 0 0 40px rgba(255,0,170,0.5), 0 0 80px rgba(255, 0, 170, 0.2);
  letter-spacing: 6px;
  animation: glitchText 0.3s steps(3) infinite;
}

.death-sub {
  font-size: 9px;
  color: rgba(255, 0, 170, 0.6);
  margin-top: 8px;
  letter-spacing: 3px;
}

@keyframes glitchText {
  0% { text-shadow: 0 0 20px rgba(255,0,170,0.5), -2px 0 #00d9ff; }
  33% { text-shadow: 0 0 20px rgba(255,0,170,0.5), 2px 0 #00ff88; }
  66% { text-shadow: 0 0 20px rgba(255,0,170,0.5), -1px 0 #ff00aa; }
  100% { text-shadow: 0 0 20px rgba(255,0,170,0.5), 1px 0 #00d9ff; }
}

.housing-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 4px;
  position: relative;
  z-index: 1;
}

.led-strip {
  display: flex;
  gap: 6px;
}

.led {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.led-g { background: #00ff88; box-shadow: 0 0 4px rgba(0,255,136,0.5); animation: ledBlink 2s infinite; }
.led-c { background: #00d9ff; box-shadow: 0 0 4px rgba(0,217,255,0.4); animation: ledBlink 3s infinite; }
.led-m { background: #ff00aa; box-shadow: 0 0 4px rgba(255,0,170,0.4); animation: ledBlink 2.5s infinite; }

@keyframes ledBlink {
  0%, 90% { opacity: 1; }
  95% { opacity: 0.2; }
  100% { opacity: 1; }
}

.brand-mark {
  font-size: 6px;
  color: rgba(0,255,136,0.15);
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* ===== SNAKE MOBILE CTA ===== */
.snake-mobile-cta {
  display: none; /* hidden on desktop by default */
  margin-bottom: 3rem;
}

.snake-mobile-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08) 0%, rgba(0, 217, 255, 0.08) 100%);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.snake-mobile-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 217, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.snake-mobile-btn:hover,
.snake-mobile-btn:active {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.15), 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.snake-mobile-btn:hover::before,
.snake-mobile-btn:active::before {
  opacity: 1;
}

.snake-mobile-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.snake-mobile-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.snake-mobile-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #00ff88;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
  letter-spacing: 1px;
}

.snake-mobile-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.snake-mobile-arrow {
  font-size: 1.5rem;
  color: #00d9ff;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.snake-mobile-btn:hover .snake-mobile-arrow,
.snake-mobile-btn:active .snake-mobile-arrow {
  transform: translateX(4px);
}

/* ===== FEATURES ===== */
.features {
  background: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 0 60px rgba(0, 217, 255, 0.15), 0 0 100px rgba(0, 217, 255, 0.08), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== TECH STACK ===== */
.tech {
  background: transparent;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tech-pill {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.05);
}

.tech-pill:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.5), 0 0 60px rgba(0, 217, 255, 0.3);
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 0 40px rgba(255, 51, 102, 0.05), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.godot-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 2px solid var(--glass-border);
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  box-shadow: 0 0 40px rgba(255, 51, 102, 0.08), 0 10px 40px rgba(0, 0, 0, 0.4);
}

.godot-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 60px rgba(0, 217, 255, 0.2), 0 0 100px rgba(0, 217, 255, 0.1), 0 10px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
}

.project-image {
  height: 180px;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-emoji {
  font-size: 4rem;
}

.project-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-screenshot {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.project-status-badge {
  background: rgba(0, 0, 0, 0.7);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.goal-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border-left: 4px solid var(--accent-cyan);
}

.goal-box h3 {
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.goal-box p {
  color: var(--text-muted);
}

/* ===== ABOUT SECTION ===== */
.about {
  background: transparent;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  text-align: center;
  margin-bottom: 3rem;
}

.about-text > p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* About Cards Grid */
.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

/* Infrastructure Card - Cyan Glow */
.infra-card {
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.infra-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 50px rgba(0, 217, 255, 0.3), 0 0 100px rgba(0, 217, 255, 0.15), 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 217, 255, 0.4);
}

/* MTW Card - Pink/Green Glow */
.mtw-card {
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.15), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.mtw-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 50px rgba(0, 255, 136, 0.3), 0 0 100px rgba(0, 255, 136, 0.15), 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 255, 136, 0.4);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-icon {
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat {
  text-align: center;
  flex: 1;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-hero);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255, 51, 102, 0.5));
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 20px;
  color: var(--accent-cyan);
}

.mtw-card .tech-tag {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.2);
  color: #00ff88;
}

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-md);
  color: #00ff88;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.video-link:hover {
  background: rgba(0, 255, 136, 0.2);
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
  color: #fff;
}

.video-icon {
  font-size: 0.9rem;
}

/* Legacy styles for compatibility */
.highlight-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-hero);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
}

.highlight-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CONTACT ===== */
.contact {
  background: transparent;
}

.contact-content {
  text-align: center;
}

.contact-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link {
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-link:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-cyan);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .features-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  /* About Cards: Stack on mobile */
  .about-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card-stats {
    gap: 0.75rem;
  }
  
  .stat-value {
    font-size: 1.75rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  /* Snake: hide widget, show mobile button */
  .snake-widget {
    display: none !important;
  }
  
  .snake-mobile-cta {
    display: block;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .status-widget {
    grid-template-columns: 1fr;
  }
  
  .snake-mobile-title {
    font-size: 0.8rem;
  }
  
  .snake-mobile-sub {
    font-size: 0.7rem;
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ACCESSIBILITY - FOCUS STYLES ===== */
/* Sichtbare Fokus-Styles für Keyboard-Navigation */

*:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Buttons und Links sollten einen klaren Fokus haben */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.2);
}

/* Navigation Links */
.nav-link:focus-visible {
  background: rgba(0, 217, 255, 0.1);
  border-radius: var(--radius-sm);
}

/* Filter Buttons */
.filter-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.3);
}

/* Post Cards */
.post-card:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

/* Reduced Motion - Für Nutzer die keine Animationen mögen */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
