/* ========================================
   Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

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

:root {
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --text: #1A1D23;
  --text-secondary: #5A6170;
  --text-muted: #8E95A2;
  --accent: #2563EB;
  --accent-light: #DBEAFE;
  --accent-hover: #1D4ED8;
  --border: #E5E7EB;
  --hero-top: #EFF6FF;
  --hero-bottom: #FAFBFC;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 100px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.1);
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --fs-body: 17px;
  --lh-body: 1.7;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Background Orbs + Grid
   ======================================== */

/* Particle canvas — fixed in viewport, behind page content */
#bgParticles {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Page content wrapper — sits above fixed background */
.page-content {
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  will-change: transform;
}

.bg-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #93c5fd, transparent 70%);
  top: -5%;
  left: -8%;
  animation: orbFloat1 20s ease-in-out infinite;
}

.bg-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #c4b5fd, transparent 70%);
  top: 40%;
  right: -10%;
  animation: orbFloat2 25s ease-in-out infinite;
}

.bg-orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #a5f3fc, transparent 70%);
  bottom: 5%;
  left: 15%;
  animation: orbFloat3 22s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(40px, 60px); }
  66% { transform: translate(-30px, 30px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-50px, -40px); }
  66% { transform: translate(30px, -60px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -50px); }
  66% { transform: translate(-40px, 20px); }
}

/* ========================================
   Section Dividers
   ======================================== */

.divider {
  line-height: 0;
  margin-top: -1px;
}

.divider svg {
  display: block;
  width: 100%;
  height: 32px;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Scroll Reveal
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal delays for grouped elements */
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* ========================================
   Navigation
   ======================================== */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  z-index: 100;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 100px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .04);
  padding: 6px 8px;
  transition: all var(--transition);
}

.nav--scrolled {
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
  border-color: rgba(0, 0, 0, .04);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav__link {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: 100px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--text);
  background: rgba(0, 0, 0, .04);
}

.nav__link--active {
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, .6) 0%, rgba(124, 58, 237, .55) 50%, rgba(236, 72, 153, .5) 100%);
  box-shadow: 0 1px 8px rgba(124, 58, 237, .12);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Hero
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(239, 246, 255, .65) 0%, rgba(250, 251, 252, .5) 100%);
  padding-top: 96px;
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  justify-items: center;
  width: 100%;
  position: relative;
}

.hero__content {
  text-align: center;
  min-width: 0;
}

.hero__chips-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  color: #111827;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, .4); }
  50% { opacity: .8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero__name{
  font-size: clamp(3rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}

.hero__title{
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.45;
  color: #3b4454;
  margin-bottom: 26px;
  max-width: 38ch;
}

.hero__actions{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 22px;
}

.hero__actions .btn {
  font-size: 1.16rem;
  padding: 7px 20px;
}

.hero__actions .btn--ghost {
  gap: 10px;
}

.hero__btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

@media (min-width: 1024px){
  .hero__actions{
    justify-content: flex-start;
  }
}

/* Secondary button for hero */
.btn--ghost{
  background: rgba(255,255,255,.65);
  color: var(--text);
  border-color: rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
}

.hero__actions .btn--ghost {
  box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
}

.btn--ghost:hover{
  border-color: rgba(37, 99, 235, .25);
  box-shadow: 0 10px 30px rgba(37, 99, 235, .12);
  transform: translateY(-2px);
}

.hero__actions .btn--ghost:hover .hero__btn-icon {
  transform: scale(1.04);
}

.hero__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero__chips::-webkit-scrollbar {
  display: none;
}

.hero__chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #5a6170;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.08);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  transition: border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.hero__chip-icon{
  width: 16px;
  height: 16px;
  color: #8e95a2;
  flex-shrink: 0;
}

.hero__chip:hover {
  border-color: rgba(37, 99, 235, .2);
  box-shadow: 0 2px 8px rgba(37, 99, 235, .08);
}

/* Hero scroll CTA */
.hero__scroll-cta {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.hero__scroll-cta:hover {
  color: var(--accent);
}

.hero__scroll-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero__scroll-arrow {
  width: 28px;
  height: 28px;
  animation: arrowFloat 2s ease-in-out infinite;
}

@keyframes arrowFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Shared .btn (used in contact form etc.) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, .3);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
}

/* Hero image */
.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
  order: -1;
  min-width: 0;
}

.hero__image img {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 60px rgba(0,0,0,.12));
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.hero__image img:hover {
  transform: scale(1.02);
}

/* ========================================
   Section shared
   ======================================== */

