/* Resets */
html, 
body,
nav,
p,
ul,
ul li {
	padding: 0;
	margin: 0;
}

a,
a:hover,
a:active,
a:visited {
	color: inherit;
	text-decoration: none !important;
	background: none !important;
	outline: none;
}

footer p {
  padding-top:5rem;
  text-align:center;
}

/* Bootstrap Changes */
.container {
	max-width: 1100px;
}

@media (min-width: 520px) and (max-width: 767px) {
	.container {
		width: 500px;
	}
} 

/* ----- Page ----- */
html, 
body {
	font-size: 100%;
	font-family: 'Muli', sans-serif;
	color: #6c6753;
}

/*** Header ***/


/* Nav */

nav {
  padding: 30px;
}
nav ul {
  float: right;
}
nav ul li {
  display: inline-block;
  float: left;
}
nav ul li:not(:first-child) {
  margin-left: 25px;
}
nav ul li a {
  display: inline-block;
  outline: none;
  color: #000;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}
nav ul li a:hover {
  color: #000;
  text-decoration: none;
}

.hover a {
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.hover a::after {
  position: absolute;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: #000;
  transition: .3s;
  opacity: 0;
  visibility: hidden;
  bottom: -8px;
}
.hover a:hover::after {
  bottom: -4px;
  opacity: 1;
  visibility: visible;
}
.current {
  font-weight:600;
}
nav .logo {
  float:left;
  width:2rem;
  height:auto;
}

.logo_description {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width:10rem;
  height:auto;
  margin-bottom:3rem;
}

.description {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom:1rem;
  width:30rem;
}


/* --- Sections --- */
#portfolio {
	padding-top: 8.5em;
}

/*** About Section ***/
#about { 
	display: flex;
	min-height: 50vh;
}

#about .wrapper {
	max-width: 80%;
	margin: auto;
	margin-right: 10%
}

@media (min-width: 768px) {
	#about .wrapper {
		margin-right: 24%;
	}
}

.about__intro {
	border-left: 2px solid;
	padding-left: 2.2em;
	margin-bottom: 1em;
	max-width: 25em;
}


/*** Portfolio Section ***/
/* Projects */

.portfolio__project-wrapper {
	padding: 0 10px;
}

.portfolio__project {
	position: relative;
	height: auto;
	padding: 0;
	background-color: #f7fbde;
	background-clip: padding-box;
	border: 10px solid transparent;
	overflow: hidden;
}
.portfolio__project__preview {
	position: relative;
	top: 0;
	height: auto;
}

.portfolio__project__preview > img {
	width: 100%;
	height: auto;
}

.portfolio__project__description {
	position: absolute;
	top: 100%;
	width: 100%;
	padding: 1.8em 1.3em;
	text-align: center;
	background: #fff;
}

.portfolio__project__name {
	font-family: 'Raleway', sans-serif;
	font-size: 1.1em;
	margin: 0;
	margin-bottom: .2em;
}

.portfolio__project__category {
	font-size: .9em;
	color: #888888;
	margin-bottom: .6em;
}

.portfolio__project__preview,
.portfolio__project__description {
	transition: all 600ms ease;
}

.portfolio__project:hover .portfolio__project__description {
	-webkit-transform: translateY(-100%);
	        transform: translateY(-100%);
}
.portfolio__project:hover .portfolio__project__preview {
	-webkit-transform: translateY(-2.5em);
	        transform: translateY(-2.5em);
}

@media screen and (max-width: 560px) {
  .nav-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    background: #000;
    opacity: 0;
    transition: all 0.2s ease;
  }
  .nav-container ul {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
  }
  .nav-container ul li {
    display: block;
    float: none;
    width: 100%;
    text-align: right;
    margin-bottom: 10px;
  }
  .nav-container ul li:not(:first-child) {
    margin-left: 0;
  }
  .nav-container ul li a {
    padding: 10px 25px;
    opacity: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    transform: translateY(-20px);
    transition: all 0.2s ease;
  }
  .nav-open {
    position: fixed;
    right: 10px;
    top: 10px;
    display: block;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 9999;
    border-radius: 50%;
  }
  .nav-open i {
    display: block;
    width: 20px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    margin-left: 14px;
  }
  .nav-open i:nth-child(1) {
    margin-top: 16px;
  }
  .nav-open i:nth-child(2) {
    margin-top: 4px;
    opacity: 1;
  }
  .nav-open i:nth-child(3) {
    margin-top: 4px;
  }
  #nav:checked + .nav-open {
    transform: rotate(45deg);
  }
  #nav:checked + .nav-open i {
    background: #fff;
    transition: transform 0.2s ease;
  }
  #nav:checked + .nav-open i:nth-child(1) {
    transform: translateY(6px) rotate(180deg);
  }
  #nav:checked + .nav-open i:nth-child(2) {
    opacity: 0;
  }
  #nav:checked + .nav-open i:nth-child(3) {
    transform: translateY(-6px) rotate(90deg);
  }
  #nav:checked ~ .nav-container {
    z-index: 9990;
    opacity: 1;
  }
  #nav:checked ~ .nav-container ul li a {
    opacity: 1;
    transform: translateY(0);
  }
  .hidden {
    display: none;
  }
  nav ul li a:hover {
    color: #d3d3d3;
    text-decoration: none;
  }
  nav .logo {
    display:none;
  }
  .description {
  width:20rem;
}
}
















