/* Aadyanex Technology Stack — light brand showcase */

.adyanex-tech-stack {
	--ts-accent: var(--adyanex-primary, #0d9488);
	position: relative;
	padding: clamp(4rem, 7vw, 5.5rem) clamp(1rem, 3vw, 1.5rem);
	background:
		linear-gradient(180deg, var(--adyanex-white-warm, #f7faf9) 0%, var(--adyanex-white, #fff) 38%, var(--adyanex-white-mint, #f0fdfa) 100%);
	color: var(--adyanex-black, #111);
	overflow: hidden;
	isolation: isolate;
}

.adyanex-tech-stack__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.adyanex-tech-stack__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.45;
}

.adyanex-tech-stack__blob--1 {
	width: 420px;
	height: 420px;
	top: -120px;
	left: -80px;
	background: rgba(13, 148, 136, 0.18);
}

.adyanex-tech-stack__blob--2 {
	width: 360px;
	height: 360px;
	right: -60px;
	bottom: -100px;
	background: rgba(45, 212, 191, 0.2);
}

.adyanex-tech-stack__inner {
	position: relative;
	z-index: 1;
	max-width: min(1140px, calc(100vw - 2rem));
	margin: 0 auto;
}

/* Header */
.adyanex-tech-stack__header {
	max-width: 720px;
	margin: 0 auto clamp(2rem, 4vw, 2.75rem);
	text-align: center;
}

.adyanex-tech-stack__badge {
	display: inline-flex;
	align-items: center;
	margin-bottom: 1rem;
	padding: 0.35rem 0.95rem;
	border-radius: 999px;
	background: rgba(13, 148, 136, 0.1);
	border: 1px solid rgba(13, 148, 136, 0.18);
	color: var(--adyanex-primary-dark, #115e59);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.adyanex-tech-stack__title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.85rem, 3.8vw, 2.65rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: var(--adyanex-black, #111);
}

.adyanex-tech-stack__subtitle {
	margin: 0 auto 1.5rem;
	max-width: 620px;
	font-size: clamp(1rem, 1.8vw, 1.08rem);
	line-height: 1.7;
	color: var(--adyanex-body, #4b5563);
}

.adyanex-tech-stack__meta {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

.adyanex-tech-stack__meta-item {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.65rem 1.1rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid rgba(13, 148, 136, 0.14);
	box-shadow: 0 8px 24px rgba(13, 148, 136, 0.06);
}

.adyanex-tech-stack__meta-item strong {
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1;
	color: var(--adyanex-primary, #0d9488);
	letter-spacing: -0.02em;
}

.adyanex-tech-stack__meta-item span {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--adyanex-muted, #6b7280);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* Shell */
.adyanex-tech-stack__shell {
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(13, 148, 136, 0.12);
	box-shadow:
		0 24px 60px rgba(13, 148, 136, 0.08),
		0 1px 0 rgba(255, 255, 255, 0.9) inset;
	backdrop-filter: blur(12px);
}

/* Category pills */
.adyanex-tech-stack__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.55rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

.adyanex-tech-stack__nav-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 0.95rem 0.55rem 0.75rem;
	border: 1px solid rgba(13, 148, 136, 0.14);
	border-radius: 999px;
	background: #fff;
	color: var(--adyanex-body, #4b5563);
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition:
		background 0.22s ease,
		border-color 0.22s ease,
		color 0.22s ease,
		transform 0.22s ease,
		box-shadow 0.22s ease;
}

.adyanex-tech-stack__nav-btn:hover {
	border-color: color-mix(in srgb, var(--ts-accent) 40%, transparent);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(13, 148, 136, 0.1);
}

.adyanex-tech-stack__nav-btn.is-active {
	background: var(--adyanex-gradient, linear-gradient(135deg, #2dd4bf, #0d9488));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 10px 28px rgba(13, 148, 136, 0.28);
}

.adyanex-tech-stack__nav-icon {
	font-size: 0.75rem;
	line-height: 1;
	opacity: 0.85;
}

.adyanex-tech-stack__nav-count {
	min-width: 1.35rem;
	height: 1.35rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.3rem;
	border-radius: 999px;
	background: rgba(13, 148, 136, 0.08);
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--adyanex-primary-dark, #115e59);
}

.adyanex-tech-stack__nav-btn.is-active .adyanex-tech-stack__nav-count {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

/* Panels */
.adyanex-tech-stack__panels {
	position: relative;
	min-height: 280px;
}

.adyanex-tech-stack__panel {
	display: none;
}

.adyanex-tech-stack__panel.is-active {
	display: block;
	animation: adyanex-ts-fade-up 0.45s ease;
}

@keyframes adyanex-ts-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.adyanex-tech-stack__panel-desc {
	margin: 0 0 1.25rem;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--adyanex-muted, #6b7280);
}

/* Logo grid */
.adyanex-tech-stack__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 0.85rem;
}

.adyanex-tech-stack__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 1.1rem 0.75rem 0.95rem;
	min-height: 118px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid rgba(13, 148, 136, 0.1);
	text-align: center;
	transition:
		transform 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
	animation: adyanex-ts-card-in 0.4s ease both;
	animation-delay: calc(var(--card-i) * 35ms);
}

.adyanex-tech-stack__card:hover {
	transform: translateY(-5px);
	border-color: color-mix(in srgb, var(--ts-accent) 45%, transparent);
	box-shadow:
		0 16px 36px rgba(13, 148, 136, 0.12),
		0 0 0 1px color-mix(in srgb, var(--ts-accent) 12%, transparent);
}

@keyframes adyanex-ts-card-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.adyanex-tech-stack__card-icon {
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: linear-gradient(145deg, #f0fdfa, #fff);
	border: 1px solid rgba(13, 148, 136, 0.1);
}

.adyanex-tech-stack__card-icon img {
	max-width: 30px;
	max-height: 30px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.adyanex-tech-stack__fallback {
	font-size: 0.78rem;
	font-weight: 800;
	color: var(--adyanex-primary, #0d9488);
	letter-spacing: -0.02em;
}

.adyanex-tech-stack__card-name {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--adyanex-black, #111);
}

/* Infinite logo streams */
.adyanex-tech-stack__streams {
	margin-top: clamp(2rem, 4vw, 2.75rem);
	display: grid;
	gap: 0.85rem;
}

.adyanex-tech-stack__stream {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.adyanex-tech-stack__stream-track {
	display: flex;
	width: max-content;
	gap: 0.75rem;
	animation: adyanex-ts-stream 42s linear infinite;
}

.adyanex-tech-stack__stream--rev .adyanex-tech-stack__stream-track {
	animation-direction: reverse;
	animation-duration: 48s;
}

.adyanex-tech-stack__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.9rem 0.5rem 0.55rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(13, 148, 136, 0.12);
	box-shadow: 0 4px 14px rgba(13, 148, 136, 0.06);
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--adyanex-body, #4b5563);
	white-space: nowrap;
}

.adyanex-tech-stack__chip-icon {
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #f0fdfa;
}

.adyanex-tech-stack__chip-icon img {
	max-width: 16px;
	max-height: 16px;
}

.adyanex-tech-stack__chip-icon .adyanex-tech-stack__fallback {
	font-size: 0.55rem;
}

@keyframes adyanex-ts-stream {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.adyanex-tech-stack__empty {
	text-align: center;
	color: var(--adyanex-muted, #6b7280);
	margin: 0;
	padding: 3rem 1rem;
	font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
	.adyanex-tech-stack__nav {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 1rem;
		-webkit-overflow-scrolling: touch;
	}

	.adyanex-tech-stack__nav-btn {
		flex-shrink: 0;
		scroll-snap-align: start;
	}

	.adyanex-tech-stack__grid {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		gap: 0.65rem;
	}

	.adyanex-tech-stack__card {
		min-height: 108px;
		padding: 0.9rem 0.5rem 0.8rem;
	}

	.adyanex-tech-stack__meta {
		width: 100%;
	}

	.adyanex-tech-stack__meta-item {
		flex: 1 1 calc(50% - 0.75rem);
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.adyanex-tech-stack__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.adyanex-tech-stack__card-name {
		font-size: 0.72rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adyanex-tech-stack__stream-track,
	.adyanex-tech-stack__card,
	.adyanex-tech-stack__panel.is-active {
		animation: none !important;
	}
}
