* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f4f7fb;
  --surface-alt: #eef3ff;
  --primary: #1f3a5f;
  --primary-dark: #142846;
  --accent: #4f8ef7;
  --text: #1b1f2a;
  --muted: #5d6472;
  --border: rgba(31, 58, 95, 0.12);
  --shadow: 0 12px 30px rgba(20, 40, 70, 0.12);
}

html {
  font-size: 62.5%;
  font-family: sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100rem;
  display: flex;
  flex-direction: column;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, #edf4ff 0%, var(--bg) 100%);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out 0.5s ease both;
}

::view-transition-new(root) {
  animation: fade-in 0.5s ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

img {
  max-width: 100%;
  display: block;
}

.header {
  width: min(1100px, calc(100% - 32px));
  margin: 2rem auto 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 1.6rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-menu a,
.menu-toggle {
  text-decoration: none;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-menu a:hover,
.menu-toggle:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-menu a.active {
  background: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  gap: 0.45rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.first-page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto 4rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
}

.titel {
  font-size: clamp(2.4rem, 3rem, 4rem);
  margin-bottom: 2rem;
  color: var(--primary-dark);
}

.ik {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.ik-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(79, 142, 247, 0.2);
  box-shadow: var(--shadow);
}

.ik-text {
  font-size: 1.8rem;
}

.skills {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.skills h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.skill + .skill {
  margin-top: 1.5rem;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-label h3 {
  font-size: 1.6rem;
}

.skill-label span {
  color: var(--muted);
  font-weight: 600;
}

.skill-bar {
  height: 1.2rem;
  overflow: hidden;
  background: rgba(31, 58, 95, 0.14);
  border-radius: 999px;
}

.skill-progress {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

footer {
  width: min(1100px, calc(100% - 32px));
  margin: auto auto 2rem;
}

.site-footer {
  padding: 2.4rem 2.8rem 1.6rem;
  color: #fff;
  background: var(--primary-dark);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-intro h2 {
  margin-bottom: 0.4rem;
  font-size: 2rem;
}

.footer-intro p {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
}

.footer-copyright {
  margin-top: 1.8rem;
  padding-top: 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.4rem;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.6rem;
  box-shadow: 0 8px 22px rgba(31, 58, 95, 0.08);
}

.project-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.project-card p {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.project-card a {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.8rem 1.4rem;
  font-weight: 600;
}

.project-card a:hover {
  background: var(--primary-dark);
}

@media (max-width: 700px) {
  .header {
    display: block;
    padding: 1rem;
  }

  .site-footer {
    padding: 2rem 1.6rem 1.4rem;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    margin-top: 1rem;
  }

  .header.open .nav-menu {
    display: flex;
  }

  .header.open .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .header.open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .header.open .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .ik {
    margin: 0 auto;
  }
}
