*,
*::before,
*::after {
    box-sizing: border-box;
}

/*Custom properties. Update them when design changes*/

:root {
    --ff-sans: 'Source Sans Pro', sans-serif;
    --ff-code: 'Source Code Pro', monospace;

    --fw-reg: 300;
    --fw-bold: 900;

    --clr-bg: #BEC0C0;
    --clr-text:#242C28;
    --clr-accent: #BEC0C0;

    --fs-h1: 3rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.25rem;
    --fs-body: 1rem;
}

@media (min-width: 850px) {
    :root {
        --fs-h1: 4.5rem;
        --fs-h2: 3.75rem;
        --fs-h3: 1.5rem;
        --fs-body: 1.125rem;
    }
}

/* General Styles */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--clr-bg);
    color: var(--clr-text);
    margin: 0;
    font-family: var(--ff-code);
    font-size: var(--fs-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

section {
    padding: 3em 1em;
}

img {
    display: block;
    max-width: 100%;
}

/* Typography */

h1,
h2,
h3 {
    line-height: 1;
    margin: 0;
}

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

.sectionTitle{
    margin-bottom: .25em;
}

.sectionTitle--intro{
    font-weight: var(--fw-reg);
}

.sectionTitle--intro strong{
    display: block;
}

.sectionTitle--projects {
    color: var(--clr-accent);
    text-align: center;
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: var(--clr-text);
    padding: .1em .5em 1em .5em;
    clip-path: polygon(0% 0%, 100% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.sectionSubtitle{
    margin: 0;
    font-size: var(--fs-h3);
}

.sectionSubtitle--intro{
    background-color: var(--clr-accent);
    font-family: var(--ff-code);
    border-radius: 1em;
    max-width: 34em;
    margin: auto;
    padding: 0 .5em;
}

.sectionTitle--projects{
    font-weight: var(--fw-bold);
    font-family: var(--ff-code);
}

.sectionTitle--about {
    text-align: center;
}

/* header */

header {
    display: flex;
    justify-content: right;
    background-color: var(--clr-text);
    height: 5vh;
}

.nav {
    color: var(--clr-text);
}

.navList {
    list-style: none;
    display: flex;
    height: 100%;
    justify-content: space-evenly;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navLink {
    color: var(--clr-accent);
    font-weight: var(--fw-reg);
    font-size: var(--fs-h3);
    text-decoration: none;
    padding: 0em 1em;
}

.navLink:hover {
    opacity: .7;
}

/* Intro Section */
.intro {
    position: relative;
    text-align: center;
    background-image: url("../media/Washington.JPG");
    background-position: center;
    height: 95vh;
    padding-bottom: 0;
}

/* Projects Section */
.projects {
    color: var(--clr-bg)
}

.project {
    background: var(--clr-text);
    border-radius: .5em;
    padding: 1em;
    max-width: 70em;
    margin: auto;
    margin-top: 1em;
    margin-bottom: 1em;
}

.projectTitle {
    flex: 100%;
    margin-bottom: .5em;
}

.projectRow {
    display: flex;
}

.projectLeftColumn {
    width: 40%;
}

.projectRightColumn {
    width: 55%;
    margin-left: 5%;
}

.projectCodeLinks {
    display: flex;
    justify-content: space-around;
}

.projectCodeLink {
    text-decoration: none;
    color: inherit;
}

.projectCodeLink:hover{
    opacity: .7;
}

.aboutMe {
    max-width: 70em;
    margin: auto;
}

.bio {
    background: var(--clr-accent);
    border-radius: .5em;
    padding: .5em;
}

.aboutPage {
    background-image: url("../media/Washington.JPG");
    background-position: center;
}
/*Media queries (300px, 600px, 900px, 1200px, etc)*/

@media (min-width: 601px) {
    .nav-toggle {
        display: none;
    }
}

@media (max-width: 900px){
    .projectRow {
        flex-direction: column;
    }
    
    .projectColumn {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 600px){
    .nav {
        position: fixed;
        background: var(--clr-text);
        color: var(--clr-bg);
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
    
        transform: translateX(100%);
        transition: transform 250ms cubic-bezier(.5,0,.5,1);
    }
    
    .navList {
        list-style: none;
        display: flex;
        height: 100%;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        margin: 0;
        padding: 0;
    }
    
    .navLink {
        color: inherit;
        font-weight: var(--fw-bold);
        font-size: var(--fs-h2);
        text-decoration: none;
    }
    
    .navLink:hover {
        color: var(--clr-accent);
    }
    
    .nav-toggle {
        padding: .5em;
        background: transparent;
        border: 0;
        cursor: pointer;
        position: absolute;
        right: 1em;
        top: 1em;
        z-index: 1000;
    }
    
    .nav-open .nav {
        transform: translateX(0);
    }
    
    .nav-open .nav-toggle{
        position: fixed;
    }
    
    .nav-open .hamburger {
        transform: rotate(.625turn);
    }
    
    .nav-open .hamburger::before {
        transform: rotate(90deg) translateX(-6px);
    }
    
    .nav-open .hamburger::after {
        opacity: 0;
    }
    
    .hamburger {
        display: block;
        position: relative;
    }
    
    .hamburger,
    .hamburger::before,
    .hamburger::after {
        background: var(--clr-accent);
        width: 2em;
        height: 3px;
        border-radius: 1em;
        transition: transform 250ms ease-in-out;
    }
    
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
    }
    
    .hamburger::before {
        top: 6px;
    }
    
    .hamburger::after {
        bottom: 6px;
        transition: opacity .1s ease-in-out;
    }
}

/* Footer */

footer {
    background: var(--clr-text);
    color: var(--clr-accent);
    text-align: center;
    padding: 2.5em 0 1em;
    font-size: var(--fs-h3);
    margin-top: auto;
}

footer a {
    color: inherit;
    text-decoration: none;
}

.emailLink {
    font-size: var(--fs-body);
}

.emailLink:hover {
    opacity: .7;
}

.sectionTitle--footer {

}

.socialList--link {
    font-weight: var(--fw-reg);
    padding: .5em;
}

.socialList--link:hover {
    opacity: .7;
}

.socialList {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: .5em 0 0;
    padding: 0;
}

.socialList--item {
    margin: 0 .5em;
}