@use "../abstract" as *;

.services-area {
	position: relative;
}
html[lang='ar'] .services-area{
	direction: ltr;
}
.services-title-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 530px;
	z-index: -1;
	overflow: hidden;
	&:before {
		position: absolute;
		content: "";
		width: 100%;
		height: 100%;
		background: var(--clr-theme-1);
		opacity: 0.9;
	}
	img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

.services-wrapper {
	.row {
		> div {
			counter-increment: service-counter;
		}
	}
}
// single-service style
.single-service-default {
	.service-title {
		font-size: 24px;
		text-transform: uppercase;
		margin-bottom: 20px;
		position: relative;
		padding-bottom: 23px;
		transition: 0.3s;
		@media #{$xl,$md} {
			font-size: 22px;
		}
		@media #{$lg,$xxs} {
			font-size: 20px;
		}
		&:before {
			width: 40px;
			height: 2px;
			background: var(--clr-theme-2);
			position: absolute;
			content: "";
			bottom: 0;
			left: 0;
			transition: 0.3s;
		}
	}

	&.single-service {
		box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.06);
		border-radius: 6px;
		padding: 40px 50px 40px;
		position: relative;
		overflow: hidden;
		transition: 0.3s;
		z-index: 5;
		background: var(--clr-common-white);
		@media #{$xl,$md} {
			padding: 30px 30px 30px;
		}
		@media #{$lg,$xxs} {
			padding: 20px 20px 20px;
		}
		&:hover {
			.service-icon {
				filter: grayscale(0%) opacity(1);
			}
			&::after {
				opacity: 0.1;
			}
			background: var(--clr-theme-2);
			box-shadow: none;
			.single-service-content {
				p {
					color: #bfd8c1;
				}
			}
			.service-number {
				&::before {
					-webkit-text-stroke-color: var(--clr-common-white);
				}
			}
			.service-title {
				color: var(--clr-common-white);
				&::before {
					width: 80px;
					background: var(--clr-common-white);
				}
			}
			.text-btn {
				color: var(--clr-common-white);
			}
		}
		&::after {
			position: absolute;
			content: url(../../img/shape/pattern-sm.png);
			bottom: 0;
			display: flex;
			justify-content: center;
			left: 0;
			right: 0;
			opacity: 0;
			transition: 0.3s;
			z-index: -1;
			bottom: -10px;
		}
	}
	.single-service-content {
		p {
			margin-bottom: 25px;
			transition: 0.3s;
		}
	}
	.service-icon {
		position: absolute;
		top: 10px;
		right: 10px;
		filter: grayscale(100%) opacity(0.06);
		transition: 0.3s;
		z-index: -1;
		@media #{$xl,$md} {
			transform: scale(0.7);
			transform-origin: top right;
		}
		@media #{$lg,$xxs} {
			transform: scale(0.6);
			transform-origin: top right;
		}
	}

	.service-number {
		&::before {
			content: counter(service-counter, decimal-leading-zero);
			font-size: 120px;
			font-weight: 700;
			color: transparent;
			stroke: 2px var(--clr-theme-1);
			font-family: "Poppins", sans-serif;
			-webkit-text-fill-color: transparent;
			-webkit-text-stroke-width: 2px;
			-webkit-text-stroke-color: var(--clr-theme-1);
			line-height: 1;
			transition: 0.3s;
			@media #{$xl,$md} {
				font-size: 100px;
			}
			@media #{$lg,$xxs} {
				font-size: 70px;
				-webkit-text-stroke-width: 1px;
			}
		}
		margin-bottom: 15px;
		display: inline-block;
	}
}

