@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
body {
    font-size: 16px;
    line-height: 20px;
    /* font-family: "JetBrains Mono", monospace; */
    /* font-family: 'Space Grotesk', sans-serif; */
    font-family: 'IBM Plex Sans', sans-serif;
    /* font-family: 'Open Sans', sans-serif; */
    margin: 0;
}

header {
    margin-bottom: 40px;
}

html {
    scroll-behavior: smooth;
}

img {
    border-radius: 0px;
}

main {
    display: flex;
    gap: 32px;
    flex-direction: column;
}

button {
    cursor: pointer;
    border-radius: 0px;
}

button.with-icon {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #3669B4;
    color: white;
    height: 38px;
    gap: 12px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    border: none;
}

button:hover {
    background: #292929;
    transition: 0.2s;
}

button.show-more {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: none;
    color: #292929;
    height: 32px;
    gap: 8px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    border: 1px solid #adb6d5;
}

button.show-more:hover {
    color: white;
    background-color: #292929;
    border: 1px solid #292929;
}

h1 {
    font-style: normal;
    font-weight: 700;
    font-size: 48px;
    line-height: 100%;
    /* identical to box height, or 59px */
    letter-spacing: -0.03em;
    /* 2 */
    color: #292929;
    margin: 0;
}

h2 {
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 140%;
    color: #3669b4;
    margin: 0;
}

h3 {
    font-style: normal;
    font-weight: bold;
    font-size: 18px;
    line-height: 123%;
    /* or 22px */
    letter-spacing: 0.1em;
    text-transform: uppercase;
    /* 3 */
    color: #000;
}

section {
    margin-bottom: 40px;
}

main .links {
    font-weight: normal;
    font-size: 14px;
    line-height: 160%;
    color: #3669b4;
}

.info {
    color: #292929;
}

.work-title a:link {
    color: #292929;
}

.work-title a:link:hover {
    color: #3669b4;
}

a:link {
    color: #3669b4;
}

ul {
    padding: 0px;
}

.wrapper {
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
}

.header-element img {
    display: none;
}

.floating-button {
    display: block;
    position: fixed;
    right: 40px;
    bottom: 40px;
}

.floating-button a:hover {
    text-decoration: none;
}

.header-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.heading {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.mobile-heading {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.mobile-heading div {
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: -0.03em;
    color: #292929;
    margin: 0;
}

.mobile-heading h2 {
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
    color: #3669b4;
    margin: 0;
}

.main-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.main-container:first-child .main-element:last-child {
    display: flex;
    align-items: center;
}

.main-container:first-child .main-element:first-child {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-direction: row;
}

.main-element {
    width: calc(50% - 6%);
}

.work {
    margin-bottom: 40px;
}

.work-header {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.work-title {
    display: flex;
    font-weight: 700;
    font-size: 26px;
    line-height: 123%;
    letter-spacing: -0.03em;
    color: #292929;
    align-items: center;
}

.work-link {
    display: flex;
    align-items: center;
    color: #000;
    text-decoration: none;
}

.work-link:hover {
    color: #3669b4;
}

.work-position {
    font-weight: normal;
    font-size: 20px;
    line-height: 123%;
    /* or 22px */
    letter-spacing: -0.03em;
    /* 2 */
    color: #292929;
    margin-bottom: 2px;
}

.work-time {
    margin-top: 2%;
    font-weight: normal;
    font-size: 14px;
    line-height: 110%;
    /* or 15px */
    /* 1 */
    color: #9d9d9d;
    text-transform: uppercase;
}

.description {
    margin-top: 2%;
    font-weight: normal;
    font-size: 14px;
    line-height: 180%;
    /* or 25px */
    /* 2 */
    color: #292929;
}

#contact-list {
    column-count: 3;
}

#contact-list li {
    padding: 8px 0;
    list-style-type: none;
    font-size: 16px;
    font-weight: 300;
}

#skills-list li {
    list-style-type: circle;
    font-size: 14px;
    font-weight: normal;
    margin-left: 14px;
}

#tools-list li {
    list-style-type: circle;
    margin-left: 14px;
    font-size: 14px;
    font-weight: normal;
}

.contact-container {
    width: 100%;
}


/**Hamburger Menu**/

#menuToggle {
    display: block;
    position: fixed;
    top: 50px;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    right: 40px;
    text-align: center;
}

#menuToggle input {
    display: block;
    width: 34px;
    height: 34px;
    position: absolute;
    top: -10px;
    left: -10px;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    -webkit-touch-callout: none;
}

#menuToggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin-bottom: 5px;
    position: relative;
    background: #272727;
    border-radius: 0px;
    z-index: 1;
    transform-origin: 3px 0px;
    transition: transform 0.2s cubic-bezier(0.77, 0.2, 0.05, 1), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
}

#menuToggle span:first-child {
    transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

#menuToggle input:checked~span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: #3669b4;
}

#menuToggle input:checked~span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked~span:nth-last-child(2) {
    opacity: 1;
    transform: rotate(-45deg) translate(0, -1px);
}


/*This is the Menu part, which gets triggered by toggle*/

#menu {
    position: fixed;
    width: 95vw;
    height: 100vh;
    margin: -100px 0 0 50px;
    padding-top: 200px;
    list-style-type: none;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    text-align: center;
    background: rgba(236, 240, 241, 0.97);
}

#menu li {
    padding: 16px 0;
    color: #000000;
    list-style-type: none;
    font-size: 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
}

#menu li a {
    color: #3669b4;
    text-decoration: none;
}

#menu li a:hover {
    color: #2c3e50;
    text-decoration: none;
}

#menuToggle input:checked~ul {
    transform: scale(1, 1);
    transform-origin: 0 0;
    transform: translate(-100%, 0);
    opacity: 1;
}

.rss {
    -webkit-mask: url("../images/rss.svg") no-repeat center;
    mask: url("../images/rss.svg") no-repeat center;
    width: 64px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #bcbdc5;
}

.rss:hover {
    background: #000000;
}

.link {
    -webkit-mask: url("../images/link.svg") no-repeat center;
    mask: url("../images/link.svg") no-repeat center;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #000000;
}

.link:hover {
    background-color: #3669b4;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 0 auto;
    flex-direction: row;
}

footer {
    font-size: 12px;
}

a {
    text-decoration: none;
    border-bottom: 1px solid #c0d6e7;
    transition: all .3s;
}

a:hover {
    color: #2e7df2;
    border-bottom: 1px solid #2e7df2;
}

code {
    display: block;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    overflow: auto;
}

.hide-content *:not(:nth-child(-n+3)) {
    display: none;
}

.show-content>div {
    display: flex;
}

@media screen and (max-width: 1000px) {
    h1 {
        font-size: 35px;
    }
    .work-header {
        display: flex;
        gap: 4px;
        align-items: flex-start;
        flex-direction: column;
    }
    .work-position {
        font-size: 18px;
    }
    .work-title.separator {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    #contact-list {
        margin: 0;
        column-count: 3;
        column-gap: 0%;
    }
    .header-element {
        display: flex;
        width: 100%;
        align-items: center;
    }
    .main-element {
        width: 100%;
    }
    .heading {
        display: none;
    }
    .mobile-heading {
        display: flex;
    }
    #menu li {
        padding: 8px 0;
        list-style-type: none;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
    }
    .main-container {
        flex-direction: column;
    }
    .main-container img {
        display: none;
    }
    .header-container {
        display: block;
        position: fixed;
        background-color: #ecf0f5ed;
        backdrop-filter: blur(8px);
        width: 100%;
    }
    .header-element img {
        display: block;
        padding: 8px 15px 8px 15px;
    }
    #contact-list li {
        font-size: 16px;
        padding: 10px 0;
    }
    .work-title.separator {
        display: none;
    }
    .floating-button {
        right: 25px;
        top: 13px;
    }
    .floating-button a {
        border-bottom: none;
    }
    main {
        margin-top: 60px;
        gap: 0px;
    }
    header {
        margin-bottom: 0;
    }
    h2 {
        letter-spacing: -0.5px;
        font-size: 22px;
    }
    #Works p,
    #Accomplishments p,
    #Publications p {
        margin: 12px 0;
    }
}

@media screen and (max-width: 440px) {
    #contact-list li {
        font-size: 14px;
        padding: 6px 0;
    }
    .floating-button {
        right: 14px;
        top: 11px;
    }
    button {
        border-radius: 0px;
    }
    button.with-icon {
        display: flex;
        padding: 0 14px;
        flex-direction: column-reverse;
        justify-content: center;
        height: 40px;
        font-size: 24px;
        border: none;
        gap: 0px;
    }
    .mobile-heading h2 {
        font-size: 13px;
    }
    button.with-icon span:first-child {
        font-size: 12px;
    }
}