/* ── InnoTECHT 3D Slider ── */
/* Scoped under .innotech-3ds-container — no global resets */

.innotech-3ds-container {
	position: relative;
	width: 100%;
	cursor: none;
	user-select: none;
	-webkit-user-select: none;
	overflow: hidden;
	background: transparent;
	transform: translateY(-60px);
}

.innotech-3ds-container.dragging {
	cursor: none;
}

.innotech-3ds-canvas {
	display: block;
	width: 100%;
	height: 100%;
}

/* ── Loading Spinner ── */
.innotech-3ds-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	z-index: 100;
	transition: opacity 0.6s ease;
}

.innotech-3ds-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(0, 128, 199, 0.2);
	border-top-color: #0080c7;
	border-radius: 50%;
	animation: innotech3ds-spin 0.8s linear infinite;
}

@keyframes innotech3ds-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ── Slide Info ── */
.innotech-3ds-info {
	position: absolute;
	bottom: 50px;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	z-index: 10;
	pointer-events: none;
}

.innotech-3ds-title {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: 0.5px;
	margin: 0 0 8px 0;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	transition:
		opacity 0.4s ease,
		transform 0.4s ease;
}

.innotech-3ds-subtitle {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	letter-spacing: 0.3px;
	margin: 0 0 28px 0;
	font-family: Arial, Helvetica, sans-serif;
	transition:
		opacity 0.4s ease 0.1s,
		transform 0.4s ease 0.1s;
}

/* ── Learn More button ── */
.innotech-3ds-learnmore {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	pointer-events: auto;
	margin: 0 0 24px 0;
	padding: 12px 28px;
	border: 1px solid #0080c7;
	border-radius: 100px;
	background: #0080c7;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	letter-spacing: 0.5px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.innotech-3ds-learnmore svg {
	width: 16px;
	height: 16px;
	transition: transform 0.3s ease;
}

.innotech-3ds-learnmore:hover {
	background: #0091e0;
	color: #fff;
}

.innotech-3ds-learnmore:hover svg {
	transform: translateX(3px);
}

/* ── Navigation Dots ── */
.innotech-3ds-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	pointer-events: auto;
}

.innotech-3ds-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.4);
	background: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.innotech-3ds-dot:hover {
	border-color: rgba(255, 255, 255, 0.8);
}

.innotech-3ds-dot.active {
	width: 28px;
	background: #0080c7;
	border-color: #0080c7;
	border-radius: 9999px;
}

/* ── Navigation Arrows ── */
.innotech-3ds-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	background: rgba(2, 8, 19, 0.5);
	color: rgba(255, 255, 255, 0.7);
	font-size: 18px;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.innotech-3ds-arrow:hover {
	border-color: #0080c7;
	color: #fff;
	background: rgba(0, 128, 199, 0.15);
}

.innotech-3ds-prev {
	left: 30px;
}

.innotech-3ds-next {
	right: 30px;
}

/* ── Slide Counter ── */
.innotech-3ds-counter {
	position: absolute;
	top: 30px;
	right: 40px;
	font-size: 13px;
	letter-spacing: 2px;
	color: rgba(255, 255, 255, 0.5);
	z-index: 10;
	font-family: Arial, Helvetica, sans-serif;
}

.innotech-3ds-current {
	color: #fff;
	font-weight: 600;
}

/* ── Drag Cursor ── */
.innotech-3ds-drag-cursor {
	position: absolute;
	top: 0;
	left: 0;
	width: 80px;
	height: auto;
	z-index: 10;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	will-change: transform;
}

.innotech-3ds-container.dragging .innotech-3ds-drag-cursor {
	opacity: 0.8;
}

/* ── Mode switching: arc (desktop) vs card deck (mobile) ── */
.innotech-3ds-container.innotech-3ds-mode-deck {
	height: auto !important; /* inline slider_height is for the 3D arc */
	transform: none;
	cursor: auto;
}

.innotech-3ds-mode-deck .innotech-3ds-canvas,
.innotech-3ds-mode-deck .innotech-3ds-loading,
.innotech-3ds-mode-deck .innotech-3ds-arrow,
.innotech-3ds-mode-deck .innotech-3ds-info,
.innotech-3ds-mode-deck .innotech-3ds-drag-cursor {
	display: none;
}

