/*

COLOR SCHEME

PRIMARY COLOR: #02b3e4
SECONDARY COLOR: #015d77

*/

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 16px;
}

.container {
  width: 100%;
}

/* HERO IMAGE  */

.hero-image {
  width: 100vw;
  height: 100vh;
  background-image: url("https://mywebgraphicdesign.com/portfolio-web-template/images/hero-image.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}

.hero-text {
  position: absolute;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 1.8em;
  box-shadow: 0 0 1.5em #a0a0a0;
  min-width: 70%;
  max-height: calc(100vh - 3em);
}

.logo {
  width: 5em;
  height: auto;
  margin: 0 auto;
}

.title {
  font-size: 1.8em;
  text-transform: uppercase;
  font-weight: 300;
  text-align: center;
  margin-top: 0.5em;
}

.subtitle {
  font-size: 1.2em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 300;
  margin-top: 1em;
  margin-bottom: 2em;
}

.hire-me {
  margin-top: 1em;
  padding: 20px;
  background-color: #fff;
  border: solid 3px #02b3e4;
  border-radius: 5px;
  color: #02b3e4;
  font-size: 1.2em;
  box-shadow: 0 0 1em #d2d2d2;
}

.hire-me:hover {
  cursor: pointer;
  box-shadow: 0 0 0.2em #d2d2d2;
}

a {
  color: #02b3e4;
  text-decoration: none;
}

/* FEATURED WORKS SECTION */

.featured {
  width: 100%;
}

.featured-title {
  font-size: 1.8em;
  text-transform: uppercase;
  font-weight: 300;
  text-align: center;
  margin-top: 2em;
  color: #015d77;
}

.line {
  margin: 2em;
  color: #015d77;
}

.flex-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.works {
  width: 22em;
  margin: 1em auto;
  position: relative;
  overflow: hidden;
}

.works-image {
  width: 100%;
  max-width: 500px;
  max-height: 375px;
}

.hover-effect {
  width: 100%;
  max-width: 500px;
  max-height: 375px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  opacity: 0;
  transition: all 1s linear;
}

.hover-effect:hover {
  opacity: 1;
}

.hover-title {
  text-align: center;
}

.button-container {
  margin: 1em auto;
  text-align: center;
}

.codepen-link, .direct-link {
  font-size: 1em;
  font-family: inherit;
  background-color: #fff;
  border: solid 3px #02b3e4;
  border-radius: 5px;
  padding: 1em;
  margin: 0.5em auto;
  display: block;
  min-width: 9em;
  max-width: 11em;
}

.scale {
  transform: scale(1.1);
  transition: transform 2s linear;
  opacity: 0.8;
}

.works-title {
  font-size: 1.5em;
  font-weight: 300;
  text-align: center;
  margin-top: 0.5em;
  color: #015d77;
}

.footer {
  text-align: center;
  color: #fff;
  background-color: #02b3e4;
  width: 100%;
  margin-top: 0.8em;
}

.copyright {
  padding: 2em 0 2em 0;
}

/* FLOAT MENU */

.float-menu {
  list-style-type: none;
  bottom: 0;
  left: 50%;
  z-index: 100000;
  min-width: 11em;
}

.float-nav {
  display: inline;
}

.fa-linkedin-in, .fa-codepen, .fa-github {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.8);
  margin-top: 5px;
  padding: 0.2em;
}

.fa-fw {
  width: 40px !important;
  height: 40px;
}

.fa-fw:hover {
  cursor: pointer;
  width: 1.7em !important;
  transition: width 2s ease;
}

@media screen and (min-width: 320px) and (orientation: landscape) {
  .float-menu {
    left: 0;
    top: 50%;
    position: fixed;
    transform: translate(0, -50%);
  }
  .float-nav {
    display: flex;
  }
}

@media screen and (min-width: 576px)  {
  .logo {
    width: 7em;
  }

  .title {
    font-size: 2.5em;
  }

  .subtitle {
    font-size: 1.6em;
  }

  .float-menu {
    left: 0;
    top: 50%;
    position: fixed;
    transform: translate(0, -50%);
  }

  .float-nav {
    display: flex;
  }
}

@media screen and (min-width: 768px) {
  .hero-text {
    padding: 3em;
  }

  .title {
    font-size: 4em;
  }

  .subtitle {
    font-size: 2em;
  }
}
@media screen and (min-width: 980px) {
  .works {
    width: 30em;
  }
}
@media screen and (min-width: 1280px) {
  .flex-container {
    max-width: 1280px;
    margin: 0 auto;
  }
  
  .works {
    width: 26em;
  }
}
