* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    /* font-family: "Roboto Condensed", sans-serif; */
    /* font-family: "PT Sans Narrow", sans-serif; */
    font-family: "Rubik", sans-serif;
    font-size: 1.6rem;
    color: var(--text-color);
    /* width: 100vw; */
    overflow-x: hidden;
}

.dark-mode {
    --primary-color: #2b6be2;
    --text-color: #fff;
    --background-color--1: #21252c;
    --background-color--2: #282d35;
}

:root {
    --primary-color: #f3a712;
    --text-color: #fff;
    --background-color--1: #08081d;
    --background-color--2: #111132;
}

/****************************************/
/* REUSABLE ELEMENTS (BIG) */
/****************************************/

section {
    /* border-bottom: 1px solid var(--text-color); */
    padding: 6rem 0;
    /* background-color: #000022; */
    /* background-color: #afd0d6; */
    background-color: var(--background-color--2);
}

.container {
    width: 130rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/****************************************/
/* REUSABLE ELEMENTS (SMALL) */
/****************************************/

/* HEADINGS */
h1 {
    font-size: 9rem;
}

h2 {
    font-size: 4.5rem;
    margin-bottom: 6rem;
}

/* LOGO */
.logo,
.logo-wrapper:link,
.logo-wrapper:visited {
    font-weight: 700;
    font-size: 3rem;
    color: var(--text-color);
    /* color: var(--background-color--1); */
    text-decoration: none;
}

.logo-wrapper:hover .logo,
.logo-wrapper:active .logo {
    color: var(--primary-color);
    /* color: var(--text-color); */
}

/* NAVIGATION */
.nav-list {
    display: flex;
    gap: 3rem;

    list-style: none;
}

.nav-link:link,
.nav-link:visited {
    color: var(--text-color);
    /* color: var(--background-color--1); */
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link:active {
    color: var(--primary-color);
    /* padding-bottom: 0.2rem; */
    /* border-bottom: 1px solid #fff; */
}

.nav-link--active:link,
.nav-link--active:visited {
    color: var(--primary-color);
    padding-bottom: 0.2rem;
    /* border-bottom: 1px solid #fff; */
}

/* CTA BUTTON */
.button--cta {
    font-weight: 700;
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--background-color--1);
}

/****************************************/
/* HEADER */
/****************************************/

header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* background-color: var(--background-color--1); */
    padding: 1.5rem 3rem;
    /* border-bottom: 1px solid var(--text-color); */

    background-color: var(--background-color--1);
}

.button-mobile-nav {
    border: none;
    background: none;
    cursor: pointer;
    display: none;
}

.icon-mobile-nav {
    width: 3rem;
    color: #fff;
}

.icon-mobile-nav#close-mobile-nav {
    display: none;
}

/****************************************/
/* FOOTER */
/****************************************/
footer {
    padding: 3rem 0;
    width: 100%;
    background-color: var(--background-color--1);
    /* border-top: 1px solid #fff; */
}

footer .container {
    display: flex;
    flex-direction: row;
    /* justify-content: space-between; */
    justify-content: center;
    gap: 3rem;
    /* position: relative; */
}

footer .logo-wrapper {
    position: absolute;
    left: 3rem;
}

footer .logo {
    font-size: 3rem;
}

footer .nav-list {
    gap: 6rem;
}

/****************************************/
/* CTA */
/****************************************/
#section--cta {
    /* background-color: var(--text-color); */
    background-color: var(--background-color--1);
    padding: 6rem 0;
}

#section--cta .container {
    border-radius: 20px;
    width: 60rem;
    /* background-color: #afd0d6; */
    background-color: var(--background-color--2);
    padding: 6rem 0;
}

#section--cta h2 {
    margin-bottom: 1rem;
}

#section--cta p {
    margin-bottom: 2rem;
    font-size: 2rem;
    width: 70%;
    text-align: center;
}

/****************************************/
/* HERO */
/****************************************/

#section--hero {
    /* background-image: linear-gradient(#000022 50%, rgba(0, 0, 34, 0) 100%); */
    background-image: url(media/main/studio_test.png);
    /* background: url(media/main/studio_test_gradient.png), linear-gradient(#000000 50%, rgba(0, 0, 0, 0) 100%); */
    /* background-blend-mode: difference; */
    background-position: 0px -150px;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    color: #fff;
    display: flex;
    justify-content: center;
    padding-top: 3rem;
}

#section--hero .container {
    display: flex;
    flex-direction: row;
}

/* .hero-information {
} */

.hero-information h1 {
    line-height: 1;
    font-size: 10rem;
    max-width: 50%;
}

.hero-information p {
    font-size: 2rem;
    margin-top: 1rem;
}

.hero-image-wrapper {
    width: 50%;
}

.hero-image {
    width: 100%;
}

/****************************************/
/* PROJECTS */
/****************************************/

.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto 3rem auto;
}

.project {
    width: 40rem;
    /* padding: 4rem; */
    border-radius: 20px;
    background-color: var(--background-color--1);
    /* background-color: var(--primary-color); */
    /* color: var(--background-color--1); */
    color: var(--text-color);
    position: relative;
}

.project:link,
.project:visited {
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a.project:hover,
a.project:active {
    transform: scale(1.02);
}

.project--full-image .project-image--full-image {
    height: 100%;
    border-radius: 20px;
}

.project-client {
    position: absolute;
    top: -1rem;
    left: -1rem;

    /* background-color: var(--text-color); */
    background-color: var(--primary-color);
    color: var(--background-color--1);
    padding: 1rem 2rem;
    border-radius: 5px 5px 0 5px;
}

.project-info {
    padding: 4rem;
}

.project-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 2;
    /* height: 20rem; */
    border-radius: 20px 20px 0 0;
    /* border: 5px solid var(--primary-color); */
    overflow: hidden;

    /* background-color: var(--primary-color); */
    /* background-color: var(--background-color--1); */
    /* margin-bottom: 2rem; */
}

