/* ========================================================================
 *  Geral
 * ======================================================================== */

html {
  position: relative;
  min-height: 100%;
  font-family: 'Roboto', Helvetica, Arial ,sans-serif;
}

body {
	width: 100%;
	font-family: 'Roboto', Helvetica, Arial, sans-serif;
	/* Margin bottom by footer height */
	margin-bottom: 100px;
}

body.open-nav {
	overflow-y: hidden;
}

h1, h2, .h1, .h2 {
	font-weight: 100;
}

section:not(#intro) {
	min-height: 708px;
	min-height: 100vh;
	z-index: 2;
}

section#hero {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	z-index: 0;
	position: relative;
}

.down-btn-row {
	position: absolute;
	width: 100%;
	bottom: 15px;
	left: 15px;
}

.down-btn-row a {
	color: #fff;
	-webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
}

.down-btn-row a:hover {
	font-size: 1.3em;
}

/* ========================================================================
 *  Navbar
 * ======================================================================== */

nav {
	width: 100%;
	color: #fff;
	position: fixed;
	top: 0;
	padding: 10px 0;
	/*background-color: red;*/
	z-index: 1050;
}

nav .container-fluid {
	padding: 0 30px;
}

nav img {
	height: 50px;
}

nav img:nth-child(2) {
	display: none;
}

#nav-icon {
  width: 30px;
  height: 20px;
  position: relative;
  margin: 16px auto 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
}

#nav-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

#nav-icon span:nth-child(1) {
  top: 0px;
}

#nav-icon span:nth-child(2),#nav-icon span:nth-child(3) {
  top: 8px;
}

#nav-icon span:nth-child(4) {
  top: 16px;
}

#nav-icon.open span:nth-child(1) {
  top: 8px;
  width: 0%;
  left: 50%;
}

#nav-icon.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#nav-icon.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#nav-icon.open span:nth-child(4) {
  top: 8px;
  width: 0%;
  left: 50%;
}

/* onWhite */

nav.onWhite img:nth-child(1) {
	display: none;
}

nav.onWhite img:nth-child(2) {
	display: inline-block;
}

nav.onWhite #nav-icon span {
	background-color: #16E693;
}

body.open-nav nav.onWhite img:nth-child(1) {
	display: inline-block;
}

body.open-nav nav.onWhite img:nth-child(2) {
	display: none;
}

body.open-nav nav.onWhite #nav-icon span {
	background-color: #fff;
}

body.modal-open nav #nav-icon {
	display: none;
}

@media (max-width: 768px) {
	body nav.nav-bg {
		background-color: #222;
	}
	body nav.onWhite {
		background-color: #f1f1f1;
	}
	body.open-nav nav.nav-bg,
	body.open-nav nav.onWhite {
		background-color: transparent;
	}
}

/* ========================================================================
 *  Menu
 * ======================================================================== */

section#menu {
	height: 100%;
	width: 100%;
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#222+0,000000+100;Black+3D+%231 */
	background: #222; /* Old browsers */
	background: -moz-radial-gradient(center, ellipse cover, rgba(50,50,50,0.99) 0%, rgba(20,20,20,0.99) 100%); /* FF3.6-15 */
	background: -webkit-radial-gradient(center, ellipse cover, rgba(50,50,50,0.99) 0%,rgba(20,20,20,0.99) 100%); /* Chrome10-25,Safari5.1-6 */
	background: radial-gradient(ellipse at center, rgba(50,50,50,0.99) 0%,rgba(20,20,20,0.99) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='rgba(50,50,50,0.99)', endColorstr='rgba(20,20,20,0.99)',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
	position: fixed;
	top: 0;
	left: 0;
	color: #fff;
	z-index: -1;
	opacity: 0;
	overflow-y: scroll;
	font-family: 'Unica One';
	text-transform: lowercase;
	-webkit-transition: all 0.2s linear;
	-moz-transition: all 0.2s linear;
	-o-transition: all 0.2s linear;
	transition: all 0.2s linear;
}

section#menu.open {
	opacity: 1;
	z-index: 998;
}

span.esconder {
	opacity: 0;
}

section#menu ul {
	padding-top: 200px;
	font-size: 4em;
	line-height: 2em;
}

section#menu ul a {
	color: #aaa;
	color: #fff;
	-webkit-transition: all 0.2s linear;
	-moz-transition: all 0.2s linear;
	-o-transition: all 0.2s linear;
	transition: all 0.2s linear;
}

section#menu ul a:hover .menu-item {
	display: none;
}

section#menu ul a .menu-description {
	display: none;
}

section#menu ul a:hover .menu-description {
	display: inline-block;
}

