/* ═══════════════════════════════════════════════════════════════
   DMSP — Stefan Pommerening — Cyberpunk Portfolio Design System
   ═══════════════════════════════════════════════════════════════ */

/* ─── Self-hosted Fonts ──────────────────────────────────────── */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/orbitron-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/orbitron-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/orbitron-900-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/rajdhani-300-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/rajdhani-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/rajdhani-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/rajdhani-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/rajdhani-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-300-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-500-latin.woff2') format('woff2');
}

/* ─── Custom Properties ──────────────────────────────────────── */
:root {
  --bg-void:       #030508;
  --bg-primary:    #060a12;
  --bg-secondary:  #0a1628;
  --bg-card:       #0d1a2e;
  --bg-card-hover: #112040;
  --bg-glass:      rgba(10, 22, 40, 0.85);

  --accent-cyan:   #00d4ff;
  --accent-blue:   #0a84ff;
  --accent-purple: #7c3aed;
  --accent-green:  #00ff88;
  --accent-orange: #ff6b35;
  --accent-red:    #ff3366;

  --text-primary:  #e2e8f0;
  --text-secondary:#94a3b8;
  --text-muted:    #4b5563;
  --text-code:     #00d4ff;

  --border-subtle: rgba(0, 212, 255, 0.08);
  --border-glow:   rgba(0, 212, 255, 0.25);
  --border-active: rgba(0, 212, 255, 0.6);

  --glow-sm:  0 0 8px rgba(0, 212, 255, 0.4);
  --glow-md:  0 0 20px rgba(0, 212, 255, 0.35), 0 0 40px rgba(0, 212, 255, 0.15);
  --glow-lg:  0 0 30px rgba(0, 212, 255, 0.5), 0 0 60px rgba(0, 212, 255, 0.2);
  --glow-purple: 0 0 20px rgba(124, 58, 237, 0.4), 0 0 40px rgba(124, 58, 237, 0.15);
  --glow-green:  0 0 20px rgba(0, 255, 136, 0.35);
  --glow-orange: 0 0 20px rgba(255, 107, 53, 0.45);

  --font-display: 'Orbitron', 'Courier New', monospace;
  --font-body:    'Rajdhani', 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  --nav-height: 64px;
  --section-gap: 120px;
  --container-max: 1200px;
  --container-pad: clamp(16px, 5vw, 60px);
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-cyan); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: #fff; }
strong { color: var(--text-primary); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: rgba(0, 212, 255, 0.25);
  color: #fff;
}

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

/* ─── Typography Scale ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
p  { font-size: clamp(1rem, 2vw, 1.125rem); }

/* ─── Layout Utilities ───────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section-heading {
  text-align: center;
  margin-bottom: 64px;
  color: var(--accent-cyan);
  text-shadow: var(--glow-sm);
  position: relative;
}
.section-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  margin: 16px auto 0;
  box-shadow: var(--glow-sm);
}

/* ─── Scroll Reveal ──────────────────────────────────────────── */
.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.btn-primary::before {
  background: rgba(0, 212, 255, 0.1);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: var(--glow-md);
  border-color: var(--accent-cyan);
  text-shadow: var(--glow-sm);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.05));
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}
.btn-secondary::before {
  background: rgba(124, 58, 237, 0.1);
}
.btn-secondary:hover {
  color: #fff;
  box-shadow: var(--glow-purple);
  border-color: var(--accent-purple);
  text-shadow: 0 0 8px rgba(124, 58, 237, 0.6);
}

.btn-icon { font-size: 0.75rem; }

/* ─── Boot Loader ────────────────────────────────────────────── */
#boot-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-void);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#boot-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-inner {
  text-align: center;
  font-family: var(--font-mono);
}
.boot-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-cyan);
  text-shadow: var(--glow-lg);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  animation: pulse-glow 1.5s ease infinite;
}
.boot-bar-track {
  width: 240px;
  height: 3px;
  background: rgba(0, 212, 255, 0.15);
  border-radius: 2px;
  margin: 0 auto 16px;
  overflow: hidden;
}
.boot-bar-fill {
  height: 100%;
  background: var(--accent-cyan);
  box-shadow: var(--glow-sm);
  width: 0;
  animation: boot-progress 1.2s ease forwards;
}
.boot-text {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  animation: blink 0.8s step-end infinite;
}

