.back-to-top{
    background-color: $theme-color;
    width: 50px;
    height: 50px;
    line-height: 50px;
    color: $white;
    font-size: 18px;
    position: fixed;
    display: inline-block;
    z-index: 999;
    right: 30px;
    bottom: 30px;
    @include transition;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    border-radius: 12px;

    &:hover {
        background-color: $header-color;
        color: $white;
    }
    
    &.show {
        opacity: 1;
        visibility: visible;
        transform: translate(0);
    }
}

.cursor-outer {
    margin-inline-start: -12px;
    margin-top: -12px;
    width: 30px;
    height: 30px;
    border: 1px solid $theme-color; 
    background-color: $theme-color;
    box-sizing: border-box;
    z-index: 10000000;
    opacity: 0.34;
    transition: all 0.4s ease-out 0s;
}
.cursor-outer.cursor-hover {
    opacity: 0.14;
}
.cursor-outer.cursor-big {
    opacity: 0;
}

.mouseCursor {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 50%;
    transform: translateZ(0);
    visibility: hidden;
    text-align: center;
}
.mouseCursor.cursor-big {
    width: 20px;
    height: 20px;
    margin-inline-start: -12px;
    margin-top: -12px;
}

.cursor-inner {
    margin-inline-start: -3px;
    margin-top: -3px;
    width: 10px;
    height: 10px;
    z-index: 10000001;
    background-color: $theme-color;
    opacity: 1;
    transition: all 0.24s ease-out 0s;
}
.cursor-inner span {
    color: $theme-color; 
    line-height: 60px;
    opacity: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.cursor-inner.cursor-big span {
    opacity: 1;
}

.cursor-inner.cursor-hover {
    margin-inline-start: -10px;
    margin-top: -10px;
    width: 30px;
    height: 30px;
    background-color: $theme-color; 
    border: 1px solid #686363;
    opacity: 0;
}

.search-popup {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    -webkit-transition: all 1s ease;
    -khtml-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
}

.search-popup__overlay {
    position: fixed;
    width: 224vw;
    height: 224vw;
    top: calc(90px - 112vw);
    right: calc(50% - 112vw);
    z-index: 3;
    display: block;
    -webkit-border-radius: 50%;
    -khtml-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    -webkit-transform: scale(0);
    -khtml-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
    -webkit-transform-origin: center;
    transform-origin: center;
    -webkit-transition: transform 0.8s ease-in-out;
    -khtml-transition: transform 0.8s ease-in-out;
    -moz-transition: transform 0.8s ease-in-out;
    -ms-transition: transform 0.8s ease-in-out;
    -o-transition: transform 0.8s ease-in-out;
    transition: transform 0.8s ease-in-out;
    transition-delay: 0s;
    transition-delay: 0.3s;
    -webkit-transition-delay: 0.3s;
    background-color: #000000;
    opacity: 0.7;
    cursor: url(../../assets/img/close.png), auto;
}

@media (max-width: 767px) {
    .search-popup__overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        height: 100%;
        border-radius: 0;
        transform: translateY(-110%);
    }
}

.search-popup__content {
    position: fixed;
    width: 0;
    max-width: 560px;
    padding: 30px 15px;
    left: 50%;
    top: 50%;
    opacity: 0;
    z-index: 3;
    -webkit-transform: translate(-50%, -50%);
    -khtml-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: opacity 0.5s 0s, width 0.8s 0.8s cubic-bezier(0.225, 0.01, 0.475, 1.01), transform 0.2s 0s;
    -khtml-transition: opacity 0.5s 0s, width 0.8s 0.8s cubic-bezier(0.225, 0.01, 0.475, 1.01), transform 0.2s 0s;
    -moz-transition: opacity 0.5s 0s, width 0.8s 0.8s cubic-bezier(0.225, 0.01, 0.475, 1.01), transform 0.2s 0s;
    -ms-transition: opacity 0.5s 0s, width 0.8s 0.8s cubic-bezier(0.225, 0.01, 0.475, 1.01), transform 0.2s 0s;
    -o-transition: opacity 0.5s 0s, width 0.8s 0.8s cubic-bezier(0.225, 0.01, 0.475, 1.01), transform 0.2s 0s;
    transition: opacity 0.5s 0s, width 0.8s 0.8s cubic-bezier(0.225, 0.01, 0.475, 1.01), transform 0.2s 0s;
    transition-delay: 0s, 0.8s, 0s;
    transition-delay: 0s, 0.4s, 0s;
    transition-delay: 0.2s;
    -webkit-transition-delay: 0.2s;
}

