@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=MedievalSharp&family=Noto+Sans+Old+Italic&family=Raleway:ital,wght@0,200;1,200&display=swap');

html {
    font-size: 62.5%;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 10px 40px;
}

a {
    text-decoration: none;
}

header a {
    text-decoration: none;
    color: #fff;
    margin-right: 10px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    display: flex;
    background-image: url('Final assets/foundation.png');
    height: max-content;
    padding: 60px;
    background-size: cover;
    color: #000000;
    margin-bottom: 60px;
    background-position: center;
    font-size: 18px;
    justify-content: center;
    align-items: center;
}

.hero h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.33;
    margin-bottom: 30px;
}

.intro {
    width: 70vw;
    background-color: white;
    border-radius: 30px;
    padding: 5%;
}

span {
    font-size: 13px;
    font-style: italic;
    color: #999999;
}

.project-wrap {
    padding-top: 20px;
    padding-bottom: 100px;
}

.showFilters {
    color: #0c0a0a;
    display: none;
}

/* TEST start*/

.filtersLists {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    margin-bottom: 80px;
}

.filtersLists a {
    flex-shrink: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
    padding: 5px 10px;
    border: 1px solid #000000;
    border-radius: 20px;
    white-space: nowrap;
    /* Ensure text stays on one line */
}

.filtersLists a.selected {
    background-color: #ee091c;
    color: #fff;
    border: none;
}

.filtersLists {
    scrollbar-width: none;
    /* For Firefox */
    -ms-overflow-style: none;
    /* For Internet Explorer and Edge */
}

.filtersLists::-webkit-scrollbar {
    display: none;
    /* For Chrome, Safari, and Opera */
}

/* TEST end*/

.project-wrap .projects {
    display: flex;
    flex-wrap: wrap;
    min-height: 70vh;
    align-content: flex-start;
}

.website {
    width: 100%;
    height: 500px;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 20px;
}

.website img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
}

.overlay {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 20px;
    color: #fff;
    font-weight: 300;
    border-radius: 20px;
}

.website:hover .overlay {
    background-color: rgba(0, 0, 0, 0.65);
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.website p {
    position: absolute;
    bottom: 20px;
    font-size: 20px;
    font-weight: 400;
}

.website h4 {
    position: absolute;
    font-weight: 400;
}

/* Mobile start*/

@media screen and (max-width: 900px) {
    .hero h2 {
        font-size: 25px;
        margin-bottom: 30px;
    }

    .hero {
        height: 100%;
        margin-bottom: 40px;
        padding: 40px;
    }

    .intro {
        padding: 30px;
        font-size: 15px;
    }
}

@media screen and (max-width: 800px) {
    .website {
        width: 100%;
        height: 300px;
    }
}

@media screen and (max-width: 440px) {
    body {
        font-size: 1.3rem;
        background-color: #000000;
    }

    .overlay {
        background-color: rgba(0, 0, 0, 0.65);
        opacity: 0;
    }

    .website p {
        font-size: 1.4rem;
    }

    .website {
        width: 100%;
        margin-bottom: 20px;
    }

    .showFilters {
        display: flex;
        margin-bottom: 10px;
    }

    .filtersLists {
        display: none;
        overflow-x: auto;
        margin-bottom: 50px;
    }

    .filtersLists a {
        display: flex;
        flex-direction: row;
        overflow: hidden;
        width: max-content;
    }
}

@media (min-width: 440px) {
    .filtersLists {
        display: flex !important;
    }
}