.skills {
    position: relative;
    width: 100%;
    display: block;
    height: 100vh;
    z-index: 1;
	background: rgba(0, 0, 0, 0) linear-gradient(to bottom, #0000, #000 50%) no-repeat scroll 0 0;    
  }

.skills:before {
	content: "";
	position: absolute;
	display: block;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	
    /*backdrop-filter: blur(10px);*/
}

.skills:after {
	content: "";
  	position: absolute;
  	display: block;
  	width: 100%;
  	height: 45vh;
  	/*background: rgba(0, 0, 0, 0) linear-gradient(to top, #dddddd, rgba(0, 0, 0, 0)) repeat scroll 0 0;*/
	background: rgba(0, 0, 0, 0) linear-gradient(to top, #000, rgba(0, 0, 0, 0)) repeat scroll 0 0;
  	bottom: 0;
  	left: 0;
  }

.skillcard {
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	height: 80vh;
	width: 95vw;
	max-width: 500px;
	aspect-ratio: 0.8;
	top: 10vh;
	margin: auto;
	border-radius: 14px;
	gap: 3vh;
	text-align: center;
	margin-bottom: 5vh;
}

.stickybox {
	/*width: 100vw;
	position: sticky;*/
	top: 0;
	--offset: 0px;
	top: var(--offset);
	height: calc(100vh - var(--offset));
    position: relative;
}

.card-title {
	grid-area: card-title;
	letter-spacing: -0.095em;
	text-transform: uppercase;
	line-height: 1;
	font-weight: normal;
	margin: 0;
}

.card-text {
	margin: 0;
	max-width: 500px;
	grid-area: card-text;
	text-align: center;
	line-height: 1.5;
	padding: 0 1rem;
	backface-visibility: hidden;
}

.card-img {
	grid-area: card-img;
	width: 50%;
	max-width: 300px;
	height: auto;
}

.skills-menu {
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 1;
	pointer-events: none;
	top: 0;
	left: 0;
	counter-reset: skillmenuitem;
	transition: all var(--spring-duration) var(--spring-easing);
}

.skills-menu-closed {
	opacity: 0;
  }

.skills-item {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	pointer-events: auto;
	transition: all var(--spring-duration) var(--spring-easing);
	flex-direction: column;
	align-content: center;
	align-items: center;
	gap: 0;
	padding-top: 10px;
  	padding-bottom: 5px;
}

.skills-item-active {
	gap: 10px;
}

.skills-item:hover {
	color: var(--accent-color);
	animation: 0.07s flicker;    
	animation-iteration-count: 2;
}

.skills-item .skills-item-text .skills-item-icon:before {
	counter-increment: skillmenuitem;
	content: counters(skillmenuitem, "", decimal-leading-zero);
	position: absolute;
	font-size: 1.2rem;
	top: 55%;
	left: -1.5rem;
	color: var(--accent-color);
	transform: translate(0,-50%);
	line-height: 1rem;
	font-weight: 500;
}

.skills-item:after {
	content: "";
	position: relative;
	width: 100%;
	height: 1px;
	display: block;
	background: linear-gradient(90deg, rgba(0,175,242,0) 0%, var(--color-violet1) 50%, rgba(0,175,242,0) 100%);
	bottom: -8px;
}

.skills-item:last-child:after {
	display: none;
}

.skills-menu-closed .skills-item {
	pointer-events: none;
}

.skills-item-about {
	color: var(--color-yellow1);
	font-size: 14px;
	line-height: 1;
	font-family: var(--menu-font);
	margin-top: -5px;
	opacity: 0.8;
	display: none;

	padding: 0 10px;
  	text-align: center;
}

.skills-item-active .skills-item-about {
	display: flex;
}

.skills-item-text {
	position: relative;
	/*overflow: hidden;*/
	margin: 0;

	font-size: 6vw;
    text-transform: uppercase;
    line-height: 1;

	font-weight: bold;

	font-family: var(--menu-font);
	color: var(--color-neutral1);

	display: flex;
  cursor: hand;
  cursor: pointer;

  align-content: center;
  align-items: center;
  padding-top: 4px;

  margin-left: 60px;
}

.skills-item .stats {
	display: none;
}

.skills-item-active .stats {
	display: flex;
}

.skills-item-active .skills-item-text {
	/*-webkit-text-fill-color: #fff;
	text-fill-color: #fff;
	color: #fff;
	-webkit-text-stroke: 2px transparent;
	text-stroke: 2px transparent;*/
	color: var(--color-link1);	
}

.skills-item:hover .skills-item-text {
	color: var(--color-link1);
  }

.skills-item:hover .skills-item-text:before, .skills-item:hover .skills-item-text:after {
	display: block;
	content: attr(data-text);
	position: absolute;
	top: 10px;
  	left: 0;
	opacity: 0.4;
  }

  .skills-item:hover .skills-item-text:before {
	animation: glitch-it 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
	color: var(--color-blue1);
	z-index: -1;
  }

  .skills-item:hover .skills-item-text:after {
	animation: glitch-it 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
	color: var(--color-pink1);
	z-index: -2;
  }

.skills-item-link {
	pointer-events: none;
	font-weight: bold;
	align-self: center;
	opacity: 0;
	cursor: pointer;
	text-align: center;
	width: 32px;
	height: 32px;
	position: relative;
	margin-top: 4px;
	clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
	background-size: 80% auto;
	transition: all var(--spring-duration) var(--spring-easing);
}

.skills-item-active .skills-item-link {
	pointer-events: auto;
}

.skills-item-active .skills-item-link:hover {
	background-size: 100% auto;
}

.skills .gridwrap {
	display: grid;
	max-width: 1200px;
	margin: 0 auto;
	grid-template-columns: 100%;
	grid-template-rows: 1.75rem calc(100% - 1.75rem);
	position: relative;
	padding: 120px 5vw 2rem;
	pointer-events: none;
}

.skills .gridbuttons {
	align-self: center;
	grid-area: 1 / 1 / 2 / 2;
	justify-self: start;
	border: 0;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 40px;

	position: absolute;
  	top: -30px;
}

.skills .grid .gridbuttons {
  position: absolute;
  top: -30px;
  width: 100%;
  justify-content: end;
  margin: 0;
}

.skills .gridbutton {	
	background: none;
	border: 0;
	margin: 0;
	padding: 0;
	color: #fff;
	opacity: 0;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
	margin: 0;
	transition: all var(--spring-duration) var(--spring-easing);	
  }

.skills .gridbutton:hover {
	color: var(--color-yellow1);
}

.skills .gridbutton:focus {
	outline: none;
}

.skills .grid-open ~ .gridbuttons .gridbutton,
.skills .grid-open .gridbuttons .gridbutton {
	pointer-events: auto;
  	opacity: 1;
  	cursor: hand;
  	cursor: pointer;
  	display: flex;
  	flex-direction: row;
  	align-content: center;
  	align-items: center;
  	gap: 10px;
}

.skills .grid-open ~ .gridbuttons .gridback:before, .skills .grid-open ~ .gridbuttons .gridforward:after,
.skills .grid-open .gridbuttons .gridback:before, .skills .grid-open .gridbuttons .gridforward:after {
	content: "";
  	position: relative;
  	display: block;  	
  	transform: rotate(180deg);
  	width: 48px;
  	height: 48px;  	
	transition: all var(--spring-duration) var(--spring-easing);
}

.skills .grid-open ~ .gridbuttons .gridback:before,
.skills .grid-open .gridbuttons .gridback:before {	
  	background: url(../img/arrow2.svg) no-repeat center center;
	  background-size: 70% auto;
}

.skills .grid-open ~ .gridbuttons .gridforward:after,
.skills .grid-open .gridbuttons .gridforward:after {	
	background: url(../img/arrow2.svg) no-repeat center center;
	background-size: 70% auto;
	transform: rotate(0deg);
}

.skills .grid-open ~ .gridbuttons .gridback:hover:before, .skills .grid-open ~ .gridbuttons .gridforward:hover:after,
.skills .grid-open .gridbuttons .gridback:hover:before, .skills .grid-open .gridbuttons .gridforward:hover:after {
	background-size: 100% auto;
}

.skills .grid {
	grid-area: 2 / 1 / 3 / 2;
	--gridgap: 1vw;
	--gridwidth: 100%;
	/*--gridheight: calc(100vh - 9.6875rem);*/
	--gridheight: 73vh;
	display: grid;
	width: var(--gridwidth);
	height: var(--gridheight);
	grid-template-rows: repeat(10,calc(var(--gridheight) / 10 - var(--gridgap)));
	grid-template-columns: repeat(10,calc(var(--gridwidth) / 10 - var(--gridgap)));
	grid-gap: var(--gridgap);
	align-content: center;
    justify-content: center;

	filter: blur(10px);
}

.skills .grid-open {
	filter: none;
	z-index: 1;
}

.skills .grid-item {
	opacity: 0;
	position: relative;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: cover;
	clip-path: polygon(0% 10px, 10px 0%, calc(100% - 10px) 0%, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0% calc(100% - 10px));
}

.skills .grid-open .grid-item {
	pointer-events: auto;
}

.skills .grid-item::after {
	content: '';
	background: rgba(0,0,0,0.7);
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	transition: background 1s cubic-bezier(1,0,0,1);
}

.skills .grid-open .grid-item:after {
	background: rgba(0,0,0,0);
}

/* Layout 1 */
.skills .grid-layout-1 .grid-item:first-child {grid-area: 3 / 1 / 8 / 4;}
.skills .grid-layout-1 .grid-item:nth-child(2) {grid-area: 1 / 2 / 3 / 4;}
.skills .grid-layout-1 .grid-item:nth-child(3) {grid-area: 5 / 4 / 8 / 8; }
.skills .grid-layout-1 .grid-item:nth-child(4) {grid-area: 2 / 7 / 5 / 11;}
.skills .grid-layout-1 .grid-item:nth-child(5) {grid-area: 1 / 4 / 5 / 7;}
.skills .grid-layout-1 .grid-item:nth-child(6) {grid-area: 8 / 5 / 11 / 2;}
.skills .grid-layout-1 .grid-item:nth-child(7) {grid-area: 10 / 9 / 8 / 11;}
.skills .grid-layout-1 .grid-item:nth-child(8) {grid-area: 5 / 8 / 8 / 10;}
.skills .grid-layout-1 .grid-item:nth-child(9) {grid-area: 8 / 5 / 11 / 9;}


/* Layout 2 */
.skills .grid-layout-2 .grid-item:first-child { grid-area: 2 / 1 / 5 / 4; }
.skills .grid-layout-2 .grid-item:nth-child(2) { grid-area: 1 / 4 / 4 / 7; }
.skills .grid-layout-2 .grid-item:nth-child(3) {grid-area: 1 / 7 / 5 / 10;}
.skills .grid-layout-2 .grid-item:nth-child(4) {grid-area: 5 / 1 / 7 / 4;}
.skills .grid-layout-2 .grid-item:nth-child(5) {grid-area: 4 / 4 / 7 / 7;}
.skills .grid-layout-2 .grid-item:nth-child(6) {grid-area: 7 / 7 / 11 / 4;}
.skills .grid-layout-2 .grid-item:nth-child(7) {grid-area: 5 / 7 / 8 / 11;}
.skills .grid-layout-2 .grid-item:nth-child(8) {grid-area: 7 / 2 / 9 / 4;}

/* Layout 3 */
.skills .grid-layout-3 .grid-item:first-child {grid-area: 1 / 2 / 3 / 5;}
.skills .grid-layout-3 .grid-item:nth-child(2) {grid-area: 3 / 1 / 6 / 5;}
.skills .grid-layout-3 .grid-item:nth-child(3) {grid-area: 1 / 5 / 5 / 8;}
.skills .grid-layout-3 .grid-item:nth-child(4) {grid-area: 2 / 8 / 6 / 11;}
.skills .grid-layout-3 .grid-item:nth-child(5) {grid-area: 5 / 5 / 8 / 8;}
.skills .grid-layout-3 .grid-item:nth-child(6) {grid-area: 6 / 8 / 8 / 11;}
.skills .grid-layout-3 .grid-item:nth-child(7) {grid-area: 6 / 2 / 8 / 5;}
.skills .grid-layout-3 .grid-item:nth-child(8) {grid-area: 11 / 4 / 8 / 7;}
.skills .grid-layout-3 .grid-item:nth-child(9) {grid-area: 8 / 9 / 11 / 7;}

/* Layout 4 */
.skills .grid-layout-4 .grid-item:first-child {grid-area: 2 / 1 / 4 / 4;}
.skills .grid-layout-4 .grid-item:nth-child(2) {grid-area: 1 / 4 / 3 / 7;}
.skills .grid-layout-4 .grid-item:nth-child(3) {grid-area: 3 / 4 / 5 / 7;}
.skills .grid-layout-4 .grid-item:nth-child(4) {grid-area: 1 / 7 / 4 / 11;}
.skills .grid-layout-4 .grid-item:nth-child(5) {grid-area: 4 / 2 / 7 / 4;}
.skills .grid-layout-4 .grid-item:nth-child(6) {grid-area: 5 / 7 / 8 / 4;}
.skills .grid-layout-4 .grid-item:nth-child(7) {grid-area: 4 / 7 / 8 / 11;}
.skills .grid-layout-4 .grid-item:nth-child(8) {grid-area: 8 / 9 / 11 / 4;}

/* Layout 5 */
.skills .grid-layout-5 .grid-item:first-child {grid-area: 2 / 1 / 5 / 4;}
.skills .grid-layout-5 .grid-item:nth-child(2) {grid-area: 1 / 4 / 5 / 7;}
.skills .grid-layout-5 .grid-item:nth-child(3) {grid-area: 5 / 2 / 7 / 5;}
.skills .grid-layout-5 .grid-item:nth-child(4) {grid-area: 1 / 7 / 4 / 11;}
.skills .grid-layout-5 .grid-item:nth-child(5) {grid-area: 5 / 7 / 7 / 5;}
.skills .grid-layout-5 .grid-item:nth-child(6) {grid-area: 7 / 5 / 10 / 1;}
.skills .grid-layout-5 .grid-item:nth-child(7) {grid-area: 4 / 7 / 7 / 9;}
.skills .grid-layout-5 .grid-item:nth-child(8) {grid-area: 4 / 9 / 9 / 11;}
.skills .grid-layout-5 .grid-item:nth-child(9) {grid-area: 7 / 5 / 11 / 9;}

.skills .content-item {
	max-width: 600px;
	margin: 0 auto;
	font-size: 1.15rem;
	padding: 1.5rem;
}

.skills .content-item {
	position: absolute;
	top: 0;
	opacity: 0;
	pointer-events: none;
}

.skills .content-item-active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
}

.skills .page-preview {
	position: relative;
	overflow: hidden;
	height: 100vh;
}

@media screen and (min-width: 53em) {

	.skills-item {
		margin: 0;
		/*flex-wrap: nowrap;*/
		justify-content: flex-start;
	}
	.skills-item-text {
		font-size: 4vh;
	}
	/*.skills-item-link {
		text-align: left;
		width: auto;
	}*/
	/*.skills .gridwrap {
		grid-gap: 3rem;
		padding: 2rem 5vw;
	}
	.skills .grid {
		--gridheight: 1100px;
	}*/
	.skills .content-item {
		font-size: 1.5rem;
		padding: 10vh 1rem;
	}

	.skills-item:hover .skills-item-text:before, .skills-item:hover .skills-item-text:after {
		top: 0;
	}

	.skills .gridwrap {
		padding: 150px 5vw 2rem;
	}

	.skills .grid {
		--gridheight: 83vh;
	}

	.skills .grid {
		--gridgap: 0.5vw;
	}

}

@media only screen and (max-width: 480px) {

	.skills {
		background: rgba(0, 0, 0, 0) linear-gradient(to bottom, #000000b2, #000 50%) no-repeat scroll 0 0;
	}	

}