// work-step style
.work-step-icon {
	width: 140px;
	height: 140px;
	text-align: center;
	line-height: 140px;
	margin: 0 auto;
	background: var(--clr-common-white);
	box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	margin-bottom: 36px;
	position: relative;
	@media #{$sm,$xs}{
		margin-left: 0;
	}
	// &:after {
	// 	position: absolute;
	// 	content: "\f178";
	// 	font-family: "Font Awesome 5 Pro";
	// 	font-size: 18px;
	// 	color: var(--clr-common-white);
	// 	width: 40px;
	// 	height: 40px;
	// 	background: var(--clr-theme-2);
	// 	border-radius: 50%;
	// 	z-index: 1;
	// 	text-align: center;
	// 	line-height: 40px;
	// 	font-weight: 300;
	// 	transform: rotate(-45deg);
	// 	transition: 0.3s;
	// }
}
.work-step:nth-child(2n) .work-step-icon::after {
	transform: rotate(45deg);
}
.work-step {
	text-align: center;
	padding: 0 10px;
	position: relative;
	z-index: 2;
	@media #{$sm,$xs}{
		text-align: left;
	}
	h4 {
		font-size: 20px;
		text-transform: uppercase;
		margin-bottom: 15px;
	}
	p {
		margin-bottom: 0;
	}
	&:before {
		position: absolute;
		content: counter(work-counter, decimal-leading-zero);
		font-size: 120px;
		font-weight: 700;
		font-family: "Poppins", sans-serif;
		-webkit-text-fill-color: transparent;
		-webkit-text-stroke-width: 1px;
		-webkit-text-stroke-color: #eeeae3;
		bottom: 0;
		left: 0;
		right: 0;
		line-height: 1;
		z-index: -1;
		@media #{$lg,$md}{
			font-size: 100px;
			bottom: 65px;
		}
		@media #{$sm,$xs}{
			font-size: 100px;
			bottom: 0;
		}
	}
	&:last-child {
		&:after {
			display: none;
		}
	}
	&:after {
		position: absolute;
		content: "";
		width: 1px;
		height: 74%;
		top: 0;
		bottom: 0;
		background-image: linear-gradient(#fff 0%,#dedede 20%,#dedede 80%,#fff 100%);
		right: -15px;
		margin: auto 0;
		@media #{$sm,$xs}{
			display: none;
		}
	}
}
html[lang ='ar'] .work-step:after{
		position: absolute;
		content: "";
		width: 1px;
		height: 74%;
		top: 0;
		right: 380px;
		bottom: 0;
		background-image: linear-gradient(#fff 0%,#dedede 20%,#dedede 80%,#fff 100%);
		margin: auto 0;
		@media #{$sm,$xs}{
			display: none;
		}}
.working-steps {
	display: flex;
	gap: 30px;
	margin-bottom: 45px;
	align-items: flex-start;
	flex-wrap: wrap;
	@media #{$sm,$xs}{
		gap: 50px;
	}
	> div {
		width: calc((100% - 60px) / 3);
		counter-increment: work-counter;
		@media #{$sm,$xs}{
			width: calc((100% - 0px) / 1);
		}
	}
}

// service details main style

.service-details-main {
	padding-right: 20px;
	.service-image {
		margin-bottom: 50px;
	}
	h3 {
		font-size: 30px;
		text-transform: uppercase;
	}
	p {
		font-size: 16px;
		line-height: 28px;
	}
}
.service-image {
	border-radius: 10px;
	img {
		width: 100%;
	}
}
.service-sub-image {
	display: flex;
	gap: 20px;
	margin-bottom: 60px;
	img {
		border-radius: 10px;
		width: calc((100% - 20px) / 2);
	}
}

// service features style

.service-features {
	background: var(--clr-theme-1);
	border-radius: 10px;
	padding: 45px 50px 50px;
	@media #{$xxs}{
		padding: 35px 20px 40px;
	}
	h4 {
		font-size: 24px;
		color: var(--clr-common-white);
		text-transform: uppercase;
		margin-bottom: 20px;
	}
}
.service-feature-list {
	span {
		font-size: 14px;
		font-weight: 700;
		color: var(--clr-theme-1);
		background: var(--clr-common-white);
		height: 50px;
		line-height: 50px;
		padding: 0 20px;
		border-radius: 10px;
		display: inline-block;
		position: relative;
		width: calc((100% - 60px) / 3);
		white-space: nowrap;
		@media #{$lg,$md}{
			width: calc((100% - 30px) / 2);
		}
		@media #{$sm,$xs}{
			width: calc((100% - 0px) / 1);
		}
		&:after {
			position: absolute;
			content: "\f00c";
			font-family: "Font Awesome 5 Pro";
			font-size: 14px;
			font-weight: 300;
			color: #aab3bd;
			right: 20px;
		}
	}
	display: flex;
	flex-wrap: wrap;
	column-gap: 30px;
	row-gap: 20px;
}

