/*** IN PROGRESS ***/

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap");

:root {
	--c1: #f7635efd;
	--b2: #222;
	--b3: #333;
	--w1: #fff;
	--w2: #eee;
	--t1: all 0.5s ease 0s;
}

* {
	box-sizing: border-box;
}

*:before,
*:after {
	box-sizing: border-box;
	content: "";
}

.profile-skills {
	display: flex;
	position: relative;
	width: 100%;
	align-items: flex-start;
    
}


ul.skills {
	width: 100%;
	position: relative;
	padding: 25px 45px;
	--c1: #f7635efd;
	background: linear-gradient(0deg, #f7635e60 0 10px,	#2222228f 0 calc(100% - 10px), #f7635e60 0 100%);	
}


ul.skills li {
	--per: 50;
	--dur: calc(calc(var(--per) / 100) * 1.5s);
	margin: 0 0 5px 0;
	list-style: none;
	padding: 20px 0;
	position: relative;
	text-transform: uppercase;
	font-size: 13px;
	color: var(--w1);
	font-weight: bolder;
}
ul.skills li:before {
	content: "";
	position: absolute;
	background: #757373d8;
	height: 16px;
	width: 100%;
	left: 0;
	bottom: 0;
	border-radius: 50px;
	border: 1px solid #525151;
	border-color: #1b1b1b7e #b9b9b91e #b9b9b91f #1b1b1b7e;
	--track: #ece6e69c;
	background: linear-gradient(
		90deg,
		var(--track) calc(calc(var(--per) * 1%) + 4px),
		#1c1c1c4b calc(calc(var(--per) * 1%) + 4px)
	);
}

ul.skills li:after {
	content: "";
	height: 11px;
	margin: 0 0 2px 0;
	background: #f04a44fd;
	position: absolute;
	box-shadow: 0px 0px 10px 1px #f04a44fd;
	left: 3px;
	width: 0%;
	bottom: 0;
	transition: all var(--dur) ease 0s;
	animation: start 1s ease 0s 2 alternate;
}

ul.skills li:hover {
	filter: brightness(1.5);
	transition: var(--t1);
}

ul.skills:hover li:after,
label:hover + ul.skills li:after,
input:checked + label + ul.skills li:after {
	width: calc(calc(var(--per) * 1%) - 2px);
}

@keyframes start {
	100% {
		width: calc(calc(var(--per) * 1%) - 2px);
	}
}


ul.skills li span {
	font-weight: 500;
}

ul.skills li span:before {
	position: absolute;
	right: -25px;
	top: 43px;
	transition: var(--t1);
	content: "";
	opacity: 1;
	border: 7px solid #fff0;
}

ul.skills li:hover span:before,
.profile-skills input:checked + label + ul.skills li span:before {
	transition: var(--t1);
	right: calc(calc(calc(100 - var(--per)) * 1%) - 12px);
	opacity: 1;
	border-right-color: #2187e7;
}

ul.skills li span:after {
	position: absolute;
	right: -40px;
	top: 38px;
	transition: var(--t1);
	counter-reset: percent var(--per);
	content: counter(percent) "%";
	color: var(--w2);
	opacity: 1 !important;
	padding: 4px 6px;
	border-radius: 1px;
	font-weight: bold;
	pointer-events: none;
}

ul.skills li:hover span:after,
.profile-skills input:checked + label + ul.skills li span:after {
	transition: var(--t1);
	right: calc(calc(85 - var(--per)) * 1%);
	right: calc(calc(calc(100 - var(--per)) * 1%) - 40px);
	opacity: 1;
	background: var(--c1);
}


/*********************/
/*** SKILLS VALUES ***/
/*********************/

ul.skills li.sk-ani { --per: 85; }
ul.skills li.sk-cms { --per: 90; }
ul.skills li.sk-dis { --per: 75; }
ul.skills li.sk-dtb { --per: 95; }
ul.skills li.sk-pro { --per: 60; }
ul.skills li.sk-res { --per: 90; }

/*********************/
/*** MEDIA QUERIES ***/
/*********************/

@media only screen and (max-width: 1024px) {
	.content { height: 60vh; }
	.profile-skills {
		flex-direction: row;
    flex-wrap: wrap;
		top: 20px;
	}
}
