/*
 * StyleName:		main.css
 * Email:		trung.styles@gmail.com
 *
 */

* {
	user-select: none;
}

body {
	background: #F6F6F6;
}

.clearfix {
	zoom: 1 !important;
}
.clearfix:after {
	content: "." !important;
	clear: both !important;
	display: block !important;
	height: 0 !important;
	visibility: hidden !important;
}

#header {
	width: 100%;
}
#header .logo {
	padding: 10px 0;
}
#header .name {
	margin: 15px 0;
	padding: 10px 0;
	color: #47A3DA;
	font-size: 32px;
	font-family: Sreda, Tahoma, Arial, sans-serif;
	line-height: normal;
}
#header .logo img {
	max-width: 100px;
	max-height: 70px;
}
#header .nav {
	margin: 20px 0;
	padding: 10px 0;
	font-size: 20px;
	font-weight: 500;
	text-align: right;
}
#header .nav ul {
	list-style: none outside none;
	margin: 0;
	padding: 0;
}
#header .nav li {
	display: inline-block;
}
#header .nav li ~ li {
	margin-left: 10px;
}
#header .nav a {
	color: #673AB7;
}
#header .nav a:hover,
#header .nav li.active a {
	color: #E91E63;
}

.bg {
	pointer-events: none;
	list-style: none;
	margin: auto;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
}
.bg li {
	display: block;
	background-color: rgba(0, 0, 0, .1);
	width: 40px;
	height: 40px;
	position: absolute;
	bottom: -160px;
	animation: square 25s linear infinite;
}
.bg li:nth-child(1) {
	left: 10%;
}
.bg li:nth-child(2) {
	width: 80px;
	height: 80px;
	left: 20%;
	animation-delay: 2s;
	animation-duration: 17s;
}
.bg li:nth-child(3) {
	left: 25%;
	animation-delay: 4s;
}
.bg li:nth-child(4) {
	background-color: rgba(0, 0, 0, .15);
	width: 60px;
	height: 60px;
	left: 40%;
	animation-duration: 22s;
}
.bg li:nth-child(5) {
	left: 70%;
}
.bg li:nth-child(6) {
	background-color: rgba(0, 0, 0, .2);
	width: 120px;
	height: 120px;
	left: 80%;
	animation-delay: 3s;
}
.bg li:nth-child(7) {
	width: 160px;
	height: 160px;
	left: 32%;
	animation-delay: 7s;
}
.bg li:nth-child(8) {
	width: 20px;
	height: 20px;
	left: 55%;
	animation-delay: 15s;
	animation-duration: 40s;
}
.bg li:nth-child(9) {
	background-color: rgba(0, 0, 0, .25);
	width: 10px;
	height: 10px;
	left: 25%;
	animation-delay: 2s;
	animation-duration: 40s;
}
.bg li:nth-child(10) {
	width: 160px;
	height: 160px;
	left: 90%;
	animation-delay: 11s;
}

@keyframes square {
	0% {
		transform: translateY(0);
	}
	100% {
		transform: translateY(-150vh) rotate(600deg);
	}
}









