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

html {
    font-size: 62.5%; /* 10px */
    scroll-behavior: smooth;
}

@media(max-width: 800px) {
    html {
        font-size: 55%;
    }
}

:root {
    --pink: #ff3250;
    --white:  #ffffff;
    --off-white: #ffffffc5;
    --black: #010101;

    --nav-height: 10rem;

    --fs-h1: 7.5rem;
    --fs-h2: 6rem;
    --fs-h3: 4rem;
    --fs-h4: 3rem;
    --fs-body: 2rem;

    --gutter-xx-small: 2rem;
    --gutter-x-small: 3rem;
    --gutter-small: 4rem;
    --gutter-med: 6rem;
    --gutter-large: 8rem;
    --gutter-x-large: 10rem;
    --gutter-xx-large: 20rem;
}

body {
    font-family: 'Jost', sans-serif;
    color: var(--off-white);
    font-size: var(--fs-body);
    line-height: 1.7;
    font-weight: 300;
    background-color: var(--black);
    overflow-x: hidden;
}

a {
    color: white;
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 1.2rem 4rem;
    border: 1px solid var(--pink);
    font-size: 2.2rem;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    display:block;
    height: 100%;
    width: 100%;
    background: var(--pink);
    transition: all 0.2s cubic-bezier(1, 0.68, 0.16, 0.9);
    z-index: -1;
}

.btn:hover::after {
    right: 0;
}

.btn-text {
    display: inline-block;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid var(--pink);
}

.btn-text::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    display:block;
    height: 100%;
    width: 100%;
    background: var(--white);
    transition: all 0.2s cubic-bezier(1, 0.68, 0.16, 0.9);
    z-index: -1;
}

.btn-text:hover::after {
    right: 0;
    background: var(--pink);
}

.btn,
.btn-text {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

img {
    object-fit: contain;
    max-width: 100%;
}

section {
    padding: var(--gutter-x-large) 0;
}

.row {
    max-width: 1180px;
    margin: 0 auto;
}

@media(max-width: 1350px) {
    .row {
        padding: 0 var(--gutter-large);
    }
}

@media(max-width: 850px) {
    .row {
        padding: 0 var(--gutter-med);
    }
}

@media(max-width: 560px) {
    .row {
        padding: 0 var(--gutter-small);

    }
}

@media(max-width: 560px) {
    .row {
        padding: 0 var(--gutter-xx-small);

    }
}

h1, h2, h3 {
    font-weight: 400;
    color: var(--white);
    line-height: 1.3;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

@media(max-width: 590px) {
    h1 {
        font-size: var(--fs-h2);
    }

    h2 {
        font-size: var(--fs-h3);
    }

    h3 {
        font-size: var(--fs-h4);
    }
}

h2::after {
    content: "";
    display: block;
    height: 0.3rem;
    width: 12rem;
    margin-top: 1rem;
    background-color: var(--pink);
}

/*Header Setup*/

header {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.4)) , url('images/header2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media(max-width: 540px) {
    header {
        justify-content: center;
        text-align: center;
    }

    .header-text-container {
        display: flex;
        justify-content: center;
    }
}

header .row {
    width: 100%;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--gutter-med);
    height: var(--nav-height);
}

@media(max-width: 540px) {
    nav {
        justify-content: center;
    }
}

@media(max-width: 420px) {
    nav {
        gap: var(--gutter-small);
    }
}

@media(max-width: 340px) {
    nav {
        gap: var(--gutter-x-small);
    }
}

nav a {
    font-size: 2.2rem;
    position: relative;
    overflow-x: hidden;
    padding-bottom: var(--gutter-xx-small);
    transition: all 0.2s cubic-bezier(1, 0.68, 0.16, 0.9);
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 100%;
    width: 100%;
    height: 1rem;
    display: block;
    background: var(--white);
    transition: all 0.2s cubic-bezier(1, 0.68, 0.16, 0.9);
}

nav a:hover {
    color: var(--pink);
}

nav a:hover::after {
    right: 0;
    height: 2px;
    background: var(--pink);
}

.header-text-container {
    display: flex;
    align-items: center;
    height: calc(100% - 9rem);
}

.header-text-container a {
    font-size: 2.4rem;
    margin: 1rem 0 3rem;
} 

/*My Work Setup*/

.work-box {
    display: flex;
    align-items: center;
    gap: var(--gutter-large);
    margin-top: var(--gutter-x-small);
}

@media(max-width: 1145px) {
    .work-box {
        gap: var(--gutter-small);
        flex-direction: column;
        align-items: initial;
    }
}

.work-box:first-of-type {
    margin-top: var(--gutter-small);
}

.work-box:not(:last-child) {
    margin-bottom: var(--gutter-xx-large);
}

/* The "> *" at teh end is how all children are selected*/
.work-box-text > *:not(h3) {
    margin-top: var(--gutter-xx-small);
}

.work-box-links {
    display: flex;
    align-items: center;
    gap: var(--gutter-x-small);
}

.work-box-img {
    max-width: 726px;
}

@media(max-width: 1145px) {
    .work-box-img {
        flex-direction: column;
        align-items: initial;
    }
}

.work-box-img img {
    max-width: 100%;
}

@media(max-width: 1350px) {
    .work-box-img {
        max-width: 600px;
    }
}

/* About Me Setup */

.about {
    display: flex;
    align-items: center;
    gap: var(--gutter-large);
    margin-top: var(--gutter-med);
}

@media(max-width: 1145px) {
    .about {
        flex-direction: column;
        gap: var(--gutter-small);
    }
}

.about-text p {
    margin-bottom: var(--gutter-x-small);
}

.about-img {
    flex: 0 0 650px;
}

@media(max-width: 1350px) {
    .about-img {
        flex: 0 0 500px;
    }
}

@media(max-width: 1145px) {
    .about-img {
        flex: initial;
    }
}

/* Contact Setup */
.contact {
    max-width: 670px;
}

.contact p {
    margin: var(--gutter-med) 0 var(--gutter-x-small);
}

/* Footer Setup */

footer {
    margin: var(--gutter-large) 0 var(--gutter-small);
    text-align: center;
}

.footer-social {
    margin-bottom: var(--gutter-small);
}

.footer-social a:not(:last-child) {
    margin-right: var(--gutter-xx-small);
}

.footer-social img {
    height: 40px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: var(--gutter-small);
    right: var(--gutter-small);
    background: var(--pink);
    height: 5.5rem;
    width: 5.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    visibility: hidden;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s;
}

.back-to-top.shown {
    visibility: visible;
    transform: scale(100%);
    opacity: 1;
}

.back-to-top img {
    height: 40px;
}