* {
    box-sizing: border-box;
    margin: 0;
}
html {
    height: 100%;
    -webkit-text-size-adjust: none;
}
body {
    font-family: sans-serif;
}
::selection {
    background: #137998;
    color: #fff;
}
img{
    display:block;
    width:100%;
}
h1{
    font-size: 3em;
}

/*
** HEADER *************************
*/
.header{
    position: relative;
    min-height: 100vh;
    padding: 3em .5em;
    background-color: #000;
    color: #ddd;
    display: flex;
    text-align: center;
    overflow: hidden;
}
.header-bg-img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    opacity: 0.2;
}
.header-content{
    position: relative;
    margin: auto;
}
.header-subtitle{
    font-size: 1.8em;
    font-weight: 100;
}
.header-text{
    line-height: 1.7em;
    font-weight: bold;
    font-size: 1.1em;
    margin-top:1em;
}
@media (min-width: 750px){
    h1{
        font-size: 4.5em;
    }
    .header-subtitle{
        font-size: 2.3em;
    }
    .header-text{
        font-size: 1.2em;
    }
}
@media (min-width: 1250px){
    h1{
        font-size: 5.5em;
    }
    .header-subtitle{
        font-size: 2.8em;
    }
    .header-text{
        font-size: 1.4em;
    }
}

/*
** HEADER - ARROWS *************************
*/
.header-content:before,
.header-content:after,
.header-text:before,
.header-text:after{
    content:"";
    position: absolute;
    bottom: -20px;
    left:50%;
    width: 20px;
    height: 20px;
    transition:.7s;
    transform: translate(-50%,0) rotate(45deg);
    opacity: .5;
    box-shadow: 4px 4px 3px 2px;
    animation: pulse 2s 0s infinite ease;
}
.header-content:after{
    bottom: -40px;
    animation-delay:.15s;
}
.header-text:before{
    bottom: -60px;
    animation-delay:.25s;
}
.header-text:after{
    bottom: -80px;
    animation-delay:.35s;
}
@keyframes pulse {
    0%{
        opacity: 0;
        transform: translate(-50%,0) rotate(45deg);
    }
    30%{
        opacity: .25;
    }
    90%{
        opacity: 0;
        transform: translate(-50%,30px) rotate(45deg);
    }
    100%{
        opacity: 0;
    }
}
@-webkit-keyframes pulse {
    0%{
        opacity: 0;
        transform: translate(-50%,0) rotate(45deg);
    }
    30%{
        opacity: .25;
    }
    90%{
        opacity: 0;
        transform: translate(-50%,30px) rotate(45deg);
    }
    100%{
        opacity: 0;
    }
}

/*
** MAIN *************************
*/
.section-title{
    padding: 1.2em .5em;
    text-align:center;
    font-size: 2.3em;
}
@media (min-width: 1250px){
    .section-title{
        font-size: 2.7em;
    }
}

/*
** PORTFOLIO *************************
*/
.section-portfolio{
    background-color: #eee;
    color:#444;
}
.portfolio-block{
    list-style: none;
    padding: 0 1em 7em;
    max-width:500px;
    margin:auto;
}
.portfolio-block-item{
    padding: 0 .5em 1.5em;
}
.portfolio-block-link{
    display: block;
    background: #fff;
    color:#4a8da8;
    height: 100%;
    box-shadow: 0 10px 15px rgba(0,0,0,.2);
}
.portfolio-block-title{
    display:block;
    padding:1em 10px 0;
    font-weight:bold;
}
.portfolio-block-text{
    display: inline-block;
    padding: .4em .8em;
    margin: .5em .8em 1em;
    line-height:1.5;
    font-size: 0.8em;
    border-radius: 2em;
    background-color: #666;
    color: #fff;
}
.portfolio-block-img-wrap{
    overflow:hidden;
    box-shadow:0 15px 10px -15px rgb(0,0,0);
}
.portfolio-block-link:hover,
.portfolio-block-link:focus{
    outline:none;
}
.portfolio-block-img{
    transform:scale(1);
    transform-origin:top left;
    transition:.6s;
    will-change: transform;
}
.portfolio-block-img.hover,
.portfolio-block-link:hover .portfolio-block-img,
.portfolio-block-link:focus .portfolio-block-img{
    transform:scale(1.4);
}
@media (min-width: 750px){
    .portfolio-block{
        max-width: 80em;
        display: flex;
        flex-wrap: wrap;
    }
    .portfolio-block-item{
        flex: 0 0 50%;
    }
}
@media (min-width: 1250px){
    .portfolio-block-item{
        flex: 0 0 33.3%;
    }
}
@media (min-width: 1600px){
    .portfolio-block{
        max-width: 90em;
    }
}

/*
** CONTACT *************************
*/
.section-contact{
    padding: 0 2em 5em;
    background: linear-gradient(135deg,#2897bb,#0c3640);
    color: #fff;
}
.contact-text{
    max-width: 31em;
    margin: auto;
    padding: 0 .5em;
    line-height: 1.8;
    text-align: center;
}
.contact-link{
    font-family: 'Montserrat Bold', sans-serif;
    color:#fff;
}

/*
** FOOTER *************************
*/
.footer{
    padding: 4em 1em;
    background-color: #222;
    color:#eee;
    text-align:center;
    line-height: 2em;
}
@media (min-width: 750px){
    .footer:before,
    .footer:after{
        content:'\2014';
        display:inline-block;
    }
    .footer:before{
        margin-right:1em;
    }
    .footer:after{
        margin-left:1em;
    }
}