html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #cacaca;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
}

.alink {
    text-decoration: underline;
    color: #fff;
    transition-duration: .5s;
}

.alink:hover {
    color: #cacaca;
}

/* Navigation Bar */

.navBar {
    position: fixed;
    left: 0;
    background-color: #333842;
    width: 5%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.navBarLink {
    width: 5vw;
    height: 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.navBarLink:hover {
    cursor: unset;
}

.navBarIcon {
    color: #fff;
    transition-duration: .25s;
}

.navBarIcon:hover {
    transform: scale(1.1);
    color: #cacaca;
    cursor: pointer;
}

/* Home Page */

.languageSwitcher {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    background-color: #333842;
    top: 0;
    right: 0;
    padding: 20px 20px;
    border-bottom-left-radius: 32px;
    width: 250px;
    margin: 0;
}

.langButton {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    cursor: pointer;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* No background color */
    background-size: cover; /* Ensure flag covers the entire button */
    background-position: center; /* Center the flag */
    background-repeat: no-repeat; /* Prevent tiling */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow */
    transition: transform 0.2s ease; /* Smooth hover effect */
}

.langButton:hover {
    transform: scale(1.1); /* Enlarge slightly on hover */
}

.homePage {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.homePageContent {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-left: 9%;
    margin-right: 11%;
    width: 80%;
    flex: 1;
}

.homePageImg {
    width: 23%;
}

.profileImg {
    width: 100%;
    height: auto;
    border-radius: 200px;
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

.homePageTexts {
    width: 62%;
    height: 20%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    align-items: center;
}

.welcomeText {
    color: #333842;
    text-align: center;
    width: 100%;
    font-size: 64px;
    padding: 0;
    margin: 0;
}

.contactButton {
    padding: 24px 24px;
    border: none;
    border-radius: 32px;
    background-color: #333842;
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    text-decoration: none;
    align-items: center;
    font-size: 16px;
    transition-duration: .5s;
}

.contactButton:hover {
    cursor: pointer;
    transform: scale(1.1);
    background-color: #0f0f10;
}


/* Projects Page */

.projectsPage {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #232427;
}

.projectsPageContent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 46px;
    align-items: center;
    margin-left: 5%;
    width: 95%;
    flex: 1;
}

.projectsTitle {
    color: #fff;
    text-align: center;
    width: 100%;
    font-size: 64px;
    padding: 0;
    margin: 0;
}

.projectsContainer {
    display: flex;
    width: 90%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
}

.projectDiv {
    background-color: #333842;
    border-radius: 50px;
    width: 45%;
    height: 50vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    overflow: hidden;
}

.projectDivDefault {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    height: 50vh;
}

.projectDivExpanded {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex: 2;
    height: calc(100% - 48px);
    border-radius: 32px;
    background-color: #232427;
    padding: 24px;
}

.expanded {
    width: 100%;
    background-color: #0f0f10;
    color: #fff;
    z-index: 10;
    position: relative;
}

.projectDivTitle {
    font-size: 32px;
    padding: 0;
    margin: 0;
    color: #fff;
}

.projectDivIcon {
    color: #fff;
}

.projectDivHighlights {
    margin: 0 10px;
    font-size: 24px;
    color: #fff;
}

.projectDivButton {
    width: max-content;
    padding: 12px 24px;
    border: none;
    border-radius: 32px;
    border: 1px solid #fff;
    background: none;
    color: #fff;
    font-size: 16px;
    transition-duration: .5s;
}

.projectDivButton:hover {
    cursor: pointer;
    transform: scale(1.1);
    background-color: #fff;
    color: #333842;
}

.projectPage {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: calc(100% - 48px - 24px);
}

.projectTitle {
    font-size: 32px;
    padding: 0;
    margin: 0;
    color: #fff;
}

.projectContent {
    display: flex;
    position: relative;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.projectContentImg {
    width: auto;
    height: 90%;
}

.projectContentText {
    font-size: 20px;
    text-align: left;
}

.projectNavigators {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.projectNavigatorsArrow {
    text-decoration: none;
    color: #fff;
    background-color: #333842;
    padding: 12px;
    border-radius: 50%;
    transition-duration: .5s;
}

.projectNavigatorsArrow:hover {
    cursor: pointer;
    background-color: #0f0f10;
}

.projectPageIndicator {
    font-size: 16px;
    padding: 0;
    margin: 0;
    color: #fff;
}

/* Contact Page */

.contactPage {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #0f0f10;
}

.contactPageContent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 46px;
    align-items: center;
    margin-left: 5%;
    width: 95%;
    flex: 1;
}

.contactTitle {
    color: #fff;
    text-align: center;
    width: 100%;
    font-size: 64px;
    padding: 0;
    margin: 0;
}

.contactContainer {
    display: flex;
    width: 25%;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.contactDiv {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.contactLink {
    text-decoration: none;
    color: #fff;
    background-color: #232427;
    padding: 16px;
    border-radius: 50%;
    transition-duration: .5s;
}

.contactLink:hover {
    cursor: pointer;
    transform: scale(1.1);
    background-color: #333842;
}

.contactText {
    color: #fff;
    font-size: 16px;
}

/* Responsiveness */

/* Styles for tablets (768px and below) */
@media (max-width: 768px) {
    .homePageContent {
        margin-right: 0%;
        width: 90%;
    }
    .homePageImg {
        width: 40%;
    }
    .projectDivTitle {
        font-size: 24px;
    }
    .projectDivHighlights {
        font-size: 16px;
    }
    .projectTitle {
        font-size: 24px;
    }
    .projectContentImg {
        height: 40%;
    }
    .projectContentText {
        font-size: 12px;
    }
}

/* Styles for mobile devices (480px and below) */
@media (max-width: 480px) {
    .navBar {
        position: fixed;
        top: 0;
        left: 0;
        background-color: #333842;
        width: calc(100% - 50px);
        height: 50px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 2px 25px;
        color: #fff;
    }
    .welcomeText {
        color: #333842;
        text-align: center;
        width: 100%;
        font-size: 32px;
        padding: 0;
        margin: 0;
    }
    .homePageContent {
        margin-right: 0%;
        width: 90%;
    }
    .homePageImg {
        width: 60%;
    }
    .contactButton {
        padding: 16px 16px;
        font-size: 12px;
    }
    .languageSwitcher {
        flex-direction: column;
        top: auto;
        bottom: 70px;
        right: 0;
        border-top-left-radius: 32px;
        width: 20px;
        height: 125px;
    }
    .langButton {
        width: 25px;
        height: 25px;
    }
    .projectsPageContent {
        margin-left: 0;
        width: 100%;
        flex: 1;
    }
    .projectDivTitle {
        font-size: 16px;
    }
    .projectContent {
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
    }
    .projectDivHighlights {
        font-size: 12px;
    }
    .projectDivButton {
        padding: 6px 12px;
        font-size: 11px;
    }
    .projectTitle {
        font-size: 16px;
    }
    .projectContentImg {
        height: 30%;
    }
    .projectNavigators {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
    }
    .projectNavigatorsArrow {
        padding: 6px;
    }
    .projectPageIndicator {
        font-size: 10px;
    }
    .projectContentText {
        font-size: 9px;
    }
    .contactPageContent {
        margin-left: 0;
        width: 100%;
    }
    .contactContainer {
        width: 80%;
    }
}

/* Page transitions */

.spacer {
    aspect-ratio: 1080/100;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.t1 {
    background-image: url('waves/wave-page1.svg');
}

.t2 {
    background-image: url('waves/wave-page2.svg');
}

/* Text */

.barlow-thin {
    font-family: "Barlow", serif;
    font-weight: 100;
    font-style: normal;
}

.barlow-extralight {
    font-family: "Barlow", serif;
    font-weight: 200;
    font-style: normal;
}

.barlow-light {
    font-family: "Barlow", serif;
    font-weight: 300;
    font-style: normal;
}

.barlow-regular {
    font-family: "Barlow", serif;
    font-weight: 400;
    font-style: normal;
}

.barlow-medium {
    font-family: "Barlow", serif;
    font-weight: 500;
    font-style: normal;
}

.barlow-semibold {
    font-family: "Barlow", serif;
    font-weight: 600;
    font-style: normal;
}

.barlow-bold {
    font-family: "Barlow", serif;
    font-weight: 700;
    font-style: normal;
}

.barlow-extrabold {
    font-family: "Barlow", serif;
    font-weight: 800;
    font-style: normal;
}

.barlow-black {
    font-family: "Barlow", serif;
    font-weight: 900;
    font-style: normal;
}

.barlow-thin-italic {
    font-family: "Barlow", serif;
    font-weight: 100;
    font-style: italic;
}

.barlow-extralight-italic {
    font-family: "Barlow", serif;
    font-weight: 200;
    font-style: italic;
}

.barlow-light-italic {
    font-family: "Barlow", serif;
    font-weight: 300;
    font-style: italic;
}

.barlow-regular-italic {
    font-family: "Barlow", serif;
    font-weight: 400;
    font-style: italic;
}

.barlow-medium-italic {
    font-family: "Barlow", serif;
    font-weight: 500;
    font-style: italic;
}

.barlow-semibold-italic {
    font-family: "Barlow", serif;
    font-weight: 600;
    font-style: italic;
}

.barlow-bold-italic {
    font-family: "Barlow", serif;
    font-weight: 700;
    font-style: italic;
}

.barlow-extrabold-italic {
    font-family: "Barlow", serif;
    font-weight: 800;
    font-style: italic;
}

.barlow-black-italic {
    font-family: "Barlow", serif;
    font-weight: 900;
    font-style: italic;
}