/* ─── Navigation ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(6, 10, 18, 0.0);
  backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}
#navbar.scrolled {
  background: rgba(6, 10, 18, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  color: inherit;
  line-height: 1;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent-cyan);
  text-shadow: var(--glow-sm);
  letter-spacing: 0.15em;
  transition: text-shadow var(--transition-base);
}
.nav-brand:hover .brand-text { text-shadow: var(--glow-md); }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
}
.nav-links li a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-base);
  position: relative;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--accent-cyan);
  box-shadow: var(--glow-sm);
  transition: width var(--transition-base);
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-cyan);
  border-color: var(--border-subtle);
}
.nav-links li a:hover::after,
.nav-links li a.active::after { width: 60%; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
  transition: all var(--transition-base);
  box-shadow: var(--glow-sm);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile Menu ────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.97);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-base);
}
.mobile-menu-close:hover { color: var(--accent-cyan); }
.mobile-nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-links li a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 12px 24px;
  transition: color var(--transition-base), text-shadow var(--transition-base);
}
.mobile-nav-links li a:hover {
  color: var(--accent-cyan);
  text-shadow: var(--glow-sm);
}

/* ─── Hero ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--nav-height) 0 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--container-pad);
  max-width: 900px;
}

.hero-prefix {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  letter-spacing: 0.4em;
  color: var(--accent-cyan);
  text-shadow: var(--glow-sm);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
  animation: glitch-subtle 8s infinite;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15), var(--glow-sm);
  letter-spacing: 0.04em;
  position: relative;
  animation: glitch-name 10s infinite;
  line-height: 1.1;
}

.hero-divider {
  width: 60%;
  max-width: 480px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
  margin: 24px auto;
  box-shadow: var(--glow-sm);
}

.hero-role-wrapper {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--accent-green);
  text-shadow: var(--glow-green);
  margin-bottom: 20px;
  min-height: 1.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hero-role-prompt { opacity: 0.6; }
.hero-cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent-green);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  padding: 16px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  min-width: 100px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.stat-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-sm);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-cyan);
  text-shadow: var(--glow-sm);
  display: block;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color var(--transition-base);
  animation: float 2.5s ease-in-out infinite;
}
.hero-scroll-hint:hover { color: var(--accent-cyan); }
.scroll-arrow { font-size: 1.2rem; }

/* ─── About ──────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

.about-bio p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 400;
}
.about-bio p:last-child { margin-bottom: 0; }

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}
.highlight-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: var(--glow-sm);
}
.highlight-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.highlight-body {}
.highlight-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}
.highlight-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  display: block;
}

/* ─── Expertise ──────────────────────────────────────────────── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.expertise-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent-color, var(--accent-cyan)), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.expertise-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), var(--glow-sm);
}
.expertise-card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.card-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}
.skill-bar-wrapper {
  margin-bottom: 16px;
}
.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.skill-bar-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skill-bar-value {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
}
.skill-bar-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.15);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.expertise-card:hover .tag {
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--text-secondary);
}

/* ─── Timeline ───────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--accent-cyan), var(--accent-cyan), transparent);
  opacity: 0.2;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0 20px;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:nth-child(odd) .timeline-meta { text-align: right; }
.timeline-item:nth-child(odd) .timeline-body { grid-column: 3; }
.timeline-item:nth-child(odd) .timeline-dot-col { grid-column: 2; grid-row: 1; }
.timeline-item:nth-child(odd) .timeline-meta { grid-column: 1; grid-row: 1; }

.timeline-item:nth-child(even) .timeline-meta { text-align: left; grid-column: 3; grid-row: 1; }
.timeline-item:nth-child(even) .timeline-body { grid-column: 1; grid-row: 1; }
.timeline-item:nth-child(even) .timeline-dot-col { grid-column: 2; grid-row: 1; }

.timeline-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: var(--glow-md);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.3);
  animation: pulse-ring 2.5s ease infinite;
}

.timeline-meta {
  padding-top: 0;
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.timeline-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-freelance {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--accent-green);
}
.badge-employment {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--accent-cyan);
}
.badge-founder {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #a78bfa;
}

.timeline-body {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}
.timeline-body:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-sm);
  background: var(--bg-card-hover);
}
.timeline-role {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.timeline-company {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  font-weight: 500;
}
.timeline-highlights {
  list-style: none;
  margin-bottom: 12px;
}
.timeline-highlights li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.timeline-highlights li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 0.7rem;
  opacity: 0.7;
}
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

/* ─── Projects ───────────────────────────────────────────────── */
.project-featured {
  margin-bottom: 40px;
}
.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.07);
}
.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-cyan));
  animation: shimmer 3s linear infinite;
  background-size: 200% 100%;
}
.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.featured-label-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: var(--glow-green);
  animation: pulse-glow 1.5s ease infinite;
}
.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}
.featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.featured-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 6px;
}
.featured-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.featured-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.featured-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}
.featured-highlights-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.featured-highlights {
  list-style: none;
}
.featured-highlights li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.5;
  transition: color var(--transition-fast);
}
.featured-highlights li:last-child { border-bottom: none; }
.featured-highlights li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 0.6rem;
  top: 9px;
}
.featured-highlights li:hover { color: var(--text-primary); }

