* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    color: black;
    font-size: 16px;
    line-height: 1.5em;
    font-weight: 400;
    margin: 0;
}

div.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

p,
ul,
ol,
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.25em;
}

a.btn {
    display: inline-block;
    width: auto;
    background-color: black;
    color: white;
    font-size: 1.5em;
    font-weight: 500;
    text-decoration: none;
    padding: 1em 2em;
    transition: 0.25s;
}

a.btn:hover {
    background-color: #4F4F4F;
    transition: 0.25s;
}

/* header styles */
header {
    background-color: #D9D9D9;
}

header div.wrapper {
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    font-weight: 500;
}

header nav a:link,
header nav a:visited {
    color: black;
    text-decoration: none;
}

header nav a:hover {
    color: #4C4C4C;
}

/* hero styles */
#hero {
    min-height: 600px;
    background-image: url("assets/hero-image.png");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* about */

#about {
    background-color: #D9D9D9;
}

#about div.wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
    padding: 120px 0;
}

div.about-right {
    width: 50%;
    width: calc(50% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

div.about-left {
    width: 50%;
    width: calc(50% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

div.about-left img {
    width: 100%;
}

#gallery {
    min-height: 200px;
}

/* gallery */

#gallery {
    min-height: 200px;
    background-color: white;
}

#gallery div.wrapper {
    padding: 60px 20px;
}

#gallery h2 {
    padding-top: 40px;
    text-align: center;
}

div.gallery {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

div.galllery a {
    width: 25%;
}



div.gallery img {
    width: 100%;
}

/* inspo */

#inspo {
    background-color: #4C4C4C;
    padding: 60px 0;
    text-align: center;
}

p.quote {
    font-weight: 300;
    color: white;
    font-size: 3em;
}

p.credit {
    color: white;
    font-size: 1.5em;
    font-weight: 700;
}

/* project*/

#projects h2 {
    padding-top: 40px;
    text-align: center;
}

div.card {
    display: flex;
    flex-direction: row;
    padding-bottom: 40px;
}

div.card img {
    width: 50%;
}

div.card-text {
    background-color: #F5F5F5;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

div.card-text h4 {
    font-size: 1.5em;
}

/* footer */
footer {
    background-color: #BABABA;
    padding: 10px 0 30px;
}

footer div.wrapper {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px 20px;
}

footer nav a:link,
footer nav a:visited {
    color: black;
    text-decoration: none;
}

.social a img {
    width: 48px;
}

div.social {
    display: flex;
    flex-direction: row;
    gap: 16px
}

.social a:hover {
    opacity: 0.6;
}

/************ MEDIA QUERIES ************/
/************     A.K.A.    ************/
/************ MOBILE STYLES ************/

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

    /* Header */
    header div.wrapper {
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
        font-size: 1.5em;
    }

    nav ul {
        text-align: center;
        padding-bottom: 20px;
        gap: clamp(12px, 4vw, 40px);
    }

    /* About section */
    #about div.wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 80px 20px;
    }

    div.about-left,
    div.about-right {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    div.about-right {
        padding-left: 30px;
        padding-right: 30px;
    }

    div.about-left img {
        width: 80%;
    }

    /* Gallery */
    div.gallery {
        flex-direction: column;
        gap: 20px;
    }

    /* Projects */
    div.card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    div.card img,
    div.card-text {
        width: 80%;
    }

    /* Footer */
    footer div.wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 16px 10px 20px;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {

    /* Header */
    header div.wrapper {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .name {
        position: relative;
        left: 20px;
    }

    /* Gallery */
    div.gallery {
        gap: 15px;
    }

    /* Projects */

    div.card-text h4 {
        font-size: 1.2em;
    }

    p.credit {
        font-size: 1em;
    }

    /* Buttons */
    a.btn {
        font-size: 1.2em;
        padding: 0.8em 1.5em;
    }

    /* Footer */
    .social a img {
        width: 40px;
    }
}