/* ============================================================
   IcosaLED – Design V4: RETRO CRT TERMINAL / PHOSPHOR SCREEN
   Vintage-Terminal-Aesthetik: Phosphor-Gruen, Scanlines,
   CRT-Kruemmung, Flicker-Animationen, Hacker-Feeling
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Fira+Code:wght@300;400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:       #0a0a0a;
  --c-bg2:      #0d0d0d;
  --c-surface:  #111111;
  --c-card:     #0e0e0e;
  --c-border:   rgba(51,255,102,0.15);
  --c-text:     #b8ffcc;
  --c-muted:    #4a8a5a;
  --c-green:    #33ff66;    /* Phosphor Green */
  --c-amber:    #ffcc33;    /* Amber Accent */
  --c-red:      #ff4444;    /* Error Red */
  --c-dimgreen: #1a6633;    /* Dim Green */
  --grad:       linear-gradient(135deg, var(--c-green), var(--c-amber));
  --grad2:      linear-gradient(135deg, var(--c-amber), var(--c-green));
  --r:          0px;
  --nav-h:      56px;
  --glow-green: 0 0 8px rgba(51,255,102,0.5), 0 0 25px rgba(51,255,102,0.15);
  --glow-amber: 0 0 8px rgba(255,204,51,0.5), 0 0 25px rgba(255,204,51,0.15);
  --scanline:   repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: 'Fira Code', 'Courier New', monospace;
  line-height: 1.7;
  overflow-x: hidden;
  /* Scanline overlay on the whole page */
  background-image:
    var(--scanline),
    radial-gradient(ellipse at 50% 0%, rgba(51,255,102,0.03) 0%, transparent 70%);
  background-attachment: fixed;
}

/* Global scanline overlay via pseudo-element */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: var(--scanline);
  opacity: 0.4;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 0;
  /* No green tint – show original colors */
}

code {
  font-family: 'Fira Code', monospace;
  background: rgba(51,255,102,0.08);
  padding: 2px 8px;
  border: 1px solid var(--c-border);
  font-size: .85em;
  color: var(--c-green);
  text-shadow: 0 0 4px rgba(51,255,102,0.3);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---- Gradient Text ---- */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(51,255,102,0.5));
}

/* ---- CRT Flicker Animation ---- */
@keyframes crt-flicker {
  0%, 100% { opacity: 1; }
  92%      { opacity: 1; }
  93%      { opacity: 0.85; }
  94%      { opacity: 1; }
  96%      { opacity: 0.9; }
  97%      { opacity: 1; }
}

@keyframes blink-cursor {
  0%, 49%  { border-right-color: var(--c-green); }
  50%, 100% { border-right-color: transparent; }
}

@keyframes text-glow-pulse {
  0%, 100% { text-shadow: 0 0 4px rgba(51,255,102,0.4), 0 0 12px rgba(51,255,102,0.15); }
  50%      { text-shadow: 0 0 8px rgba(51,255,102,0.7), 0 0 20px rgba(51,255,102,0.3); }
}

@keyframes scan-down {
  0%   { top: -4px; }
  100% { top: 100%; }
}

/* ============================================================
   NAVIGATION
============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  transition: background .3s;
}
#nav::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--c-green);
  opacity: 0.5;
  box-shadow: 0 0 8px rgba(51,255,102,0.5);
}
#nav.scrolled { background: rgba(10,10,10,0.98); }

.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: 'VT323', monospace;
  font-size: 1.4rem; font-weight: 400;
  color: var(--c-green);
  text-shadow: var(--glow-green);
  letter-spacing: 3px;
  animation: text-glow-pulse 3s ease-in-out infinite;
}
.nav-logo::before { content: '> '; color: var(--c-amber); }

/* ---- Language Switcher ---- */
.lang-switcher { display: flex; gap: 2px; align-items: center; flex-shrink: 0; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-size: .85rem; padding: 2px 3px;
  opacity: 0.35; transition: opacity .2s, filter .2s;
  line-height: 1;
}
.lang-btn.active {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(51,255,102,0.5));
}
.lang-btn:hover { opacity: 0.8; }