.featured-aside-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  margin-top: 24px;
}
.featured-aside-label:first-child { margin-top: 0; }
.featured-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.06);
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}
.featured-arch {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent-purple);
  line-height: 1.5;
}

.projects-other-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}
.project-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--glow-sm);
}
.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}
.project-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.project-year {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.project-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* ─── Clients ────────────────────────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.client-card {
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-base);
}
.client-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--glow-sm);
}
.client-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  line-height: 1.3;
}
.client-role {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.client-type-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 8px auto 0;
}
.client-type-dot.enterprise { background: var(--accent-cyan); box-shadow: var(--glow-sm); }
.client-type-dot.startup    { background: var(--accent-green); box-shadow: var(--glow-green); }
.client-type-dot.consulting { background: var(--accent-purple); box-shadow: var(--glow-purple); }

/* ─── Technologies ───────────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tech-category {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}
.tech-category:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-sm);
}
.tech-category-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tech-category-name::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

/* Tech category color coding */
.tech-color-cyan .tech-category-name { color: var(--accent-cyan); }
.tech-color-cyan .tech-category-name::before { background: var(--accent-cyan); box-shadow: var(--glow-sm); }
.tech-color-cyan .tech-pill { border-color: rgba(0, 212, 255, 0.2); color: rgba(0, 212, 255, 0.7); background: rgba(0, 212, 255, 0.05); }
.tech-color-cyan .tech-pill:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.tech-color-blue .tech-category-name { color: var(--accent-blue); }
.tech-color-blue .tech-category-name::before { background: var(--accent-blue); }
.tech-color-blue .tech-pill { border-color: rgba(10, 132, 255, 0.2); color: rgba(10, 132, 255, 0.7); background: rgba(10, 132, 255, 0.05); }
.tech-color-blue .tech-pill:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

.tech-color-purple .tech-category-name { color: #a78bfa; }
.tech-color-purple .tech-category-name::before { background: var(--accent-purple); box-shadow: var(--glow-purple); }
.tech-color-purple .tech-pill { border-color: rgba(124, 58, 237, 0.2); color: rgba(167, 139, 250, 0.7); background: rgba(124, 58, 237, 0.05); }
.tech-color-purple .tech-pill:hover { border-color: #a78bfa; color: #a78bfa; }

.tech-color-green .tech-category-name { color: var(--accent-green); }
.tech-color-green .tech-category-name::before { background: var(--accent-green); box-shadow: var(--glow-green); }
.tech-color-green .tech-pill { border-color: rgba(0, 255, 136, 0.2); color: rgba(0, 255, 136, 0.7); background: rgba(0, 255, 136, 0.05); }
.tech-color-green .tech-pill:hover { border-color: var(--accent-green); color: var(--accent-green); }

.tech-color-orange .tech-category-name { color: var(--accent-orange); }
.tech-color-orange .tech-category-name::before { background: var(--accent-orange); }
.tech-color-orange .tech-pill { border-color: rgba(255, 107, 53, 0.2); color: rgba(255, 107, 53, 0.7); background: rgba(255, 107, 53, 0.05); }
.tech-color-orange .tech-pill:hover { border-color: var(--accent-orange); color: var(--accent-orange); }

/* ─── Contact ────────────────────────────────────────────────── */
.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
}
.contact-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.contact-availability {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-green);
  text-shadow: var(--glow-green);
  letter-spacing: 0.1em;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.contact-availability::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: var(--glow-green);
  animation: pulse-glow 1.5s ease infinite;
  flex-shrink: 0;
}
.contact-availability.unavailable {
  color: var(--accent-orange);
  text-shadow: var(--glow-orange);
}
.contact-availability.unavailable::before {
  background: var(--accent-orange);
  box-shadow: var(--glow-orange);
  animation: none;
}
.contact-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}
.contact-item:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-sm);
  color: inherit;
  transform: translateY(-2px);
}
.contact-icon {
  font-size: 1.4rem;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.contact-info {}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}
