html,body {
  height: 100vh;
  position: relative;
  font-size: 62.5%;
}

body {
  background-color: #141618;
  -webkit-transition: background-color 10s ease-in-out;
  -moz-transition: background-color 10s ease-in-out;
  -o-transition: background-color 10s ease-in-out;
  -khtml-transition: background-color 10s ease-in-out;
  transition: background-color 10s ease-in-out;
}


h1, h2, h3, h4 {
  color: #ffffff;
  font-family: 'Poppins';
  text-align:center;

}

p, a, a:hover {
  color: #ffffff;
}

h1 {
  letter-spacing: -0.05em;
  font-size: 12.5rem;
  line-height:1;
  font-weight: 800;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

h2, h3 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 40px;
  margin-bottom: 16px;
}


h3 {
  font-weight: 700;
  margin: 0;
}

h1, .button {
  /*margin-top: 60px;*/
  display: block;
}


.button i {
  border: 1px solid #ffffff;
  background: none;
  border-radius: 50%;
  width: 6.6rem;
  height: 6.6rem;
  line-height: 6.6rem;
  font-size: 2.2rem;
  display: inline-block;
}



section#intro {
  position: absolute;
  top: 0;
  left: 0;
  display: table;
  height: 100%;
  min-width: 100%;
  table-layout: fixed;
  width: auto;
  background: transparent;
  opacity: 0;
  text-align: center;
}




.social a {
  padding: 0 20px 0 0;
  display: inline-block;
  vertical-align: middle;
}

.social i {
  font-size: 2.2rem;
  color: #ffffff;
  transition: color 0.5s linear;
}


.social .facebook:hover i {
  color: #3b5998;
}

.social .twitter:hover i {
  color: #55acee;
}

.social .linkedin:hover i {
  color: #007bb5;
}

.social .dribbble:hover i {
  color: #EA4C89;
}

.social .instagram:hover i {
  color: #fbad50;
}








section#portfolio {

  width: 100%;
  margin:0;
  padding:0;
  background-color: #141618;
}

section#portfolio .project {
  display: block;
  float: left;
  width: 25%;
  overflow: hidden;
}


.grid-sizer {
  width: 25%;
}

section#portfolio .project-image img{
  max-width: 100%;
  height: auto;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) 0s;
}

.project:hover .project-image img {
  transform: scale(1.25);
}


.project .project-image::after {
    transition: all 0.3s ease 0s;
}

.project .project-image::after {
    bottom: 0;
    content: "";
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    width: 100%;
    z-index: 1111;
}
.project:hover .project-image::after {
    background: rgba(0, 0, 0, 0.8) none repeat scroll 0 0;
}


.project .project-caption  {
    align-items: center;
    justify-content: center;
}

.project .project-caption  {
    display: flex;
    flex-direction: column;
    height: 100%;
    left: 0;
    opacity: 0;
    padding: 15px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 222222;
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0s;
}


.project:hover .project-caption {
    opacity: 1;
}

.project .project-caption h3 {
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) 0s;
}

.project .project-caption h4 {
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) 0s;
}

.project .project-caption h3, .project .project-caption h4 {
    transform: translateY(50px);
}

.project:hover .project-caption h3, .project:hover .project-caption h4{
    transform: translateY(0px);
}

.project .project-caption h4 {
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) 0.12s;
}






.container {
  vertical-align: middle;
  display: table-cell;
}




#particles-js{
  width: 100%;
  height: 100%;
  background-color: transparent;
  background-image: url('');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}





canvas{
  display:block;
  vertical-align:bottom;
}


/* ---- stats.js ---- */






.typed-cursor {
    animation: 0.7s ease 0s normal none infinite running blink;
    opacity: 1;
}
@keyframes blink {
0% {
    opacity: 1;
}
50% {
    opacity: 0;
}
100% {
    opacity: 1;
}
}
@keyframes blink {
0% {
    opacity: 1;
}
50% {
    opacity: 0;
}
100% {
    opacity: 1;
}
}
@keyframes blink {
0% {
    opacity: 1;
}
50% {
    opacity: 0;
}
100% {
    opacity: 1;
}
}



