@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');

html,
body {
    background-color: #201f1f;
    color: white;
    font-family: "Noto Sans", sans-serif;
}

nav {
    background-color: #0c0c0c;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

nav a {
    display: inline;
    color: white;
    font-family: "Noto Sans", sans-serif;
    padding: .8em 1em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
}

nav a:hover {
    font-size: 150%;
    background-color: black;
}

p {
    margin-top: 2%;
    text-align: center;
    font-size: 125%
}


h1 {
    padding-top: 5vh;
    display: block;
    font-size: 300%;
    text-align: center;
}

h2 {
    font-size: 130%;
    text-align: center;
}


h3 {
    text-align: center;
    font-size: 120%;
    padding-top: 5vh;
}

.intro {
    background-color: var(--background);
    border-radius: 3vw;
}

.service-text {
    padding-top: -10px;
}

.social-row {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.linkedin-link img {
    width: 35px;
    height: 35px;
    vertical-align: middle;
    margin-right: 8px;
}

.github-link img {
    width: 35px;
    height: 35px;
    vertical-align: middle;
    margin-right: 8px;
}

.project-page-container {
    display: block
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    justify-content: space-between;
    margin: 0 auto;
    width: 80%;
    padding: 10px 0;
}

.project-card-col {
    align-items: center;
    display: center;
    justify-content: center;
}

.card {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.card img {
    height: 20vw;
    width: 20vw;
    object-fit: scale-down;
}

footer {
    padding: 10px;
    text-align: center;
    margin-top: 1vh;
    /* padding-bottom: 2vh; */
}

@media screen and (max-width: 600px) {

    /* Mobile optimisation*/
    body {
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
        padding: 10px;
    }

    h1 {
        font-size: 24px;
        text-align: center;
    }

    p {
        font-size: 16px;
        text-align: center;
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        position: static;
    }

    nav a {
        font-size: 16px;
        padding: 8px;
        text-align: center;
        width: 100%;
        /* Full width for easier tapping */
        box-sizing: border-box;
    }

    .projects-container {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }

    .project-card-col {
        width: 100%;
        margin-bottom: 20px;
    }

    .card {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .card img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }

    footer {
        font-size: 14px;
        text-align: center;
        padding: 20px 0;
    }
}