@media (max-width: 768px) {
	section#menu ul a:hover .menu-item {
		display: inline-block;
	}
	section#menu ul a:hover .menu-description {
		display: none;
	}
}

section#menu ul a:hover,
section#menu ul a:active,
section#menu ul a:focus {
	text-decoration: none;
	color: #fff;
	color: #16E693;
	/*font-weight: 400;*/
}

/* ========================================================================
 *  Homepage
 * ======================================================================== */

section#hero {
	background-image: url("../img/mist.jpg");
}

.type-wrap {
	min-height: 360px;
}

#typed,
.typed-cursor {
	color: #fff;
	font-weight: 100;
}

.typed-cursor {
	color: #aaa;
}

#typed a {
	color: #fff;
	font-weight: 400;
}

@media (max-width: 768px) {
	.type-wrap {
		font-size: 2em;
	}
}

/* ========================================================================
 *  Intro
 * ======================================================================== */

section#intro {
	background-color: #222;
	padding: 110px 0;
}

/* ========================================================================
 *  Footer
 * ======================================================================== */

.footer {
  background-color: #333;
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 100px;
  border-top: 1px solid #222;
  color: #ddd;
  padding-top: 25px;
}

footer .container a {
	color: #aaa;
	-webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

footer .container a:hover {
	color: #16E693;
}

footer .container a img#ic {
	height: 18px;
	width: 20px;
	background-image: url("../img/ic.svg");
	background-size: 17px 19px;
	background-position: center;
	background-repeat: no-repeat;
	-webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
}

footer .container a:hover img#ic {
	background-image: url("../img/ic-hover.svg");
}

footer .container#credits {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #222;
	padding: 10px;
	font-size: 0.65em;
}

footer .container#credits a:hover {
	color: #fff;
	text-decoration: none;
}

footer .container#credits a:hover span#sublinhado {
	text-decoration: underline;
}

footer .container#credits a span#mudar-icon > .fa + .fa,
footer .container#credits a:hover span#mudar-icon > .fa {
	display: none;
}
footer .container#credits a:hover span#mudar-icon > .fa + .fa {
	display: inherit;
}

/* ========================================================================
 *  Work [page]
 * ======================================================================== */

/* Carousel */

.carousel,
.item,
.active {
    height: 100%;
}

.carousel-inner {
    height: 100%;
    position: absolute;
}

.fill {
    width: 100%;
    height: 100%;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
}

/* Portfolio [section] */

section#portfolio {
	background-color: #f1f1f1;
	border-top: 1px solid #ddd;
}

@media (min-width: 768px) {
	section#portfolio {
		box-shadow: inset 0px 0px 100px -20px rgba(34,34,34,0.2);
	}
}

section#portfolio #catalogo {
  padding: 50px 15px;
}

section#portfolio #catalogo .row img {
  margin-bottom: 30px;
}

section#portfolio #catalogo .imagem-catalogo img {
  height: 300px;
}

/* project Modals */

.project-modal .modal-content {
  padding: 0 0 100px 0;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  text-align: center;
  background-clip: border-box;
  -webkit-box-shadow: none;
  box-shadow: none;
  /*background-color: #f1f1f1;*/
  background-color: rgba(0,0,0,0.25);
}

.project-modal .close-modal {
  position: fixed;
  top: 15px;
  right: 25px;
  width: 40px;
  height: 40px;
  background-color: transparent;
  cursor: pointer;
  z-index: 9999;
}

.project-modal .close-modal:hover {
  opacity: .3;
}

.project-modal .close-modal .lr {
  z-index: 1051;
  width: 1px;
  height: 40px;
  margin-left: 20px;
  background-color: #16E693;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.project-modal .close-modal .lr .rl {
  z-index: 1052;
  width: 1px;
  height: 40px;
  background-color: #16E693;
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}

.project-modal .modal-backdrop {
  display: none;
  opacity: 0;
}

.project-modal .modal-content .container .titulo-projecto {
	height: 120px;
	padding: 10px 20px;
	margin: auto;
	text-align: left;
	background-color: #fcfcfc;
    border-bottom: 1px solid #e8e8e8;
}

.project-modal .modal-content .container .titulo-projecto h3,
.project-modal .modal-content .container .titulo-projecto h5 {
	font-weight: 300;
}

.project-modal .modal-content .container .titulo-projecto h5 {
	color: #666;
}

.project-modal .modal-content .container > div {
	/*min-width: 404px;*/
	box-shadow: 0px 30px 60px 0px rgba(20,20,20,0.5);
}

.project-modal .modal-content .container > div > div {
	left: 0px;
	width: 100%;
	height: 0px;
	position: relative;
	padding-bottom: 141.4227%;
}

.project-modal .modal-content .container > div > div iframe {
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	position: absolute;
	background-color: #fff;
}