/* Transition Layer */
.cd-transition-layer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  height: 100%;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}
.cd-transition-layer .bg-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translateY(-50%) translateX(-2%);
          transform: translateY(-50%) translateX(-2%);
  /* its dimentions will be overwritten using jQuery to proportionally fit the viewport */
  height: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
}
.cd-transition-layer.visible {
  opacity: 1;
  visibility: visible;
}
.cd-transition-layer.visible .bg-layer {
  -webkit-transform: translateY(-50%) translateX(-98%);
          transform: translateY(-50%) translateX(-98%);
}
.cd-transition-layer.opening .bg-layer, .cd-transition-layer.closing .bg-layer {
  -webkit-animation-duration: .8s;
          animation-duration: .8s;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}
.no-cssanimations .cd-transition-layer {
  display: none;
}




/* --------------------------------

Fire Extinguisher Effect

-------------------------------- */


.extinguisher-transition .cd-main-content {
  background: #e93741;
}

.extinguisher-transition .cd-transition-layer .bg-layer {
  /* sprite composed of 25 frames */
  width: 2500%;
  background-image: url(../img/extinguisher.png);
}
.extinguisher-transition .cd-transition-layer.opening .bg-layer {
  -webkit-animation: cd-sequence 0.8s steps(24) forwards;
          animation: cd-sequence 0.8s steps(24) forwards;
}
.extinguisher-transition .cd-transition-layer.closing .bg-layer {
  -webkit-animation: cd-sequence 0.8s steps(24) forwards reverse;
          animation: cd-sequence 0.8s steps(24) forwards reverse;
}




/* --------------------------------

Animations

-------------------------------- */
@-webkit-keyframes cd-sequence {
  0% {
    /* translateX(-2%) is used to horizontally center the first frame inside the viewport */
    -webkit-transform: translateY(-50%) translateX(-2%);
            transform: translateY(-50%) translateX(-2%);
  }
  100% {
    /* translateX(-98%) (2% + 96) is used to horizontally center the last frame inside the viewport  */
    -webkit-transform: translateY(-50%) translateX(-98%);
            transform: translateY(-50%) translateX(-98%);
  }
}
@keyframes cd-sequence {
  0% {
    /* translateX(-2%) is used to horizontally center the first frame inside the viewport */
    -webkit-transform: translateY(-50%) translateX(-2%);
            transform: translateY(-50%) translateX(-2%);
  }
  100% {
    /* translateX(-98%) (2% + 96) is used to horizontally center the last frame inside the viewport  */
    -webkit-transform: translateY(-50%) translateX(-98%);
            transform: translateY(-50%) translateX(-98%);
  }
}
@-webkit-keyframes cd-sequence-2 {
  0% {
    -webkit-transform: translateY(-50%) translateX(-1.3158%);
            transform: translateY(-50%) translateX(-1.3158%);
  }
  100% {
    -webkit-transform: translateY(-50%) translateX(-98.6842%);
            transform: translateY(-50%) translateX(-98.6842%);
  }
}
@keyframes cd-sequence-2 {
  0% {
    -webkit-transform: translateY(-50%) translateX(-1.3158%);
            transform: translateY(-50%) translateX(-1.3158%);
  }
  100% {
    -webkit-transform: translateY(-50%) translateX(-98.6842%);
            transform: translateY(-50%) translateX(-98.6842%);
  }
}
@-webkit-keyframes cd-sequence-3 {
  0% {
    -webkit-transform: translateY(-50%) translateX(-2.5%);
            transform: translateY(-50%) translateX(-2.5%);
  }
  100% {
    -webkit-transform: translateY(-50%) translateX(-97.5%);
            transform: translateY(-50%) translateX(-97.5%);
  }
}
@keyframes cd-sequence-3 {
  0% {
    -webkit-transform: translateY(-50%) translateX(-2.5%);
            transform: translateY(-50%) translateX(-2.5%);
  }
  100% {
    -webkit-transform: translateY(-50%) translateX(-97.5%);
            transform: translateY(-50%) translateX(-97.5%);
  }
}


/* Smartphones (portrait) ----------- */
@media only screen and (max-width : 767px) {
  h1 {
    letter-spacing: -0.05em;
    font-size: 8rem;
    line-height:1;
    font-weight: 800;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
  }

  h2 {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 2.8rem;
    margin-bottom: 20px;
  }
}
