@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.fixed-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    color: whitesmoke;
    padding: 12px 12px;
    z-index: 10;
    text-align: center;
    width: 100%;
    background-color: rgb(35, 35, 35, 0.95);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding-left: 80px;
    padding-right: 80px;
}

#logo {
    height: 40px;
    display: flex;
    align-self: center;
}

.nav-links {
    list-style: none;
    display: flex;
    align-self: center;
}

.nav-links li {
    margin: 0px 20px;
}

.nav-links a {
    color: #E6BE8A;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links {
    position: relative;
}

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: #E6BE8A;
    transition: all 0.3s ease;
    width: 0;
    pointer-events: none;
}

.nav-links a.active {
    color: whitesmoke;
}

.dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
    text-decoration: none;
}


.dropdown-content {
    position: absolute;
    background-color: rgb(35, 35, 35, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 180px;
    z-index: 1;
    text-align: left;
    font-size: 12pt;
    left: 0;
    top: 52px;
    right: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.dropdown-content li {
    list-style: none;
    margin: 0;
    padding-top: 6px;
    padding-left: 12px;
}

.dropdown-content li a {
    color: #E6BE8A;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content li a:hover {
    color: whitesmoke;
}

.dropdown:hover .dropdown-content {
    max-height: 100px;
    opacity: 1;
}

body {
    color: whitesmoke;
    background-color: black;
    font-family: 'Montserrat', sans-serif;
    font-size: 12pt;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    overflow-x: hidden;
}

a {
    color: #E6BE8A;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 400;
}

a:hover {
    color: whitesmoke;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 400;
}

h1 {
    color: whitesmoke;
    font-family: 'Montserrat', sans-serif;
    font-size: 56pt;
    font-weight: 500;
    line-height: normal;
}

h2 {
    color: whitesmoke;
    font-family: 'Montserrat', sans-serif;
    font-size: 24pt;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
}

h3 {
    color: whitesmoke;
    font-family: 'Montserrat', sans-serif;
    font-size: 48pt;
    font-weight: 500;
    line-height: normal;
}

h4 {
    color: #E6BE8A;
    font-family: 'Montserrat', sans-serif;
    font-size: 16pt;
    font-weight: 500;
    line-height: normal;
    text-transform: none;
    margin: 6px 20px;
}

h5 {
    color: whitesmoke;
    font-family: 'Montserrat', sans-serif;
    font-size: 12pt;
    font-weight: 400;
    line-height: normal;
    text-transform: none;
    margin: 6px 20px;
}

h6 {
    color: whitesmoke;
    font-family: 'Montserrat', sans-serif;
    font-size: 32pt;
    font-weight: 400;
    line-height: normal;
}


header {
    background-color: #232323;
    min-height: 730px;
    padding-left: 120px;
    padding-right: 120px;
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    box-sizing: border-box;
}

.intro {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

header p {
    color: whitesmoke;
    font-family: 'Montserrat', sans-serif;
    font-size: 32pt;
    font-weight: 400;
    margin: 0%;
}

#profile {
    max-width: 500px;
    min-width: 0;
    max-height: 100%;
    min-height: 0;
    width: auto;
    height: auto;
    box-sizing: border-box;
}

.icons {
    max-width: 100%;
    padding-bottom: 20px;
    padding-top: 80px;
    gap: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.icons img {
    max-height: 64px;
    max-width: 100%;
    min-width: 0;
    height: auto;
    width: auto;
    box-sizing: border-box;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 1.5s infinite;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.scroll-down-indicator img {
    height: 24px;
    width: auto;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.5;
    }

    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

#aboutme {
    scroll-margin-top: 120px;
}

.aboutme {
    padding-top: 40px;
    padding-left: 120px;
    padding-right: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-image: url("img/backgroundvisual.png");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 60%;
}

.aboutme p {
    padding-left: 80px;
    padding-right: 80px;
    text-align: left;
}

.background {
    padding-top: 40px;
    padding-left: 120px;
    padding-right: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-image: url("img/backgroundvisual2.png");
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 50%;
}

#backgr {
    scroll-margin-top: 120px;
}

#background {
    gap: 100px;
    align-self: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    box-sizing: border-box;
}

#background1,
#background2 {
    max-height: 520px;
    min-height: 0;
    min-width: 0;
    width: auto;
    height: auto;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.cvbutton {
    color: black;
    background-color: #E6BE8A;
    height: 40px;
    width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.cvbutton:hover {
    background-color: whitesmoke;
}


#project {
    scroll-margin-top: 120px;
}

#project20,
#project24,
#project25 {
    scroll-margin-top: 160px;
}

