/**
 * Aisthetic Tech Stack & Logo Marquee Widget Styles
 * Dark luxury glassmorphic cards with multi-row lanes and smooth edge mask fade
 */

.aisth-tech-marquee-wrapper {
	width: 100%;
	position: relative;
	overflow: hidden;
	padding: 12px 0;
}

/* Smooth Mask Fade on Edges */
.aisth-tech-marquee-wrapper.aisth-has-mask-fade {
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0%,
		rgba(0, 0, 0, 1) var(--aisth-mask-fade-width, 15%),
		rgba(0, 0, 0, 1) calc(100% - var(--aisth-mask-fade-width, 15%)),
		transparent 100%
	);
	mask-image: linear-gradient(
		to right,
		transparent 0%,
		rgba(0, 0, 0, 1) var(--aisth-mask-fade-width, 15%),
		rgba(0, 0, 0, 1) calc(100% - var(--aisth-mask-fade-width, 15%)),
		transparent 100%
	);
}

/* Marquee Lanes Container */
.aisth-tech-lanes {
	display: flex;
	flex-direction: column;
	gap: var(--aisth-tech-row-gap, 16px);
}

.aisth-tech-lane {
	display: flex;
	overflow: hidden;
	user-select: none;
	width: 100%;
	position: relative;
}

/* Inner Scrolling Track */
.aisth-tech-lane .aisth-marquee-inner {
	display: flex;
	flex-shrink: 0;
	width: max-content;
	will-change: transform;
}

/* Groups of Items (1 Original + 1 Duplicate) */
.aisth-tech-lane .aisth-marquee-group {
	display: flex;
	align-items: center;
	gap: var(--aisth-tech-card-gap, 16px);
	padding-right: var(--aisth-tech-card-gap, 16px);
	flex-shrink: 0;
}

/* Direction Animations */
.aisth-tech-lane.aisth-direction-left .aisth-marquee-inner {
	animation: aisth-tech-scroll-left var(--aisth-marquee-duration, 40s) linear infinite;
}

.aisth-tech-lane.aisth-direction-right .aisth-marquee-inner {
	animation: aisth-tech-scroll-right var(--aisth-marquee-duration, 45s) linear infinite;
}

@keyframes aisth-tech-scroll-left {
	0% {
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(-50%, 0, 0);
	}
}

@keyframes aisth-tech-scroll-right {
	0% {
		transform: translate3d(-50%, 0, 0);
	}
	100% {
		transform: translate3d(0, 0, 0);
	}
}

/* Pause on Hover */
.aisth-tech-marquee-wrapper.aisth-pause-on-hover:hover .aisth-marquee-inner {
	animation-play-state: paused !important;
}

/* Tech Card Base */
.aisth-tech-card {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.aisth-tech-link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	background: var(--aisth-card-bg, rgba(10, 15, 26, 0.85));
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--aisth-card-border, rgba(255, 255, 255, 0.08));
	border-radius: var(--aisth-card-radius, 14px);
	padding: var(--aisth-card-padding, 12px 20px 12px 14px);
	text-decoration: none !important;
	white-space: nowrap;
	transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	color: inherit;
}

/* Icon Box on the Left */
.aisth-tech-icon-box {
	width: var(--aisth-icon-box-size, 42px);
	height: var(--aisth-icon-box-size, 42px);
	border-radius: var(--aisth-icon-box-radius, 10px);
	background: var(--aisth-icon-box-bg, rgba(255, 255, 255, 0.04));
	border: 1px solid var(--aisth-icon-box-border, rgba(255, 255, 255, 0.08));
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	padding: 8px;
	transition: all 0.25s ease;
}

.aisth-tech-icon-box svg,
.aisth-tech-icon-box img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	max-height: 100%;
	max-width: 100%;
}

.aisth-tech-icon-box i {
	font-size: 20px;
	color: var(--aisth-card-accent, #6366f1);
}

/* Content Column (Title & Subtitle) */
.aisth-tech-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: left;
}

.aisth-tech-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--aisth-card-title-color, #f8fafc);
	letter-spacing: -0.015em;
	line-height: 1.25;
	transition: color 0.25s ease;
}

.aisth-tech-subtitle {
	font-size: 11.5px;
	font-weight: 500;
	color: var(--aisth-card-subtitle-color, #94a3b8);
	line-height: 1.3;
	margin-top: 3px;
	letter-spacing: 0.01em;
	transition: color 0.25s ease;
}

/* Hover & Focus State */
.aisth-tech-link:hover,
.aisth-tech-link:focus-visible {
	transform: translateY(-3px);
	background: var(--aisth-card-hover-bg, rgba(16, 23, 40, 0.96));
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6), 0 0 20px var(--aisth-card-accent, rgba(99, 102, 241, 0.2));
}

.aisth-tech-link:hover .aisth-tech-icon-box,
.aisth-tech-link:focus-visible .aisth-tech-icon-box {
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--aisth-card-accent, rgba(255, 255, 255, 0.25));
	transform: scale(1.06);
}

.aisth-tech-link:hover .aisth-tech-title,
.aisth-tech-link:focus-visible .aisth-tech-title {
	color: #ffffff;
}

.aisth-tech-link:hover .aisth-tech-subtitle,
.aisth-tech-link:focus-visible .aisth-tech-subtitle {
	color: #cbd5e1;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.aisth-tech-lane .aisth-marquee-inner {
		animation: none !important;
		transform: none !important;
		overflow-x: auto;
	}
}