#contact {
	color: #607D8B;
	font-size: 1.5vw;
	background: rgba(255, 255, 255, .25);
	border-radius: 10px;
	box-shadow:
		0 1px 3px rgba(0, 0, 0, .12),
		0 1px 2px rgba(0, 0, 0, .24);
	position: fixed;
	right: 1.5vw;
	bottom: 1.5vw;
}
.cv {
	padding: .25vw 1.15vw;
}
.cv > a {
	display: inline-block;
	padding: 1vw;
	padding-left: 3vw;
	font-weight: 600;
	line-height: 1;
	position: relative;
}
.cv > a:before {
	content: "";
	margin: auto;
	background: url(../img/CV.svg) no-repeat center / 95%;
	width: 2.5vw;
	height: 2.5vw;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
}
.phone {
	display: table;
	margin: auto;
	padding: 1vw;
	width: 100%;
}
.cv ~ .phone {
	border-top: 1px solid #DFDFDF;
}
.phone > a {
	display: table;
	width: 100%;
}
.phone--number {
	display: table-cell;
	padding: .25vw;
	padding-left: .5vw;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	vertical-align: middle;
	position: relative;
	top: .15vw;
	left: .25vw;
}
.phone--icon {
	display: table-cell;
	vertical-align: middle;
	width: 2.5vw;
	height: 2.5vw;
	position: relative;
}
.phone--ringing {
	margin: auto;
	background: #3498DB;
	border-radius: 100%;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	transform: translate3d(0, 0, 0) scale(1);
	box-shadow:
		0 0 0 0 rgba(52, 152, 219, 0),
		0 .05em .1em rgba(0, 0, 0, .2);
	animation: phone-outer 3s infinite;
}
.phone--ringing:before,
.phone--ringing:after {
	content: "";
	margin: auto;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
.phone--ringing:before {
	opacity: 1;
	background: rgba(255, 255, 255, .1);
	border-radius: 100%;
	animation: phone-inner 3s infinite;
}
.phone--ringing:after {
	background: url(../img/phone.svg) no-repeat center / 55%;
	animation: phone-icon 3s infinite;
}

@keyframes phone-outer {
	0% {
		transform: translate3d(0, 0, 0) scale(1);
		box-shadow:
			0 0 0 0 rgba(52, 152, 219, 0),
			0 .05em .1em rgba(0, 0, 0, .2);
	}
	33.3333% {
		transform: translate3d(0, 0, 0) scale(1.1);
		box-shadow:
			0 0 0 0 rgba(52, 152, 219, .1),
			0 .05em .1em rgba(0, 0, 0, .5);
	}
	66.6666% {
		transform: translate3d(0, 0, 0) scale(1);
		box-shadow:
			0 0 0 .5em rgba(52, 152, 219, 0),
			0 .05em .1em rgba(0, 0, 0, .2);
	}
	100% {
		transform: translate3d(0, 0, 0) scale(1);
		box-shadow:
			0 0 0 0 rgba(52, 152, 219, 0),
			0 .05em .1em rgba(0, 0, 0, .2);
	}
}
@keyframes phone-inner {
	0% {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(0);
	}
	33.3333% {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(.9);
	}
	66.6666% {
		opacity: 0;
		transform: translate3d(0, 0, 0) scale(0);
	}
	100% {
		opacity: 0;
		transform: translate3d(0, 0, 0) scale(0);
	}
}
@keyframes phone-icon {
	0% {
		transform: translate3d(0, 0, 0);
	}
	2% {
		transform: translate3d(.01em, 0, 0);
	}
	4% {
		transform: translate3d(-.01em, 0, 0);
	}
	6% {
		transform: translate3d(.01em, 0, 0);
	}
	8% {
		transform: translate3d(-.01em, 0, 0);
	}
	10% {
		transform: translate3d(.01em, 0, 0);
	}
	12% {
		transform: translate3d(-.01em, 0, 0);
	}
	14% {
		transform: translate3d(.01em, 0, 0);
	}
	16% {
		transform: translate3d(-.01em, 0, 0);
	}
	18% {
		transform: translate3d(.01em, 0, 0);
	}
	20% {
		transform: translate3d(-.01em, 0, 0);
	}
	22% {
		transform: translate3d(.01em, 0, 0);
	}
	24% {
		transform: translate3d(-.01em, 0, 0);
	}
	26% {
		transform: translate3d(.01em, 0, 0);
	}
	28% {
		transform: translate3d(-.01em, 0, 0);
	}
	30% {
		transform: translate3d(.01em, 0, 0);
	}
	32% {
		transform: translate3d(-.01em, 0, 0);
	}
	34% {
		transform: translate3d(.01em, 0, 0);
	}
	36% {
		transform: translate3d(-.01em, 0, 0);
	}
	38% {
		transform: translate3d(.01em, 0, 0);
	}
	40% {
		transform: translate3d(-.01em, 0, 0);
	}
	42% {
		transform: translate3d(.01em, 0, 0);
	}
	44% {
		transform: translate3d(-.01em, 0, 0);
	}
	46% {
		transform: translate3d(0, 0, 0);
	}
}