/* CSS Reset */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	line-height: 1;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	font-size: 14px;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

input,
button {
	-webkit-appearance: none;
	-moz-appearance: none;
}

html,
body {
	height: 100%;
	min-height: 100%;
    font-family: 'Raleway', sans-serif;
    color: #404040;
}

a {
	text-decoration: none;
	cursor: pointer;
}

.sidebar {
	width: 320px;
	background-color: #101010;
	position: fixed;
	left: 0;
	top: 0;
	height: 100%;
	box-sizing: border-box;
	padding: 30px 0 0;
	color: #d1d1d1;
	z-index: 10;
}

.sidebar .avatar {
	background: url(../img/emre.jpg) no-repeat center;
	display: block;
	width: 146px;
	height: 146px;
	border-radius: 50%;
	border: solid 2px #d1d1d1;
	margin: 0 auto 30px;
}

.sidebar h1 {
	font-size: 30px;
	margin-bottom: 60px;
	font-weight: 300;
	text-align: center;
}

.sidebar h1 span {
	margin-top: 15px;
	display: block;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	text-transform: uppercase;
}

.sidebar h1 span i {
	display: block;
	font-weight: 300;
	color: #5c5c5c;
}

.sidebar ul {
	border-top: solid 1px rgba(255,255,255,0.03);
	border-bottom: solid 1px rgba(255,255,255,0.03);
	padding: 20px 0;
	margin: 0 20px;
}

.sidebar ul li {

}

.sidebar ul li a {
	color: #d1d1d1;
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 600;
	line-height: 40px;
	padding-left: 25px;
	display: block;
	position: relative;
	transition: all 0.3s ease;
}

.sidebar ul li.active > a,
.sidebar ul li:hover > a,
.sidebar ul li.current-menu-item > a,
.sidebar ul li.current-menu-item:hover > a {
	color: #858585;
}

.sidebar ul li.active a::before,
.sidebar ul li a::before {
	opacity: 0;
	content:'';
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #171d53;
	left: 10px;
	top: 16px;
	transition: all 0.3s ease;
}

.sidebar ul li.active > a::before,
.sidebar ul li:hover > a::before {
	opacity: 1;
}

/* Submenu */

.sidebar ul ul {
	border-top: none;
	border-bottom: none;
	padding: 0;
}

.sidebar ul ul li a {
	text-transform: none;
	line-height: 18px;
	padding: 5px 15px;
}

.sidebar ul ul li a::before {
	display: none;
}

.sidebar .resume {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 320px;
	height: 55px;
	line-height: 55px;
	text-align: center;
	background-color: #1d1d1d;
	color: #fff;
	text-transform: uppercase;
	font-size: 14px;
}

.sidebar .resume::before {
	content: 'Download Resume';
}

/* Pages */

.pages {
	height: 100%;
	min-height: 100%;
	margin-left: 320px;
}

.page {
	min-height: 100%;
	display: flex;
	align-items: center;
	position: relative;
}

.detail .page {
	min-height: 100%;
	height: auto;
	flex-wrap: wrap;
}

article.page {
	display: block;
	align-items: unset;
	height: 100%;
}

.detail .page.page-01 {
	padding-top: 0;
	min-height: 100%;
}

.detail .page .img {
	overflow: hidden;
	opacity: 1;
	transform: translateX(0);
	transition: none;
}

.detail .page .piece {
	height: auto;
	padding-bottom: 0;
}

.detail .page .piece:last-child {
}

.detail .page .piece:nth-child(even) {
	flex-direction: row-reverse;
}

.detail .page .piece .img {
	margin-right: 80px;
}

.detail .page .piece:nth-child(even) .img {
	margin-left: 80px;
	margin-right: 0;
}

.detail .video {
    width: 100%;
}

