* {
 -webkit-box-sizing: border-box;
 -moz-box-sizing: border-box;
 box-sizing: border-box;	
} 

body {
	background-repeat: auto;
	font-family:"Open sans", sans-serif;
	font-size:16px;
}

.container {
	width:90%;
	max-width: 1000px;
	margin:auto;
	overflow: hidden;
}

/* --- header ---   */

header {
	background: url('../img/bg.jpg') #49a3d6;
	background-repeat: no-repeat;
	background-position: center;
	max-height: 600px ;
}

header .menu {
	margin: 40px 0px ;
	text-align: right;
}

header .menu a {
	margin: 0 20px;
	color: #fff;
	padding-bottom: 10px;
	display: inline-block;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	font-size: 1em;
}

header .menu a:hover {
	border-bottom: 2px solid #fff;
}

header .container-text {
	display: flex;
	margin: 190px 0;
	justify-content: center;
	align-content: center;
}

header .container-text .text {
	border: 2px solid rgba(255, 255, 255, 1.0);
	border-radius: 3px;
	display: inline-block;
	text-align: center;
	padding: 20px 60px;
}

header .container-text .text h1, 
header .container-text .text h2 {
	 color: #fff;
	 font-weight: 300;
	 margin: 0;
}

header .container-text .text .name {
	margin-bottom: 10px;
	font-size: 50px;
	line-height: 50px;
}

header .container-text .text .profession {
	font-size: 25px;
	line-height: 25px;
}

/* --- about ---   */
.main .container {
	overflow: visible;
}

.main .about {
	text-align: center;

}

.main .about .photo {
	margin-top: -60px;
}

.main .about .photo img {
	vertical-align: top;
	border-radius: 50%;
	border: 5px solid rgba(255, 255, 255, 0.2);

}

.main .about .text {
	color: #5a5a5a;
	font-weight: 600;
	font-size: 1em;
	line-height: 30px;
	width: 80%;
	margin: 40px auto 60px auto;

}

.main .about .text .title {
	font-size: 34px;
	line-height: 34px;
	margin-bottom: 40px;
	font-weight: 600;
	color: #dd820d;
	text-align: center;
}


.main .about .text .bold {
	color: #3895ea;
	text-decoration: underline;

}

/* --- work/skills ---   */

.main .works {
	background: #f2f2f2;
	padding: 60px 0;
}

.main .works .container {
	overflow: hidden;
}

.main .works .title {
	font-size: 34px;
	line-height: 34px;
	margin-bottom: 40px;
	font-weight: 600;
	color: #323068;
	text-align: center;
}


.main .works .work-container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap ;
	justify-content: space-between;
}

.main .works .work-container .work {
	width: 23%;
	margin-bottom: 40px;

}

.main .works .work-container .thumb {
	width: 100%;
	margin-bottom: 10px;
}

.main .works .work-container .thumb img {
	width: 100%;
	vertical-align: top;
	border-radius: 3px;
}

.main .works .work-container .work .description {
	text-align: center;

}

.main .works .work-container .work .description .name {
	font-weight: 700;
	color: #3895ea;
	margin-bottom: 10px;
}

.main .works .work-container .work .description .category {
	font-size: 14px;
	color: #636363;
}

/*  --- footer ---  */

footer .contact {
	padding: 60px 0;

}

footer .contact .container .title {
	font-size: 34px;
	line-height: 34px;
	margin-bottom: 40px;
	font-weight: 600;
	color: #3895ea;
	text-align: center;
}

footer .contact .contact-form {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

footer .contact .contact-form input[type="text"],
footer .contact .contact-form input[type="email"],
footer .contact .contact-form textarea{
	border: 2px solid #cecece;
	border-radius: 5px;
	padding: 15px 20px;
	font-size: 20px;
	color: #a4a4a4;
}

footer .contact .contact-form input[type="text"]:focus,
footer .contact .contact-form input[type="email"]:focus,
footer .contact .contact-form textarea:focus {
	border: 2px solid #3895ea;
	outline: none;
}

footer .contact .contact-form input[type="text"],
footer .contact .contact-form input[type="email"] {
	width: 49%;
	margin-bottom: 15px;
}

footer .contact .container .contact-form textarea{
	width: 100%;
	height: 100px;
	min-height: 100px;
	min-width: 100%;
	max-height: 300px;
	margin-bottom: 15px;
}

footer .contact .container .contact-form .button {
	margin: auto;
	background: #387bea;
	color: #fff;
	border: none;
	border-radius: 3px;
	padding: 20px 40px;
	cursor: pointer;
}

footer .contact .container .contact-form .button:hover {
	background: #3895ea;
}

footer .social-media{
	background: #1e2b38;
	padding: 60px 0;
}

footer .social-media .container {
	display: flex;
	justify-content: center;
}

footer .social-media a {
	color: #fff;
	text-align: center;
	width: 100px;
	display: block;
	padding: 10px;
	font-size: 30px;
	background: none;
	margin: 0 20px;
	border-radius: 5px;
}

footer .social-media .twitter:hover {
	background: #657786;
}

footer .social-media .facebook:hover {
	background: #1877f2;
}

footer .social-media .linkedin:hover {
	background: #0a66c2;
}

footer .social-media .instagram:hover {
	background: #c13584;
}

footer .social-media .github:hover {
	background: #bd2c00;
}

footer .legal a {
	color: #1e2b38;
	text-align: center;
	width: 100px;
	display: inline;
	padding: 10px;
	font-size: 14px;
	background: none;
}

/*  --- media queries ---  */

@media screen and (max-width: 800px) {
	header .menu {
		text-align: center;
	}

	.main .works .work-container .work {
		width: 46%;
	}
}

@media screen and (max-width: 500px) {

	.header .text-container .text .name {
		font-size: 35px;
	} 

	.header .text-container .text .profession{
		font-size: 18px ;
	}

	footer .social-media .container {
		flex-wrap: wrap;
		padding: 25px 0;
	}

	
}