/* Swiper Slider Styles */
.services-swiper {
	width: 100%;
	height: var(--lead-h, clamp(280px, 55vh, 420px));
	position: relative;
	background-image: url("../media/shape/myservicesbg.png");
	background-size: contain;
	background-position: bottom;
	background-repeat: no-repeat;
	border: 0.4px solid #0000001c;
	border-radius: 8px;
	padding: unset !important;
}

.services-swiper .swiper-slide {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
}

.services-swiper .swiper-slide .services__lead-top {
	display: flex;
	justify-content: flex-end;
}

.services-swiper .swiper-slide .services__lead-center {
	display: flex;
	flex: 1;
}

/* Custom Pagination Dots with Shape Morph Animation */
.services-pagination {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	z-index: 10;
	padding: 4px 8px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 40px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	width: fit-content !important;
}

html.dark .services-pagination {
	background: rgba(0, 0, 0, 0.2);
}

.services-pagination .services-pagination-bullet {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.3);
	cursor: pointer;
	position: relative;
	display: inline-block;
	flex-shrink: 0;
	transform-origin: center;
	/* Use animation for shape morph instead of transition */
	animation: morphToCircle 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.services-pagination .swiper-pagination-bullet {
	border-radius: 50%;
}

html.dark .services-pagination .services-pagination-bullet {
	background: rgba(255, 255, 255, 0.3);
}

.services-pagination .swiper-pagination-bullet-active {
	width: 24px;
	height: 10px;
	border-radius: 5px;
	background: rgba(0, 0, 0, 0.6);
	/* Use animation for shape morph instead of transition */
	animation: morphToPill 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

html.dark .services-pagination .swiper-pagination-bullet-active {
	background: rgba(255, 255, 255, 0.6);
}

/* Hover effect */
.services-pagination .services-pagination-bullet:hover {
	transform: scale(1.1);
	transition: transform 0.2s ease;
}

@keyframes morphToPill {
	0% {
		width: 12px;
		height: 12px;
		border-radius: 50%;
	}
	50% {
		width: 20px;
		height: 11px;
		border-radius: 6px;
	}
	100% {
		width: 24px;
		height: 10px;
		border-radius: 5px;
	}
}

@keyframes morphToCircle {
	0% {
		width: 24px;
		height: 10px;
		border-radius: 5px;
	}
	50% {
		width: 18px;
		height: 11px;
		border-radius: 6px;
	}
	100% {
		width: 12px;
		height: 12px;
		border-radius: 50%;
	}
}

/* Responsive adjustments for pagination */
@media (max-width: 768px) {
	.services-pagination {
		bottom: 12px;
		padding: 3px 6px;
		gap: 3px;
	}

	.services-pagination .services-pagination-bullet {
		width: 10px;
		height: 10px;
	}

	.services-pagination .swiper-pagination-bullet-active {
		width: 20px;
		height: 8px;
		border-radius: 4px;
	}

	@keyframes morphToPill {
		0% {
			width: 10px;
			height: 10px;
			border-radius: 50%;
		}
		50% {
			width: 17px;
			height: 9px;
			border-radius: 5px;
		}
		100% {
			width: 20px;
			height: 8px;
			border-radius: 4px;
		}
	}

	@keyframes morphToCircle {
		0% {
			width: 20px;
			height: 8px;
			border-radius: 4px;
		}
		50% {
			width: 15px;
			height: 9px;
			border-radius: 5px;
		}
		100% {
			width: 10px;
			height: 10px;
			border-radius: 50%;
		}
	}
}

/* Navigation Arrows with Circle Border */
.services-button-next,
.services-button-prev {
	width: 38px !important;
	height: 68px !important;
	margin-top: 0 !important;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 24%;
	/* background: rgba(255, 255, 255, 0.9); */
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: all 0.3s ease;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
}

html.dark .services-button-next,
html.dark .services-button-prev {
	border-color: rgba(255, 255, 255, 0.3);
}

.services-button-next:hover,
.services-button-prev:hover {
	border-color: rgba(0, 0, 0, 0.4);
	transform: translateY(-50%) scale(1.1);
}

html.dark .services-button-next:hover,
html.dark .services-button-prev:hover {
	background: rgba(0, 0, 0, 0.8);
	border-color: rgba(255, 255, 255, 0.5);
}

.services-button-next {
	right: 20px;
}

.services-button-prev {
	left: 20px;
}

/* Custom chevron icons */
.services-button-next::after,
.services-button-prev::after {
	content: "";
	width: 12px;
	height: 12px;
	border-top: 2px solid rgba(0, 0, 0, 0.7);
	border-right: 2px solid rgba(0, 0, 0, 0.7);
	transition: all 0.3s ease;
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
}
.services-button-next::after {
	margin: 0px 3px 0px -3px !important;
}
.services-button-prev::after {
	margin: 0px 0px 0px 1px;
}
html.dark .services-button-next::after,
html.dark .services-button-prev::after {
	border-color: rgba(255, 255, 255, 0.7);
}

.services-button-prev::after {
	transform: translate(-50%, -50%) rotate(-135deg);
}

.services-button-next::after {
	transform: translate(-50%, -50%) rotate(45deg);
}

.services-button-next:hover::after,
.services-button-prev:hover::after {
	border-color: rgba(0, 0, 0, 1);
	transform: translate(-50%, -50%) rotate(45deg) scale(1.2);
}

.services-button-prev:hover::after {
	transform: translate(-50%, -50%) rotate(-135deg) scale(1.2);
}

html.dark .services-button-next:hover::after,
html.dark .services-button-prev:hover::after {
	border-color: rgba(255, 255, 255, 1);
}

/* Disable default Swiper arrow styles */
.services-button-next.swiper-button-disabled,
.services-button-prev.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: auto;
}

/* Responsive adjustments for navigation arrows */
@media (max-width: 768px) {
	.services-button-next,
	.services-button-prev {
		width: 40px;
		height: 40px;
	}

	.services-button-next {
		right: 10px;
	}

	.services-button-prev {
		left: 10px;
	}

	.services-button-next::after,
	.services-button-prev::after {
		width: 10px;
		height: 10px;
		border-width: 1.5px;
	}
}

@media (max-width: 480px) {
	.services-button-next,
	.services-button-prev {
		width: 36px;
		height: 36px;
	}

	.services-button-next::after,
	.services-button-prev::after {
		width: 8px;
		height: 8px;
	}
}
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
	left: 50% !important;
}