.search-popup__form {
    position: relative;
}

.search-popup__form input[type=search],
.search-popup__form input[type=text] {
    width: 100%;
    height: 66px;
    border: none;
    outline: none;
    padding-left: 20px;
    background-color: $white;
    font-size: 16px;
    font-weight: 400;
    color: $text-color;
    transition: all 500ms ease;
    border-radius: 4px;
    padding-right: 80px;
}

.search-popup__form input[type=search]:focus,
.search-popup__form input[type=text]:focus {
    color: $header-color;
}

.search-popup__form .search-btn {
    padding: 0;
    width: 66px;
    height: 66px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    right: -1px;
    border-radius: 4px;
    font-size: 20px;
    color: $white;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: $theme-color;
    @include transition;

    &:hover {
        background-color: $header-color;
        color: $white;
    }
}

.search-popup__form .eolexi-btn svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.search-popup.active {
    z-index: 999999;
}

.search-popup.active .search-popup__overlay {
    top: auto;
    bottom: calc(90px - 112vw);
    -webkit-transform: scale(1);
    -khtml-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    transition-delay: 0s;
    -webkit-transition-delay: 0s;
    opacity: 0.7;
    -webkit-transition: transform 1.6s cubic-bezier(0.4, 0, 0, 1);
    -khtml-transition: transform 1.6s cubic-bezier(0.4, 0, 0, 1);
    -moz-transition: transform 1.6s cubic-bezier(0.4, 0, 0, 1);
    -ms-transition: transform 1.6s cubic-bezier(0.4, 0, 0, 1);
    -o-transition: transform 1.6s cubic-bezier(0.4, 0, 0, 1);
    transition: transform 1.6s cubic-bezier(0.4, 0, 0, 1);
}

@media (max-width: 767px) {
    .search-popup.active .search-popup__overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        height: 100%;
        border-radius: 0;
        transform: translateY(0%);
    }
}

.search-popup.active .search-popup__content {
    width: 100%;
    opacity: 1;
    transition-delay: 0.7s;
    -webkit-transition-delay: 0.7s;
}



.preloader {
	position: fixed;
	top: 0;
	inset-inline-start: 0;
	width: 100%;
	height: 100%;
	background-color: $white;
	z-index: 100000000;
	color: $header-color;
	user-select: none;
}

.preloader.is-loading .preloader-ball-inner,
.preloader.is-loading .preloader-ball-shadow {
	animation-play-state: running;
}

.preloader.is-loaded {
	pointer-events: none;
}

.preloader .preloader-overlay {
	position: fixed;
	top: 0;
	inset-inline-start: 0;
	width: 100%;
	height: 100%;
	background-color: $white;
	z-index: 99999999;
	opacity: 1;
	animation: fade-out 2s forwards;
}