.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-family: 'Fira Code', monospace;
  font-size: .75rem; color: var(--c-muted);
  transition: all .2s;
  text-transform: uppercase; letter-spacing: 2px;
  position: relative;
  padding: 4px 0;
}
.nav-links a::before { content: '['; color: transparent; transition: color .2s; }
.nav-links a::after { content: ']'; color: transparent; transition: color .2s; }
.nav-links a:hover {
  color: var(--c-bg);
  background: var(--c-green);
  text-shadow: none;
  padding: 4px 2px;
}
.nav-links a:hover::before,
.nav-links a:hover::after {
  color: var(--c-bg);
}

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--c-green); border-radius: 0;
  transition: .3s; box-shadow: var(--glow-green);
}

@media (max-width: 700px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    padding: 20px 24px;
    border-bottom: 1px solid var(--c-border); gap: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
}

/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  /* CRT vignette */
  box-shadow: inset 0 0 150px rgba(0,0,0,0.8), inset 0 0 40px rgba(0,0,0,0.4);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
#heroCanvas {
  width: 100%; height: 100%;
  /* No green tint on canvas */
}

.hero-content {
  position: relative; z-index: 1; max-width: 700px;
  animation: crt-flicker 8s infinite;
}

.hero-eyebrow {
  font-family: 'Fira Code', monospace;
  font-size: .75rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--c-amber); margin-bottom: 16px;
  text-shadow: var(--glow-amber);
}
.hero-eyebrow::before { content: '// '; }

.hero-title {
  font-family: 'VT323', monospace;
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 400; line-height: 1;
  margin-bottom: 24px;
  letter-spacing: 6px;
  color: var(--c-green);
  text-shadow: 0 0 20px rgba(51,255,102,0.6), 0 0 60px rgba(51,255,102,0.2);
}

.hero-sub {
  font-size: clamp(.85rem, 2vw, 1rem);
  color: var(--c-muted); margin-bottom: 32px;
  line-height: 1.8;
}
.hero-sub::before { content: '$ echo "'; color: var(--c-dimgreen); }
.hero-sub::after { content: '"'; color: var(--c-dimgreen); }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 40px;
}

.badge {
  padding: 6px 14px;
  border: 1px solid var(--c-green);
  font-family: 'Fira Code', monospace;
  font-size: .7rem; color: var(--c-green);
  background: rgba(51,255,102,0.05);
  text-transform: uppercase; letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(51,255,102,0.3);
}
.badge::before { content: '['; }
.badge::after { content: ']'; }

.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  color: var(--c-green); font-weight: 500;
  border: 1px solid var(--c-green);
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  letter-spacing: 3px; text-transform: uppercase;
  transition: all .2s;
  text-shadow: var(--glow-green);
  position: relative; overflow: hidden;
  cursor: pointer;
  /* Blinking cursor at the end */
  border-right: 3px solid var(--c-green);
  animation: blink-cursor 1s step-end infinite;
}
.btn-primary::before { content: '[ '; }
.btn-primary::after { content: ' ]'; }
.btn-primary:hover {
  color: var(--c-bg);
  background: var(--c-green);
  text-shadow: none;
  box-shadow: 0 0 30px rgba(51,255,102,0.4);
  border-right-color: var(--c-bg);
  animation: none;
}

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  font-family: 'VT323', monospace;
  font-size: 1.4rem; color: var(--c-green); z-index: 1;
  text-shadow: var(--glow-green);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SECTION SHARED
============================================================ */
section {
  padding: 100px 0; position: relative;
  /* CRT curvature vignette */
  box-shadow: inset 0 0 80px rgba(0,0,0,0.3);
}
section:nth-child(odd) { background: var(--c-bg2); }

/* Vertical terminal border */
section::before {
  content: '';
  position: absolute; top: 0; left: 32px; width: 1px; height: 100%;
  background: repeating-linear-gradient(to bottom,
    var(--c-green) 0px, var(--c-green) 2px,
    transparent 2px, transparent 10px);
  opacity: 0.15;
}

.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  font-size: .7rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--c-amber); margin-bottom: 12px;
  padding: 4px 14px;
  border: 1px solid rgba(255,204,51,0.3);
  text-shadow: var(--glow-amber);
}
.section-tag::before { content: '// '; }