/* Page Builder */
.page.page-01 {
	background: url(../img/noise.png) no-repeat right bottom / cover, linear-gradient(135deg, #4a4996 0%,#8689d2 100%);
	flex-wrap: wrap;
	padding-top: 160px;
	min-height: calc(100% - 160px);
}

.page-01 .piece {
	height: calc(100% - 70px);
}

/* UFC */
.page.page-02 {
	background: url(../img/noise.png) no-repeat right bottom / cover, linear-gradient(135deg, #303030 0%,#3b3b3b 100%);
}

.page.page-02 .slider-tracker span {
	background-color: #931400;
}

.page.page-02 .text a.cta {
	background-color: #931400;
	color: #fff;
}

.detail .page.page-02 .text a {
	color: #ca090a;
}

/* Blackdog */

.page.page-03 {
	background: url(../img/noise.png) no-repeat right bottom / cover, linear-gradient(135deg, #ef5e5e 0%,#d11d1f 100%);
}

.page.page-03 .text a.cta {
	color: #ba2323;
}

/* Split Image */

.page.page-04 {
	background: url(../img/noise.png) no-repeat right bottom / cover, linear-gradient(135deg, #a1c4fd 0%,#c2e9fb 100%);
}

.page.page-04 .text a.cta {
	color: #716967;
}

/* Vkydemarco */

.page.page-05 {
	background: url(../img/noise.png) no-repeat right bottom / cover, linear-gradient(135deg, #e2d1c3 0%,#fdfcfb 100%);
}

.page.page-05 .text a.cta {
	color: #272727;
}

/* MarsMinds */

.page.page-06 {
	background: url(../img/noise.png) no-repeat right bottom / cover, linear-gradient(135deg, #0b4668 0%,#365565 100%);
}

.page.page-06 .text a.cta {
	color: #fff;
	background-color: #d55852;
}

/* Boxers */

.page.page-07 {
	background: url(../img/noise.png) no-repeat right bottom / cover, linear-gradient(135deg, #c39c65 0%,#d1b28c 100%);
}

.page.page-07 .text a.cta {
	color: #fff;
	background-color: #030303;
}

/* Home */

.home .center {
	margin: 0 auto;
	max-width: 1200px;
	min-height: 100%;
	padding: 40px 80px; 
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
}

.about {
	margin-bottom: 40px;
}

h2 {
	font-size: 30px;
	line-height: 36px;
	font-weight: 300;
	color: #101010;
	margin-bottom: 25px;
}

p {
	font-size: 16px;
	line-height: 30px;
	font-weight: 300;
	color: #101010;
	margin-bottom: 20px;
}

.social a {
	margin-right: 30px;
	color: #171d53;
}

.social a span {
	color: #171d53;
	font-size: 18px;
	margin-right: 10px;
}

/* timeline */

.timeline {
	position: relative;
	display: flex;
	justify-content: space-between;
	flex-direction: row;
	margin: 20px 0 60px;
}

.timeline i {
	position: absolute;
	width: 100%;
	top: 50%;
	left: 0;
	height: 4px;
	border-radius: 2px;
	margin-top: -2px;
	background-color: rgba(16,16,16,0.1);
}

.timeline div {
	text-align: center;
	padding-bottom: 70px;
	position: relative;
	flex: 1;
	margin-bottom: 95px;
}

.timeline div:nth-child(odd) {
	padding-bottom: 0;
	padding-top: 70px;
	margin-bottom: 0;
	margin-top: 95px;
}

.timeline div h4 {
	line-height: 24px;
	color: #101010;
	opacity: 0;
	transform: scale(0.4, 0.4);
	transition: all 0.8s ease;
}

.active .timeline div h4 {
	opacity: 1;
	transform: scale(1, 1);
}

.timeline div:nth-child(2) h4 {
	transition-delay: 0.2s;
}

.timeline div:nth-child(3) h4 {
	transition-delay: 0.4s;
}

.timeline div:nth-child(4) h4 {
	transition-delay: 0.6s;
}

.timeline div:nth-child(5) h4 {
	transition-delay: 0.8s;
}

.timeline div:nth-child(6) h4 {
	transition-delay: 1s;
}

.timeline div h4 a {
	display: block;
	color: #171d53;
	font-weight: 700;
	font-size: 16px;
}

.timeline div span {
	position: absolute;
	bottom: 0;
	left: 0;
	text-align: center;
	width: 100%;
	font-weight: 600;
}

.timeline div span::before {
	content: '';
	position: absolute;
	width: 0;
	height: 30px;
	border-left: dashed 2px  rgba(16,16,16,0.1);
	left: 50%;
	margin-left: -1px;
	bottom: 25px;
}

.timeline div:nth-child(odd) span {
	bottom: auto;
	top: 0;
}

.timeline div:nth-child(odd) span::before {
	bottom: auto;
	top: 25px;
}

.timeline div:last-child span::after {
	content:'(Current Position)';
	position: absolute;
	font-size: 12px;
	width: 100%;
	left: 0;
	text-align: center;
	top: 20px;
}

/* Portfolio */

h2.pill {
	position: absolute;
	left: 50%;
	top: 0;
	opacity: 0;
	width: 280px;
	margin-left: -140px;
	height: 70px;
	border-radius: 35px;
	background-color: #101010;
	text-align: center;
	color: #d1d1d1;
	text-transform: uppercase;
	line-height: 70px;
	transform: translateY(-35px);
	transition: all 0.4s ease;
}

.page-01 h2.pill {
	opacity: 1;
}

.active h2.pill {
	transform: translateY(60px);
	opacity: 1;
}

/* Piece */

.piece {
	padding: 0 0 80px;
	height: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	box-sizing: border-box;
}

.slider-tracker {
	max-width: 180px;
	height: 4px;
	border-radius: 2px;
	background-color: rgba(16,16,16,0.2);
	transform: scale(1, 1) translate(0,-10px);
	transition: all 0.6s ease 1.6s;
	display: none;
}

.active .slider-tracker {
	transform: scale(1, 1) translate(0,-20px);
}

.slider-tracker span {
	display: block;
	width: 60px;
	height: 4px;
	background-color: #fff;
	border-radius: 2px;
	transform: scale(0, 1);
	transition: all 0.6s ease 2.6s;
}

.active .slider-tracker span {
	transform: scale(1, 1);
}

.slide-in {
	opacity: 0;
	transform: translateY(-50px);
	transition: all 0.6s ease 0s;
}

.active .slide-in {
	opacity: 1;
	transform: translateY(0);
}

.text {
	max-width: 500px;
	margin: 60px 80px;
	color: #fff;
}

.text h1 {
	font-size: 30px;
	font-weight: 300;
	margin-bottom: 20px;
}

.text h3 {
	font-size: 28px;
	font-weight: 300;
	margin-bottom: 20px;
	transition-delay: 0.3s;
}

.text p {
	color: #fff;
	transition-delay: 0.6s;
}

.text p:nth-child(3){
	transition-delay: 0.9s;
}

.text a.cta {
	display: inline-block;
	background: #fff;
	padding: 15px 20px 13px;
	font-size: 14px;
	text-transform: uppercase;
	font-weight: 600;
	border-radius: 2px;
	transition-delay: 1.4s;
	color: #373670;
}

.text a.cta:hover {
	transition-delay: 0; 
	transition-duration: 0.2s;
	transform: scale(1.04,1.04);
}

.text a.cta:active {
	transition-duration: 0.2s;
	transform: scale(1,1);
}

.text ul {
	margin: -10px 0 30px;
}

.text ul li {
	line-height: 26px;
	padding-left: 30px;
	position: relative;
	margin-bottom: 5px;
}

.text ul li::before {
	content: '';
	position: absolute;
	width: 5px;
	height: 5px;
	background-color: rgba(255,255,255,0.5);
	left: 15px;
	top: 10px;
	border-radius: 50%;
}

.img {
	overflow: hidden;
	margin: 60px 0;
	opacity: 0;
	transform: translateX(350px);
	transition: all 0.6s ease 0s;
}

.active .img {
	opacity: 1;
	transform: translateX(0);
}

.slide {
	display: flex;
	width: 200%;
}

.img img {
	width: 100%;
}

.next {
	text-transform: uppercase;
	position: absolute;
	bottom: 40px;
	font-size: 16px;
	text-transform: uppercase;
	color: #fff;
	text-align: center;
	font-weight: 600;
	left: 50%;
	width: 200px;
	margin-left: -100px;
	transition-delay: 2s;
}

.next span {
	display: block;
	font-size: 20px;
	margin-top: 5px;
}

.next:hover span {
	animation: next 1s infinite;
}

@keyframes next {
	0% {transform: translateY(0);}
	50% {transform: translateY(6px);}
	100% {transform: translateY(0);}
}

.next::after {
	content: '';
	background-color: rgba(0, 0, 0, 0.15);
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
	width: 20px;
	height: 4px;
	border-radius: 50%;
	position: absolute;
	bottom: -15px;
	left: 50%;
	transform: scale(0.7,1); 
	opacity:0.7;
	margin-left: -10px;
}

.next:hover::after{
	animation: shadow 1s infinite;
}

@keyframes shadow {
	0% {transform: scale(0.7,1); opacity:0.7;}
	50% {transform: scale(1,1); opacity:1;}
	100% {transform: scale(0.7,1); opacity:0.7;}
}


/*Media Queries*/

@media screen and (max-width:1440px) {

	.sidebar,
	.sidebar .resume {
		width: 280px;
	}

	.pages {
		margin-left: 280px;
	}

	.sidebar .avatar {
		width: 126px;
		height: 126px;
		margin: 0 auto 20px;
	}

	.sidebar h1 {
		margin-bottom: 25px;
	}

	.text {
		max-width: 400px;
	}

	.detail .text {
		max-width: 320px;
	}

	.sidebar ul {
		margin: 0 10px;
	}

	.sidebar ul ul {
		padding: 0 0 0 10px;
	}

}

@media screen and (max-width:1150px) {
	
	.text h3 {
		font-size: 24px;
	}

	p {
		font-size: 14px;
		line-height: 26px;
	}

	.piece {
		flex-wrap: wrap;
		flex-direction: column-reverse;
	}

	.img {
		margin:	60px 60px 0;
	}

	.text {
		max-width: none;
		margin: 60px;
	}

	.detail .text {
		max-width: none;
		margin: 60px;
	}

	.detail .page .piece {
		padding: 0;
	}

	.detail .page .piece:nth-child(even) {
		flex-direction: column-reverse;
	}

	.detail .page .piece .img {
		margin-right: 60px;
		margin-left: 60px;
	}

	.detail .page .piece:nth-child(even) .img {
		margin-left: 60px;
		margin-right: 60px;
	}

	.experience h2 {
		text-align: center;
		margin-bottom: 40px;
	}

	.timeline {
		flex-direction: column;
	}

	.timeline div {
		padding-bottom: 0;
		width: 150px;
		left: 50%;
		margin-left: -180px;
		margin-bottom: 40px;
	}

	.timeline div:nth-child(odd) {
		padding-bottom: 0;
		padding-top: 0;
		margin-bottom: 40px;
		margin-top: 0;
		margin-left: 30px;
	}

	.timeline div span {
		left: 100%;
		bottom: auto;
		top: 50%;
		margin-top: -6px;
		height: 15px;
		width: 80px;
		text-align: right;
	}

	.timeline div:nth-child(odd) span {
		bottom: 0;
		top: 50%;
		left: -80px;
		text-align: left;
	}

	.timeline div span::before {
		border-left: 0;
		border-bottom: dashed 2px rgba(16,16,16,0.1);
		width: 30px;
		left: -1px;
		bottom: 5px;
	}

	.timeline div:nth-child(odd) span::before {
		bottom: 5px;
		top: auto;
		left: auto;
		right: -2px;
	}

	.timeline div:last-child span::after {
		left: 30px;
		content: '(Current)';
	}

	.timeline i {
		height: 100%;
		top: 0;
		width: 4px;
		left: 50%;
		margin-left: -2px;
		margin-top: 0;
	}

}

@media screen and (max-width:960px) {

	.sidebar {
		width: 100%;
		height: 55px;
		overflow: hidden;
		position: relative;
		padding: 0;
		display: flex;
	}

	.sidebar nav {
		display: none;
	}

	.sidebar .avatar {
		width: 55px;
		height: 55px;
		margin: 0px 0 0 0px;
		background-size: cover;
		border: none;
		border-radius: 0;
	}

	.sidebar h1 {
		font-size: 22px;
		margin: 6px 0 0 15px;
		text-align: left;
	}

	.sidebar h1 span {
		margin-top: 5px;
	}

	.sidebar h1 span i {
		display: inline;
	}

	.sidebar .resume {
		width: 180px;
		left: auto;
		right: 0;
	}

	.pages {
		margin-left: 0;
	}

}

@media screen and (max-width:800px) {

	.social a {
		margin-bottom: 10px;
		display: block;
	}

}

@media screen and (max-width:600px) {
	
	.home .center {
		padding: 40px 20px;
	}

	.img {
		margin: 40px 20px 0;
	}

	.detail .page .piece:first-child{
		margin-top: 50px;
	}

	.detail .page .piece .img,
	.detail .page .piece:nth-child(even) .img {
		margin: 0 20px;
	}

	.text,
	.detail .text {
		margin: 40px 20px;
	}

}

@media screen and (max-width:550px) {

	.sidebar h1 {
		margin: 18px 0 0 15px;
	}

	.sidebar h1 span {
		display: none;
	}

	.sidebar .resume {
		width: 100px;
	}

	.sidebar .resume::before {
		content: 'Resume';
	}

	.timeline i {
		left: 0;
		margin-left: 0;
	}

	.timeline div {
		left: 80px;
		margin-left: 0;
		text-align: left;
	}

	.timeline div span {
		left: -65px;
		text-align: left;
	}

	.timeline div span::before {
		width: 20px;
		left: 40px;
	}

	.timeline div:nth-child(odd) {
		margin-left: 0;
	}

	.timeline div:nth-child(odd) span {
		left: -65px;
	}

	.timeline div:nth-child(odd) span::before {
		left: 40px;
		right: auto;
	}

	.timeline div:last-child span::after {
		left: -15px;
	}

	.experience h2 {
		text-align: left;
		margin-bottom: 40px;
	}

}

@media screen and (max-width:400px) {

	.text a.cta {
		display: block;
		width: auto;
		text-align: center;
		margin-top: 30px;
	}

}