@keyframes fade-out {
	0% {
		opacity: 1;
	}

	50% {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

.preloader .preloader-inner {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.preloader .preloader-ball-wrap {
	gap: 10px;
	position: relative;
	display: flex;
	inset-inline-start: 0;
	align-items: center;
	justify-content: center;
	transform: translateX(16px);
}

@media only screen and (min-width: 1025px) {
	.preloader .preloader-ball-wrap {
		transform: none;
	}
}

.preloader .preloader-ball-inner-wrap {
	position: absolute;
	width: 10px;
	height: 100%;
	top: 50%;
	inset-inline-start: -16px;
	transform: translate(-100%, -50%);
	z-index: 10000;
	@media only screen and (min-width: 1025px) {
		inset-inline-start: -30px;
	}
}

.preloader .preloader-ball-shadow {
	position: absolute;
	width: 16px;
	height: 4px;
	inset-inline-start: 50%;
	transform: translateX(-50%);
	background-color: $theme-color;
	bottom: 0;
	border-radius: 50%;
	filter: blur(12px);
	box-shadow: 0 4px 20px 0 $theme-color;
	transition: 0.7s cubic-bezier(0.77, 0, 0.175, 1);
	animation-play-state: paused;
	animation: shadow-blur 1s linear infinite;
}

.preloader .preloader-ball-inner {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: $theme-color;
	animation: bounce-anim 1s linear infinite;
	box-shadow: 0 0 12px 0 #000;
	transition: 0.7s cubic-bezier(0.77, 0, 0.175, 1);
	animation-play-state: paused;
}
.preloader.is-loaded .preloader-ball-shadow {
	display: none;
}
.preloader.is-loaded .preloader-ball-inner {
	animation: fadeLeftToRight 0.7s linear;
}
.preloader .preloader-ball {
	position: absolute;
	width: 14px;
	height: 14px;
	bottom: 50%;
	inset-inline-start: 50%;
	transform: translate(-50%, 50%);
	border-radius: 50%;
	background-color: rgba(29, 139, 138, 0.1);
	box-shadow: 0 0 20px 0 $theme-color;
	filter: blur(10px);
}

.preloader .preloader-text {
	font-size: 20px;
	position: relative;
	letter-spacing: 0;
	transform: translateY(-0.03em);
	transition: 0.3s;

}
.preloader.is-loaded .preloader-text {
	opacity: 0;
	visibility: hidden;
}
#weave-anim span {
	position: relative;
	transition: all 0.3s ease;
	display: inline-block;
	animation: tj-weave-anim 1.15s ease infinite;
	transform-origin: 100% 50%;
	transform-style: preserve-3d;
	&:nth-child(1) {
		animation-delay: 0s;
	}
	&:nth-child(2) {
		animation-delay: 0.05s;
	}
	&:nth-child(3) {
		animation-delay: 0.1s;
	}
	&:nth-child(4) {
		animation-delay: 0.15s;
	}
	&:nth-child(5) {
		animation-delay: 0.2s;
	}
	&:nth-child(6) {
		animation-delay: 0.25s;
	}
	&:nth-child(7) {
		animation-delay: 0.3s;
	}
	&:nth-child(8) {
		animation-delay: 0.35s;
	}
	&:nth-child(9) {
		animation-delay: 0.4s;
	}
	&:nth-child(10) {
		animation-delay: 0.45s;
	}
	&:nth-child(11) {
		animation-delay: 0.5s;
	}
	&:nth-child(12) {
		animation-delay: 0.55s;
	}
	&:nth-child(13) {
		animation-delay: 0.6s;
	}
	&:nth-child(14) {
		animation-delay: 0.65s;
	}
	&:nth-child(15) {
		animation-delay: 0.7s;
	}
	&:nth-child(16) {
		animation-delay: 0.75s;
	}
	&:nth-child(17) {
		animation-delay: 0.8s;
	}
	&:nth-child(18) {
		animation-delay: 0.85s;
	}
	&:nth-child(19) {
		animation-delay: 0.9s;
	}
	&:nth-child(20) {
		animation-delay: 0.95s;
	}
	&:nth-child(21) {
		animation-delay: 1s;
	}
	&:nth-child(22) {
		animation-delay: 1.05s;
	}
	&:nth-child(23) {
		animation-delay: 1.15s;
	}
}

@keyframes shadow-blur {
	0% {
		filter: blur(12px);
		transform: translate(-50%) scale(0.6);
		opacity: 0.4;
	}

	30% {
		filter: blur(2px);
		transform: translate(-50%, -0.5rem) scale(1);
		opacity: 1;
	}

	to {
		filter: blur(12px);
		transform: translate(-50%) scale(0.6);
		opacity: 0.4;
	}
}

@keyframes fadeLeftToRight {
	0% {
		filter: blur(0);
		transform: translate(0) scale(1);
		opacity: 1;
	}

	30% {
		filter: blur(0);
		transform: translate(-3000%, 0) scale(1);
		opacity: 1;
	}
	40% {
		filter: blur(0);
		transform: translate(-2000%, 0) scale(1);
		opacity: 1;
	}
	60% {
		filter: blur(0);
		transform: translate(-0%, 0) scale(1);
		opacity: 1;
	}

	to {
		filter: blur(12px);
		transform: translate(1000%, 0) scale(7);
		opacity: 0.4;
	}
}

@keyframes bounce-anim {
	0% {
		transform: translateY(calc(-50% - 1rem)) scaleX(1.4);
	}

	3% {
		transform: translateY(calc(-50% - 0.95rem)) scale(1.1, 1.05);
	}

	5% {
		transform: translateY(calc(-50% - 0.9rem)) scale(1.2, 1.1);
	}

	8% {
		transform: translateY(calc(-50% - 0.8rem)) scale(0.98, 1.15);
	}

	12% {
		transform: translateY(calc(-50% - 0.7rem)) scale(0.95, 1.2);
	}

	16% {
		transform: translateY(calc(-50% - 0.5rem)) scale(0.92, 1.25);
	}

	20% {
		transform: translateY(calc(-50% - 0.2rem)) scale(0.9, 1.4);
	}

	24% {
		transform: translateY(calc(-50% + 0.4rem)) scale(0.9, 1.7);
	}

	26% {
		transform: translateY(calc(-50% + 0.8rem)) scale(0.9, 1.4);
	}

	28% {
		transform: translateY(calc(-50% + 0.95rem)) scale(1.2, 0.7);
	}

	30% {
		transform: translateY(calc(-50% + 1rem)) scale(1.5, 0.3);
	}

	32% {
		transform: translateY(calc(-50% + 0.8rem)) scale(1.4, 0.4);
	}

	36% {
		transform: translateY(calc(-50% + 0.5rem)) scale(1.2, 0.8);
	}

	42% {
		transform: translateY(calc(-50% + 0.2rem)) scaleY(1.2);
	}

	48% {
		transform: translateY(calc(-50% - 0.2rem)) scale(0.9, 1.4);
	}

	54% {
		transform: translateY(calc(-50% - 0.3rem)) scale(0.92, 1.3);
	}

	62% {
		transform: translateY(calc(-50% - 0.5rem)) scale(0.95, 1.2);
	}

	68% {
		transform: translateY(calc(-50% - 0.6rem)) scale(0.97, 1.15);
	}

	75% {
		transform: translateY(calc(-50% - 0.7rem)) scale(0.98, 1.1);
	}

	80% {
		transform: translateY(calc(-50% - 0.8rem)) scale(0.99, 1.08);
	}

	85% {
		transform: translateY(calc(-50% - 0.9rem)) scaleY(1.05);
	}

	90% {
		transform: translateY(calc(-50% - 0.95rem)) scale(1.2, 1.03);
	}

	95% {
		transform: translateY(calc(-50% - 0.98rem)) scale(1.1, 1.01);
	}

	to {
		transform: translateY(calc(-50% - 1rem)) scaleX(1.4);
	}
}

@keyframes weave-anim {
	0% {
		transform: translate3D(0, 0, 0) scale(1) rotateY(0);
	}
	12% {
		transform: translate3D(2px, -2px, 2px) scale(1.16) rotateY(6deg);
	}
	24% {
		transform: translate3D(0, 0, 0) scale(1) rotateY(0);
	}
	36% {
		transform: translate3D(0, 0, 0) scale(1);
	}
	100% {
		transform: scale(1);
	}
}