.section-header h2 {
  font-family: 'VT323', monospace;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 400; line-height: 1.2;
  color: var(--c-green);
  text-shadow: 0 0 10px rgba(51,255,102,0.5), 0 0 30px rgba(51,255,102,0.15);
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.section-header h2::before { content: '> '; color: var(--c-amber); }

.section-sub {
  font-size: .9rem; color: var(--c-muted);
  max-width: 620px; margin: 0 auto; line-height: 1.8;
}

/* ============================================================
   ABOUT
============================================================ */
.about-image img {
  border: 1px solid var(--c-border);
  box-shadow: var(--glow-green), inset 0 0 40px rgba(0,0,0,0.5);
  /* CRT curvature effect */
  border-radius: 8px / 12px;
}

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.fact-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  padding: 20px 16px;
  transition: all .3s;
  position: relative; overflow: hidden;
}
/* Terminal title bar */
.fact-card::before {
  content: '--- DATA ---';
  display: block;
  font-family: 'VT323', monospace;
  font-size: .7rem; color: var(--c-dimgreen);
  letter-spacing: 2px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}
.fact-card:hover {
  border-color: var(--c-green);
  box-shadow: var(--glow-green);
  transform: translateY(-3px);
}

.fact-number {
  font-family: 'VT323', monospace;
  font-size: 3rem; font-weight: 400; line-height: 1;
  margin-bottom: 4px;
  color: var(--c-green);
  text-shadow: 0 0 12px rgba(51,255,102,0.5);
}
.fact-label {
  font-weight: 500; margin-bottom: 6px;
  color: var(--c-amber); font-size: .85rem;
  text-shadow: 0 0 4px rgba(255,204,51,0.3);
}
.fact-desc { font-size: .78rem; color: var(--c-muted); line-height: 1.5; }

/* ============================================================
   GALLERY
============================================================ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.gallery-item {
  position: relative; overflow: hidden;
  border: 1px solid var(--c-border);
}
.gallery-item.large { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  min-height: 260px; transition: all .5s;
  /* No green tint – show original colors */
}
.gallery-item.large img { min-height: 360px; }
/* CRT curvature on images */
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
  pointer-events: none;
  border-radius: 4px / 6px;
}
.gallery-item:hover img {
  transform: scale(1.05);
  /* No green tint on hover */
}

.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.95));
  font-family: 'Fira Code', monospace;
  font-size: .7rem; color: var(--c-green);
  text-transform: uppercase; letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(51,255,102,0.4);
  z-index: 1;
}
.gallery-caption::before { content: '> '; color: var(--c-amber); }

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; }
}

/* ============================================================
   TIMELINE (Making-of)
============================================================ */
.timeline {
  position: relative;
  padding: 40px 0;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--c-green) 0, var(--c-green) 6px,
    transparent 6px, transparent 14px
  );
  opacity: 0.2;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.timeline-item:last-child { margin-bottom: 0; }

/* Linke Seite: Text */
.timeline-left {
  flex: 1;
  text-align: right;
  padding-right: 32px;
  padding-top: 8px;
}

/* Mitte: Dot + Linie */
.timeline-center {
  width: 14px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.timeline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--c-green);
  border: 2px solid var(--c-bg);
  box-shadow: 0 0 8px rgba(51,255,102,0.5), 0 0 20px rgba(51,255,102,0.2);
  margin-top: 8px;
}

/* Rechte Seite: Bild */
.timeline-right {
  flex: 1;
  padding-left: 32px;
}

.timeline-date {
  font-family: 'Fira Code', monospace;
  font-size: .65rem;
  color: var(--c-amber);
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(255,204,51,0.08);
  border: 1px solid rgba(255,204,51,0.2);
  padding: 2px 10px;
  margin-bottom: 10px;
  display: inline-block;
  text-shadow: 0 0 6px rgba(255,204,51,0.3);
}