.innotech-3ds-mode-arc .innotech-3ds-deck {
	display: none;
}

/* ── Card Deck (mobile) ── */
.innotech-3ds-deck {
	position: relative;
	width: 100%;
	max-width: 430px;
	margin: 0 auto;
	padding: 64px 0 24px;
	font-family: Arial, Helvetica, sans-serif;
}

.innotech-3ds-deck-stage {
	position: relative;
	height: 430px;
	margin: 0 8px;
	touch-action: pan-y;
}

.innotech-3ds-deck-stage:focus-visible {
	outline: 2px solid #0080c7;
	outline-offset: 6px;
	border-radius: 22px;
}

.innotech-3ds-deck-card {
	position: absolute;
	inset: 0 0 42px 0;
	border-radius: 20px;
	border: 1px solid #1b3350;
	background: linear-gradient(180deg, #0c1830 0%, #08101d 100%);
	padding: 24px 18px;
	text-align: center;
	user-select: none;
	-webkit-user-select: none;
	transition:
		transform 0.28s ease,
		opacity 0.28s ease;
	will-change: transform;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.innotech-3ds-deck-card.is-dragging {
	transition: none;
	cursor: grabbing;
}

.innotech-3ds-deck-card.is-top {
	cursor: grab;
	box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.7);
}

.innotech-3ds-deck-media {
	position: relative;
	height: 220px;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.innotech-3ds-deck-media::before {
	content: "";
	position: absolute;
	width: 190px;
	height: 190px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 128, 199, 0.28) 0%, transparent 68%);
}

.innotech-3ds-deck-img {
	position: relative;
	max-width: 85%;
	max-height: 100%;
	object-fit: contain;
	-webkit-user-drag: none;
}

/* Shared live-3D canvas riding the top card's media box */
.innotech-3ds-deck-canvas {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	pointer-events: none;
}

.innotech-3ds-deck-media.is-loading::after {
	content: "";
	position: relative;
	width: 32px;
	height: 32px;
	border: 3px solid rgba(0, 128, 199, 0.2);
	border-top-color: #0080c7;
	border-radius: 50%;
	animation: innotech3ds-spin 0.8s linear infinite;
}

.innotech-3ds-deck-placeholder {
	position: relative;
	width: 120px;
	height: 120px;
}

.innotech-3ds-deck-name {
	font-size: 20px;
	font-weight: 600;
	color: #fff;
	margin: 0 0 5px;
	letter-spacing: 0.02em;
}

.innotech-3ds-deck-sub {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0 14px;
}

.innotech-3ds-deck-link {
	display: inline-flex;
	align-items: center;
	align-self: center;
	padding: 10px 24px;
	border-radius: 100px;
	background: #0080c7;
	color: #fff;
	font-size: 12px;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: background 0.3s ease;
}

.innotech-3ds-deck-link:hover {
	background: #0091e0;
	color: #fff;
}

.innotech-3ds-deck-hud {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding-top: 10px;
}

.innotech-3ds-deck-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(2, 8, 19, 0.5);
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition:
		border-color 0.3s ease,
		color 0.3s ease;
}

.innotech-3ds-deck-btn:hover,
.innotech-3ds-deck-btn:focus-visible {
	border-color: #0080c7;
	color: #fff;
}

.innotech-3ds-deck-count {
	font-family: monospace;
	font-size: 12px;
	letter-spacing: 0.2em;
	color: rgba(255, 255, 255, 0.45);
	min-width: 64px;
	text-align: center;
}

.innotech-3ds-deck-count-cur {
	color: #fff;
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.innotech-3ds-deck-card {
		transition: none;
	}
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.innotech-3ds-container {
		transform: translateY(0);
	}

	.innotech-3ds-title {
		font-size: 22px;
	}

	.innotech-3ds-subtitle {
		font-size: 12px;
	}

	.innotech-3ds-arrow {
		width: 40px;
		height: 40px;
		font-size: 14px;
	}

	.innotech-3ds-prev {
		left: 15px;
	}

	.innotech-3ds-next {
		right: 15px;
	}

	.innotech-3ds-info {
		bottom: 30px;
	}

	.innotech-3ds-drag-cursor {
		display: none !important;
	}
}
