body {
  font-family: 'Figtree', sans-serif;
  color: #3a3a3a;
}

a {
  color: white;
}

a:hover {
  color: #2ecff9;
}

.header {
  padding-top: 2em;
}

h1 {
  color: #3a3a3a;
  font-size: 3.5em;
}

h2 {
  color: #3a3a3a;
  font-size: 1.4em;
}

h3 {
  color: #3a3a3a;
  font-size: 0.8em;
  text-align: center;
}

h4 {
  font-size: 1.2em;
  color: white;
  text-align: center;
}

p {
  font-size: 30px;
  color: #3a3a3a;
  font-size: 1.3em;
  text-align: justify;
}

.js div#preloader {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  overflow: visible;
  width: 40px;
  height: 40px;
  left: 50%;
  top: 50%;
  margin-top: -25px;
  margin-left: -25px;
}

#preload-wrapper {
  background-color: white;
  width: 100%;
  height: 100%;
  z-index: 9999;
  position: fixed;
}

/* Preloader */
/* :not(:required) hides this rule from IE9 and below */

.preloader:not(:required) {
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  position: relative;
  display: inline-block;
  width: 50px;
  height: 50px;
  background: rgba(25, 165, 152, 0.5);
  border-radius: 50%;
  overflow: hidden;
  text-indent: -9999px;
  /* Hides inner circles outside base circle in safari */
  -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);
}