.timeline-title {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: var(--c-amber);
  text-shadow: 0 0 8px rgba(255,204,51,0.3);
  margin-bottom: 6px;
}
.timeline-desc {
  font-family: 'Fira Code', monospace;
  font-size: .7rem;
  color: var(--c-green);
  line-height: 1.6;
  opacity: 0.8;
}
.timeline-desc::before {
  content: '> ';
  color: var(--c-amber);
}

.timeline-img {
  width: 200px;
  border: 1px solid var(--c-border);
  overflow: hidden;
  position: relative;
  transition: all .3s;
  cursor: pointer;
}
.timeline-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.6));
  pointer-events: none;
}
.timeline-img img,
.timeline-img video {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.95);
  transition: transform .4s;
}
.timeline-item:hover .timeline-img {
  border-color: var(--c-green);
  box-shadow: var(--glow-green);
}
.timeline-item:hover .timeline-img img,
.timeline-item:hover .timeline-img video {
  transform: scale(1.03);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img,
.lightbox-overlay video {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid var(--c-border);
  box-shadow: 0 0 40px rgba(51,255,102,0.15);
  transition: transform .3s;
}
.lightbox-overlay img.hidden,
.lightbox-overlay video.hidden { display: none; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  font-family: 'VT323', monospace;
  font-size: 2rem;
  color: var(--c-green);
  cursor: pointer;
  text-shadow: 0 0 8px rgba(51,255,102,0.5);
  z-index: 10000;
  line-height: 1;
}

@media (max-width: 700px) {
  .timeline { padding: 20px 0 20px 28px; }
  .timeline::before {
    left: 0;
    transform: none;
  }
  .timeline-item {
    flex-direction: column;
    padding-left: 20px;
  }
  .timeline-center {
    position: absolute;
    left: -28px;
    top: 0;
  }
  .timeline-left {
    text-align: left;
    padding-right: 0;
    padding-top: 0;
    margin-bottom: 10px;
  }
  .timeline-right { padding-left: 0; }
  .timeline-img { width: 100%; max-width: 280px; }
}

/* ============================================================
   EFFECTS
============================================================ */
.effects-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 36px; justify-content: center;
}
.effect-tab {
  padding: 8px 20px;
  border: 1px solid var(--c-border);
  background: transparent; color: var(--c-muted);
  cursor: pointer; font-size: .8rem;
  font-family: 'Fira Code', monospace;
  letter-spacing: 1px; text-transform: uppercase;
  transition: .2s;
}
.effect-tab::before { content: '[ '; }
.effect-tab::after { content: ' ]'; }
.effect-tab:hover { border-color: var(--c-green); color: var(--c-green); }
.effect-tab.active {
  background: var(--c-green);
  color: var(--c-bg); border-color: var(--c-green);
  text-shadow: none;
}

.effects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.effect-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  padding: 0;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
/* Terminal window title bar */
.effect-card::before {
  content: '[ EFFECT ]  -  o  x';
  display: block;
  font-family: 'VT323', monospace;
  font-size: .75rem; color: var(--c-dimgreen);
  padding: 8px 12px;
  border-bottom: 1px solid var(--c-border);
  background: rgba(51,255,102,0.03);
  letter-spacing: 1px;
}
.effect-card > * { padding: 0 16px; }
.effect-card > *:first-child { padding-top: 14px; }
.effect-card > *:last-child { padding-bottom: 16px; }

.effect-preview { cursor: default; }
.effect-preview img { border-radius: 0; }
.effect-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-green);
  box-shadow: var(--glow-green);
}

.effect-icon {
  font-size: 1.6rem; margin-bottom: 10px;
  filter: drop-shadow(0 0 6px rgba(51,255,102,0.4));
}
.effect-card h3 {
  font-family: 'VT323', monospace;
  font-size: 1.2rem; font-weight: 400;
  margin-bottom: 8px; color: var(--c-green);
  letter-spacing: 2px;
  text-shadow: 0 0 6px rgba(51,255,102,0.3);
}
.effect-card h3::before { content: '> '; color: var(--c-amber); }
.effect-card p { font-size: .78rem; color: var(--c-muted); line-height: 1.55; }

/* ============================================================
   CONTROL
============================================================ */
.control-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
@media (max-width: 800px) { .control-split { grid-template-columns: 1fr; } }

