:root {
  --bg: #fff8f0;
  --card: #ffffff;
  --accent: #ff6b35;
  --muted: #6b6b6b;
  --radius: 14px;
  --maxw: 1100px;
  --red: #e08686;
  --yellow: #e9e974;
  --green: #8cd48c;
  --black: #222;
}

/* Fonts */
.modak-regular {
  font-family: "Modak", system-ui;
  font-weight: 400;
  font-style: normal;
}

.atma-regular,
* {
  font-family: "Atma", system-ui;
  font-weight: 400;
  font-style: normal;
}

.atma-light {
  font-family: "Atma", system-ui;
  font-weight: 300;
  font-style: normal;
}

.atma-medium,
h2 {
  font-family: "Atma", system-ui;
  font-weight: 500;
  font-style: normal;
}

.atma-semibold {
  font-family: "Atma", system-ui;
  font-weight: 600;
  font-style: normal;
}

.atma-bold {
  font-family: "Atma", system-ui;
  font-weight: 700;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg), #fffdf8);
  color: #222;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.logo {
  width: 76px;
  height: 76px;
}
.logo svg {
  width: 56px;
  height: 56px;
}
h1 {
  font-family: "Modak", system-ui;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  text-decoration: none;
  color: var(--black);
  border: none;
}

h1,
h2 {
  font-size: 40px;
  width: 100%;
  margin: 0;
}

p.lead {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.btn {
  background: var(--card);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 600;
  cursor: pointer;
}

main {
  margin-top: 80px;
  scroll-snap-type: y mandatory;
  overflow: scroll;
  scrollbar-width: none;
  height: 100%;
}

#main {
  margin-inline: 10%;
  scroll-snap-type: none;
  padding-bottom: 30px;
}

#main > h1 {
  text-align: center;
}

#main > h2 {
  text-align: left;
  padding-top: 20px;
}

.section {
  height: inherit;
  display: flex;
  flex-direction: column;
  overflow: auto;
  scroll-snap-align: start;
  margin: 0 auto;
  padding: 20px;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.section .container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 1400px;
}

.section h2 {
  text-align: center;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(18, 18, 18, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.03);
  width: 50%;
  position: relative;
  overflow: hidden;
}

.js-card-reveal .section[id] .card {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
}

.js-card-reveal .section[id] .card.is-visible {
  animation: cardReveal 520ms ease forwards;
  animation-delay: var(--card-reveal-delay, 0ms);
}

.js-card-reveal .overview.section .container > div {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 520ms ease var(--card-reveal-delay, 0ms),
    transform 520ms ease var(--card-reveal-delay, 0ms),
    filter 180ms ease;
}

.js-card-reveal .overview.section .container > div.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.js-card-reveal .overview.section .container > div.is-visible:hover {
  transform: translateY(0) scale(1.1);
  transition:
    filter 180ms ease,
    transform 180ms ease,
    opacity 520ms ease;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.tech {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.placeholder {
  width: 100%;
  height: 200px;
  background: #f5f5f5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.image {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
}

.cardProjectIcon {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.16);
  padding: 4px;
  z-index: 2;
}

.wide,
.full {
  width: 100%;
  height: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.liveLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--black);
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}
.details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 1);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}

footer {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  height: 40px;
  border-top: #222 2px solid;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.overview .container {
  height: 30vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10vw;
  padding: 0 20px;
}
.overview .container div {
  width: 250px;
}

.overview .container div {
  border-radius: var(--radius);
  padding: 10px;
  filter: drop-shadow(2px 4px 1px black);
  transition:
    filter 180ms ease,
    transform 180ms ease;
}
.overview .container div:hover {
  filter: drop-shadow(1px 2px 1px black);
  transform: scale(1.1);
}

.overview .container div a,
nav div a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--black);
  text-decoration: none;
  font-weight: bold;
}
.overview .container img,
nav img {
  width: 10vw;
  height: auto;
  max-width: 96px;
}
.websites {
  background-color: var(--yellow);
}
.apps {
  background-color: var(--red);
}
.games {
  background-color: var(--green);
}
.contact,
.about,
.blog,
nav > * {
  background-color: var(--bg);
}

header {
  position: fixed;
  height: 80px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  top: 0;
  width: 100%;
  background-color: var(--bg);
  z-index: 10;
  padding-inline: 20px;
  border-bottom: #222 2px solid;
}
header * {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.logo-name * {
  font-size: 24px;
  gap: 20px;
  color: inherit;
  text-decoration: none;
}

.section#spiele {
  background-color: var(--green);
}
.section#apps {
  background-color: var(--red);
}
.section#webseiten {
  background-color: var(--yellow);
}

.statusbanner {
  position: absolute;
  rotate: 40deg;
  background-color: grey;
  padding: 5px 50px;
  color: white;
  right: -35px;
  width: 165px;
  text-align: center;
}

.profile-pic {
  border-radius: 20px;
  width: 100%;
  max-width: 200px;
  margin-right: 10px;
}

.toggle,
.iconButton {
  display: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding-inline: 0;
}

.toggle img,
.icon {
  width: 100%;
  height: 100%;
}

.mobile-only {
  display: none;
}

input,
textarea {
  width: 100%;
  background-color: transparent;
  color: var(--black);
  font-size: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
  font-weight: 600;
  cursor: pointer;
}

input:focus {
  outline: 0;
  box-shadow: none;
}

@media (max-width: 480px) {
  .wrap {
    padding: 16px;
  }
  .logo {
    width: 56px;
    height: 56px;
  }
}

@media screen and (max-width: 1000px) {
  .section .container {
    padding-bottom: 10px;
    width: unset;
    margin-left: 20px;
    align-self: normal;
    scrollbar-color: var(--bg) transparent;
    scrollbar-width: thin;
  }

  .overview .container {
    flex-direction: column;
    height: 80vh;
    gap: 3%;
    justify-content: flex-start;
    overflow: none;
  }

  .section .container .card {
    width: 100%;
    height: stretch;
    min-width: 300px;
  }

  .card .infos {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 50%;
  }
}

@media screen and (max-width: 800px) {
  header > * {
    gap: 20px;
  }

  header h1 {
    font-size: 35px !important;
  }

  h1 {
    font-size: 40px !important;
  }

  nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .toggle {
    display: block;
  }

  footer {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .row {
    flex-direction: column;
  }
}

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

  .overview .container div {
    transition: none;
  }

  .js-card-reveal .section[id] .card,
  .js-card-reveal .section[id] .card.is-visible,
  .js-card-reveal .overview.section .container > div,
  .js-card-reveal .overview.section .container > div.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