// service-sidebar style

.sidebar-widget-title {
	font-size: 20px;
	text-transform: uppercase;
	position: relative;
	line-height: 1;
	margin-bottom: 30px;
	padding-bottom: 16px;
	&:before {
		position: absolute;
		content: "";
		width: 100%;
		height: 1px;
		background: #f2f2f2;
		left: 0;
		bottom: 0;
	}
	&::after {
		position: absolute;
		content: "";
		width: 60px;
		height: 1px;
		background: var(--clr-theme-1);
		left: 0;
		bottom: 0;
	}
}
html[lang='ar'] .sidebar-widget-title::after{
		right: 0;
		bottom: 0;
}
.sidebar-service {
	.sidebar-widget-title {
		margin-bottom: 20px;
	}
}

// sidebar-service-list style
.sidebar-service-list {
	a {
		font-size: 14px;
		color: var(--clr-theme-1);
		text-transform: uppercase;
		font-weight: 700;
		font-family: "Poppins", sans-serif;
		position: relative;
		padding-left: 34px;
		display: inline-flex;
		align-items: center;
		&:before {
			position: absolute;
			content: "\f178";
			left: 0;
			font-family: "Font Awesome 5 Pro";
			font-weight: 400;
			color: #afafaf;
			transition: 0.3s;
		}
		&:hover {
			color: var(--clr-theme-2);
			&:before {
				color: var(--clr-theme-2);
			}
		}
	}
	li {
		border-bottom: 1px solid #f2f2f2;
		padding-bottom: 14px;
		margin-bottom: 14px;
		&:last-child {
			border-bottom: 0;
			padding-bottom: 0;
			margin-bottom: 0;
		}
	}
}
html[lang='ar'] .sidebar-materials-list a{
	direction: ltr ;
}
// sidebar-materials-list style
.sidebar-materials-list {
	a {
		height: 60px;
		display: inline-block;
		border: 2px solid var(--clr-theme-1);
		border-radius: 10px;
		padding: 0 25px;
		line-height: 56px;
		width: 100%;
		color: var(--clr-theme-1);
		font-size: 14px;
		font-weight: 700;
		text-transform: uppercase;
		font-family: "Poppins", sans-serif;
		position: relative;
		@media #{$lg,$xxs}{
			padding: 0 13px;
			padding-right: 13px;
			padding-right: 45px;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}
		i {
			margin-right: 15px;
			font-size: 18px;
		}
	}
	ul {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
}

// sidebar-adv style
.sidebar-adv {
	border-radius: 10px;
	overflow: hidden;
	img {
		width: 100%;
	}
}

