/* ═══════════════════════════════════════════════════
   ALEX HUG – PERSONAL WEBSITE
   Dark · Blue/Purple · Modern · Glow
   ═══════════════════════════════════════════════════ */

/* ── Self-hosted fonts (DSGVO-konform, kein Google-CDN) ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --bg:           #07070f;
  --bg-2:         #0d0d1b;
  --bg-3:         #12122a;
  --surface:      rgba(255,255,255,0.04);
  --surface-hover:rgba(255,255,255,0.07);
  --border:       rgba(255,255,255,0.08);
  --border-glow:  rgba(99,102,241,0.4);

  --primary:      #6366f1;
  --primary-light:#818cf8;
  --secondary:    #a855f7;
  --accent:       #3b82f6;
  --accent-cyan:  #06b6d4;

  --grad-1: linear-gradient(135deg, #6366f1, #a855f7);
  --grad-2: linear-gradient(135deg, #3b82f6, #06b6d4);
  --grad-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);

  --text:         #e2e8f0;
  --text-muted:   #94a3b8;
  --text-faint:   #475569;

  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-glow: 0 0 60px rgba(99,102,241,0.25);
  --shadow-card: 0 4px 32px rgba(0,0,0,0.4);
}

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Utility ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gradient-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  padding: 0.35rem 1rem;
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  margin-bottom: 1.25rem;
  background: rgba(99,102,241,0.08);
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--grad-1);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99,102,241,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.6);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(7,7,15,0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 0.5rem 1.25rem !important;
  background: var(--grad-1) !important;
  color: #fff !important;
  border-radius: 100px;
  font-weight: 600 !important;
  box-shadow: 0 2px 16px rgba(99,102,241,0.3);
  transition: box-shadow 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  box-shadow: 0 4px 24px rgba(99,102,241,0.5) !important;
  transform: translateY(-1px) !important;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.lang-picker {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
}
.lang-btn {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}
.lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(99,102,241,0.4);
}
.lang-btn:hover:not(.active) { color: var(--text); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(7,7,15,0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
}
.nav-mobile a {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:hover { color: var(--text); background: var(--surface); }
.nav-mobile.open { display: flex; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 5rem;
}

/* Animated background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #4f46e5 0%, #7c3aed 40%, transparent 70%);
  top: -15%; right: -5%;
  animation: orbFloat1 12s ease-in-out infinite;
}

.orb-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #0ea5e9 0%, #2563eb 40%, transparent 70%);
  bottom: -10%; left: -5%;
  animation: orbFloat2 15s ease-in-out infinite;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #06b6d4 0%, #0891b2 40%, transparent 70%);
  top: 40%; left: 30%;
  opacity: 0.2;
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-30px, 40px) scale(1.08); }
  66%       { transform: translate(20px, -20px) scale(0.94); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -30px) scale(1.1); }
  66%       { transform: translate(-20px, 30px) scale(0.95); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  50%       { transform: translate(-60px, -40px) scale(1.2); opacity: 0.3; }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-text { flex: 1; max-width: 600px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}
.hero-tagline em {
  font-style: normal;
  background: var(--grad-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero photo */
.hero-photo {
  flex-shrink: 0;
}

.photo-frame {
  position: relative;
  width: 340px; height: 420px;
}

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 2;
  /* Photo placeholder style if image missing */
  background: var(--bg-3);
}

.photo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.35) 0%, transparent 70%);
  z-index: 1;
  border-radius: 50%;
  animation: photoGlow 4s ease-in-out infinite;
}
@keyframes photoGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.05); }
}

.photo-ring {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: var(--grad-1);
  z-index: 1;
  opacity: 0.6;
  mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 2px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border-glow), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about { background: var(--bg); }

.about-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-img-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  background: var(--bg-3);
}
.about-img-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  pointer-events: none;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.25s, background 0.25s;
}
.stat:hover {
  border-color: var(--border-glow);
  background: var(--surface-hover);
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.025rem;
}
.about-text strong { color: var(--text); font-weight: 600; }

.about-langs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.lang-tag {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.lang-tag:hover {
  border-color: var(--border-glow);
  color: var(--text);
}

/* ══════════════════════════════════════════
   EXPERTISE
══════════════════════════════════════════ */
.expertise {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.expertise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.expertise-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-1);
  opacity: 0;
  transition: opacity 0.3s;
}
.expertise-card:hover {
  border-color: rgba(99,102,241,0.3);
  background: rgba(255,255,255,0.06);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4), 0 0 30px rgba(99,102,241,0.1);
}
.expertise-card:hover::before { opacity: 1; }

.card-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  color: var(--primary-light);
  transition: background 0.3s, box-shadow 0.3s;
}
.expertise-card:hover .card-icon {
  background: rgba(99,102,241,0.2);
  box-shadow: 0 0 20px rgba(99,102,241,0.25);
}

.expertise-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.expertise-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.card-tags li {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 100px;
  color: var(--primary-light);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════
   CAREER TIMELINE
══════════════════════════════════════════ */
.career {
  background: var(--bg-2);
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 2rem;
  margin-bottom: 0;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.6rem;
}

.timeline-dot {
  width: 14px; height: 14px;
  background: var(--grad-1);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(99,102,241,0.6);
  position: relative;
  z-index: 1;
}
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(99,102,241,0.3);
}

.timeline-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, rgba(99,102,241,0.4), rgba(99,102,241,0.05));
  min-height: 60px;
  margin-top: 6px;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s, background 0.3s;
}
.timeline-card:hover {
  border-color: rgba(99,102,241,0.25);
  background: var(--surface-hover);
}
.timeline-card.current {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.05);
}

