* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 62.5%;
}
body {
	margin: 0 auto;
	font-family: 'Nunito Sans', sans-serif;
	line-height: 1.3;
	color: #fff;
	background: #171717;
}

h1,
h2,
h3 {
	font-family: 'Comfortaa', sans-serif;
	line-height: 1.3;
}

p {
	font-size: 16px;
}
/* Navigation */

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	max-width: 1200px;
	height: 100px;
	margin: 0 auto;
	padding: 20px;
}

.header-nav {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	animation: slideFromRight 2s ease;
	transition: all 0.3s ease;
}

.header-nav ul {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	list-style-type: none;
	padding: 0;
}

.header-nav li {
	padding-right: 10px;
	padding-left: 20px;
}

.header-nav li a {
	display: block;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 1.3rem;
	font-weight: 700;
	color: #b4b4b4;
	transition: color 0.3s ease;
}

.header-nav li a:hover,
.header-nav li a.active {
	color: #bf2c71;
}

.header-nav .nav-item a::after {
	content: ' ';
	position: relative;
	top: 50%;
	left: -110%;
	display: inline-block;
	color: #bf2c71;
	border-left: 5px solid #bf2c71;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	pointer-events: none;
	opacity: 0;
	transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.header-nav .nav-item a:hover::after {
	opacity: 1;
}

.header-nav .nav-item i {
	list-style-type: none;
	padding-right: 10px;
}

/* intro*/

@keyframes slideFromLeft {
	from {
		opacity: 0;
		transform: translateX(-100%);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideFromRight {
	from {
		transform: translateX(100%);
	}

	to {
		transform: translateX(0);
	}
}

@keyframes up {
	from {
		opacity: 0;
		transform: translateY(100%);
	}
	to {
		opacity: 1;
		transform: translateY(0%);
	}
}

@keyframes up_intro {
	from {
		opacity: 0;
		transform: translateY(100%);
	}
	to {
		opacity: 0.3;
		transform: translateY(0%);
	}
}

@keyframes changeColor {
	from {
		opacity: 0;
		transform: translateY(100%);
		color: #bf2c71;
	}
	to {
		opacity: 1;
		transform: translateY(0%);
		color: #fff;
	}
}

@keyframes show {
	from {
		opacity: 0;
		transform: translateY(0%);
	}
	to {
		opacity: 1;
		transform: translateY(0%);
	}
}

.logo {
	width: 300px;
	height: auto;
	opacity: 0;
	animation: slideFromLeft 2s forwards;
	transition: animation 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/*intro section*/
.intro {
	scroll-margin-top: 100px;
	width: 100%;
	min-height: 200px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.intro-box {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	animation: up 2s 2s ease forwards;
	opacity: 0;
}

.intro-bg {
	position: absolute;
	top: 0;
	width: 100%;
	height: 200px;
	background: url('/images/bg_top1.webp');
	background-size: cover;
	background-position: center;
	opacity: 0;
	animation: up_intro 2s 2s ease forwards;
}

h1.intro-title {
	display: inline;
	font-size: 2.7rem;
	font-style: inherit;
	font-weight: 700;
	text-transform: uppercase;
	/* animation: slideFromLeft 3s ease; */
	animation: changeColor 2s 2s ease forwards;
	opacity: 0;
}
h1.intro-title span {
	text-transform: none;
}

h2 {
	margin-top: 20px;
	font-size: 2rem;
	animation: up 2s 3s ease forwards;
	opacity: 0;
}

/*main menu */

.main-menu {
	width: 100%;
	max-width: 1200px;
	margin: 10px auto;
	padding: 0px 10px;
}

.main-menu nav > ul {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	list-style: none;
	padding: 20px 10px 10px;
	opacity: 0;
	animation: up 2s 2s ease forwards;
}

.main-menu nav > ul li {
	padding: 0 10px 0 0;
}

.main-menu a.main-menu-item {
	display: block;
	color: #b4b4b4;
	text-decoration: none;
	padding: 10px 40px 10px 0px;
	font-size: 2rem;
	font-family: 'Comfortaa', sans-serif;
	font-weight: bold;
}

a.main-menu-item:hover,
a.main-menu-item:active {
	color: #bf2c71;
}

a.main-menu-item::after,
a.nav-active::after {
	content: '';
	position: relative;
	display: block;
	top: 50%;
	left: 40%;
	margin-top: 2px;
	width: 0px;
	height: 0px;
	color: #bf2c71;
	opacity: 0;
	border-top: 5px solid #bf2c71;
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
	pointer-events: none;
	transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

a.main-menu-item.nav-active {
	color: #bf2c71;
}

a.main-menu-item:hover::after,
a.nav-active::after {
	transform: translateY(150%);

	opacity: 1;
}
/* main container*/

.main-container,
.main-container-web,
.main-container-ui {
	margin: 0 auto;
	width: 100%;
	max-width: 1200px;
	padding: 20px 0;
	animation: show 3s 1s ease forwards;
	border: 1px solid #bf2c71;
	opacity: 0;
}

.main-container-web,
.main-container-ui {
	display: none;
	padding-top: 30px;
}

.ui_list_item {
	padding: 20px 100px;
}

.hide {
	display: none;
}
.img-zoom {
	display: none;
}

.show {
	display: block;
}

/* slider*/
.splide_foto {
	display: none;
}

.splide img {
	max-height: 400px;
	width: auto;
}

/* contact*/

.about-me {
	position: relative;
	display: flex;
	justify-content: space-between;
	margin: 60px 10px;
}

.img {
	display: block;
	margin-top: 5px;
	width: 300px;
	height: auto;
	border: 0;
}

.about-me-top {
	font-size: 2rem;
	animation: up 2s 3s ease forwards;
	color: #bf2c71;
	opacity: 0;
}

.about-me-desc {
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	padding: 0 20px;
	width: 50%;
}

.about-me-desc p {
	font-size: 1.8rem;
	margin-bottom: 10px;
}

.about-me-tech {
	padding: 10px 0 10px;
}

h3 {
	padding: 10px;
	text-transform: uppercase;
	font-size: 1.4rem;
	letter-spacing: 0.2em;
	background-color: rgba(255, 255, 255, 0.1);
}

a.mail {
	display: inline-block;
	position: relative;
	font-family: 'Comfortaa', cursive;
	font-size: 1.8rem;
	font-weight: 700;
	text-decoration: none;
	color: #bf2c71;
	transition: color 0.2s ease;
}
a.mail:hover {
	color: #fff;
}

a.mail::after {
	position: absolute;
	left: 0;
	bottom: -2px;
	content: ' ';
	display: block;
	height: 3px;
	width: 100%;
	background-color: #bf2c71;
	animation: line;
	animation-duration: 5s;
	transition: background-color 0.2s ease;
}

a.mail:hover::after {
	background-color: #fff;
}

ul.technologies {
	list-style-type: none;
	padding: 0;
}

li.tech-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 0px;
	font-size: 1.3rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	border-bottom: 1px solid #333;
}

.tech-design {
	display: inline-block;
	overflow: hidden;
	padding-left: 20px;
}

img.tech-icons {
	padding: 0 1px;
	height: 1.8rem;
	font-size: 1.3rem;
}

/* footer */

footer {
	width: 100%;
	max-width: 1200px;
	padding: 20px 10px;
	margin: 0 auto;
	border-top: 1px solid #333;
}
footer p {
	color: #666;
	font-size: 1.2rem;
}

footer a {
	color: #666;
}

/* web & UI section*/

.web__list_box,
.ui__list_box {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	list-style: none;
}

.ui__list_box {
	align-items: start;
}

.web_list_item,
.ui_list_item {
	padding: 0 20px 20px;
}

.ui_list_item {
	padding: 0 40px 20px;
}

/* media queries*/

@media (max-width: 1024px) {
	.header-nav ul {
		top: 10px;
	}
	.header-nav li a {
		font-size: 1.3rem;
	}

	.logo {
		width: 280px;
		height: auto;
	}

	h1.intro-title {
		font-size: 2.7rem;
	}
	h2 {
		font-size: 1.7rem;
	}
	.img {
		margin-top: 5px;
		width: 250px;
		height: auto;
	}

	.about-me-desc {
		padding: 0 20px;
	}

	.about-me-desc p {
		font-size: 1.8rem;
	}

	.about-me-tech {
		padding: 0px;
	}

	img.tech-icons {
		font-size: 1.3rem;
	}
	h3 {
		font-size: 1.3rem;
	}
	li.tech-title {
		font-size: 1.2rem;
		letter-spacing: 0.3px;
	}
	a.mail {
		font-size: 1.8rem;
	}
	.main-menu nav > ul {
		padding: 10px 10px 10px;
	}
	.main-menu a.main-menu-item {
		padding: 10px 40px 0px 0px;
		font-size: 1.8rem;
	}
}

@media (max-width: 768px) {
	.logo {
		width: 250px;
		height: auto;
	}
	.intro {
		margin: 0;
	}

	.intro-bg {
		background: url('/images/bg_top1_768.webp');
		background-position: right;
	}
	h1.intro-title {
		font-size: 2.4rem;
	}
	h2 {
		font-size: 1.8rem;
	}
	.header-nav li a {
		font-size: 14px;
	}
	.img {
		margin-top: 5px;
		margin-bottom: 1em;
		width: 200px;
		height: auto;
	}

	.main-menu a.main-menu-item {
		font-size: 1.6rem;
	}

	.main-container-web {
		padding-top: 40px;
	}

	.about-me-desc {
		padding: 0 20px;
	}

	footer p {
		font-size: 1.2rem;
	}
}

@media (max-width: 576px) {
	header {
		padding: 20px 10px;
	}

	.header-nav ul {
		top: 10px;
		display: flex;
		align-items: start;
		flex-direction: column;
	}
	.header-nav li a {
		font-size: 12px;
		padding-bottom: 10px;
	}

	.logo {
		width: 170px;
	}

	.header-nav .nav-item a::after {
		border-left: 4px solid #bf2c71;
		border-top: 4px solid transparent;
		border-bottom: 4px solid transparent;
	}

	.intro-box {
		/* top: 50px; */
		border: none;
		padding-left: 10px;
	}

	.intro-bg {
		background: url('/images/bg_top1_576.webp');
	}

	h1.intro-title {
		font-size: 2.3rem;
		line-height: 1.4;
	}

	h2 {
		font-size: 1.5rem;
	}

	.main-container {
		padding: 30px 10px;
	}
	.img {
		margin-top: 0px;
		margin-bottom: 1em;
		width: 200px;
		height: auto;
	}
	.about-me {
		position: relative;
		display: flex;
		flex-direction: column;
		margin: 10px 0px 0;
	}
	.about-me-desc {
		width: 100%;
		padding: 20px 5px;
	}

	.about-me-tech {
		margin-top: 30px;
		padding: 0 5px;
	}
	.web_list_item img {
		max-width: 300px;
		object-fit: cover;
	}

	.main-menu nav > ul {
		padding: 10px 0px 10px;
	}
	.main-menu a.main-menu-item {
		padding: 10px 10px 0px 0px;
		font-size: 1.4rem;
	}
}

@media (max-width: 320px) {
	.about-me-desc {
		padding: 0 2px;
	}
	.about-me-tech {
		margin-top: 30px;
		padding: 0 2px;
	}
	a.mail {
		font-size: 1.6rem;
	}
}
