/*
COLOR PALETTE

Dark green    #3c8453
Sandy beige   #bcaa96
Dark gray     #222222
Light gray    #d3d4d6
Off-white     #f6f6f6
*/

/*
COLOR PALETTE 2

Black #000000
Dark Blue #14213d
Orange #fca311
Light Grey #e5e5e5
Off White #f8f9fa
*/

@property --body-bg-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #f8f9fa;
}

@property --links-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #14213d;
}

@property --links-color-hover {
    syntax: "<color>";
    inherits: false;
    initial-value: #ef610f;
}

@property --footer-bg-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #000000;
}

@property --links-footer-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #ef610f;
}

@property --links-footer-color-hover {
    syntax: "<color>";
    inherits: false;
    initial-value: #f8f9fa;
}

@property --btn-bg-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #ef610f;
}

/* GLOBAL STYLES 
------------------------------------*/
/* 
  https://www.paulirish.com/2012/box-sizing-border-box-ftw/
*/
html {
    box-sizing: border-box;
    font-size: 62.5%;
    /* set default to 10px */
}

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

html,
body {
    height: 100%;
}

body {
    background: var(--body-bg-color);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    line-height: 1.4;
}

h1,
h2,
h3 {
    font-family: 'Raleway', 'sans-serif';
    font-weight: 400;
    margin: 0;
}

h1 {
    font-size: 7rem;
    line-height: 0.85;
}

h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 2.4rem;
}

/* links */
a {
    color: var(--links-color);
}

a:hover {
    color: var(--links-color-hover);
}

footer a {
    color: var(--links-color-hover);
}

footer a:hover {
    color: var(--body-bg-color);
}

.btn {
    background: var(--btn-bg-color);
    color: var(--links-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.2rem;
    display: inline-block;
    padding: 7px;
    letter-spacing: 0.1em;
    line-height: 1;
    border-radius: 3px;
    outline: 3px solid rgba(0, 0, 0, 1.0);
}

.resume>a {
    color: var(--body-bg-color)
}

.resume>a:hover {
    color: var(--footer-bg-color)
}

.content-wrapper {
    margin: 0 auto;
    padding: 30px;
    max-width: 900px;
}

.content-wrapper>h2 {
    color: var(--links-color-hover);
}

.content-wrapper .content-bg header>h2 {
    color: var(--links-color-hover);
}


/* HOME
------------------------------------*/
.home {
    background: url(../images/digital-blocks.png) no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
}

.home .content-wrapper {
    flex: 1 0 auto;
}

.content-bg {
    background: rgb(255 255 255 / 0.9);
    padding: 30px;
}

@media screen and (max-width:650px) {
    .home .content-wrapper {
        padding: 10px;
    }

    .content-bg {
        padding: 20px;
    }
}


/* RESUME
------------------------------------*/
.resume header::before {
    background: url(../images/digital-blocks.png) center;
    background-size: cover;
    content: "";
    display: block;
    height: 255px;
}

.resume-section {
    margin-bottom: 50px;
}

.resume-section h2 {
    border-bottom: 2px dashed var(--links-color-hover);
}

.download-link {
    position: fixed;
    top: 5px;
    left: 5px;
    font-size: 1.5rem;
}

@media screen and (max-width: 1200px) {
    .download-link {
        position: absolute;
    }
}

@media screen and (max-width: 500px) {
    .resume header::before {
        height: 200px;
    }

    h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 2.6rem;
    }
}


/* Projects
------------------------------------*/
.project-item {
    margin: 30px 0;
}

.project-item img {
    width: 300px;
}

@media screen and (min-width:860px) {
    .project-item {
        display: flow-root;
    }

    .project-item img {
        float: left;
        margin-right: 20px;
    }
}

@media screen and (min-width:650px) and (max-width:859px) {
    .project-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
    }

    .project-item img {
        width: 100%;
    }
}

@media screen and (max-width:500px) {
    .project-item img {
        width: 100%;
        margin-bottom: 10px;
    }
}


/* Work Experience
------------------------------------*/
.work-item {
    margin: 30px 0;
}

.work-details p {
    margin: 0;
}

@media screen and (min-width: 860px) {
    .work-item {
        display: grid;
        grid-template-columns: 300px 1fr;
        column-gap: 20px;
    }

    .work-summary p:first-child {
        margin-top: 0;
    }
}


/* Education
------------------------------------*/
.education-item {
    margin: 30px 0;
}

.education-item p {
    margin: 0;
}



/* FOOTER
------------------------------------*/
footer {
    background: var(--footer-bg-color);
    color: #e5e5e5;
}

.socials {
    list-style-type: none;
    padding: 0;
}

.socials li {
    display: inline-block;
    margin-left: 10px;
}

.socials img {
    width: 32px;
}

.socials img:hover {
    opacity: 0.5;
}

@media screen and (min-width: 860px) {
    footer {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
    }
}

@media screen and (max-width: 859px) {
    footer {
        text-align: center;
        padding: 10px;
    }

}