@import url('https://fonts.googleapis.com/css2?family=Libre+Barcode+39+Extended+Text&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Outfit', sans-serif;
}

html {
    min-height: 100%;
}

h1, h2, h3 {
    margin: 0;
    text-transform: uppercase;
}

h1 {
    margin: 2rem 4rem 4rem;
    font-size: 6rem;
    font-weight: 400;
    font-family: 'Libre Barcode 39 Extended Text', cursive;
    text-align: center;
    letter-spacing: 10px;
    filter: drop-shadow(0 1px 3px);
}

h2 {
    letter-spacing: 6px;
    filter: drop-shadow(0 1px 2px);
    padding-bottom: 16px;
}

h2::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    background-color: white;
    width: 100px;
    height: 5px;
    clip-path: polygon(0 0, 0 100%, 75% 100%, 100% 0%, 100% 0);
}

a {
    color: var(--color-text);
    text-decoration: none;
}

p {
    line-height: 1.4;
}

p:first-child {
    margin-top: 0;
}

p:last-child {
    margin-bottom: 0;
}

article {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
}

nav > ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
}

nav a {
    padding: 16px;
}

nav li {
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

nav li:last-child {
    border-right: none;
}

.banner {
    display: flex;
    flex-direction: row;
    width: 100%;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.banner::-webkit-scrollbar {
    display: none;
}

.banner-img {
    margin-top: 48px;
    margin-bottom: 48px;
    margin-left: -125px;
    width: calc(25% + 125px);
    height: 50vh;
    min-width: 25%;
    min-height: 50vh;
    object-fit: cover;
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.75);

    background-attachment: fixed;
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
}

.banner *:last-child {
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.banner *:first-child {
    clip-path: polygon(0% 0%, 100% 0%, 75% 100%, 0% 100%);
}

main {
    margin: 0 auto;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media screen and (min-width: 850px) {
    main {
        width: 80%;
    }
}

@media screen and (min-width: 1200px) {
    main {
        width: 70%;
    }
}

@media screen and (min-width: 1600px) {
    main {
        width: 60%;
        max-width: 1200px;
    }
}

.tag {
    margin: 0 4px;
    padding: 6px 16px;
    border-radius: 50px;
    line-height: 1;
    background: linear-gradient(
        -45deg,
        rgba(209, 65, 70, 0.4) 0%,
        rgba(204, 65, 209, 0.4) 100%
    );
}

.card-alt .tag {
    background: linear-gradient(
        45deg,
        rgba(70, 65, 209, 0.4) 0%,
        rgba(209, 65, 204, 0.4) 100%
    );
}

.tag:first-child {
    margin-left: 0;
}

.tag:last-child {
    margin-right: 0;
}

footer {
    margin: 40px 0;
    width: 100%;
    text-align: center;
}


.card {
    width: 100%;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

article {
    width: 100%;
}

.projects-row {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media screen and (min-width: 1200px) {
    article {
        width: 50%;
    }


    .projects-row {
        display: flex;
        flex-direction: row;
        gap: 32px;
    }

    .projects-row,
    .projects {
        gap: 16px;
    }
}
