/* =========================================================================
   Design-Tokens — adamhub "Futuristic Dark" Theme
   Tiefes Navy/Schwarz, Glasmorphismus, Gradient-/Glow-Akzente in Blau-Cyan-
   Violett, feines animiertes Grid im Hintergrund, dezente Neon-Kanten.
   ========================================================================= */
:root {
  --color-bg: #05070d;
  --color-bg-alt: #070c17;
  --color-surface: rgba(20, 29, 46, 0.55);
  --color-surface-solid: #0f1626;
  --color-surface-strong: rgba(28, 40, 61, 0.75);
  --color-text: #eaf0fb;
  --color-text-muted: #8fa0bf;
  --color-text-faint: #5c6c8a;

  --color-accent: #4da3ff;
  --color-accent-dark: #7dbcff;
  --color-accent-2: #7c5cff;
  --color-accent-cyan: #3fe4d8;
  --gradient-accent: linear-gradient(135deg, #4da3ff 0%, #7c5cff 55%, #3fe4d8 100%);
  --gradient-accent-soft: linear-gradient(135deg, rgba(77,163,255,.16) 0%, rgba(124,92,255,.16) 55%, rgba(63,228,216,.16) 100%);

  --color-accent-soft: rgba(77, 163, 255, 0.12);
  --color-border: rgba(125, 164, 255, 0.16);
  --color-border-strong: rgba(125, 164, 255, 0.38);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-soft: 0 10px 34px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 26px 64px -14px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(125,164,255,.16), 0 0 44px -12px rgba(77,163,255,.55);

  --max-width: 1200px;
  --space-section: 128px;
  --nav-h: 76px;

  --font-display: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.16,.84,.44,1);
  font-size: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* ---------------------------------------------------------------------
   Ambient background: feines Grid + weiche Glow-Blobs, fixiert im Viewport
   --------------------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(125,164,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,164,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  animation: grid-drift 40s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: var(--color-bg);
  background-image:
    radial-gradient(circle at 15% 8%, rgba(77,163,255,.16), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(124,92,255,.14), transparent 40%),
    radial-gradient(circle at 50% 92%, rgba(63,228,216,.09), transparent 45%);
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 56px, 56px 56px; }
}

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

img { max-width: 100%; display: block; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--space-section) 0; scroll-margin-top: var(--nav-h); position: relative; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
h2.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  text-align: center;
  margin-bottom: 12px;
}
.section-eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin-bottom: 14px;
}
.section-subtitle { text-align: center; color: var(--color-text-muted); max-width: 560px; margin: 0 auto 56px; }

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

/* ---------------------------------------------------------------------
   Scroll-Reveal
   --------------------------------------------------------------------- */
section.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
section.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
section.reveal .card,
section.reveal .link-chip {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .2s ease, border-color .2s ease;
}
section.reveal.is-visible .card,
section.reveal.is-visible .link-chip {
  opacity: 1;
  transform: translateY(0);
}
section.reveal.is-visible .skills-grid .card:nth-child(1) { transition-delay: .05s; }
section.reveal.is-visible .skills-grid .card:nth-child(2) { transition-delay: .15s; }
section.reveal.is-visible .skills-grid .card:nth-child(3) { transition-delay: .25s; }
section.reveal.is-visible .projects-grid .card:nth-child(1) { transition-delay: .05s; }
section.reveal.is-visible .projects-grid .card:nth-child(2) { transition-delay: .15s; }
section.reveal.is-visible .projects-grid .card:nth-child(3) { transition-delay: .25s; }
section.reveal.is-visible .links-bar .link-chip:nth-child(1) { transition-delay: .04s; }
section.reveal.is-visible .links-bar .link-chip:nth-child(2) { transition-delay: .1s; }
section.reveal.is-visible .links-bar .link-chip:nth-child(3) { transition-delay: .16s; }
section.reveal.is-visible .links-bar .link-chip:nth-child(4) { transition-delay: .22s; }

/* adamhub Logo — Footer-Variante (dezent) */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
  margin-bottom: 8px;
}
.footer-logo img { height: 24px; width: 24px; border-radius: 6px; object-fit: contain; }
.footer-logo span { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--color-text-muted); }

.footer-legal { margin-top: 10px; }
.footer-legal a { color: var(--color-text-muted); margin: 0 6px; }
.footer-legal a:hover { color: var(--color-accent); }