.control-text .section-tag { display: block; margin-bottom: 12px; }
.control-text h2 {
  font-family: 'VT323', monospace;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400; margin-bottom: 18px;
  color: var(--c-green);
  text-shadow: 0 0 10px rgba(51,255,102,0.5);
}
.control-text h2::before { content: '$ '; color: var(--c-amber); }
.control-text p { color: var(--c-muted); margin-bottom: 24px; line-height: 1.8; }

.control-features { display: flex; flex-direction: column; gap: 10px; }
.control-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: .82rem; color: var(--c-muted);
  padding: 8px 12px;
  border-left: 2px solid var(--c-green);
  background: rgba(51,255,102,0.02);
  transition: all .2s;
}
.control-features li::before {
  content: '>';
  color: var(--c-amber);
  font-family: 'VT323', monospace;
  font-size: 1rem;
}
.control-features li:hover {
  background: rgba(51,255,102,0.06);
  color: var(--c-text);
}
.control-features li span { color: var(--c-text); }

.control-image img {
  width: 100%; max-width: 420px;
  border: 1px solid var(--c-border);
  display: block; margin: 0 auto;
  box-shadow: var(--glow-green), inset 0 0 30px rgba(0,0,0,0.4);
  border-radius: 6px / 10px;
}

/* ============================================================
   TECH
============================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; margin-bottom: 60px;
}

.tech-block {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  padding: 0;
  transition: all .3s;
  overflow: hidden;
}
/* Terminal window header */
.tech-block::before {
  content: '[ SYSTEM ]  -  o  x';
  display: block;
  font-family: 'VT323', monospace;
  font-size: .75rem; color: var(--c-dimgreen);
  padding: 8px 14px;
  border-bottom: 1px solid var(--c-border);
  background: rgba(51,255,102,0.03);
  letter-spacing: 1px;
}
.tech-block > * { padding: 0 20px; }
.tech-block > *:first-child { padding-top: 18px; }
.tech-block > *:last-child { padding-bottom: 20px; }

.tech-block:hover { border-color: var(--c-green); box-shadow: var(--glow-green); transform: translateY(-3px); }
.tech-icon { font-size: 1.8rem; margin-bottom: 12px; }
.tech-block h3 {
  font-family: 'VT323', monospace;
  font-size: 1.2rem; font-weight: 400;
  margin-bottom: 14px; color: var(--c-amber);
  letter-spacing: 3px; text-transform: uppercase;
  text-shadow: 0 0 6px rgba(255,204,51,0.3);
}
.tech-block h3::before { content: '> '; color: var(--c-green); }
.tech-block li {
  font-size: .8rem; color: var(--c-muted);
  padding: 6px 0; padding-left: 16px;
  border-bottom: 1px solid rgba(51,255,102,0.06);
  line-height: 1.5;
  position: relative;
}
.tech-block li::before {
  content: '-';
  position: absolute; left: 0;
  color: var(--c-green);
}
.tech-block li:last-child { border-bottom: none; }

