/* =========================
   BASIS (Variablen + Reset)
========================= */

:root{
  --bg:#ffffff;
  --slate-50:#f8fafc;
  --slate-100:#f1f5f9;
  --slate-200:#e2e8f0;
  --slate-300:#cbd5e1;
  --slate-400:#94a3b8;
  --slate-600:#475569;
  --slate-700:#334155;
  --slate-800:#1f2937;
  --slate-900:#0f172a;

  --blue-50:#eff6ff;
  --blue-100:#dbeafe;
  --blue-400:#60a5fa;
  --blue-500:#3b82f6;
  --blue-600:#2563eb;

  --purple-500:#a855f7;
  --purple-600:#9333ea;

  --green-500:#22c55e;
  --green-600:#16a34a;

  --orange-500:#f97316;
  --orange-600:#ea580c;

  --yellow-100: #ffefb5;
  --yellow-300: #a77e05;

  --shadow: 0 12px 30px rgba(15,23,42,.10);
  --shadow2: 0 18px 45px rgba(15,23,42,.14);

  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 26px;

  --container: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--slate-900);
  background: var(--bg);
  line-height: 1.5;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; }

.page{ min-height:100vh; }


/* =========================
   LAYOUT / TYPO
========================= */

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.maxw-4{ max-width: 860px; margin: 0 auto; }
.maxw-2{ max-width: 520px; margin: 0 auto; }
.center{ text-align:center; }

.stack-8{
  display:flex;
  flex-direction:column;
  gap: 18px;
}

.section{
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}

.section-white{ background: #fff; }
.section-slate{ background: var(--slate-50); }

.section-dark{
  background: radial-gradient(1200px 600px at 30% 0%, rgba(59,130,246,.18), transparent 60%),
              linear-gradient(135deg, var(--slate-900), #1b2432 45%, var(--slate-900));
  color:#fff;
  padding: 64px 0;
}

.section-head{ margin-bottom: 56px; text-align:center; }

.section-title{
  font-size: clamp(32px, 4vw, 52px);
  margin: 0 0 12px;
  letter-spacing:-0.02em;
}
.section-title-invert{ color:#fff; }

.section-rule{
  width: 84px;
  height: 4px;
  border-radius: 99px;
  background: var(--blue-600);
  margin: 0 auto;
}
.section-rule-invert{ background: var(--blue-500); }

.lead{
  font-size: 18px;
  color: var(--slate-600);
  margin: 0 0 52px;
}
.section-dark .lead{ color: rgba(255,255,255,.75); }

.muted{ color: var(--slate-600); }
.section-dark .muted{ color: rgba(255,255,255,.75); }

.nowrap{ white-space: nowrap; }


/* =========================
   GENERISCHE KARTEN
========================= */

.card{
  background: #fff;
  border-radius: var(--r-2xl);
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow);
}
.card:hover{ box-shadow: var(--shadow2); }

.card-title{
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}


/* =========================
   DEKO / BACKGROUNDS
========================= */

.blob{
  position:absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: .35;
}
.blob-left{ left:-120px; top: 10px; }
.blob-right{ right:-140px; top: -40px; }
.blob-blue{ background: var(--blue-100); }
.blob-slate{ background: var(--slate-100); }
.blob-dark{ background: var(--slate-900); opacity:.16; }
.blob.strong{ opacity:.22; filter: blur(70px); }

.pattern{
  position:absolute;
  inset:0;
  opacity:.08;
  pointer-events:none;
}


/* =========================
   HERO
========================= */

.hero{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
  background:#fff;
}

.hero-bg{
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, var(--slate-50), #fff 55%, #fff);
}

.hero-container{
  padding-top: 80px;
  padding-bottom: 80px;
  position:relative;
  z-index:2;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items:center;
}

.pill{
  display:inline-block;
  padding: 8px 14px;
  background: var(--blue-50);
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-title{
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1.03;
  margin: 0 0 18px;
  letter-spacing:-0.03em;
}

.accent{ color: var(--blue-600); }

.hero-lead{
  font-size: 20px;
  font-weight: 600;
  color: var(--slate-600);
  margin: 45px 0 45px;
  line-height:1.6;
}

.hero-actions{
  display:flex;
  flex-wrap:nowrap;
  gap: 14px;
}


/* Buttons */
.btn{
  border: 0;
  cursor:pointer;
  border-radius: 12px;
  padding: 16px 28px;
  font-weight: 500;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--slate-900);
  color:#fff;
  box-shadow: 0 14px 30px rgba(15,23,42,.16);
}
.btn-primary:hover{
  background: #111c32f1;
  transform: scale(1.05);
  box-shadow: 0 18px 40px rgba(15,23,42,.22);
}

.btn-secondary{
  background:#fff;
  color: var(--slate-900);
  border: 2px solid var(--slate-200);
}
.btn-secondary:hover{
  border-color: var(--slate-900);
  box-shadow: var(--shadow);
}

.btn-icon{ display:inline-flex; align-items:center; }
.btn-icon svg{ width: 16px; height: 16px; }
.btn-primary:hover .btn-icon{ transform: translateY(2px); }


/* Hero Image */
.hero-imageWrap{
  display:flex;
  justify-content:flex-end;
}

.hero-imageGlow{
  position:absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-400), var(--slate-700));
  border-radius: 30px;
  filter: blur(55px);
  opacity: .18;
  transform: translateZ(0);
}