.section {
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.section--alt {
  background: rgba(255, 255, 255, .35);
}

/* Code-style section headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 48px;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.title-bracket {
  color: var(--accent);
  font-weight: 500;
}

.title-text {
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  border-radius: 2px;
  opacity: .35;
}

/* Legacy label/heading (unused, kept for reference) */
.section__label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section__heading {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 32px;
  line-height: 1.2;
}

/* ========================================
   Über mich
   ======================================== */

.about {
  position: relative;
  overflow: hidden;
}

.about__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about__deco-shape {
  position: absolute;
  border-radius: 50%;
}

.about__deco-shape--1 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, var(--accent-light), #bfdbfe);
  top: -40px;
  right: -40px;
  border-radius: 28px;
  transform: rotate(15deg);
  opacity: .5;
}

.about__deco-shape--2 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #ede9fe, #c7d2fe);
  bottom: 20px;
  right: 10%;
  opacity: .4;
}

.about__deco-shape--3 {
  width: 64px;
  height: 64px;
  border: 2.5px solid var(--accent-light);
  top: 30%;
  right: 5%;
  border-radius: 16px;
  transform: rotate(-10deg);
  opacity: .5;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 840px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.about__content {
  position: relative;
}

/* Code editor window */
.code-window {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: #1e1e2e;
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #16161e;
  border-bottom: 1px solid #2a2a3c;
}

.code-window__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-window__dot--red   { background: #ff5f57; }
.code-window__dot--yellow { background: #febc2e; }
.code-window__dot--green  { background: #28c840; }

.code-window__tab {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: #7a7a8e;
  letter-spacing: .02em;
}

.code-window__body {
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.9;
  overflow-x: auto;
}

.code-ln {
  padding: 0 20px;
  white-space: pre;
  transition: background .15s ease;
}

.code-ln:hover {
  background: rgba(255,255,255,.04);
}

.code-ln__num {
  display: inline-block;
  width: 28px;
  flex-shrink: 0;
  color: #4a4a5a;
  text-align: right;
  margin-right: 20px;
  user-select: none;
}

.code-kw   { color: #c678dd; }
.code-var  { color: #61afef; }
.code-op   { color: #56b6c2; }
.code-br   { color: #e5c07b; }
.code-prop { color: #e06c75; }
.code-str  { color: #98c379; }
.code-num  { color: #d19a66; }
.code-bool { color: #d19a66; }
.code-punc { color: #636a78; }

.about__heading-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.about__accent-bar {
  width: 4px;
  height: 44px;
  background: linear-gradient(180deg, var(--accent), #7c3aed);
  border-radius: 4px;
  flex-shrink: 0;
}

.about__text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.about__text + .about__text {
  margin-top: 20px;
}

.about__text .highlight {
  color: var(--text);
  background: var(--accent-light);
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 500;
  transition: background var(--transition);
}

.about__text .highlight:hover {
  background: #bfdbfe;
}

/* ========================================
   Section Deco Shapes (shared)
   ======================================== */

.section__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.section__deco-shape {
  position: absolute;
  opacity: .4;
}

/* --- Skills deco (a, b, c) --- */
.section__deco-shape--a {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #c7d2fe, #dbeafe);
  border-radius: 32px;
  top: -30px;
  left: -30px;
  transform: rotate(20deg);
}

.section__deco-shape--b {
  width: 80px;
  height: 80px;
  border: 2.5px solid #bfdbfe;
  border-radius: 50%;
  bottom: 40px;
  right: 5%;
  opacity: .35;
}

.section__deco-shape--c {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
  border-radius: 14px;
  top: 35%;
  right: -10px;
  transform: rotate(-15deg);
}

/* --- Projekte deco (d, e, f) --- */
.section__deco-shape--d {
  width: 120px;
  height: 120px;
  border: 2.5px solid #c7d2fe;
  border-radius: 24px;
  top: 20px;
  right: -30px;
  transform: rotate(12deg);
  opacity: .35;
}

.section__deco-shape--e {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  border-radius: 50%;
  bottom: -20px;
  left: 5%;
  opacity: .45;
}

.section__deco-shape--f {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #dcfce7, #dbeafe);
  border-radius: 12px;
  top: 40%;
  left: -15px;
  transform: rotate(25deg);
}

/* --- Kontakt deco (g, h, i) --- */
.section__deco-shape--g {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  border-radius: 36px;
  bottom: -40px;
  right: -40px;
  transform: rotate(-18deg);
  opacity: .45;
}

.section__deco-shape--h {
  width: 70px;
  height: 70px;
  border: 2.5px solid #bfdbfe;
  border-radius: 18px;
  top: 30px;
  left: 8%;
  transform: rotate(10deg);
  opacity: .35;
}

.section__deco-shape--i {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ede9fe, #c7d2fe);
  top: 50%;
  right: 10%;
  opacity: .3;
}

/* ========================================
   Skills — Bar Accordion
   ======================================== */

.skills__text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 36px;
}

.skills-charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .skills-charts {
    grid-template-columns: 1fr;
    max-width: 840px;
  }
}

.skills-accordion {
  background: rgba(250, 251, 252, .85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.skills-accordion[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, .12);
}

.skills-accordion__header {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  user-select: none;
  transition: background var(--transition);
}

.skills-accordion__header::-webkit-details-marker {
  display: none;
}

.skills-accordion__header:hover {
  background: rgba(37, 99, 235, .03);
}

.skills-accordion__label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.skills-accordion[open] .skills-accordion__label {
  color: var(--text);
}

.skills-accordion__chev {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.skills-accordion[open] .skills-accordion__chev {
  transform: rotate(180deg);
  background: var(--accent-light);
  color: var(--accent);
  border-color: transparent;
}

.skills-accordion__body {
  padding: 4px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Skill bar row */
.skill-bar__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.skill-bar__name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}

.skill-bar__pct {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Track = visible 100% background */
.skill-bar__track {
  width: 100%;
  height: 11px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

/* Fill = animated bar */
.skill-bar__fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
  transition: none;
}

/* Animate only when accordion is open */
.skills-accordion[open] .skill-bar__fill {
  animation: skillFill 1s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes skillFill {
  from { width: 0; }
  to   { width: var(--val); }
}

/* Stagger bars for a cascading effect */
.skills-accordion[open] .skill-bar:nth-child(1) .skill-bar__fill { animation-delay: 0ms; }
.skills-accordion[open] .skill-bar:nth-child(2) .skill-bar__fill { animation-delay: 80ms; }
.skills-accordion[open] .skill-bar:nth-child(3) .skill-bar__fill { animation-delay: 160ms; }
.skills-accordion[open] .skill-bar:nth-child(4) .skill-bar__fill { animation-delay: 240ms; }
.skills-accordion[open] .skill-bar:nth-child(5) .skill-bar__fill { animation-delay: 320ms; }
.skills-accordion[open] .skill-bar:nth-child(6) .skill-bar__fill { animation-delay: 400ms; }
.skills-accordion[open] .skill-bar:nth-child(7) .skill-bar__fill { animation-delay: 480ms; }

/* Category gradients */
.skills-accordion__body--lang .skill-bar__fill {
  background: linear-gradient(90deg, #6366f1, #38bdf8);
}

.skills-accordion__body--web .skill-bar__fill {
  background: linear-gradient(90deg, #38bdf8, #ec4899);
}

.skills-accordion__body--db .skill-bar__fill {
  background: linear-gradient(90deg, #22c55e, #6366f1);
}

/* ========================================
   Projekte
   ======================================== */

.projects__text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 36px;
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  border-color: transparent;
}

.project-card__browser {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.project-card__dots {
  display: flex;
  gap: 6px;
}

.project-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.project-card__dot:nth-child(1) { background: #fca5a5; }
.project-card__dot:nth-child(2) { background: #fde68a; }
.project-card__dot:nth-child(3) { background: #86efac; }

.project-card__url {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card__preview {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .4s ease;
}

.project-card__preview--1 {
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.project-card__preview--2 {
  background: linear-gradient(135deg, #dcfce7, #dbeafe);
}

.project-card__preview-text {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,.6);
  letter-spacing: -.02em;
  transition: transform .3s ease, color .3s ease;
}

.project-card:hover .project-card__preview-text {
  transform: scale(1.05);
  color: rgba(255,255,255,.75);
}

.project-card__body {
  padding: 24px 24px 28px;
}

.project-card__label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 6px;
}

.project-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.project-card__link:hover {
  gap: 10px;
}

.project-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.project-card__link:hover svg {
  transform: translateX(2px);
}

/* GitHub card */
.project-github {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}

.project-github:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  border-color: transparent;
}

.project-github__icon {
  width: 48px;
  height: 48px;
  color: var(--text);
}

.project-github__text {
  font-size: .95rem;
  color: var(--text-secondary);
}

/* ========================================
   Kontakt
   ======================================== */

.contact__intro {
  max-width: 720px;
  margin-bottom: 56px;
}

.contact__intro-heading {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 12px;
}

.contact__intro-sub {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* Layout: Form + Sidebar */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 840px;
  margin: 0 auto;
}

/* Contact Form */
.contact-form {
  background: rgba(250, 251, 252, .85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form__group {
  margin-bottom: 22px;
}

.contact-form__label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-form__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.contact-form__input::placeholder {
  color: var(--text-muted);
}

.contact-form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__submit {
  width: 100%;
  justify-content: center;
}

/* Sidebar */
.contact__sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.contact__sidebar-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Contact links (icon + label) */
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(250, 251, 252, .65);
  transition: all .25s cubic-bezier(.4,0,.2,1);
}

.contact-link:hover {
  transform: translateY(-3px);
}

.contact-link__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-link__icon svg {
  width: 19px;
  height: 19px;
}

.contact-link__text {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}

/* Email */
.contact-link--email .contact-link__icon { background: #dbeafe; color: #2563eb; }
.contact-link--email:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .15);
}

/* Phone */
.contact-link--phone .contact-link__icon { background: #dcfce7; color: #16a34a; }
.contact-link--phone:hover {
  border-color: #16a34a;
  box-shadow: 0 4px 14px rgba(22, 163, 74, .15);
}

/* WhatsApp */
.contact-link--whatsapp .contact-link__icon { background: #d5f5e3; color: #25d366; }
.contact-link--whatsapp:hover {
  border-color: #25d366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .15);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: .85rem;
  color: var(--text-muted);
}

.footer__top {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__top:hover {
  color: var(--accent);
}

/* ========================================
   Responsive: 640px+
   ======================================== */

@media (min-width: 640px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    padding: 40px;
  }
}

/* ========================================
   Responsive: 768px+ (Tablet)
   ======================================== */

@media (min-width: 768px) {
  .section {
    padding: 110px 0;
  }

  .divider svg {
    height: 56px;
  }

  .contact__layout {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 48px;
  }

  .contact__sidebar {
    padding-top: 16px;
    min-width: 220px;
  }

  .contact__links {
    gap: 12px;
  }
}

/* ========================================
   Responsive: 1024px+
   ======================================== */

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    justify-items: start;
  }

  .hero__content {
    text-align: left;
  }

  .hero__image {
    order: 0;
    justify-self: center;
  }

  .hero__image img {
    max-width: 440px;
  }

  .section {
    padding: 128px 0;
  }

  .contact__layout {
    gap: 56px;
  }

  .contact__sidebar {
    padding-top: 24px;
    min-width: 240px;
  }

  .project-card__preview {
    height: 210px;
  }
}

/* ========================================
   Mobile nav (< 640px)
   ======================================== */

@media (max-width: 639px) {
  .nav {
    left: 16px;
    right: 16px;
    transform: none;
    max-width: none;
    width: auto;
    padding: 6px 14px;
    justify-content: center;
  }

  .nav__hamburger {
    display: flex;
    margin: 0 auto;
  }

  /* Glass menu card — the ul itself becomes the card */
  .nav__links {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 64px;
    bottom: auto;
    transform: translateY(-12px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: rgba(255, 255, 255, .68);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .06);
    transition: transform .35s cubic-bezier(.32, .72, 0, 1), opacity .3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 105;
  }

  .nav__links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__links li {
    opacity: 0;
    transform: translateY(8px);
  }

  .nav__links--open li {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .25s ease, transform .25s ease;
  }

  .nav__links--open li:nth-child(1) { transition-delay: .08s; }
  .nav__links--open li:nth-child(2) { transition-delay: .12s; }
  .nav__links--open li:nth-child(3) { transition-delay: .16s; }
  .nav__links--open li:nth-child(4) { transition-delay: .2s; }

  /* Dividers between items */
  .nav__links li + li {
    border-top: 1px solid rgba(0, 0, 0, .06);
  }

  .nav__links .nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .01em;
    padding: 14px 24px;
    color: var(--text);
    background: transparent;
    border-radius: 0;
    transition: background .15s ease;
  }

  .nav__links .nav__link:active {
    background: rgba(37, 99, 235, .07);
  }

  .nav__links .nav__link--active {
    color: var(--accent);
  }
  .nav__link--cta{
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(37, 99, 235, .25);
  }

  .nav__link--cta:hover{
    background: var(--accent-hover);
    color: #fff;
  }

  .section-header {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-number {
    font-size: 1.1rem;
  }

  .section-line {
    width: 100%;
    flex: auto;
    margin-top: 0.25rem;
  }

  .hero__name {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .hero__title {
    font-size: 1rem;
    margin-bottom: 18px;
  }

  .hero__chips-wrap {
    display: none;
  }

  .hero__actions {
    flex-wrap: nowrap;
  }

  .hero__actions .btn {
    font-size: .95rem;
    padding: 8px 14px;
    white-space: nowrap;
  }

  .btn {
    font-size: .95rem;
    padding: 10px 20px;
  }
}