// single-service style-2 style
.services-inner-2 {
	padding-top: 0;
	@media #{$md,$sm,$xs} {
		padding-top: 20px;
	}
}
.style-2 {
	&.single-service {
		padding: 50px 50px 0px;
		@media #{$xxl} {
			padding: 40px 40px 0px;
		}
		@media #{$xl} {
			padding: 35px 35px 0px;
		}
		@media #{$lg} {
			padding: 30px 20px 0px;
		}
		@media #{$md,$sm,$xs} {
			padding: 0 20px 0;
		}
	}
	.service-img {
		border-radius: 10px;
		overflow: hidden;
	}
	.service-img img {
		width: 100%;
	}

	.single-service-content {
		position: relative;
		text-align: center;
		padding: 85px 0px 75px;
	}
	.service-icon {
		position: absolute;
		width: 100px;
		height: 100px;
		background: var(--clr-common-white);
		border-radius: 50px;
		top: 0;
		left: 50%;
		transform: translate(-50%, -50%);
		text-align: center;
		line-height: 92px;
		font-size: 50px;
		color: var(--clr-theme-2);
		box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.04);
	}
	.service-title {
		font-size: 20px;
		text-transform: uppercase;
		margin-bottom: 10px;
	}
	.single-service-content p {
		margin-bottom: 0;
	}
	.single-service-content:before {
		content: counter(service-counter, decimal-leading-zero);
		font-size: 120px;
		font-weight: 700;
		font-family: "Poppins", sans-serif;
		-webkit-text-fill-color: transparent;
		-webkit-text-stroke-width: 1px;
		-webkit-text-stroke-color: #e7e7e7;
		line-height: 1;
		transition: 0.3s;
		position: absolute;
		z-index: -1;
		left: 50%;
		top: 41%;
		transform: translate(-50%, -50%);
		@media #{$lg,$sm,$xs} {
			font-size: 100px;
		}
	}
}

.services-area-2 {
	background: var(--clr-theme-3);
	padding-top: 120px;
	@media (min-width: 1601px) {
		padding-top: 0;
	}
}
.services-wrapper-2 {
	background: var(--clr-common-white);
	border-radius: 10px;
	z-index: 2;
	position: relative;
	overflow: hidden;
	@media (min-width: 1601px) {
		transform: translateY(-60px);
		margin-bottom: -60px;
	}
}

// services-action-wrapper style
.services-action-wrapper {
	background: var(--clr-theme-1);
	padding: 40px 60px;
	display: flex;
	align-items: center;
	gap: 20px;
	justify-content: space-between;
	position: relative;
	z-index: 2;
	overflow: hidden;
	@media #{$xl} {
		padding: 40px 40px;
	}
	@media #{$lg} {
		padding: 30px 30px;
	}
	@media #{$md,$sm,$xs,$xxs} {
		padding: 30px 20px;
		align-items: flex-start;
		flex-direction: column;
	}
	h3 {
		font-size: 30px;
		line-height: 1.33;
		margin-bottom: 0;
		color: var(--clr-common-white);
		text-transform: uppercase;
		max-width: 850px;
		@media #{$lg} {
			font-size: 28px;
		}
		@media #{$md,$sm,$xs} {
			font-size: 26px;
		}
		@media #{$xxs} {
			font-size: 22px;
		}
	}
	.fill-btn-rounded {
		color: var(--clr-theme-1);
		background: var(--clr-common-white);
		border-color: var(--clr-common-white);
		min-width: 200px;
		&:hover {
			color: var(--clr-common-white);
			background: var(--clr-theme-1);
		}
	}
}
.style-2 {
	&.services-action-wrapper {
		background: var(--clr-common-white);
		border-top: 1px solid #e8e8e8;
		margin-top: 60px;
		padding: 50px 0px 50px;
		h3 {
			color: var(--clr-theme-1);
			display: flex;
			align-items: center;
			gap: 25px;
			@media #{$sm,$xs} {
				flex-direction: column;
				align-items: flex-start;
			}
			i {
				color: var(--clr-theme-2);
				font-size: 60px;
				line-height: 1;
				padding-top: 10px;
			}
		}
		.fill-btn-rounded {
			color: var(--clr-common-white);
			background: var(--clr-theme-1);
			border-color: var(--clr-theme-1);
			&:hover {
				color: var(--clr-theme-1);
				border-color: var(--clr-theme-1);
				background: var(--clr-common-white);
			}
		}
	}
	.service-action-bg-shape {
		display: none;
	}
}
.service-action-bg-shape {
	position: absolute;
	bottom: -60px;
	z-index: -1;
	left: 0;
	right: 0;
	text-align: center;
}

