/* ═══════════════════════════════════════════════════
   TOKENS & RESET  (identisch mit work.css / blog_style.css)
═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;600;700&family=Syne:wght@400;600;800&display=swap');

:root {
  --bg:      #0b0f17;
  --surface: #111827;
  --card:    #161d2e;
  --border:  #1e2d47;
  --accent:  #00d4ff;
  --accent2: #7c3aed;
  --accent3: #10b981;
  --warn:    #f59e0b;
  --text:    #e2e8f0;
  --muted:   #64748b;
  --grid:    rgba(0, 212, 255, 0.035);
}

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

html { scroll-behavior: smooth; font-size: 18px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

/* Grid line texture */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ═══════════════════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════════════════ */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, background .15s;
  box-shadow: 0 0 14px var(--accent);
}

#cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 36px; height: 36px;
  border: 1px solid rgba(0, 212, 255, .35); border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, border-color .2s;
}

body.cursor-hover #cursor { width: 6px; height: 6px; background: #fff; }
body.cursor-hover #cursor-ring { width: 52px; height: 52px; border-color: rgba(0, 212, 255, .6); }

/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes blink    { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes fadeUp   { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes tileIn   { from{opacity:0;transform:translateY(28px) scale(.97)} to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes pulse    { 0%,100%{box-shadow:0 0 0 0 rgba(0,212,255,.35)} 50%{box-shadow:0 0 0 10px rgba(0,212,255,0)} }
@keyframes scanLine { 0%{top:0;opacity:.6} 100%{top:100%;opacity:0} }
@keyframes fillBar  { to{transform:scaleX(1)} }

/* ═══════════════════════════════════════════════════
   TOP BAR  (1:1 wie work.css)
═══════════════════════════════════════════════════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 64px;
  background: rgba(11, 15, 23, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar-left { display: flex; align-items: center; gap: 1.2rem; }

.logo-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  animation: blink 2s infinite;
}

.logo-text {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}

.topbar-meta { font-size: .8rem; color: var(--muted); letter-spacing: .05em; }

.topbar-right { display: flex; align-items: center; gap: 1.4rem; }

.status-pill {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: var(--accent3);
  background: rgba(16, 185, 129, .08);
  border: 1px solid rgba(16, 185, 129, .25);
  padding: .3rem .9rem; border-radius: 999px;
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent3); animation: blink 1.5s infinite;
}

.topbar-nav { display: flex; gap: .35rem; }

.topbar-nav a {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--muted);
  text-decoration: none; padding: .45rem 1rem;
  border-radius: 6px; border: 1px solid transparent;
  transition: all .18s; letter-spacing: .06em; cursor: none;
}

.topbar-nav a:hover,
.topbar-nav a.active {
  color: var(--accent);
  border-color: rgba(0, 212, 255, .2);
  background: rgba(0, 212, 255, .05);
}

.topbar-nav ion-icon { font-size: 1.1rem; }

/* ═══════════════════════════════════════════════════
   PAGE WRAPPER
═══════════════════════════════════════════════════ */
.page {
  position: relative; z-index: 1;
  padding-top: 64px;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ═══════════════════════════════════════════════════
   HERO  (zwei Spalten: Text links, Foto rechts)
═══════════════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 6rem 3.5rem 5rem;
  min-height: calc(100vh - 64px);
}

.hero-left {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 1.2rem;
}

.hero-eyebrow {
  font-size: .82rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: .2em;
  opacity: 0; animation: fadeUp .5s ease .1s both;
  display: flex; align-items: center; gap: .7rem;
}

.hero-eyebrow::before { content: '//'; color: var(--muted); }

.hero-name {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05; color: var(--text);
  opacity: 0; animation: fadeUp .55s ease .2s both;
}

.hero-name .hi       { color: var(--muted); font-weight: 400; font-size: .55em; display: block; }
.hero-name .highlight { color: var(--accent); }

.hero-role {
  font-size: .95rem; color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; animation: fadeUp .55s ease .3s both;
}

.hero-bio {
  font-size: .9rem; color: var(--muted); line-height: 2; max-width: 520px;
  opacity: 0; animation: fadeUp .55s ease .35s both;
}

.hero-bio strong { color: var(--text); }

.hero-cta-row {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .55s ease .45s both;
}

/* Foto rechts */
.hero-right {
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
  opacity: 0; animation: fadeUp .6s ease .3s both;
}

.hero-photo-wrap {
  position: relative;
  width: min(360px, 100%);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: block;
  position: relative; z-index: 1;
  filter: grayscale(15%);
  transition: filter .3s;
}

.hero-photo-wrap:hover .hero-photo { filter: grayscale(0%); }

/* Cyan glow hinter dem Bild */
.hero-photo-glow {
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  z-index: 0;
  opacity: .25;
  filter: blur(18px);
  transition: opacity .3s;
}

.hero-photo-wrap:hover .hero-photo-glow { opacity: .45; }

/* "Available" Badge unten links auf dem Bild */
.hero-photo-badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem; z-index: 2;
  display: flex; align-items: center; gap: .5rem;
  font-size: .7rem; color: var(--accent3);
  background: rgba(11, 15, 23, .88);
  border: 1px solid rgba(16, 185, 129, .3);
  padding: .35rem .9rem; border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* Buttons  (gleiche Größe wie work.css) */
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .88rem; font-weight: 600; letter-spacing: .08em;
  color: var(--bg); background: var(--accent);
  border: none; border-radius: 6px;
  cursor: none; text-decoration: none; transition: all .18s;
  box-shadow: 0 0 22px rgba(0, 212, 255, .3);
}

.btn-primary:hover { background: #33ddff; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,212,255,.45); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .88rem; font-weight: 600; letter-spacing: .08em;
  color: var(--accent); background: transparent;
  border: 1px solid rgba(0, 212, 255, .35); border-radius: 6px;
  cursor: none; text-decoration: none; transition: all .18s;
}

.btn-ghost:hover { background: rgba(0,212,255,.07); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════
   SECTION WRAP & LABEL
═══════════════════════════════════════════════════ */
.section-wrap {
  padding: 3rem 3.5rem 0;
  max-width: 100%;
}

.section-label {
  display: flex; align-items: center; gap: .9rem;
  margin-bottom: 2rem;
}

.section-label-text {
  font-size: .82rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: .18em; font-weight: 600;
  white-space: nowrap;
}

.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ═══════════════════════════════════════════════════
   PROJECT TILES
═══════════════════════════════════════════════════ */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  padding-bottom: 5rem;
}

.tile {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  cursor: none; text-decoration: none; display: block;
  opacity: 0; animation: tileIn .5s ease both;
  transition: border-color .2s, transform .22s, box-shadow .22s;
}

.tile:hover {
  border-color: var(--tile-color, var(--accent));
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 16px 48px rgba(0,0,0,.45), 0 0 0 1px var(--tile-color, var(--accent));
}

.tile::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--tile-color, var(--accent)), transparent);
  top: -100%; opacity: 0; pointer-events: none;
}

