/* ROOT */



/* RESET GENERIC CSS */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align:baseline; background:transparent }
ol, ul {list-style:none;}
blockquote, q{quotes:none;}
blockquote:before, blockquote:after, q:before, q:after{content:''; content:none;}
:focus {outline:0;}
a {outline:0;}
a img {outline:0;}
ins{text-decoration:none;}
del{text-decoration:line-through;}
table{border-collapse:collapse; border-spacing:0;}
.clear { clear: both; display: block; overflow: hidden; visibility: hidden; width:0px; line-height:0px; font-size:0px;}

/* ICON FONT */
@font-face {
  font-family: 'icomoon';
  src:  url('../fonts/icomoon.eot?73dkae');
  src:  url('../fonts/icomoon.eot?73dkae#iefix') format('embedded-opentype'),
    url('../fonts/icomoon.ttf?73dkae') format('truetype'),
    url('../fonts/icomoon.woff?73dkae') format('woff'),
    url('../fonts/icomoon.svg?73dkae#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

/*  GENERAL STYLES */
* {
    box-sizing: border-box;
}

html,
body {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #31363a;
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    /* height: 100%; */
}

body {
    -webkit-overflow-scrolling: touch;
    background-color: #f6f8fb;
}

img {
    display: block;
    max-width: 100%;
    -webkit-transition: all 625ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
            transition: all 625ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
}

a,
a:link,
a:visited {
    color: #146EF5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Flex Styles */
.flex {

    display: flex;
}

.flex-direction-colum {
    flex-direction: column;    
}

.flex-justify-center {
    justify-content: center;
}

.flex-align-center {
    align-items: center;    
}

/* Structure Styles*/
.row {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 40px;
    -webkit-box-pack: center;
       -ms-flex-pack: center;
     justify-content: center;
    margin-bottom: 60px;
}

.item {
    box-shadow: 0 1px 10px 0 rgba(218,224,229,0.7);
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

h1 {
    font-weight: 200;
    font-size: 2.8rem;
}

h2 {
    font-size: 1.2rem;
    padding-top: 15px;
    font-weight: 200;
}

h3 {
    font-size: 1.2rem;
    font-weight: 200;
}

.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: #f6f8fb;
    padding: 24px 0;
}

.m-bottom {
    margin-bottom: 60px;
}

/* SECTION INTRO */
.intro {
    padding: 120px 0 60px;
    position: fixed;
    top: 0;
    width: 100%;
    opacity: var(--scroll-y);
    -webkit-transform: translateY(calc(var(--scroll-y) * -15px)); 
            transform: translateY(calc(var(--scroll-y) * -15px)); 
    -webkit-transition: transform 240ms ease-out; 
            transition: transform 240ms ease-out; 
    z-index: 3;
    pointer-events: none;
    text-align: center;
}

/* SECTION WORK */
.work {
    position: relative;
    z-index: 4;
    background-color: #f6f8fb;
    margin-bottom: 120px;
}

.overlay-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity:0;
    z-index: 10;
    -webkit-transition: all 625ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
            transition: all 625ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
}

.item:hover .overlay-preview {
    opacity: 1;
}

.item:hover img {
    -webkit-transform: scale(1.1);
                    transform: scale(1.1); 
}

.item-preview {
    position: absolute;
    bottom: 10px;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(150px);
            transform: translateX(-50%) translateY(150px);
    z-index: 999;
    -webkit-transition: all 625ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
            transition: all 625ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
}

.item-preview a {
    color: #fff;
}

.item:hover .item-preview {
    -webkit-transform: translateX(-50%) translateY(0px);
            transform: translateX(-50%) translateY(0px);    
}

.title-blog {
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 15px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 60px;
    width: 100%;
    background-color: #f6f8fb;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
       -ms-flex-pack: center;
     justify-content: center;
    -webkit-box-align: center;
       -ms-flex-align: center;
          align-items: center;
    /* border-top: 1px solid; */
}

footer .icon {
    width: 30px;
    height: 30px;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .icon a {
    display: flex;
    font-size: 22px;
    -webkit-transition: all 625ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
            transition: all 625ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
    color: #31363a;
}

footer .icon a:hover {
  text-decoration: none;
  transform: translateY(-5px);
}

[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-envelope:before {
  content: "\e900";
}
.icon-linkedin:before {
  content: "\e901";
}
.icon-twitter:before {
  content: "\e902";
}
.icon-medium:before {
  content: "\e903";
}
.icon-codepen:before {
  content: "\e904";
}


@media only screen and (max-width: 420px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1rem;
    }

    .intro {
        padding: 120px 32px 60px;           
    }

    .row {
        padding: 0 24px;
    }

    .grid {
        grid-template-columns: 1fr;    
    }
}