// work-step-2 style
.working-steps-2 {
	gap: 30px;
	row-gap: 50px;
	.work-step {
		&:nth-child(2n) {
			margin-top: 40px;
			@media #{$md,$sm,$xs,$xxs} {
				margin-top: 0;
			}
		}
	}
	> div {
		width: calc((100% - 90px) / 4);
		@media #{$md,$sm,$xs} {
			width: calc((100% - 30px) / 2);
		}
		@media #{$xxs} {
			width: calc((100% - 0px) / 1);
		}
	}
}
.work-step-2 {
	&::before {
		-webkit-text-stroke-color: #ebe6de;
	}
	&::after {
		display: none;
	}
}
.process-flow-border {
	&:before {
		position: absolute;
		top: 0;
		left: 75%;
		content: url("../../img/shape/process-flow-border1.png");
		@media #{$xl} {
			transform: scale(0.9);
			transform-origin: left;
		}
		@media #{$lg} {
			transform: scale(0.75);
			transform-origin: left;
		}
		@media #{$md,$sm,$xs,$xxs} {
			display: none;
		}
	}
}

.work-step {
	&:nth-child(2n) {
		.process-flow-border {
			&::before {
				transform: rotate(-16deg);
				transform-origin: top left;
				@media #{$xl} {
					transform: scale(0.9) rotate(-16deg);
				}
				@media #{$lg} {
					transform: scale(0.75) rotate(-16deg);
				}
			}
		}
	}
}

// services-title-style-2 style
.services-title-style-2 {
	.section-subtitle {
		color: var(--clr-common-white);
		span {
			color: #84a99c;
		}
	}
	.section-main-title {
		color: var(--clr-common-white);
	}
}

// single-service-style-3 style
.style-3 {
	&.single-service {
		&:hover {
			.service-icon {
				border-color: var(--clr-theme-2);
				background: var(--clr-theme-1);
				color: var(--clr-common-white);
			}
		}
	}
	.service-img {
		width: 100%;
		overflow: hidden;
		border-radius: 10px;
		img {
			width: 100%;
		}
	}
	.single-service-content {
		text-align: center;
		padding: 0 30px;
		@media #{$lg,$md,$sm,$xs} {
			padding: 0 20px;
		}
	}
	.service-title {
		font-size: 26px;
		text-transform: uppercase;
		margin-bottom: 15px;
		@media #{$md} {
			font-size: 22px;
		}
		@media #{$lg,$xxs} {
			font-size: 20px;
		}
	}
	p {
		margin-bottom: 25px;
	}
	.service-icon {
		width: 140px;
		height: 140px;
		border: 10px solid var(--clr-common-white);
		border-radius: 50%;
		background: var(--clr-theme-1);
		margin-left: auto;
		margin-right: auto;
		font-size: 60px;
		line-height: 140px;
		color: var(--clr-common-white);
		margin-top: -70px;
		position: relative;
		@include transition(0.3s);
		margin-bottom: 23px;
	}
}