/* ---------------------------------------------------------------------
   Sticky Navigation
   --------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(5, 7, 13, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-nav.is-scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(5, 7, 13, 0.82);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}
.nav-brand:hover { color: var(--color-text); }
.nav-brand img { height: 28px; width: 28px; border-radius: 7px; object-fit: contain; box-shadow: 0 0 0 1px var(--color-border); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--color-text); background: var(--color-accent-soft); }
.nav-links a.is-active { color: var(--color-text); background: var(--color-accent-soft); box-shadow: inset 0 0 0 1px var(--color-border-strong); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { text-align: center; padding: 12px 14px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .2s ease, background .2s ease, border-color .2s ease;
  background: var(--color-surface);
  color: var(--color-text);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--color-border-strong); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-accent);
  color: #04101f;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(125,164,255,.3), 0 0 60px -8px rgba(77,163,255,.7); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: 100px;
  text-align: center;
  position: relative;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.hero::before {
  width: 420px; height: 420px;
  top: -120px; left: 50%;
  transform: translateX(-72%);
  background: radial-gradient(circle, rgba(77,163,255,.5), transparent 70%);
  animation: float-a 12s ease-in-out infinite;
}
.hero::after {
  width: 360px; height: 360px;
  top: -60px; left: 50%;
  transform: translateX(20%);
  background: radial-gradient(circle, rgba(124,92,255,.4), transparent 70%);
  animation: float-b 14s ease-in-out infinite;
}
@keyframes float-a {
  0%, 100% { transform: translateX(-72%) translateY(0); }
  50% { transform: translateX(-60%) translateY(24px); }
}
@keyframes float-b {
  0%, 100% { transform: translateX(20%) translateY(0); }
  50% { transform: translateX(8%) translateY(-20px); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent-cyan);
  box-shadow: 0 0 8px 2px rgba(63,228,216,.7);
}

.hero-avatar-wrap {
  width: 168px;
  height: 168px;
  margin: 0 auto 32px;
  position: relative;
}
.hero-avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--gradient-accent);
  opacity: .8;
  filter: blur(1px);
  animation: spin-slow 8s linear infinite;
}
@keyframes spin-slow {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

.hero-avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 4px solid var(--color-bg);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #cfe0ff 60%, #b9c9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .tagline { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--color-text-muted); max-width: 600px; margin: 0 auto 36px; }

/* =========================================================
   Cards generic — Glasmorphismus
   ========================================================= */
.card {
  background: var(--color-surface);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--gradient-accent);
  opacity: .55;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover), var(--shadow-glow);
  border-color: var(--color-border-strong);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
}
.about-grid img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  width: 100%;
  object-fit: cover;
  max-height: 420px;
}
.about-text { color: var(--color-text-muted); white-space: pre-wrap; }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.skill-card { padding: 30px; text-align: left; }
.skill-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-accent-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.skill-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.skill-card p { color: var(--color-text-muted); margin: 0; font-size: 0.92rem; }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.project-card { overflow: hidden; }
.project-card img { width: 100%; height: 170px; object-fit: cover; opacity: .92; }
.project-card-body { padding: 22px; }
.project-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.project-card p { color: var(--color-text-muted); font-size: 0.9rem; margin: 0 0 12px; }
.project-card a.project-link { font-weight: 600; font-size: 0.88rem; }

/* Offizielle Vorgaben — Link-Card */
.link-card {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 34px;
  text-decoration: none;
  color: inherit;
}
.link-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--gradient-accent-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.link-card-icon svg { width: 24px; height: 24px; stroke: var(--color-accent-cyan); fill: none; stroke-width: 1.8; }
.link-card-content { flex: 1; }
.link-card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin-bottom: 6px;
}
.link-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.link-card p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; }
.link-card-arrow {
  flex-shrink: 0;
  color: var(--color-text-faint);
  transition: transform .2s var(--ease), color .2s ease;
}
.link-card:hover .link-card-arrow { color: var(--color-accent-cyan); transform: translateX(4px); }
@media (max-width: 600px) {
  .link-card { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* Social / Links */
.links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--color-surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  color: var(--color-text);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s ease;
}
.link-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover), var(--shadow-glow); border-color: var(--color-border-strong); }
.link-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent-cyan); box-shadow: 0 0 8px 2px rgba(63,228,216,.6); }

/* Contact */
.contact-card {
  max-width: 540px;
  margin: 0 auto;
  padding: 44px;
  text-align: center;
}
.contact-card p { color: var(--color-text-muted); }
.contact-email {
  display: inline-block;
  margin-top: 18px;
  font-size: 1.15rem;
  font-weight: 700;
}

/* Footer */
.site-footer {
  padding: 36px 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--color-border);
  position: relative;
}

/* =========================================================
   Section backgrounds (alternating)
   ========================================================= */
.section-alt {
  background: linear-gradient(180deg, transparent 0%, var(--color-surface) 100%), var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Legal pages (Impressum / Datenschutz) */
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 8px;
}
.legal { max-width: 780px; margin: 0 auto; padding: 60px 24px 110px; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text-muted); font-size: 13px; margin-bottom: 36px; transition: color .2s; }
.legal .back:hover { color: var(--color-accent); }
.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 36px;
  background: linear-gradient(135deg, #ffffff 0%, #cfe0ff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal h2 { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--color-accent-cyan); margin: 34px 0 10px; letter-spacing: -.01em; }
.legal p { color: var(--color-text-muted); font-size: 15px; line-height: 1.85; margin-bottom: 14px; }
.legal ul { color: var(--color-text-muted); font-size: 15px; line-height: 1.85; margin: 0 0 14px 18px; }
.legal ul li { margin-bottom: 4px; }
.legal .meta {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 36px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.legal .meta strong { color: var(--color-text); }

/* Responsive tweaks */
@media (max-width: 600px) {
  section { padding: 80px 0; }
  :root { --space-section: 80px; }
}
