/*----------------------------------- */
/* BASIC SETUP  */
/*----------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: #fff;
  color: #555;
  font-family: 'Lato', 'Arial', sans-serif;
  font-weight: 300;
  font-size: 20px;
  text-rendering: optimizeLegibility;
}

.clearfix {zoom: 1}
.clearfix:after {
  content: '.';
  clear: both;
  display: block;
  height: 0;
  visability: hidden;
}

/*----------------------------------- */
/* REUSABLE COMPONENTS  */
/*----------------------------------- */

.row {
  max-width: 1140px;
  margin: 0 auto 0 auto;
}

section {
  padding: 80px 0px;
}

.box {
  padding: 1%;
}

/* ---- HEADINGS ---- */

h1, h2, h3 {
  font-weight: 300;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  margin-bottom: 20px;
  color: #fff;
  font-size: 240%;
  word-spacing: 4px;
  letter-spacing: 1px;
}

h2 {
  font-size: 180%;
  word-spacing: 2px;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

h2:after {
  display: block;
  height: 2px;
  background-color: #888;
  content: " ";
  width: 100px;
  margin: 0 auto;
  margin-top: 30px;
}

h3 {
  font-size: 110%;
  margin-bottom: 15px;
}

/* ---- PARAGRAPHS ---- */

.long-copy {
  line-height: 145%;
  width: 70%;
  margin-left: 15%;
}

.box p {
  font-size: 90%;
  line-height: 145%;
}

/* ---- ICONS ---- */

.icon-big {
  font-size: 250%;
  display: block;
  text-align: center;
  margin-bottom: 10px;
}

.icon-small {
  display: inline-block;
  width: 30px;
  text-align: center;
  color: #e67e22;
  font-size: 120%;
  margin-right: 10px;

  /* secrets to align text and icons */
  line-height: 120%;
  vertical-align: middle;
  margin-top: -5px;
}

/* ---- BUTTONS ---- */

.btn:link, /* psudo classes */
.btn:visited,
input[type=submit] {
  display: inline-block;
  padding: 10px 30px;
  font-weight: 300;
  text-decoration: none;
  border-radius: 200px; /* make borders round */
  transition: background-color 0.2s, border 0.2s, color 0.2s; /* css animations */
}

.btn-full:link,
.btn-full:visited,
input[type=submit] {
  background-color: #e67e22;
  border: 1px solid #e67e22;
  color: #fff;
  margin-right: 15px;
}

.btn-ghost:link,
.btn-ghost:visited {
  border: 1px solid #e67e22;
  color: #e67e22;
}

.btn:hover,
.btn:active,
input[type=submit]:hover,
input[type=submit]:active {
  background-color: #cf6d17;
}

.btn-full:hover,
.btn-full:active{
  border: 1px solid #cf6d17;
}

.btn-ghost:hover,
.btn-ghost:active {
  border: 1px solid #cf6d17;
  color: #fff;
}

/*----------------------------------- */
/* HEADER  */
/*----------------------------------- */

header {
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(images/hero.JPG); /* tint image dark */
  background-size: cover;
  background-position: center;
  height: 100vh; /* cover all available space */
  background-attachment: fixed;
}

.hero-text-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* center hack */
  text-align: center;
}

.hero-text-box p {
  color: #fff;
}

.hero-text-box img {
  height: 145px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

.logo {
  height: 100px;
  width: auto;
  float: left;
  margin-top: 20px;
}

/* Add a black background color to the top navigation */
.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background-color: #333;
  overflow: hidden;
}

/* Style the links inside the navigation bar */
.top-nav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* Add an active class to highlight the current page */
.active {
  background-color: #4CAF50;
  color: white;
}

/* Hide the link that should open and close the top-nav on small screens */
.top-nav .icon {
  display: none;
}

/* Add a dark background on top-nav links and the dropdown button on hover */
.top-nav a:hover {
  background-color: #555;
  color: white;
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the top-nav (.icon) */
@media screen and (max-width: 768px) {
  .top-nav a:not(:first-child) {
    display: none;
  }
  .top-nav a.icon {
    float: right;
    display: block;
  }
}

/* The "responsive" class is added to the top-nav with JavaScript when the user clicks on the icon. This class makes the top-nav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width:768px) {
  .top-nav.responsive {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
  }
  .top-nav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .top-nav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/*----------------------------------- */
/* FEATURE  */
/*----------------------------------- */

.section-feature {
  margin-bottom: 100px;
  background: #f5f5f5;
}

.section-feature .long-copy {
  margin-bottom: 30px;
}

/*----------------------------------- */
/* Projects  */
/*----------------------------------- */

.section-projects {
  margin-top: 30px;
}

.projects-showcase {
  list-style: none;
  margin: 5%;
}

.projects-showcase li {
  display: block;
  float: left;
  width: 25%;
}

@media (max-width: 800px) {
  .projects-showcase li {
    width: 100%;
  }
}
.projects-photo {
  width:100%;
  margin: 0;
  overflow: hidden;
  background-color: black;
}

.projects-photo a {
    position: relative;
    display: inline-block;
}

.projects-photo a span {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -1em;
    margin-left: -50%;
    width: 100%;
    height: 2em;
    color: #fff;
    text-align: center;
    font-weight: 400;
}

.projects-photo:hover a span {
  display: none;
}

.projects-photo img {
  opacity: 0.5;
  width:100%;
  height: auto;
  transform: scale(1.15);
  transition: transform 0.5s, opacity 0.1s;
}

.projects-photo:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.projects-showcase p {
  text-align: center;
}

/*----------------------------------- */
/* CONTACT  */
/*----------------------------------- */

.section-about p {
}

.social-links {
  list-style: none;
  text-align: center;
  margin-top: 20px;
}

.social-links li {
  display: inline-block;
  margin-right: 20px;
}

.social-links li:last-child {
  margin-right: 0px;
}

.social-links li a:link,
.social-links li a:visited {
  text-decoration: none;
  border: 0;
  color: #888;
  transition: color 0.2s;
}

.social-links li a:hover,
.social-links li a:active {
  color: #ddd;
}

.social-links li a:link,
.social-links li a:visited {
  font-size: 160%;
}

.ion-social-linkedin,
.ion-social-twitter,
.ion-social-github,
.ion-social-instagram {
  transition: color 0.2s;
}

.ion-social-linkedin:hover {
  color: #04669A;
}

.ion-social-twitter:hover {
  color: #00aced;
}

.ion-social-github:hover {
  color: #040204;
}

.ion-social-instagram:hover {
  color: #517fa4;
}

/*----------------------------------- */
/* FOOTER  */
/*----------------------------------- */

footer {
  background-color: #333;
  padding: 50px;
  font-size: 80%;
}

footer p {
  color: #888;
  text-align: center;
  margin-top: 20px;
}
