@font-face {
    font-family: 'test_shne_breit';
    src: url('fonts/testsohnebreit-buch-webfont.woff2') format('woff2'),
         url('fonts/testsohnebreit-buch-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'test_shne_breit';
    src: url('fonts/testsohnebreit-dreiviertelfett-webfont.woff2') format('woff2'),
         url('fonts/testsohnebreit-dreiviertelfett-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;

}

html {
    scroll-behavior: smooth;
   }

/* html {
    scroll-snap-type: y mandatory;
    height: 100vh;
  }
  .snap-scroll {
    display: flex;
    align-items: center;
    scroll-snap-align: center;
    font: var(--h1);
    height: 75vh;
  } */

a {
    text-decoration:none
}

button, a {
    transition: all 0.4s ease;
    filter: brightness(100%);
}

button:hover, a:hover {
    scale: 1.1;
    filter: brightness(130%);
}

button:active, a:active {
    transform: translateY(10px);
}

body {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-items: center;
    font-family: "test_shne_breit", "lora";
    color: #FFFFFF;
    background-color: #000000;
    margin: 0;
    padding: 0;
}

nav {
    margin: 0;
    position: fixed;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30pt;
    background-color: #000000;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.75);
}

nav h1 {
    flex: 0 0 40%;
    text-align: start;
    margin-left: 20pt;
}

nav ul {
    list-style: none;
    text-decoration: none;
}

nav li{
    display: inline;
    margin-right: 20pt;
}

.introduction {
    /* margin-left: auto;
    margin-right: auto; */
    margin-top: 40pt;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    flex: auto;
}

.introduction h1 {
    margin-left: 0;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 3.6em;
    display:table;
}

.introduction figure {
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
}

.main-photo {
    margin-right: 0pt;
    margin-left: auto;
    margin-bottom: 30pt;
    object-fit: contain;
    width: 750px;
}

.title {
    margin: auto;
}

.expertise {
    margin-top: 75pt;
    margin-bottom: 150pt;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.expertise h3 {
    font-size: 1.75em;
    text-align: center;
}

.boxes {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.boxes-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.letter-box {
    width: 50px;
    height: 50px;
    margin: 10px;
    background-color: #3A3A3A;
    color: transparent;
    font-weight: bold;
    font-size: 2em;
    justify-content: center;
    align-items: center;
    display: flex;
}

.animate-flip {
    animation: flip 0.5s ease forwards;
}

@keyframes flip {
    0% {
        transform: scaleY(1);
        background-color: #3A3A3A;
        color: transparent;
    }
    50% {
        transform: scaleY(0);
        background-color: #3A3A3A;
        color: transparent;
    }
    100% {
        transform: scaleY(1);
        color: #FFFFFF;
        background-color: #DB0811;
    }
}

.expertise a {
    padding: none;
    margin-top: 0px;
    border: none;
    background-color: transparent;
    opacity: 0%;
    animation: fade-in-button 0.4s ease forwards;
}

@keyframes fade-in-button {
    0% {
        opacity: 0%;
        margin-top: 0px;
    }
    100% {
        opacity: 100%;
        margin-top: 20px;
    }
}

#about-me {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 120pt;
}

#about-me h5 {
    font-weight: normal;
    font-size: 16pt;
    margin-top: 30pt;
    margin-left: 20%;
    margin-right: 20%;
    margin-bottom: 20pt;
    text-align: center;
    animation: reverse-fade ease forwards;
    animation-timeline: view();
}

.color-red {
    color: #DB0811;
}

.color-yellow {
    color: #FDC300;
}

.color-blue {
    color: #0080BC;
}

#achievements {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    margin-bottom: 120pt;
}

.title-heading {
    font-size: 3em;
    animation: title-heading-fade ease forwards;
    animation-timeline: view();
}

@keyframes title-heading-fade {
    0% {
        opacity: 0%;
        transform: translateX(-20vw);
    }
    30% {
        opacity: 100%;
        transform: translateX(0vw);
    }
    100% {
        opacity: 100%;
        transform: translateX(0vw);
    }
}

@keyframes reverse-fade {
    0% {
        opacity: 0%;
        transform: translateX(20vw);
    }
    30% {
        opacity: 100%;
        transform: translateX(0vw);
    }
    100% {
        opacity: 100%;
        transform: translateX(0vw);
    }
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 80%;
    flex-basis: 100%
}

@keyframes highlight-cards {
    entry 0%, exit 100% { opacity: 0; }
    entry 100%, exit 0% { opacity: 1; }
}

.carousel-slide {
    flex: 1 0 50%;
    scroll-snap-align: center;
    width: 90pt;
    margin: 20pt;
    background-color: #FDC300;
    animation: highlight-cards;
    animation-timeline: view(inline);
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    overflow: auto;
}

.carousel-slide h3 {
    color:#DB0811;
    margin-top: 8pt;
    margin-left: 6pt;
    margin-right: 6pt;
    margin-bottom: 0;
}

.carousel-slide h5 {
    color: #0080BC;
    margin: 6pt;
}

@media (max-width: 640px) {
    .carousel-slide {
        flex: 1 0 90%;
    }
}

.carousel-container::-webkit-scrollbar {
    height: 12px;
  }
  .carousel-container::-webkit-scrollbar-thumb {
    background: #0080BC;
  }
  .carousel-container::-webkit-scrollbar-track {
    background: #3A3A3A;
  }
  .carousel-container::-webkit-scrollbar-track-piece:start {
    background: #3A3A3A;
  }

#projects {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    margin-bottom: 150pt;
}