.project-image {
    /* width: 100%; */
    /* height: auto; */
    width: 100%;
    height: auto;
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-description {
    margin-bottom: 2rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tag {
    width: fit-content;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    /* text-transform: uppercase; */

    /* color: var(--primary-color); */
}

.project-tag--product {
    /* background-color: var(--background-color--1);
    color: var(--primary-color); */
    background-color: var(--text-color);
    color: var(--background-color--1);
}

.project-tag--type {
    border: 1px solid var(--text-color);
    /* color: var(--background-color--1); */
    /* background-color: var(--primary-color); */
}

.link--more-projects:link,
.link--more-projects:visited {
    color: var(--text-color);
    text-decoration: none;
    font-size: 2rem;
    padding: 0.2rem;
    border-bottom: solid 2px var(--primary-color);
}

.link--more-projects:hover,
.link--more-projects:active {
    color: var(--primary-color);
}

/****************************************/
/* SECTION SKILLS */
/****************************************/
#section--skills {
    /* background-color: var(--primary-color); */
    /* color: var(--background-color--1); */
    background-color: var(--background-color--1);
}

#section--skills .container {
    width: 100rem;
}

.skills-grid {
    width: 100%;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 4rem;
    column-gap: 8rem;
}

.skill-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.skill-icon {
    height: 4rem;
}

.skill-title {
    font-size: 3rem;
}

.skill-description {
    font-size: 1.6rem;
    margin-left: 5rem;
    line-height: 1.5;
}

/****************************************/
/* PORTFOLIO */
/****************************************/

.projects-filters {
    margin: 6rem 0 4.5rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.filter-button {
    border: 1px solid var(--text-color);
    border-radius: 5px;
    padding: 1rem 2rem;
    color: var(--text-color);
    text-decoration: none;
}

.filter-button--active {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--background-color--1);
}

.under-development {
    background-color: red;
    font-weight: 700;
    font-size: 2rem;
    color: #fff;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

/* 1408px */
@media (max-width: 88em) {
    .container {
        width: 100rem;
    }
}

/* 1152px */
@media (max-width: 72em) {
    html {
        font-size: 55%;
    }

    .container {
        max-width: 90rem;
    }

    .skills-grid {
        row-gap: 4rem;
        column-gap: 4rem;
    }

    #section--hero {
        /* background-position: 0px -175px; */
        background-position: center;
        background-size: cover;
        height: fit-content;
        padding: 10rem 0;
    }

    /* #section--hero h1 {
        font-size: 9rem;
    } */
}

/* 912px */
@media (max-width: 57em) {
    .container {
        max-width: 80rem;
    }
}

/* 768px */
@media (max-width: 48em) {
    .container {
        max-width: 70rem;
        padding: 0 5rem;
    }

    #section--skills .container {
        max-width: 58rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    #section--cta .container {
        max-width: 50rem;
        padding: 4.5rem 0;
    }

    #section--cta p {
        width: 85%;
    }

    #section--featured-projects .container {
        max-width: 60rem;
    }

    footer .container {
        padding: 0;
        max-width: 50rem;
    }

    footer .nav-list {
        gap: 3rem;
        text-align: center;
    }

    /* MOBILE NAVIGATION */
    .button-mobile-nav {
        display: block;
        z-index: 9999;
    }

    header nav {
        background-color: var(--background-color--1);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* transform: translateX(100%); */

        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease-in;

        z-index: 1;

        /* Hide navigation */
        opacity: 0;

        /* make unaccessible to mouse and keyboard */
        pointer-events: noneM;

        /* hide from screen readers */
        visibility: hidden;
    }

    .nav-open nav {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        /* transform: translateX(0); */
    }

    .nav-open nav ul {
        align-items: center;
    }

    .nav-open .icon-mobile-nav#close-mobile-nav {
        display: block;
    }

    .nav-open .icon-mobile-nav#open-mobile-nav {
        display: none;
    }

    .nav-list {
        flex-direction: column;
        gap: 3rem;
    }

    .nav-list-item a:link,
    .nav-list-item a:visited {
        font-size: 2.4rem;
    }
}

/* 592px */
@media (max-width: 37em) {
    html {
        font-size: 50%;
    }

    h2 {
        text-align: center;
    }

    #section--hero h1,
    #section--all-projects h1 {
        font-size: 7rem;
    }

    #section--featured-projects .container,
    #section--all-projects .container {
        max-width: 45rem;
        padding: 0 3rem;
        margin: 0 auto;
    }

    .project {
        width: fit-content;
    }

    #section--skills .container {
        max-width: 45rem;
        padding: 0 3rem;
    }

    #section--cta .container {
        max-width: 40rem;
        padding: 4.5rem 0;
    }

    footer .container {
        max-width: 100vw;
    }
}

/* 368px */
@media (max-width: 23em) {
    #section--hero h1,
    #section--all-projects h1 {
        font-size: 6rem;
    }

    #section--hero .container,
    #section--hero {
        padding: 0 3rem;
        justify-content: center;
        align-items: center;
    }

    h2 {
        font-size: 4rem;
    }

    h3 {
        font-size: 3rem;
    }

    #section--hero {
        padding: 5rem 0;
    }

    #section--featured-projects .container,
    #section--all-projects .container {
        max-width: 35rem;
        padding: 0 1rem;
        margin: 0 auto;
    }

    .project-info {
        padding: 3rem;
    }

    #section--skills .container {
        max-width: 100%;
    }

    .skill-title {
        font-size: 2.5rem;
    }

    #section--cta .container {
        max-width: 30rem;
    }
}
