/* ============================================
   Felix – Portfolio
   Modernes Dark-Theme, clean & dezent
   ============================================ */

/* ---------- Design-Tokens ---------- */
:root {
  --bg: #0b0f17;
  --bg-soft: #101623;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e6eaf2;
  --text-muted: #94a0b4;
  --accent: #6ea8fe;
  --accent-2: #a78bfa;
  --accent-glow: rgba(110, 168, 254, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1080px;
  --header-height: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

::selection {
  background: var(--accent);
  color: #0b0f17;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 6.5rem 0;
}

/* ---------- Typografie ---------- */
.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}

.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0f17;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn--large {
  padding: 1.05rem 2.4rem;
  font-size: 1rem;
}

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
  background: rgba(11, 15, 23, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav__logo span {
  color: var(--accent);
}

.nav__menu {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link.active-link {
  color: var(--accent);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}

.hero__glow--1 {
  width: 480px;
  height: 480px;
  background: var(--accent);
  top: -140px;
  right: -100px;
}

.hero__glow--2 {
  width: 380px;
  height: 380px;
  background: var(--accent-2);
  bottom: -120px;
  left: -120px;
  opacity: 0.25;
}

.hero__container {
  position: relative;
  z-index: 1;
}

.hero__greeting {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero__title {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero__subtitle {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-muted);
  margin: 0.5rem 0 1.25rem;
}

.hero__description {
  max-width: 560px;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

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

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Über mich ---------- */
.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.about__facts {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.about__facts li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--text-muted);
}

.about__facts li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.about__facts strong {
  color: var(--text);
  font-weight: 600;
}

.about__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.about__card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.about__avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0b0f17;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px var(--accent-glow);
}

.about__quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
}

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

.skill-card,
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover,
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.skill-card__icon {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.skill-card h3,
.project-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.skill-card p,
.project-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.skill-card__tags,
.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-card__tags span,
.project-card__tags span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

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

.project-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.project-card__folder {
  font-size: 1.6rem;
}

.project-card__links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.project-card__links a:hover {
  color: var(--accent);
}

/* ---------- Kontakt ---------- */
.contact {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer__top {
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}

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

/* ---------- Reveal-Animationen ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll-dot {
    animation: none;
  }
}

/* ---------- Responsiv ---------- */
@media (max-width: 820px) {
  .skills,
  .projects {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about__card {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: min(70vw, 300px);
    height: calc(100dvh - var(--header-height));
    flex-direction: column;
    gap: 0;
    padding: 2rem 1.75rem;
    background: rgba(11, 15, 23, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .nav__menu.open {
    transform: translateX(0);
  }

  .nav__item {
    padding: 0.9rem 0;
  }

  .nav__link {
    font-size: 1.05rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero__scroll {
    display: none;
  }
}