.hero-imageBox{
  position:relative;
  width: min(380px, 92vw);
  aspect-ratio: 1/1;
}

.hero-imageTilt{
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, var(--blue-500), var(--slate-900));
  border-radius: 30px;
  transform: rotate(6deg);
}

.hero-image{
  position:relative;
  width:100%;
  height:100%;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 22px 60px rgba(15,23,42,.25);
}

.hero-deco{
  position:absolute;
  border-radius: 18px;
  filter: blur(24px);
  opacity:.22;
}
.hero-deco-a{ width: 140px; height: 140px; background: var(--blue-500); right: -18px; bottom: -18px; }
.hero-deco-b{ width: 110px; height: 110px; background: var(--slate-900); left: -18px; top: -18px; }


/* Scroll Indicator */
.scroll-indicator{
  position:absolute;
  left: calc(50% - 28px);
  bottom: 26px;
  transform: translateX(-50%);
  background: transparent;
  border: 0;
  color: var(--slate-400);
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 6px;
  cursor:pointer;
  z-index:3;
}

.scroll-label{
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 650;
}

.scroll-bounce svg{ width: 18px; height: 18px; }

.scroll-bounce{
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce{
  0%{ transform: translateY(0); }
  50%{ transform: translateY(8px); }
  100%{ transform: translateY(0); }
}


/* =========================
   ABOUT
========================= */

.feature-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature{
  padding: 26px;
  background: var(--slate-50);
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature:hover{ transform: translateY(-6px); }

.iconbox{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 18px;
}
.iconbox svg{ width: 26px; height: 26px; }

.iconbox-yellow{ background: var(--yellow-100); color: var(--yellow-300); }
.iconbox-blue{ background: var(--blue-100); color: var(--blue-600); }
.iconbox-slate{ background: var(--slate-100); color: var(--slate-700); }
.iconbox-purple{ background: #f3e8ff; color: #7c3aed; }
.iconbox-orange{ background: #ffedd5; color: var(--orange-600); }


/* =========================
   SKILLS
========================= */

.section-skills.section-slate{
  background: #f7fafc;
}

.section-skills .stack-8{
  gap: 28px;
}

.skill{
  padding: 26px 26px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(220,226,235,.6);
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.skill:hover{
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
  transform: translateY(-2px);
}

.skill-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.skill-left{ display:flex; align-items:center; gap: 10px; flex-wrap: wrap; }

.skill-name{
  margin:0;
  font-size: 18px;
  font-weight: 500;
}

.badge{
  display:inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(241,245,249,.95);
  color: rgba(51,65,85,.85);
  border: 1px solid rgba(226,232,240,.9);
  font-size: 12px;
  font-weight: 500;
}

.skill-val{
  color: rgba(51,65,85,.85);
  font-weight: 500;
}

.bar{
  height: 10px;
  background: rgba(241,245,249,.95);
  border-radius: 999px;
  overflow:hidden;
}

.bar-fill{
  height:100%;
  width: 0%;
  border-radius: 999px;
  position:relative;
  transition: width 1.2s ease;
}

.bar-fill[data-color="purple"]{ background: linear-gradient(90deg, #b89cff, #a982ff); }
.bar-fill[data-color="blue"]{ background: linear-gradient(90deg, #7fb0ff, #6a9cff); }
.bar-fill[data-color="dark"]{ background: linear-gradient(90deg, #6b7280, #4b5563); }
.bar-fill[data-color="green"]{ background: linear-gradient(90deg, #6fcf97, #5fc18a); }
.bar-fill[data-color="orange"]{ background: linear-gradient(90deg, #f39a6a, #ed8752); }

.bar-sheen{
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.18);
  opacity: 0;
}

.bar-fill.is-animating .bar-sheen{
  opacity: .7;
  animation: pulse 1.25s ease-in-out infinite;
}

@keyframes pulse{
  0%{ opacity:.10; }
  50%{ opacity:.22; }
  100%{ opacity:.10; }
}

.callout{
  margin-top: 40px;
  padding: 26px;
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, #f3f7ff, #f8fafc);
  border: 1px solid rgba(219,234,254,.85);
}


/* =========================
   TIMELINE (Experience + Education)
========================= */

.timeline{ position:relative; }

.timeline-line{
  position:absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--slate-200);
  display:block; /* Desktop default */
}

.timeline-item{
  position:relative;
  display:flex;
  gap: 18px;
  align-items:flex-start;
  margin: 0 0 50px;
}

.timeline-icon{
  width: 64px;
  height: 64px;
  border-radius: 18px;
  flex: 0 0 auto;
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
  position:relative;
  z-index:2;
}

.timeline-card{
  flex: 1 1 auto;
  padding: 18px;
  background: var(--slate-50);
  transition: transform .25s ease, box-shadow .25s ease;
}

.timeline-card:hover{ transform: translateY(-4px); }

.timeline-top{
  display:flex;
  flex-direction: row;          /* Desktop default */
  align-items:center;           /* Desktop default */
  justify-content:space-between;/* Desktop default */
  gap: 10px;
  margin-bottom: 10px;
}

.chip{
  display:inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--slate-100);
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}
.chip-soft{ background: var(--slate-100); }

.accent-text{
  color: var(--blue-600);
  font-weight: 600;
  margin: 0 0 8px;
}


/* =========================
   CONTACT
========================= */

.section-contact{ padding-bottom: 54px; }

.contact-bg{
  position:absolute;
  inset:0;
  opacity:.12;
}

.contact-blob{
  position:absolute;
  left: 22%;
  top: -120px;
  width: 420px;
  height: 420px;
  background: var(--blue-500);
  border-radius: 999px;
  filter: blur(70px);
  animation: slowpulse 3.2s ease-in-out infinite;
}

@keyframes slowpulse{
  0%{ transform: scale(1); opacity:.75; }
  50%{ transform: scale(1.06); opacity:.55; }
  100%{ transform: scale(1); opacity:.75; }
}

.contact-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-card{
  display:block;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.contact-card:hover{
  transform: translateY(-4px);
  background: rgba(255,255,255,.10);
  border-color: rgba(59,130,246,.45);
}

.contact-icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 10px;
  transition: transform .25s ease;
}

.contact-card:hover .contact-icon{ transform: scale(1.08); }

.contact-icon svg{
  width: 18px;
  height: 18px;
  color:#fff;
}

.grad-blue{ background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); }
.grad-linkedin{ background: linear-gradient(135deg, #1d4ed8, #1e40af); }

.contact-title{
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color:#fff;
}

.contact-value{
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  color: rgba(147,197,253,.95);
  transition: color .25s ease;
}

.contact-card:hover .contact-value{ color: rgba(191,219,254,.95); }

.contact-footer{
  margin-top: 50px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  text-align:center;
  color: rgba(148,163,184,.95);
  font-size: 12px;
}


/* =========================
   ANIMATION / HELPERS
========================= */

/* Reveal animations (replacement for framer-motion + useInView) */
.js-reveal{
  opacity: 1;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.js-reveal[data-anim="fade-left"]{ transform: translateX(-22px); }
.js-reveal.is-inview{
  opacity: 1;
  transform: translate(0,0);
}

/* On-load hero animations */
.js-onload-animate{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
  transition-delay: var(--delay, 0s);
}
.hero-imageWrap-anim{ transform: scale(.96); }
body.is-loaded .js-onload-animate{
  opacity: 1;
  transform: translate(0,0) scale(1);
}

.content{ position:relative; z-index:2; }


/* =========================
   RESPONSIVE/MOBILE
========================= */

@media (max-width: 980px){
  .hero-grid{
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-imageWrap{ 
    order:1; 
    justify-self:center; 
    align-items: flex-start;
    padding-top: 0;
  }
  .hero-imageBox{margin-top: -90px;}
  .hero-text{ order:2; }

  .feature-grid{ grid-template-columns: 1fr; }

  .hero-title{ line-height: 1.1; }
  .hero-title br{ display: none; }
  .hero-title .accent{ margin-left: 5px; display: inline-block; }
  .hero-lead{ margin: 25px 0 45px; }

}

@media (max-width: 760px){

  .hero-actions{gap: 10px;}

  .timeline-line{ display:none; }
  .timeline-top{
    flex-direction: column;
    align-items:flex-start;
    justify-content:flex-start;
  }

  .timeline-icon{display: none;}
  .timeline-item{margin-bottom: 24px;}
  
  .contact-value{display: none;}
  .contact-card{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
  }

  .timeline-card .chip{
    border: none;
    background: none;
    padding: 0;
    border-radius: 0;;
    margin-top: -8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-600);
  }

  .contact-icon{
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .contact-title{
    margin: 0;
    font-size: 14px;
  }

}

@media (max-width: 520px){ .badge{ display: none; }}
@media (max-width: 400px){ .contact-grid{ grid-template-columns: 1fr; }}