.timeline-period {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.timeline-role {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.timeline-company {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.85rem;
}
.timeline-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.timeline-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 100px;
  color: var(--primary-light);
}

/* ══════════════════════════════════════════
   CUSOSO SECTION
══════════════════════════════════════════ */
.cusoso-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.cusoso-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orb-cusoso-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,0.2) 0%, transparent 70%);
  top: -10%; right: -5%;
  animation: orbFloat1 14s ease-in-out infinite;
}
.orb-cusoso-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  bottom: -10%; left: 5%;
  animation: orbFloat2 16s ease-in-out infinite;
}

.cusoso-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: start;
}

.cusoso-logo-wrap { margin: 1rem 0 1.5rem; }
.cusoso-logo { height: 64px; width: auto; }

.cusoso-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.cusoso-text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.cusoso-de {
  font-size: 1rem !important;
  color: var(--text-faint) !important;
  font-style: italic;
  border-left: 2px solid rgba(99,102,241,0.4);
  padding-left: 1rem;
  margin: 1.5rem 0 2rem !important;
}

.cusoso-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-self: center;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.3s, background 0.3s, transform 0.25s;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.3);
  background: var(--surface-hover);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  margin-bottom: 0.9rem;
  color: var(--primary-light);
  transition: background 0.3s, box-shadow 0.3s;
}
.feature-card:hover .feature-icon {
  background: rgba(99,102,241,0.2);
  box-shadow: 0 0 20px rgba(99,102,241,0.25);
}
.feature-card h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ══════════════════════════════════════════
   EDUCATION
══════════════════════════════════════════ */
.education { background: var(--bg-2); }

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.edu-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.3s, background 0.3s, transform 0.25s;
}
.edu-card:hover {
  border-color: rgba(99,102,241,0.3);
  background: var(--surface-hover);
  transform: translateY(-4px);
}
.edu-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 11px;
  flex-shrink: 0;
  color: var(--primary-light);
  transition: background 0.3s, box-shadow 0.3s;
}
.edu-card:hover .edu-icon {
  background: rgba(99,102,241,0.2);
  box-shadow: 0 0 16px rgba(99,102,241,0.25);
}
.edu-period {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.edu-content h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.edu-content p {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   CONNECT
══════════════════════════════════════════ */
.connect {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.connect-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orb-connect {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 6s ease-in-out infinite;
}

.connect-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.connect-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.connect-inner p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.connect-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

.connect-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.3s, background 0.3s, transform 0.25s, box-shadow 0.3s;
  text-align: left;
}
.connect-card:hover {
  border-color: rgba(99,102,241,0.4);
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 20px rgba(99,102,241,0.1);
}

.connect-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  flex-shrink: 0;
  color: var(--primary-light);
  transition: background 0.3s, box-shadow 0.3s;
}
.connect-card:hover .connect-icon {
  background: rgba(99,102,241,0.2);
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
}

.connect-card > div:nth-child(2) { flex: 1; }
.connect-card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.connect-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.connect-arrow {
  color: var(--text-faint);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
.connect-card:hover .connect-arrow {
  color: var(--primary-light);
  transform: translateX(4px);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-left { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary-light); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.35s; }
.fade-up:nth-child(4) { animation-delay: 0.5s; }
.fade-up:nth-child(5) { animation-delay: 0.65s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeRight 0.8s ease 0.4s forwards;
}
@keyframes fadeRight {
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll-triggered: hidden by default, JS adds .visible */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for grid children */
.expertise-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.expertise-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.expertise-grid .reveal:nth-child(4) { transition-delay: 0.1s; }
.expertise-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.expertise-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

.cusoso-features .feature-card:nth-child(2) { transition-delay: 0.08s; }
.cusoso-features .feature-card:nth-child(3) { transition-delay: 0.16s; }
.cusoso-features .feature-card:nth-child(4) { transition-delay: 0.24s; }

.edu-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.edu-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.edu-grid .reveal:nth-child(4) { transition-delay: 0.1s; }
.edu-grid .reveal:nth-child(5) { transition-delay: 0.2s; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
  .cusoso-inner {
    grid-template-columns: 1fr;
  }
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .edu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 3rem;
    text-align: center;
  }
  .hero-text { max-width: 100%; }
  .hero-sub { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }

  .photo-frame { width: 260px; height: 320px; }

  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .edu-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .cusoso-features {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links { justify-content: center; }
  .section { padding: 5rem 0; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
  .hero-name { font-size: clamp(3.5rem, 18vw, 5rem); }
}

/* ══════════════════════════════════════════
   PHOTO PLACEHOLDER (if img missing)
══════════════════════════════════════════ */
.hero-img[src="img/alex-hero.jpg"]:not([complete]),
.hero-img:-moz-broken {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  min-height: 420px;
}

/* Subtle selection color */
::selection {
  background: rgba(99,102,241,0.3);
  color: #fff;
}

/* ══════════════════════════════════════════
   LEGAL PAGES (Impressum / Datenschutz)
══════════════════════════════════════════ */
.legal-page {
  min-height: 100vh;
  padding: 7rem 0 5rem;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  transition: color 0.2s;
}
.legal-back:hover { color: var(--primary-light); }
.legal-content h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.legal-content .legal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.legal-content h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
}
.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.6rem;
}
.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}
.legal-content a {
  color: var(--primary-light);
  text-decoration: underline;
  text-decoration-color: rgba(129,140,248,0.4);
}
.legal-content a:hover { text-decoration-color: var(--primary-light); }
.legal-content .legal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1rem 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(99,102,241,0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.6); }