// services-4 style
.style-4 {
	&.services-area {
		position: relative;
		margin-top: -80px;
	}
}
.single-service-style-4 {
	.service-title {
		font-size: 24px;
		text-transform: uppercase;
		margin-bottom: 15px;
		position: relative;
		padding-bottom: 0;
		transition: 0.3s;
		@media #{$xl,$md} {
			font-size: 22px;
		}
		@media #{$lg,$xxs} {
			font-size: 20px;
		}
		&:before {
			width: 40px;
			height: 2px;
			background: var(--clr-theme-2);
			position: absolute;
			content: "";
			bottom: 0;
			left: 0;
			transition: 0.3s;
			display: none;
		}
	}

	&.single-service {
		box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.06);
		border-radius: 6px;
		padding: 60px 50px 50px;
		position: relative;
		overflow: hidden;
		transition: 0.3s;
		z-index: 5;
		background: var(--clr-common-white);
		@media #{$xl,$md} {
			padding: 30px 30px 30px;
		}
		@media #{$lg,$xxs} {
			padding: 20px 20px 20px;
		}
		&:hover {
			.service-icon {
				filter: grayscale(0%) opacity(1);
			}
			&::after {
				opacity: 0.1;
			}
			background: var(--clr-theme-1);
			box-shadow: none;
			.single-service-content {
				p {
					color: #bfd8c1;
				}
			}
			.service-number {
				&::before {
					-webkit-text-stroke-color: #124a37;
				}
			}
			.service-title {
				color: var(--clr-common-white);
				&::before {
					width: 80px;
					background: var(--clr-common-white);
				}
			}
			.text-btn {
				color: var(--clr-common-white);
			}
		}
		&::after {
			position: absolute;
			content: url(../../img/shape/pattern-sm.png);
			bottom: 0;
			display: flex;
			justify-content: center;
			left: 0;
			right: 0;
			opacity: 0;
			transition: 0.3s;
			z-index: -1;
		}
	}
	.single-service-content {
		text-align: center;
		p {
			margin-bottom: 25px;
			transition: 0.3s;
		}
	}
	.service-icon {
		filter: grayscale(0%) opacity(1);
		transition: 0.3s;
		height: 80px;
		text-align: center;
		margin-bottom: 35px;
		@media #{$xl,$md} {
			transform: scale(0.8);
			transform-origin: center;
		}
		@media #{$lg,$xxs} {
			transform: scale(0.8);
			transform-origin: center;
		}
		img {
			height: 100%;
		}
	}

	.service-number {
		margin-bottom: 0;
		display: inline-block;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		z-index: -1;
		&::before {
			content: counter(service-counter, decimal-leading-zero);
			font-size: 200px;
			font-weight: 700;
			color: transparent;
			stroke: 1px #ececec;
			font-family: "Poppins", sans-serif;
			-webkit-text-fill-color: transparent;
			-webkit-text-stroke-width: 1px;
			-webkit-text-stroke-color: #ececec;
			line-height: 1;
			transition: 0.3s;
			@media #{$xl,$md} {
				font-size: 100px;
			}
			@media #{$lg,$xxs} {
				font-size: 100px;
				-webkit-text-stroke-width: 1px;
			}
		}
	}
}

// services-5 style
.single-service-style-5 {
	&.single-service{
		position: relative;
		&:hover {
			.service-hover-border {
				opacity: 1;
				visibility: visible;
			}
		}
		.service-hover-border {
			position: absolute;
			content: "";
			width: calc(100% - 20px);
			height: calc(100% + 20px);
			border: 2px solid var(--clr-theme-1);
			border-radius: 6px;
			top: 50%;
			left: 50%;
			z-index: -1;
			transform: translate(-50%, -50%);
			opacity: 0;
			visibility: hidden;
			@include transition(0.3s);
		}
	}
	.single-service-inner {
		border: 2px solid var(--clr-theme-1);
		border-radius: 6px;
		text-align: center;
		padding: 48px 13px 40px;
		position: relative;
		background: var(--clr-common-white);
		z-index: 2;
		.service-icon {
			width: 120px;
			height: 120px;
			background: var(--clr-theme-1);
			text-align: center;
			line-height: 120px;
			border-radius: 100%;
			margin-left: auto;
			margin-right: auto;
			margin-bottom: 35px;
		}
		.service-title {
			font-size: 24px;
			margin-bottom: 12px;
			text-transform: uppercase;
		}
		p {
			margin-bottom: 0;
		}
		.service-number {
			margin-bottom: 0;
			display: inline-block;
			position: absolute;
			top: 65%;
			left: 50%;
			transform: translate(-50%, -50%);
			z-index: -1;
			&::before {
				content: counter(service-counter, decimal-leading-zero);
				font-size: 160px;
				font-weight: 700;
				color: transparent;
				stroke: 1px #ececec;
				font-family: "Poppins", sans-serif;
				-webkit-text-fill-color: transparent;
				-webkit-text-stroke-width: 1px;
				-webkit-text-stroke-color: #ececec;
				line-height: 1;
				transition: 0.3s;
				@media #{$xl,$md} {
					font-size: 100px;
				}
				@media #{$lg,$xxs} {
					font-size: 100px;
					-webkit-text-stroke-width: 1px;
				}
			}
		}
		
	}
}