.tile:hover::after { animation: scanLine .6s linear forwards; }

.tile-bar { height: 3px; background: var(--tile-color, var(--accent)); opacity: .7; }

.tile-inner { padding: 1.5rem; }

.tile-icon-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}

.tile-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
}

.tile-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .8rem; transition: all .2s;
}

.tile:hover .tile-arrow {
  border-color: var(--tile-color, var(--accent));
  color: var(--tile-color, var(--accent));
  transform: translate(2px, -2px);
}

.tile-tag {
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tile-color, var(--accent)); margin-bottom: .45rem;
}

.tile-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1.05rem; color: var(--text);
  margin-bottom: .5rem; line-height: 1.3;
}

.tile-desc { font-size: .78rem; color: var(--muted); line-height: 1.8; }

.tile-footer {
  margin-top: 1.2rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex; gap: .5rem; flex-wrap: wrap;
}

.tile-chip {
  font-size: .65rem; letter-spacing: .06em;
  padding: .22rem .65rem; border-radius: 4px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border); color: var(--muted);
}

/* Featured — spans 2 cols */
.tile-featured { grid-column: span 2; }

.tile-featured .tile-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; align-items: center;
}

/* Avatar tile */
.tile-avatar { display: flex; flex-direction: column; justify-content: space-between; }

.avatar-graphic {
  width: 100%; aspect-ratio: 1;
  max-width: 150px; margin: 0 auto 1rem; position: relative;
}

