*
{
    box-sizing: border-box;
}

:root {
    --ff-primary: 'Lora', serif;
    --ff-secondary: 'Roboto Slab', serif;
    
    --fw-reg: 400;
    --fw-bold: 700;
    
    --clr-light: #fff;
    --clr-dark: #303030;
    --clr-accent: #16e0bd;
    
    --fs-h1: 3rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.25rem;
    --fs-body: 1rem;
    --bs: 0 0.25em 0.75em rgba(0,0,0,.25),
          0 0.125em 0.25em rgba(0,0,0,.15);
}
html
{
    scroll-behavior: smooth;
}

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

body
{
    background-color: var(--clr-light);
    color: var(--clr-dark);
    margin: 0;
    font-family: var(--ff-primary);
    font-size: var(--fs-body);
    line-height: 1.6;
}

img
{
    display: block;
    max-width: 100%;
    box-shadow: var(--bs);
}
strong { font-weight: var(--fw-bold) }

/* 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) }

:focus {
    outline: 3px solid var(--clr-accent);
    outline-offset: 3px;
}

.btn
{
    display: inline-block;
    background-color: var(--clr-accent);
    color: var(--clr-dark);
    padding: 0.5em 2em;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: var(--fw-bold);
    letter-spacing: 2px;
    transition: transform 200ms ease-in-out;
}

.btn:hover {
    transform: scale(1.1);
}

#section__title {
    margin-bottom: .25em;
}

#section__title {
    font-size: 900;
    font-weight: normal;
}

.section__intro strong {
    display: block;
}

.section__subtitle {
    margin: 0;
    font-size: 300;
}

.section__subtitle,
.section__about__subtitle {
    margin-bottom: 1.5rem;
    background: var(--clr-accent);
    font-family: var(--ff-secondary);
    padding: 0.4rem 0;
    font-size: 300;
}

section {
    padding: 5em 2em;
}

.section__intro
{
    position: relative;
}

@media(min-width: 600px)
{
    .section__intro
    {
        display: grid;
        width: min-content;
        grid-column-gap: 1em;
        margin: 0 auto;
        grid-template-areas: "img title"
                             "img subtitle";
        grid-template-columns: min-content max-content;
    }

    #section__intro__img
    {
        grid-area: img;
        min-width: 350px;
        position: relative;
       
    }

    .section__subtitle
    {
        align-self: start;
        grid-column: -1 / 1;
        grid-row: 2;
        text-align: right;
        position: relative;
        left: -1em;
        padding-left: 2em;
        width: calc(100%+1.5em);
        
    }
}

.section_services
{
  background-color: var(--clr-dark);
  color: var(--clr-light);
  background-image: url('https://images.unsplash.com/photo-1517430816045-df4b7de11d1d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=871&q=80');
  background-size: cover;
  background-blend-mode: multiply;
  text-align: center;
}

.section_services__title
{
    color: var(--clr-accent);
    position: relative;

}

.section_services__title::after
{
    content: "";
    display: block;
    width: 25%;
    height: 1px;
    margin: 0.5em auto 1em;
    background: var(--clr-light);
    opacity: 0.25;


}

.service
{
    max-width: 500px;
    margin: 0 auto;
}

.services {
    margin-bottom: 4em;
}

@media(min-width: 800px)
{
    .services
    {
        display: flex;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
    .service + .service
    {
        margin-left: 2em;
    }

  
}
.section__about__img
{
    box-shadow: var(--bs);
}
.section__about
{
    max-width: 1000px;
    margin: 0 auto;
}
@media(min-width: 600px)
{
    .section__about
    {
       
        display: grid;
        grid-template-columns: 1fr 250px;
        grid-template-areas:  
        "title img"
        "subtitle img"
        "text img";
        grid-column-gap: 1em;
    }
    .section__about__img
    {
        grid-area: img;
    }
    .section__about__title
    {
        grid-area: title;
    }
    .section__about__subtitle
    {
        grid-column: 1 / -1;
        grid-row: 2;
        position: relative;
        left: -1em;
        width: calc(100% + 3em);
        padding-left: 1em;
        padding-right: calc(200px + 4em);
    }
    .section__about__img
    {
        position: relative;
    }
}

.section__work
{
    background-color: var(--clr-dark);
    color: var(--clr-light);
    text-align: center;
}

.section__work__subtitle
{
    color: var(--clr-accent);
}

.my_work
{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
}
.work_item
{
    background: var(--clr-accent);
    overflow: hidden;
}
.work_img
{
    transition: transform 750ms cubic-bezier(0.5,0,0.5,1),
                opacity 250ms linear;
}

.work_item:focus
{
    position: relative;
    z-index: 2;
}
.work_img:hover,
.work_item:focus .work_img
{
  transform: scale(1.2);
  opacity: 0.5;
}

footer
{
    background-color: #111;
    color: var(--clr-accent);
    text-align: center;
    padding: 2.5em 0;
    text-decoration: none;
    font-size: var(--fs-h3);
}

footer a
{
    color: inherit;
    text-decoration: none;
}
.footer__link {
    
    font-weight: var(--fw-bold);
}

.footer__link:hover,.social-list__link:hover
{
    opacity: 0.65;
}

.footer__link:hover
{
    text-decoration: underline;
}

.social-list
{
    list-style: none;
    display: flex;
    justify-content: center;
}

.social-list__item
{
    margin: 0.5em;
}

.social-list__link {
    padding: .5em;
}

header
{
    display: flex;
    justify-content: space-between;
    padding: 1em;
}

.logo
{
    max-width: 150px;
    max-height: 45px;
    box-shadow: none;
}

.nav
{
    position: fixed;
    background: var(--clr-dark);
    color: var(--clr-light);
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 100;
    
    transform: translateX(100%);
    transition: transform 250ms cubic-bezier(.5, 0, .5, 1);
}

.nav__links
{
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    align-items: center;
    margin: 0;
    padding: 0;
}
.nav__link
{
    text-decoration: none;
    font-weight: var(--fw-bold);
    font-size: var(--fs-h2);
    color: inherit;
}

.nav__link:hover
{
  text-decoration: underline;
  color: var(--clr-accent);
}

#hamburger
{
    display: block;
    position: relative;
}

#hamburger,#hamburger::before,
#hamburger::after
{
    background-color: var(--clr-accent);
    width: 2em;
    height: 3px;
    border-radius: 1em;

}

#hamburger::before,
#hamburger::after
{
    content: " ";
    position: absolute;
    left:  0;
    right: 0;
}

#hamburger::before {top:6px;}
#hamburger::after {bottom: 6px;}

.nav-open .nav
{
    transform: translateX(0%);
}


.navbar-toggle
{
    padding: .5em;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: absolute;
    right: 1em;
    top: 1.25em;
    z-index: 2000;
}

.nav-open .navbar-toggle
{
    position: fixed;
}

.nav-open #hamburger
{
    transform: rotate(.625turn);
}

.nav-open #hamburger::before
{
    transform: rotate(90deg) translateX(-6px);
}

.nav-open #hamburger::after
{
    opacity: 0;
}

#description
{
    max-width: 1000px;
    padding: 0 2em 2em;
    margin: 0 auto;
}

#description p
{
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#project-github-link
{
    margin-left: 50%;
}