/* Display Mockup */
.display-showcase { margin-top: 56px; text-align: center; }
.display-showcase h3 {
  font-family: 'VT323', monospace;
  font-size: 1.4rem; font-weight: 400; margin-bottom: 10px;
  color: var(--c-green);
  text-shadow: 0 0 8px rgba(51,255,102,0.4);
}
.display-showcase h3::before { content: '$ '; color: var(--c-amber); }
.display-desc {
  color: var(--c-muted); font-size: .85rem;
  max-width: 560px; margin: 0 auto 40px; line-height: 1.7;
}
.display-mockups {
  display: flex; gap: 40px;
  justify-content: center; flex-wrap: wrap; margin-bottom: 56px;
}
.display-frame { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.display-label {
  font-family: 'VT323', monospace;
  font-size: 1rem; color: var(--c-amber);
  letter-spacing: 3px; text-transform: uppercase;
  text-shadow: var(--glow-amber);
}
.display-svg {
  width: 340px; height: 227px;
  border: 2px solid var(--c-green);
  box-shadow: var(--glow-green), inset 0 0 30px rgba(0,0,0,.5);
  background: var(--c-bg);
  transition: box-shadow .3s, transform .3s;
  /* Slight CRT curvature */
  border-radius: 4px / 8px;
}
.display-frame:hover .display-svg {
  box-shadow: 0 0 40px rgba(51,255,102,0.4), inset 0 0 30px rgba(0,0,0,.5);
  transform: translateY(-4px);
}

/* Architecture Diagram */
.arch-diagram {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  padding: 36px;
}
.arch-diagram h3 {
  text-align: center; margin-bottom: 32px;
  font-family: 'VT323', monospace;
  font-size: 1.1rem; color: var(--c-amber);
  letter-spacing: 4px; text-transform: uppercase;
  text-shadow: var(--glow-amber);
}
.arch-diagram h3::before { content: '[ '; }
.arch-diagram h3::after { content: ' ]'; }
.arch-flow { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.arch-arrow {
  font-size: 1.5rem; color: var(--c-green);
  text-shadow: var(--glow-green);
  font-family: 'VT323', monospace;
}
.arch-col { display: flex; flex-direction: column; gap: 10px; }
.arch-box {
  background: var(--c-surface); border: 1px solid var(--c-border);
  padding: 10px 18px;
  font-size: .8rem; color: var(--c-muted);
  text-align: center; line-height: 1.4; min-width: 160px;
  transition: all .2s;
}
.arch-box:hover { border-color: var(--c-green); color: var(--c-text); }
.arch-box small { display: block; font-size: .7rem; color: var(--c-green); margin-top: 3px; }
.arch-box.highlight {
  border-color: var(--c-amber); color: var(--c-text);
  background: rgba(255,204,51,.06);
  font-size: 1rem; padding: 16px 24px;
  box-shadow: var(--glow-amber);
}
.arch-box.highlight strong { display: block; font-size: 1.05rem; }

/* ============================================================
   CUSTOM LED STRIPS
============================================================ */
.ledstrip-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; margin-top: 48px;
}
@media (max-width: 700px) { .ledstrip-grid { grid-template-columns: 1fr; } }

.ledstrip-item {
  overflow: hidden;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  transition: all .3s;
}
.ledstrip-item:hover { border-color: var(--c-green); box-shadow: var(--glow-green); transform: translateY(-4px); }
.ledstrip-item img {
  width: 100%; display: block; object-fit: cover;
  max-height: 400px; transition: transform .4s;
  border-radius: 0;
}
.ledstrip-item:hover img { transform: scale(1.02); }
.ledstrip-caption {
  padding: 12px 16px;
  font-family: 'Fira Code', monospace;
  font-size: .75rem; color: var(--c-green);
  border-top: 1px solid var(--c-border);
  text-transform: uppercase; letter-spacing: 0.5px;
  text-shadow: 0 0 4px rgba(51,255,102,0.3);
}
.ledstrip-caption::before { content: '> '; color: var(--c-amber); }

/* ============================================================
   CONTACT
============================================================ */
#contact {
  text-align: center;
}
.contact-links {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; margin-top: 40px;
}
.contact-btn {
  padding: 12px 28px;
  border: 1px solid var(--c-green);
  background: transparent;
  font-size: .85rem; color: var(--c-green);
  font-family: 'VT323', monospace;
  letter-spacing: 2px; text-transform: uppercase;
  transition: all .2s;
  text-shadow: var(--glow-green);
  cursor: pointer;
}
.contact-btn::before { content: '[ '; }
.contact-btn::after { content: ' ]'; }
.contact-btn:hover {
  background: var(--c-green);
  color: var(--c-bg);
  text-shadow: none;
  box-shadow: 0 0 25px rgba(51,255,102,0.4);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  padding: 32px 24px;
  border-top: 1px solid var(--c-green);
  background: var(--c-bg);
  box-shadow: 0 -1px 10px rgba(51,255,102,0.1);
}
footer .container {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 12px;
}
.footer-logo {
  font-family: 'VT323', monospace;
  font-weight: 400; color: var(--c-green);
  text-shadow: var(--glow-green);
  font-size: 1.2rem;
  letter-spacing: 2px;
}
.footer-logo::before { content: '> '; color: var(--c-amber); }
.footer-copy {
  font-size: .75rem; color: var(--c-muted);
  font-family: 'Fira Code', monospace;
}
.footer-impressum {
  font-size: .75rem; color: var(--c-muted);
  opacity: .5; transition: all .2s;
  font-family: 'Fira Code', monospace;
}
.footer-impressum:hover { opacity: 1; color: var(--c-green); }

