@font-face {
    font-family: "henderson";
    src: url("../Fonts/henderson-regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: black;
    margin: 0;
    font-family: "henderson", sans-serif;
    font-style: normal;
    font-weight: 100;
    height: 100vh;
    overflow-y: scroll;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.balk {
    width: 100%;
    height: 88px;
    position: fixed; top: 0%;
    background-color: black;
}

.border {
    width: 100%;
    height: 2px;
    position: fixed; top: 88px;
    background-color: white;
}

.bodem {
    width: 100%;
    height: 300px;
    position: relative; 
    top: 300%;
    background-color: black;
}

.navbar {
    position: relative;
}

.menu-toggle {
    display: none;
}

.hamburger {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 28px;
    width: 35px;
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 20;
}

.hamburger span {
    display: block;
    height: 5px;
    width: 100%;
    background-color: white;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 90px;
    left: 0;
    width: 20%;
    height: 100vh;
    z-index: 10;
    border: none;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 6s ease;
}

.nav-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: -1;
}

.nav-links li {
    margin: 10px 0;
    width: 100%;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 22px;
    padding: 15px;
    display: block;
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
    background-color: white;
    color: black;
    border-radius: 0;
}

.menu-toggle:checked ~ .nav-links {
    display: flex;
    transform: translateX(0);
}

.menu-toggle:checked ~ .nav-links .hamburger {
    display: flex;
}

.langbar {
    position: relative;
}

.langbar-toggle {
    display: none;
}

.hamburger2 {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 28px;
    width: 35px;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 20;
}

.hamburger2 span {
    display: block;
    height: 5px;
    width: 100%;
    background-color: white;
}

.langbar-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    position: fixed;
    top: 90px;
    right: 0;
    width: 20%;
    z-index: 10;
    border: none;
    overflow-y: auto;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.langbar-options::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: -1;
}

.langbar-options li {
    margin: 20px 0;
    width: 100%;
}

.langbar-options a {
    width: 100%;
    text-decoration: none;
    color: white;
    font-size: 22px;
    padding: 15px 20px;
    display: block;
    text-align: right;
    transition: all 0.3s ease-in-out;
}

.langbar-options a:hover {
    background-color: white;
    color: black;
    border-radius: 0;
}

.langbar-toggle:checked ~ .langbar-options {
    display: flex;
    transform: translateX(0);
    opacity: 1;
}

.langbar-toggle:checked ~ .langbar-options .hamburger2 {
    display: flex;
}

.name {
    max-height: 36px;
    transition: transform 0.3 ease;
}

.logo {
    max-height: 125px;
    max-width: 125px;
}

.about {
    position: relative;
    top: 110%;
    left: 50%;
    transform: translate(-50%, 0%);
    height: 450px;
    width: 500px;
    overflow: hidden;
}

.about p {
    display: inline-block;
    position: absolute;
    top: -2px;
    left: -11px;
    transform-origin: top left;
    transform: rotate(-90deg) translate(-100%, 0%);
    color: white;
    font-weight: bold;
    font-size: 45px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    transition: top 0.5s ease;
}

.about:hover p {
    top: 155.5px;
}

.barA {
    position: absolute;
    top: -155px;
    left: 29px;
    height: 145px;
    width: 5px;
    background-color: white;
    transition: top 0.5s ease;
}

.about:hover .barA {
    top: 0;
}

.barA2 {
    position: absolute;
    bottom: 0px;
    left: 29px;
    height: 145px;
    width: 5px;
    background-color: white;
    transition: bottom 0.5s ease;
}

.about:hover .barA2 {
    bottom: -155px;
}

.about img {
    position: absolute;
    top: 0;
    right: 0;
    height: 440px;
    width: 440px;
    border: 5px solid white;
    object-fit: cover;
}