.subheading {
    text-align: center;
    font-size: 14pt;
    margin-bottom: 30pt;
    animation: reverse-fade ease forwards;
    animation-timeline: view();
}

.cards-container {
    margin-top: 30pt;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
    max-width: 960px;
}

.project-card {
    flex: 1 1 100%;
    background-color: #DB0811;
    width: 200pt;
    min-height: 300pt;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 36pt;
    margin-left: 20pt;
    margin-right: 20pt;
}

.project-card h2 {
    color:#FDC300;
    margin-top: 4pt;
    margin-bottom: 0;
    text-align: left;
    margin-left: 6pt;
}

.project-card h5 {
    color: #FFFFFF;
    margin-top: 2pt;
    margin-bottom: 2pt;
    text-align: left;
    margin-left: 6pt;
}

.used-stack-container{
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    margin-bottom: 4pt;
    margin-left: 6pt;
}

.project-card h6 {
    color: #FFFFFF;
    background-color: #0080BC;
    padding: 4pt;
    border-radius: 6pt;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 3pt;
}

#contact {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    margin-bottom: 350pt;
}

.contact-buttons-container {
    margin-top: 25pt;
    display: flex;
    flex-wrap: wrap;
    gap: 40pt;
}

.contact-button {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    background-color: #0080BC;
    padding-top: 10pt;
    padding-left: 20pt;
    padding-right: 20pt;
    padding-bottom: 10pt;
    border-radius: 15pt;
    min-width: 160px;
}

.contact-button h3 {
    color: #FDC300;
    margin-top: 5pt;
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .project-card {
    flex: 1 1 calc(33.3333%);
    }
    .carousel-slide {
        flex: 1 0 30%;
        max-width: 250pt;
    }
    .carousel-container {
        width: auto;
    }
  }

  @media (min-width: 1280px) {
    .main-photo {
        width: 400px;
        margin-bottom: 0pt;
    }
    .project-card {
        flex: 1 1 calc(33.3333%);
    }
    nav h1 {
        flex: 0 0 50%;
    }
  }

  @media (min-width: 1440px) {
    .main-photo {
        width: 500px;
    }
    .project-card {
        flex: 1 1 calc(33.3333%);
    }
  }