/* ============================================================
   IMPRESSUM
============================================================ */
#impressum {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}
.impressum-block {
  max-width: 600px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 24px;
  padding: 24px;
  border: 1px solid var(--c-border);
  background: var(--c-card);
  position: relative;
}
/* Terminal header for impressum */
.impressum-block::before {
  content: '[ IMPRESSUM ]  -  o  x';
  display: block;
  font-family: 'VT323', monospace;
  font-size: .8rem; color: var(--c-dimgreen);
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
  letter-spacing: 2px;
}
.impressum-block p { color: var(--c-muted); line-height: 1.8; font-size: .88rem; }
.impressum-block strong { color: var(--c-amber); }
.impressum-block a { color: var(--c-green); text-shadow: 0 0 4px rgba(51,255,102,0.2); }
.impressum-block a:hover {
  background: var(--c-green);
  color: var(--c-bg);
  text-shadow: none;
  text-decoration: none;
}

/* ============================================================
   ANIMATIONS
============================================================ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.fact-card:nth-child(2) { transition-delay: .08s; }
.fact-card:nth-child(3) { transition-delay: .16s; }
.fact-card:nth-child(4) { transition-delay: .24s; }
.effect-card:nth-child(2) { transition-delay: .06s; }
.effect-card:nth-child(3) { transition-delay: .12s; }
.effect-card:nth-child(4) { transition-delay: .18s; }
.tech-block:nth-child(2) { transition-delay: .08s; }
.tech-block:nth-child(3) { transition-delay: .16s; }
.tech-block:nth-child(4) { transition-delay: .08s; }
.tech-block:nth-child(5) { transition-delay: .16s; }
.tech-block:nth-child(6) { transition-delay: .24s; }

/* ============================================================
   SCROLLBAR
============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb {
  background: var(--c-green);
  box-shadow: 0 0 6px rgba(51,255,102,0.4);
}
::-webkit-scrollbar-thumb:hover { background: var(--c-amber); }

/* ============================================================
   PHONE FRAME
============================================================ */
.phone-frame {
  aspect-ratio: 9/16 !important;
  border: 2px solid var(--c-green) !important;
  max-width: 320px; margin: 0 auto;
  box-shadow: var(--glow-green), inset 0 0 30px rgba(0,0,0,0.5);
  border-radius: 4px / 8px !important;
}

/* ============================================================
   PLACEHOLDER IMAGES
============================================================ */
.img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: var(--c-card);
  border: 1px dashed var(--c-border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: var(--c-muted);
  font-size: .8rem; text-align: center; padding: 20px;
  transition: all .2s;
}
.img-placeholder:hover { border-color: var(--c-green); color: var(--c-green); }
.placeholder-icon { font-size: 2.5rem; }
.img-placeholder small {
  display: block; margin-top: 4px;
  color: var(--c-green); font-size: .7rem;
  text-shadow: 0 0 4px rgba(51,255,102,0.3);
}

/* ============================================================
   SELECTION
============================================================ */
::selection {
  background: var(--c-green);
  color: var(--c-bg);
  text-shadow: none;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 600px) {
  section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .about-facts { grid-template-columns: 1fr; }
  .effects-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .display-mockups { gap: 24px; }
  .arch-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
  .hero-sub::before,
  .hero-sub::after { display: none; }
}

@media (max-width: 400px) {
  :root { font-size: 14px; }
  .hero-badges { gap: 6px; }
  .badge { padding: 4px 10px; font-size: .65rem; }
  .btn-primary { padding: 12px 24px; font-size: 1rem; }
}

/* ============================================================
   PRINT
============================================================ */
@media print {
  body::after { display: none; }
  * { text-shadow: none !important; box-shadow: none !important; }
  body { background: #fff; color: #000; }
  .nav-links, .nav-burger, .hero-scroll { display: none; }
}
