/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --surface: #1a1a24;
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --text: #f0f0f8;
  --muted: #8888a8;
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --font: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

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

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

/* =========================================
   UTILITIES
   ========================================= */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent2); transform: translateY(-2px); }

.btn--outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn--ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--bg2);
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(108,99,255,0.12);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 48px;
}

/* =========================================
   NAV
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}

.nav.scrolled { padding: 14px 48px; }

.nav__logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a:not(.btn) {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:not(.btn):hover { color: var(--text); }

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

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  max-width: 1160px;
  margin: 0 auto;
  gap: 60px;
}

.hero__content {
  flex: 1;
  max-width: 620px;
}

.hero__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero__headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.blob {
  width: 420px;
  height: 420px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: radial-gradient(135deg, rgba(108,99,255,0.4), rgba(167,139,250,0.15), rgba(255,107,107,0.1));
  animation: morph 8s ease-in-out infinite, float 6s ease-in-out infinite;
  filter: blur(1px);
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  25% { border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%; }
  50% { border-radius: 55% 45% 60% 40% / 45% 55% 50% 50%; }
  75% { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* =========================================
   CARDS (LEISTUNGEN)
   ========================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(108,99,255,0.4);
}

.card__icon {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 20px;
  line-height: 1;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================
   ABOUT
   ========================================= */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about__facts {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.about__facts li {
  font-size: 0.9rem;
  color: var(--muted);
}

.about__facts strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.about__box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  border-left: 4px solid var(--accent);
}

.about__box p {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 16px;
  line-height: 1.5;
}

.about__box span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* =========================================
   PROJECTS
   ========================================= */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  border-top: 4px solid var(--c, var(--accent));
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.project__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.project h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================
   CONTACT / FORM
   ========================================= */
.contact {
  max-width: 720px;
}

.contact__sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 48px;
  margin-top: -24px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form input,
.form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder { color: var(--muted); }

.form input:focus,
.form textarea:focus { border-color: var(--accent); }

.form .btn { align-self: flex-start; margin-top: 8px; }

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

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

.footer__logo {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }

/* =========================================
   SCROLL REVEAL
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav__links { display: none; gap: 20px; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg2); justify-content: center; align-items: center; font-size: 1.4rem; z-index: 999; }
  .nav__links.open { display: flex; }
  .nav__burger { display: flex; z-index: 1001; }

  .hero { flex-direction: column; padding: 120px 24px 60px; text-align: center; }
  .hero__cta { justify-content: center; }
  .hero__sub { margin: 0 auto 40px; }
  .hero__visual { min-height: 260px; }
  .blob { width: 260px; height: 260px; }

  .about { grid-template-columns: 1fr; gap: 40px; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .about__facts { gap: 20px; }
}