.contact-value {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

/* ─── Footer ─────────────────────────────────────────────────── */
#footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-void);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  opacity: 0.6;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition-base);
}
.footer-links a:hover { color: var(--accent-cyan); }

/* ─── Keyframe Animations ────────────────────────────────────── */
@keyframes boot-progress {
  from { width: 0; }
  to   { width: 100%; }
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: var(--glow-sm); }
  50%       { opacity: 0.6; box-shadow: none; }
}

@keyframes pulse-ring {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.5); }
}

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

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

@keyframes glitch-subtle {
  0%, 94%, 100% { opacity: 0.8; transform: none; text-shadow: var(--glow-sm); }
  95%    { transform: skewX(-0.5deg) translateX(2px); text-shadow: 2px 0 var(--accent-purple); }
  96%    { transform: skewX(0.5deg) translateX(-2px); text-shadow: -2px 0 var(--accent-green); }
  97%    { transform: none; }
}

@keyframes glitch-name {
  0%, 90%, 100% { text-shadow: 0 0 30px rgba(255,255,255,0.15), var(--glow-sm); transform: none; }
  91%   { text-shadow: 3px 0 var(--accent-purple), -3px 0 var(--accent-cyan); transform: translateX(2px); }
  92%   { text-shadow: -3px 0 var(--accent-green), 3px 0 var(--accent-red); transform: translateX(-2px); }
  93%   { text-shadow: 0 0 30px rgba(255,255,255,0.15), var(--glow-sm); transform: none; }
}

/* ─── Responsive Breakpoints ─────────────────────────────────── */
@media (max-width: 1024px) {
  .expertise-grid     { grid-template-columns: repeat(2, 1fr); }
  .clients-grid       { grid-template-columns: repeat(3, 1fr); }
  .tech-grid          { grid-template-columns: repeat(2, 1fr); }
  .about-grid         { grid-template-columns: 1fr; }
  .featured-body      { grid-template-columns: 1fr; }
  .timeline::before   { left: 20px; }
  .timeline-item      { grid-template-columns: 40px 1fr; }
  .timeline-item:nth-child(odd) .timeline-meta  { text-align: left; grid-column: 2; }
  .timeline-item:nth-child(odd) .timeline-body  { grid-column: 2; }
  .timeline-item:nth-child(odd) .timeline-dot-col { grid-column: 1; }
  .timeline-item:nth-child(even) .timeline-meta { grid-column: 2; text-align: left; }
  .timeline-item:nth-child(even) .timeline-body { grid-column: 2; }
  .timeline-item:nth-child(even) .timeline-dot-col { grid-column: 1; }
}

@media (max-width: 768px) {
  :root { --section-gap: 80px; }
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }
  .expertise-grid { grid-template-columns: 1fr; }
  .clients-grid   { grid-template-columns: repeat(2, 1fr); }
  .tech-grid      { grid-template-columns: 1fr; }
  .projects-other-grid { grid-template-columns: 1fr; }
  .contact-items  { grid-template-columns: 1fr; }
  .hero-stats     { gap: 12px; }
  .stat-item      { min-width: 80px; padding: 12px 14px; }
  .featured-card  { padding: 24px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .section-heading { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .clients-grid { grid-template-columns: 1fr; }
  .hero-stats   { flex-direction: row; }
  .stat-value   { font-size: 1.4rem; }
}

/* ─── Impressum & Datenschutz ─────────────────────────────────── */
#impressum,
#datenschutz {
  background: var(--bg-void);
  border-top: 1px solid var(--border-subtle);
}
[data-page="legal"] #impressum,
[data-page="legal"] #datenschutz {
  border-top: none;
  padding-top: calc(var(--section-gap) + var(--nav-height));
}
.legal-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 40px 48px;
}
.legal-box h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 32px 0 12px;
}
.legal-box h3:first-child { margin-top: 0; }
.legal-box p,
.legal-box address {
  font-style: normal;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.legal-box a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.legal-box a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .legal-box { padding: 24px 20px; }
}