.project {
    padding-top: 40px;
    padding-left: 120px;
    padding-right: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.project nav {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    flex-direction: row;
}

.projectboxbig {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
}

.projectbox {
    background-color: #232323;
    width: 260px;
    max-height: 380px;
    box-sizing: border-box;
    display: flex;
}

.projectbox a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-decoration: none;
    width: 100%;
    height: 100%;
    margin-bottom: 20px;
}

.projectbox img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}


.projectbox:hover {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.year {
    max-height: 40px;
    padding-right: 120px;
    padding-left: 120px;
    padding-bottom: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 20px;
}

.line {
    background-color: #E6BE8A;
    height: 2px;
    width: max-content;
    flex-grow: 1;
    box-sizing: border-box;
}

footer {
    height: 200px;
    padding-left: 120px;
    padding-right: 120px;
    padding-bottom: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    background-image: url("img/backgroundvisual3.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 75%;
}

.hamburger {
    display: none;
}

@media screen and (max-width: 1024px) {
    * {
        box-sizing: border-box;
    }

    .fixed-nav,
    .nav-container,
    header,
    .aboutme,
    .background,
    .project,
    .projecttable,
    .year,
    footer {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .fixed-nav {
        background-color: #232323;
    }

    .nav-container {
        flex-direction: row-reverse;
        padding: 0;
        width: 100vw;
    }

    .nav-underline {
        display: none;
        pointer-events: none;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #232323;
        position: absolute;
        top: 40px;
        left: 0;
        right: 0;
        padding-left: 0;
        padding-bottom: 20px;
        z-index: 9;
        font-size: 16pt;
    }

    .nav-links.show {
        display: flex;
        align-items: center;
        overflow: visible;
    }

    .hamburger {
        width: 36px;
        height: 30px;
        position: relative;
        cursor: pointer;
        z-index: 11;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .bar {
        position: absolute;
        width: 36px;
        height: 4px;
        background-color: #E6BE8A;
        transition: all 0.3s ease;
    }


    .nav-links li {
        margin: 20px 0 20px;
    }

    .bar:nth-child(1) {
        top: 0;
    }

    .bar:nth-child(2) {
        top: 13px;
    }

    .bar:nth-child(3) {
        top: 26px;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg);
        top: 13px;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg);
        top: 13px;
    }

    .scroll-down-indicator {
        display: none;
    }

    .dropdown-content {
        display: none;
        max-height: none !important;
    }

    .dropdown-content.show {
        position: static;
        width: 100%;
        background-color: #232323;
        max-height: none;
        opacity: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 10px;
        padding-bottom: 10px;
        overflow: visible;
    }

    .dropdown-content.show li {
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .dropdown-content.show li a {
        display: block;
        width: 100%;
        color: #E6BE8A;
        text-align: center;
        font-size: 12pt;
        text-align: center;
        padding: 0;
    }

    .dropbtn {
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 42pt;
    }

    h2 {
        font-size: 16pt;
    }

    h3 {
        font-size: 32pt;
    }

    h6 {
        font-size: 20pt;
    }

    header {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        height: auto;
        padding-top: 60px;
        padding-bottom: 60px;
        padding-left: 5vw;
        padding-right: 5vw;
        gap: 40px;
    }

    header p {
        font-size: 20pt;
    }

    #profile {
        max-width: 100%;
        min-width: 0;
        max-height: 500px;
        min-height: 0;
        width: auto;
        height: auto;
        box-sizing: border-box;
    }

    .icons {
        max-width: 100%;
        gap: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        flex-wrap: nowrap;
    }


    .aboutme {
        height: auto;
        background-size: 100%;
        background-position: top;
    }

    .aboutme p {
        padding-left: 0;
        padding-right: 0;
    }

    .background {
        background-size: 100%;
    }

    #background {
        gap: 20px;
    }

    #background1,
    #background2 {
        max-height: 460px;
        min-height: 0;
        min-width: 0;
        width: auto;
        height: auto;
        box-sizing: border-box;
    }

    .year {
        gap: 10px;
    }

    footer {
        height: auto;
        padding-bottom: 20px;
        padding-top: 40px;
    }
}