* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* general styling */

body {
    background: #000;
    font-family: 'Alata', Arial, Helvetica, sans-serif;
    width: 100%;
    overflow-x: hidden;
}

ul {
    list-style: none;
    margin: 0 -0.5rem;
}

ul li {
    padding: 0 .5rem;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
}

ul li a {
    font-family: 'Alata', Arial, Helvetica, sans-serif;
    color: #fff;
    position: relative;
    text-decoration: none;
}

ul li a:after {    
    content: "";
    position: absolute;
    width: 40%;
    height: 2px;
    bottom: -.5rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: #FFF;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

ul li a:hover:after { 
    visibility: visible;
    transform: scaleX(1);
}

.container {
    overflow-x: hidden;
}

header, footer, section {
    background-color: #fff;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 5rem;
}

h1 {
    color: #fff;
    font-size: 3rem;
    line-height: 3.2rem;
}

h2 {
    color: hsl(0, 0%, 41%);
    font-size: 2rem;
}

p {
    color: hsl(0, 0%, 55%);
    font-size: .8rem;
    padding-top: .5rem;
}

/* header */

header {
    background-image: url("../images/desktop/image-hero.jpg");
    background-repeat: none;
    background-position: center;
    background-size: cover;
}

header .headline {
    display: inline-block;
    border: #fff 2px solid;
    padding: 1.5rem;
    margin: 4rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-self: center;
}

nav ul {
    display: flex;
    flex-direction: row;
}

/* intro section */

#intro {
    position: relative;
}

#intro img {
    width: 60%;
}


#intro .intro-content {
    width: 50%;
    position: absolute;
    bottom: -10%;
    right: 0;
    background-color: #fff;
    padding: 4rem;
}

/* project section */

#showcase ul, #showcase ul li {
    margin:0;
    padding:0;
}

.title-header {
    display: flex;
    justify-content: space-between;
}

.project-content {
    margin: 2rem 0;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: .5rem;
} 

.project-block {
    position: relative;
}

.project-img {
    background-color: #fff;
    position: relative;
    display: block;
}

.project-img img {
    display: block;
    width: 100%;
    opacity: 1;
    z-index: -1;
}

.project-img-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top:0;
    left:0;
    background: linear-gradient(to top, rgba(0,0,0,.8), 50%, transparent);
}

.project-title {
    display: block;
    height: 100%;
    width: 100%;
    background: #000;
    z-index: 1;
    /* background: linear-gradient(to top, rgba(0,0,0,.8), transparent); */
}

.project-title h3 {
    color: #fff;
    position: absolute;
    padding: 1.2rem;
    line-height: 1.5rem;
    bottom: 0;
}

.project-list a {
    display: inline-block;
}

/* on hover for project section*/
.project-list a:hover .project-img-overlay {
    background: rgba(255,255,255,.7);
    transition: all ease-in .1s;
}

.project-list a:hover .project-title h3 {
    background: none;
    color: #000;
}

/* footer */

footer {
    background-color: #000;
    color: #fff;
    display: flex;
    font-size: .7rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5rem;
}

footer .right {
    text-align: right;
}

footer .left {
    text-align: left;
}

footer div {
    padding: .5rem 0;
}

footer ul {
    display: flex;
}

footer #footer-logo img{
    height: 1.2rem;
}

footer #social ul{
    justify-content: flex-end;
}

footer #social ul li a:hover:after {
    width: 100%;
}

footer #copyright {
    color:hsl(0, 0%, 55%);
}

@media (max-width: 549px) {
    body {
        font-size: 1rem;
    }

    header, footer, section {
        padding: 3rem 1rem;
    }

    header .headline {
        width: 100%;
        margin: 6rem 0;
    }

    #intro img {
        width: 100%;
    }

    #intro .intro-content {
        width: 100%;
        position: relative;
        padding: 2rem;
        text-align: center;
    }

    .project-list {
        grid-template-columns: 1fr;
    }

    .project-title h3 {
        width: 50%;
        font-size: 1.8rem;
        line-height: 2rem;
    }

    footer, footer .right, footer .left, footer #sitemap ul {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        font-size: 1rem;
        line-height: 2rem;
    }

    footer #footer-logo img {
        height: auto;
    }

    footer #sitemap a{

    }

    footer #social ul{
        justify-content: center;
    }
}