.avatar-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, .18);
  animation: pulse 3s ease-in-out infinite;
}

.avatar-ring:nth-child(2) { inset: 12px; animation-delay: .4s; border-color: rgba(124,58,237,.2); }
.avatar-ring:nth-child(3) { inset: 24px; animation-delay: .8s; border-color: rgba(16,185,129,.2); }

.avatar-inner {
  position: absolute; inset: 36px;
  background: linear-gradient(135deg, var(--surface), #1a1f2e);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem;
  color: var(--accent); border: 1px solid rgba(0, 212, 255, .25);
}

/* ═══════════════════════════════════════════════════
   NAV DROPDOWN
═══════════════════════════════════════════════════ */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--muted);
  text-decoration: none; padding: .45rem 1rem;
  border-radius: 6px; border: 1px solid transparent;
  transition: all .18s; letter-spacing: .06em; cursor: none;
}

.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger {
  color: var(--accent);
  border-color: rgba(0,212,255,.2);
  background: rgba(0,212,255,.05);
}

.dropdown-arrow {
  font-size: .75rem;
  transition: transform .2s;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* invisible bridge fills the gap so mouse doesn't lose hover */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: -20px; right: -20px;
  height: 16px;
}

/* The dropdown menu — sits flush, no gap */
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .4rem;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .18s, transform .18s;
  box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(0,212,255,.08);
}

/* Arrow pointer at top */
.nav-dropdown-menu::before {
  content: '';
  position: absolute; top: -6px; left: 50%;
  width: 10px; height: 10px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex; align-items: center; gap: .9rem;
  padding: .75rem .9rem;
  border-radius: 7px;
  text-decoration: none;
  color: var(--text);
  transition: all .15s; cursor: none;
  border: 1px solid transparent;
}

.nav-dropdown-item:hover {
  background: rgba(0,212,255,.05);
  border-color: rgba(0,212,255,.15);
}

.dropdown-item-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.dropdown-item-title {
  font-size: .78rem; color: var(--text); font-weight: 600;
  font-family: 'Syne', sans-serif;
  margin-bottom: .15rem;
}

.dropdown-item-sub {
  font-size: .62rem; color: var(--muted); letter-spacing: .04em;
}

.nav-dropdown-item:hover .dropdown-item-title { color: var(--accent); }


═══════════════════════════════════════════════════ */
.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  width: 100%;
}

.social-btn {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .65rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem; letter-spacing: .07em;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--card);
  transition: all .2s; cursor: none;
}

.social-btn:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: var(--accent);
  background: rgba(0, 212, 255, .06);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

/* Per-brand accent on hover */
.social-btn--linkedin:hover {
  border-color: #0a66c2;
  color: #0a66c2;
  background: rgba(10, 102, 194, .08);
}

.social-btn--streamlit:hover {
  border-color: #ff4b4b;
  color: #ff4b4b;
  background: rgba(255, 75, 75, .08);
}

.social-btn--mail:hover {
  border-color: var(--accent3);
  color: var(--accent3);
  background: rgba(16, 185, 129, .08);
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  margin-top: auto;
  padding: 1.1rem 3rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: var(--muted);
  background: var(--surface);
  position: relative; z-index: 1;
}

.footer-right { display: flex; gap: 1.6rem; }
.footer a { color: var(--muted); text-decoration: none; cursor: none; }
.footer a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .section-wrap { padding-left: 2.5rem; padding-right: 2.5rem; }
  .hero { padding-left: 2.5rem; padding-right: 2.5rem; gap: 2.5rem; }
}

@media (max-width: 900px) {
  .topbar { padding: 0 1.2rem; }
  .topbar-meta { display: none; }
  .hero { grid-template-columns: 1fr; padding: 4rem 1.5rem 2rem; min-height: unset; }
  .hero-right { display: none; }
  .section-wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
  .footer { padding: 1.1rem 1.5rem; }
  .tile-featured { grid-column: span 1; }
  .tile-featured .tile-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .topbar { padding: 0 1rem; height: 56px; }
  .page { padding-top: 56px; }
  .topbar-nav a span { display: none; }
  .hero-name { font-size: 2.8rem; }
}