.hoverA {
    position: absolute;
    top: -450px;
    right: 0;
    height: 450px;
    width: 450px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: top 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.textA {
    color: black;
    font-size: 20px;
}

.about:hover .hoverA {
    top: 0;
}

.projects {
    position: relative;
    top: 150%;
    left: 50%;
    transform: translate(-50%, 0%);
    height: 450px;
    width: 500px;
    overflow: hidden;
}

.projects p {
    display: inline-block;
    position: absolute;
    top: -2px;
    left: -11px;
    transform-origin: top left;
    transform: rotate(-90deg) translate(-100%, 0%);
    color: white;
    font-weight: bold;
    font-size: 45px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    transition: top 0.5s ease;
}

.projects:hover p {
    top: 148px;
}

.barP {
    position: absolute;
    top: -147.5px;
    left: 29px;
    height: 137.5px;
    width: 5px;
    background-color: white;
    transition: top 0.5s ease;
}

.projects:hover .barP {
    top: 0;
}

.barP2 {
    position: absolute;
    bottom: 0px;
    left: 29px;
    height: 137.5px;
    width: 5px;
    background-color: white;
    transition: bottom 0.5s ease;
}

.projects:hover .barP2 {
    bottom: -147.5px;
}

.projects img {
    position: absolute;
    top: 0;
    right: 0;
    height: 440px;
    width: 440px;
    border: 5px solid white;
    object-fit: cover;
}

.hoverP {
    position: absolute;
    top: -450px;
    right: 0;
    height: 450px;
    width: 450px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: top 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.textP {
    color: black;
    font-size: 20px;
}

.projects:hover .hoverP {
    top: 0;
}

.contact {
    position: relative;
    top: 200%;
    left: 50%;
    transform: translate(-50%, 0%);
    height: 450px;
    width: 500px;
    overflow: hidden;
}

.contact p {
    display: inline-block;
    position: absolute;
    top: 0px;
    left: -11px;
    transform-origin: top left;
    transform: rotate(-90deg) translate(-100%, 0%);
    color: white;
    font-weight: bold;
    font-size: 45px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    transition: top 0.5s ease;
}

.contact:hover p {
    top: 184.5px;
}

.barC {
    position: absolute;
    top: -184px;
    left: 29px;
    height: 174px;
    width: 5px;
    background-color: white;
    transition: top 0.5s ease;
}

.contact:hover .barC {
    top: 0;
}

.barC2 {
    position: absolute;
    bottom: 0px;
    left: 29px;
    height: 174px;
    width: 5px;
    background-color: white;
    transition: bottom 0.5s ease;
}

.contact:hover .barC2 {
    bottom: -184px;
}

.contact img {
    position: absolute;
    top: 0;
    right: 0;
    height: 440px;
    width: 440px;
    border: 5px solid white;
    object-fit: cover;
}

.hoverC {
    position: absolute;
    top: -450px;
    right: 0;
    height: 450px;
    width: 450px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: top 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.textC {
    color: black;
    font-size: 20px;
}

.contact:hover .hoverC {
    top: 0;
}

.CV {
    position: relative;
    top: 250%;
    left: 50%;
    transform: translate(-50%, 0%);
    height: 450px;
    width: 500px;
    overflow: hidden;
}

.CV p {
    display: inline-block;
    position: absolute;
    top: 0px;
    left: -11px;
    transform-origin: top left;
    transform: rotate(-90deg) translate(-100%, 0%);
    color: white;
    font-weight: bold;
    font-size: 45px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    transition: top 0.5s ease;
}

.CV:hover p {
    top: 375.5px;
}

.barCV {
    position: absolute;
    top: -375px;
    left: 29px;
    height: 365px;
    width: 5px;
    background-color: white;
    transition: top 0.5s ease;
}

.CV:hover .barCV {
    top: 0;
}

.barCV2 {
    position: absolute;
    bottom: 0px;
    left: 29px;
    height: 365px;
    width: 5px;
    background-color: white;
    transition: bottom 0.5s ease;
}

.CV:hover .barCV2 {
    bottom: -375px;
}

.CV img {
    position: absolute;
    top: 0;
    right: 0;
    height: 440px;
    width: 440px;
    border: 5px solid white;
    object-fit: cover;
}

.hoverCV {
    position: absolute;
    top: -450px;
    right: 0;
    height: 450px;
    width: 450px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: top 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.textCV {
    color: black;
    font-size: 20px;
}

.CV:hover .hoverCV {
    top: 0;
}