.skills-showcase {
	position: relative;
	margin-bottom: 32px;
	padding: 40px 0 28px;
	border-radius: 28px;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	background:
		radial-gradient(42% 60% at 10% 12%, rgba(191, 219, 254, 0.55), transparent 70%),
		radial-gradient(38% 55% at 92% 8%, rgba(96, 165, 250, 0.7), transparent 72%),
		radial-gradient(55% 70% at 78% 105%, rgba(30, 64, 175, 0.9), transparent 72%),
		radial-gradient(45% 60% at 18% 100%, rgba(59, 130, 246, 0.75), transparent 72%),
		linear-gradient(160deg, #3b82f6 0%, #2563eb 48%, #1d4ed8 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.dark .skills-showcase {
	background:
		radial-gradient(42% 60% at 10% 12%, rgba(96, 165, 250, 0.4), transparent 70%),
		radial-gradient(38% 55% at 92% 8%, rgba(59, 130, 246, 0.5), transparent 72%),
		radial-gradient(55% 70% at 78% 105%, rgba(23, 37, 84, 0.95), transparent 72%),
		radial-gradient(45% 60% at 18% 100%, rgba(37, 99, 235, 0.6), transparent 72%),
		linear-gradient(160deg, #2563eb 0%, #1d4ed8 48%, #1e3a8a 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.skills-showcase[hidden] {
	display: none;
}

.skills-showcase-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-bottom: 28px;
	padding: 0 24px;
	text-align: center;
}

.skills-showcase-title {
	max-width: 24ch;
	margin: 0;
	font-family: var(--ii-font-display);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.6px;
	color: #fff;
	text-wrap: balance;
}

.skills-showcase .bento-section {
	--bento-card-bg: rgba(255, 255, 255, 0.86);
	--bento-card-border: rgba(255, 255, 255, 0.75);
	--bento-card-border-hover: rgba(255, 255, 255, 0.9);
	--bento-card-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		inset 0 -1px 0 rgba(255, 255, 255, 0.35),
		0 18px 40px rgba(15, 23, 42, 0.22);
	--bento-card-shadow-hover:
		inset 0 1px 0 rgba(255, 255, 255, 1),
		inset 0 -1px 0 rgba(255, 255, 255, 0.4),
		0 22px 48px rgba(15, 23, 42, 0.28);
}

.dark .skills-showcase .bento-section {
	--bento-card-bg: rgba(24, 24, 27, 0.84);
	--bento-card-border: rgba(255, 255, 255, 0.16);
	--bento-card-border-hover: rgba(255, 255, 255, 0.24);
	--bento-card-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.16),
		0 18px 40px rgba(2, 6, 23, 0.45);
	--bento-card-shadow-hover:
		inset 0 1px 0 rgba(255, 255, 255, 0.22),
		0 22px 48px rgba(2, 6, 23, 0.5);
}

.skills-showcase .render-tool-showcase-slide.bento-card {
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	backdrop-filter: blur(24px) saturate(180%);
}

.skills-showcase .render-tool-showcase-slide.bento-card::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background:
		radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
		linear-gradient(160deg, transparent 55%, rgba(191, 219, 254, 0.35));
	pointer-events: none;
}

.dark .skills-showcase .render-tool-showcase-slide.bento-card::before {
	background:
		radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, 0.1), transparent 60%),
		linear-gradient(160deg, transparent 55%, rgba(59, 130, 246, 0.16));
}

.skills-showcase .render-tool-showcase-slide .bento-card-visual {
	-webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
	mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

.skills-showcase .render-tool-showcase-slide .bento-card-visual::after {
	background: none;
}

.skills-showcase .render-tool-showcase-viewport:focus-visible {
	outline-color: #fff;
}

.skills-showcase .render-tool-showcase {
	--skills-slide-w: min(500px, calc(100vw - 96px));
	--skills-slide-h: min(440px, 64svh);

	position: relative;
}

.skills-showcase .render-tool-showcase-viewport {
	height: var(--skills-slide-h);
}

.skills-showcase .render-tool-showcase-slide.bento-card {
	width: var(--skills-slide-w);
	height: var(--skills-slide-h);
	margin-left: calc(var(--skills-slide-w) / -2);
}

.skills-showcase .render-tool-showcase-slide .bento-card-body {
	gap: var(--ii-space-2);
	padding: 0 var(--ii-space-6) var(--ii-space-6);
}

.skills-showcase .render-tool-showcase-slide .bento-card-title {
	font-size: var(--ii-fs-lg);
}

.skills-showcase .render-tool-showcase-slide .bento-card-desc {
	font-size: var(--ii-fs-sm);
}

.skills-showcase .render-tool-showcase-nav {
	position: absolute;
	inset: 0;
	z-index: 200;
	display: block;
	margin: 0;
	pointer-events: none;
}

.skills-showcase .render-tool-showcase-btn {
	position: absolute;
	top: 50%;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: var(--ii-radius-full);
	background:
		radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
		rgba(255, 255, 255, 0.86);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		0 8px 20px rgba(15, 23, 42, 0.22);
	color: var(--ii-text-primary);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	backdrop-filter: blur(24px) saturate(180%);
	translate: 0 -50%;
	pointer-events: auto;
}

.skills-showcase .render-tool-showcase-btn:hover {
	background:
		radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.8), transparent 60%),
		rgba(255, 255, 255, 0.95);
}

.dark .skills-showcase .render-tool-showcase-btn {
	border-color: rgba(255, 255, 255, 0.16);
	background:
		radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.1), transparent 60%),
		rgba(24, 24, 27, 0.84);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.16),
		0 8px 20px rgba(2, 6, 23, 0.45);
}

.dark .skills-showcase .render-tool-showcase-btn:hover {
	background:
		radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
		rgba(39, 39, 42, 0.9);
}

.skills-showcase .render-tool-showcase-btn:focus-visible {
	outline-color: #fff;
}

.skills-showcase-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: rgba(255, 255, 255, 0.8);
	cursor: pointer;
	transition: all 0.2s ease;
}

.skills-showcase-close:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.skills-showcase-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.skills-showcase .skills-showcase-prev {
	left: 20px;
}

.skills-showcase .skills-showcase-next {
	right: 20px;
}

.skills-showcase .bento-result-skeleton {
	position: absolute;
	inset: 0;
}

@media (max-width: 768px) {
	.skills-showcase {
		margin-bottom: 24px;
		padding: 28px 0 20px;
		border-radius: 20px;
	}

	.skills-showcase-head {
		margin-bottom: 20px;
		padding: 0 44px;
	}

	.skills-showcase-title {
		font-size: 22px;
	}

	.skills-showcase .render-tool-showcase {
		--skills-slide-w: min(360px, calc(100vw - 96px));
		--skills-slide-h: min(400px, 64svh);
	}

	.skills-showcase .render-tool-showcase-btn {
		width: 32px;
		height: 32px;
	}

	.skills-showcase-close {
		top: 10px;
		right: 10px;
	}

	.skills-showcase .skills-showcase-prev {
		left: 4px;
	}

	.skills-showcase .skills-showcase-next {
		right: 4px;
	}
}