.preloader:not(:required):before,
.preloader:not(:required):after {
  content: '';
  position: absolute;
  top: 0;
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.preloader:not(:required):before {
  -moz-animation: preloader 3s infinite;
  -webkit-animation: preloader 3s infinite;
  animation: preloader 3s infinite;
  -moz-transform-origin: 0 50%;
  -ms-transform-origin: 0 50%;
  -webkit-transform-origin: 0 50%;
  transform-origin: 0 50%;
  left: 0;
  background: #c7efcf;
}

.preloader:not(:required):after {
  -moz-animation: preloader 3s 0.2s reverse infinite;
  -webkit-animation: preloader 3s 0.2s reverse infinite;
  animation: preloader 3s 0.2s reverse infinite;
  -moz-transform-origin: 100% 50%;
  -ms-transform-origin: 100% 50%;
  -webkit-transform-origin: 100% 50%;
  transform-origin: 100% 50%;
  right: 0;
  background: #eef5db;
}

@-moz-keyframes preloader {
  0% {
    -moz-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  50% {
    -moz-transform: rotate(360deg);
    transform: rotate(360deg);
  }
  100% {
    -moz-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}

@-webkit-keyframes preloader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  50% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
  100% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}

@keyframes preloader {
  0% {
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  50% {
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
  100% {
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}

/* Header and navbar */

.wrapper {
  width: 100%;
  background-color: #ddecdf;
  height: 80px;
  position: fixed;
  top: 0px;
  z-index: 999;
  border-right: 20px solid white;
  border-left: 20px solid white;
  transition: all 0.2s ease-in-out;
}

header.nav-up .wrapper {
  top: -80px;
}

header.nav-down.reachedTop .wrapper {
  top: 20px;
}

a.logo {
  text-transform: uppercase;
  margin-top: 25px;
  display: inline-block;
  font-weight: 600;
  font-size: 30px;
  color: #3a3a3a;
}

a.logo span {
  color: #009ca8;
}

ul.menu {
  float: right;
  margin-top: 28px;
}

ul.menu li {
  list-style: none;
  display: inline-block;
  margin-left: 50px;
}

ul.menu li a {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 2px;
  color: #3a3a3a;
}

ul.menu li a:hover {
  border-bottom: 1px solid #313131;
  padding-bottom: 6px;
}

/* Introductory section */

section.intro {
  background-color: #ddecdf;
  padding-bottom: 100px;
  position: relative;
  border-right: 20px solid #fff;
  border-left: 20px solid #fff;
  border-top: 20px solid #fff;
  padding-top: 137px;
}

#face {
  position: relative;
  width: 50%;
  margin-top: 10%;
  margin-left: 10%;
}

#speech-bubble {
  width: 25%;
  position: relative;
  top: -60px;
  right: -10px;
}

section.intro h1 {
  margin-top: 80px;
  line-height: 1.2;
  font-weight: 300;
  color: #3a3a3a;
  font-size: 60px;
}

section.intro span.leading {
  font-weight: 300;
}

section.intro span.trailing {
  font-weight: bold;
}

a.btn {
  border: 1px solid #009ca8;
  text-transform: uppercase;
  color: #009ca8;
  padding: 15px 25px;
  border-radius: 30px;
  font-size: 14px;
  letter-spacing: 1px;
  margin-top: 14px;
  display: inline-block !important;
  line-height: 1.4;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

a.btn:hover {
  background-color: #009ca8;
  color: #fff;
}

/* About me section */

section.about {
  padding: 0px;
  border-right: 20px solid white;
  border-left: 20px solid white;
}

section.about h1 {
  color: #3a3a3a;
  font-weight: 300;
  font-size: 65px;
  margin-top: 50px;
}

section.about p {
  color: #3a3a3a;
  margin: 0 auto;
  margin-bottom: 50px;
  font-size: 18px;
  line-height: 1.7;
}

section.about p a {
  color: #3a3a3a;
  border-bottom: 2px solid #ddd;
  padding-bottom: 1px;
}

section.about p a:hover {
  border-bottom: 2px solid #009ca8;
}

section.about h2 {
  color: #3a3a3a;
  font-size: 18px;
  line-height: 2.2em;
}

/* Contact me section */

section.contact {
  background: #494949;
  position: relative;
  padding-top: 20px;
  padding-bottom: 20px;
  border-right: 20px solid white;
  border-left: 20px solid white;
  border-bottom: 20px solid white;
}

section.contact h1 {
  color: #fff;
  font-weight: 300;
  font-size: 65px;
}

section.contact p {
  color: #aaabbb;
  margin: 0 auto;
  font-size: 18px;
  margin-left: 4px;
}

a.email {
  float: right;
  font-size: 22px;
  text-align: right;
  margin-top: 100px;
  font-weight: 300;
  border-bottom: 2px solid #717070;
  padding-bottom: 5px;
}

a.email:hover {
  border-bottom: 2px solid #b6b6b6;
  color: #fff;
}

a.email:visited {
  color: #fff;
}

section.contact ul.icons {
  margin: 0;
  padding: 0;
  float: right;
  line-height: 0;
}

section.contact ul.icons li {
  display: inline-block;
  margin: 30px 0px 20px 0px;
  margin-left: 16px;
}

section.contact .icon.facebook,
section.contact .icon.twitter,
section.contact .icon.github,
section.contact .icon.linkedin {
  color: #aaabbb;
  font-size: 30px;
  -webkit-transition: color 0.35s ease;
  -moz-transition: color 0.35s ease;
  transition: color 0.35s ease;
}

section.contact .icon.facebook:hover,
section.contact .icon.twitter:hover,
section.contact .icon.github:hover,
section.contact .icon.linkedin:hover {
  color: #dddddd;
}

section.contact footer {
  color: #999999;
  width: 100%;
  max-width: 62.5rem;
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 4px;
}

section.contact footer a {
  color: #999999;
  border-bottom: 1px solid #999999;
}

section.contact footer a:hover {
  color: #cccccc;
  border-bottom: 1px solid #cccccc;
}

/* Media queries and breakpoints */

@media only screen and (min-width: 40.063em) and (max-width: 64em) {
  ul.menu li {
    margin-left: 20px;
  }
}

@media only screen and (max-width: 40em) {
  a.logo {
    font-size: 25px;
  }

  ul.menu a {
    font-size: 12px !important;
  }

  ul.menu li {
    margin-left: 8px;
  }
}

@media only screen and (max-width: 320px) {
  section.intro h1 {
    font-size: 38px !important;
  }
}

@media only screen and (max-width: 64em) {
  section.intro,
  .wrapper,
  section.about,
  section.projects,
  section.contact {
    border: none;
  }

  section.intro {
    padding-top: 131px;
  }

  div#intro-description {
    text-align: center;
  }

  #face {
    width: 40%;
    margin-left: 25%;
  }

  #speech-bubble {
    right: 10px;
  }

  header.nav-down.reachedTop .wrapper {
    top: 0;
  }

  section.intro h1 {
    margin-top: 21px;
    font-size: 50px;
  }

  section.about h1 {
    font-size: 50px;
    text-align: center;
  }

  section.about p {
    padding: 15px 20px;
    margin-bottom: 40px;
  }

  section.about h2 {
    padding-left: 15px;
  }

  section.contact {
    text-align: center;
  }

  section.contact h1 {
    font-size: 50px;
    text-align: center;
  }

  section.contact p {
    text-align: center;
  }

  a.email,
  section.contact ul.icons {
    float: none;
  }

  a.email {
    margin-top: 22px;
    display: inline-block;
  }

  section.contact ul.icons li:first-child {
    margin-left: 0;
  }

  section.contact footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
