/* ----------------------------------------------------------------
	Canvas: Finance
-----------------------------------------------------------------*/

:root {
	--cnvs-themecolor: #662D91;
	--cnvs-themecolor-rgb: 102, 45, 145;
	--cnvs-secondary-color: #F7941D;
	--cnvs-secondary-color-rgb: 247, 148, 29;
	--cnvs-accent-color: #FBB040;
	--cnvs-text-color: #6D6E71;

	--cnvs-body-font: 'Manrope', sans-serif;
	--cnvs-primary-font: 'DM Serif Text', serif;
}

#header {
	--cnvs-primary-menu-font-weight: 500;
	--cnvs-primary-menu-font-size:	1rem;
	--cnvs-primary-menu-tt:	none;
	--cnvs-primary-menu-ls:	0;
	--cnvs-primary-menu-submenu-font-size:	0.875rem;
	--cnvs-primary-menu-submenu-font-weight:	400;
	--cnvs-primary-menu-submenu-hover-font-weight: 500;
	--cnvs-primary-menu-submenu-tt:	none;
}

#header {
	--cnvs-primary-menu-font: var(--cnvs-body-font);
	--cnvs-primary-menu-submenu-bg: var(--cnvs-themecolor);
	--cnvs-primary-menu-submenu-width: 240px;
	--cnvs-primary-menu-submenu-hover-bg: transparent;
}

.color-2,
.h-color-2:hover { color: var(--cnvs-secondary-color) !important; }

.bg-color-2,
.h-bg-color-2:hover { background-color: var(--cnvs-secondary-color) !important; }

#header.sticky-on-scrollup,
#header.sticky-on-scrollup #header-wrap {
	-webkit-transition: height .2s ease, opacity .2s ease, transform .2s ease;
	-o-transition: height .2s ease, opacity .2s ease, transform .2s ease;
	transition: height .2s ease, opacity .2s ease, transform .2s ease;
}

#header.sticky-on-scrollup.sticky-header-shrink:not(.show-sticky-onscroll) #header-wrap { transform: translate3d(0, -100%, 0); }

.top-links-item > a {
	text-transform: none;
	color: #EEE !important;
	font-size: 15px;
	font-weight: 400;
	padding: 18px 24px;
}

.top-links-sub-menu .top-links-item > a {
	font-size: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 991.98px) {
	.top-links-item {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}
}

.dark .top-links-item:hover {
	background-color: rgba(255,255,255,0.2);
}

.menu-link {
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0;
    text-transform: none;
}

.sub-menu-container .menu-item > .menu-link { font-size: .925rem; }

.iconlist > li {
	line-height: 24px;
}

.iconlist > li [class^="icon-"]:first-child,
.iconlist > li [class*=" icon-"]:first-child {
	width: 24px;
	height: 24px;
	text-align: center;
	border-radius: 50%;
}

.dotted-bg:before {
	content: "";
	position: absolute;
	display: block;
	top: 50%;
	left: 50%;
	width: 110%;
	height: 100%;
	background-size: 12px 12px;
	background-position: center;
	transform: translate(-50%, -50%);
	background-image: radial-gradient(rgba(var(--cnvs-themecolor-rgb),0.3) 14%, transparent 14%);
	-webkit-mask-image: radial-gradient(rgba(0,0,0,1),rgba(0,0,0,0) 75%);
	mask-image: radial-gradient(rgba(0,0,0,1),rgba(0,0,0,0) 75%);
	z-index: 0;
}

.services-grid .feature-box {
	padding: 2rem;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	border-radius: .5rem;
	border: 1px solid var(--cnvs-secondary-color);
}

.services-grid .feature-box:hover {
	background-size: cover;
}

.hover-button {
	display: block;
	margin-top: 20px;
	font-weight: 600;
}

.dark .hover-button { color: #FFF; }

.services-grid .feature-box { background-color: var(--cnvs-themecolor); }

.dark .services-grid .feature-box .fbox-icon i { background-color: rgba(255,255,255,0.15); }


.services-grid .feature-box,
.services-grid .feature-box .fbox-icon,
.services-grid .feature-box .fbox-content,
.hover-button  { transition: all .4s ease, border-color .0s ease; }

.heading-block h3 {
	font-size: 2.1rem;
	line-height: 1.3 !important;
}


.form-widget label {
	text-transform: none;
	letter-spacing: 0;
	font-size: 1rem;
	font-weight: 500;
	margin-bottom: 5px;
}

@media (min-width: 992px) {
	.sub-menu-container {
	    border-top: 0;
	    border-radius: 5px;
	    border: 0;
	}

	.sub-menu-container::before {
		--cnvs-menu-arrow-size: 5px;
		content: "";
		position: absolute;
		top: calc(-1 * var(--cnvs-menu-arrow-size, 5px));
		left: 20px;
		width: 0;
		height: 0;
		border-left:var(--cnvs-menu-arrow-size, 5px) solid transparent;
		border-right:var(--cnvs-menu-arrow-size, 5px) solid transparent;
		border-bottom:var(--cnvs-menu-arrow-size, 5px) solid var(--cnvs-themecolor);
	}

	.sub-menu-container .menu-item > .menu-link {
		font-size: 1rem;
		font-weight: 400;
		color: var(--cnvs-secondary-color) !important;
	}

	.menu-container > .menu-item:hover { background-color: rgba(var(--cnvs-secondary-color-rgb), 0.1) }

	.menu-container > .menu-item:hover::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		width: 100%;
		height: 5px;
		background-color: var(--cnvs-secondary-color);
	}

	.sub-menu-container .menu-item:not(:last-child) {
		padding-top: 4px;
		padding-bottom: 4px;
		border-bottom: 1px solid rgba(247, 148, 29, 0.1);
	}

	.sub-menu-container .menu-item:last-child {
		padding-top: 4px;
	}

	.sub-menu-container .menu-item:hover > .menu-link {
	    background-color: inherit;
	    font-weight: 400;
	}

	.services-grid .feature-box {
		padding: 3rem;
		background-size: 0;
		border: 1px solid rgba(255,255,255,0.1);
	}

	.services-grid .feature-box:hover {
		transform: translateY(-6px);
		border-color: var(--cnvs-themecolor);
	}

	.services-grid .feature-box:not(:hover) .hover-button {
		opacity: 0;
		transform: translateY(-5px);
	}

	.services-grid .feature-box .fbox-icon,
	.services-grid .feature-box .fbox-content {
		transform: translateY(20px);
	}

	.services-grid .feature-box:hover .fbox-icon,
	.services-grid .feature-box:hover .fbox-content { transform: translateY(0px); }

	.dark .services-grid .feature-box:hover .fbox-icon i { background-color: #FFF; }

	.heading-block h3 {
		font-size: 2.5rem;
		line-height: 1.3 !important;
	}

	.hero-title.display-3 {
		font-size: 4.25rem;
		letter-spacing: -3px;
	}
}

@media (max-width: 991.98px) {
	.services-grid .feature-box .fbox-icon i { background-color: #FFF; }
}

/* ==================================================
	Entrance Animations
================================================== */

.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
	opacity: 1;
	transform: translateY(0);
}

.slide-in-left {
	opacity: 0;
	transform: translateX(-50px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.appear {
	opacity: 1;
	transform: translateX(0);
}

.slide-in-right {
	opacity: 0;
	transform: translateX(50px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.appear {
	opacity: 1;
	transform: translateX(0);
}

.scale-in {
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.appear {
	opacity: 1;
	transform: scale(1);
}

/* Staggered Animations */
.staggered-animation > * {
	opacity: 0;
	transform: translateY(20px);
}

.staggered-animation > *.appear {
	opacity: 1;
	transform: translateY(0);
}

/* ==================================================
	Scroll-Triggered Animations
================================================== */

.scroll-fade {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade.visible {
	opacity: 1;
	transform: translateY(0);
}

.parallax-bg {
	transform: translateZ(0);
	will-change: transform;
}

.parallax-element {
	transform: translateZ(0);
	will-change: transform;
}

.counter-animation {
	opacity: 0;
	transition: opacity 0.5s ease;
}

.counter-animation.visible {
	opacity: 1;
}

/* ==================================================
	Interactive Animations
================================================== */

/* Button Hover Animations */
.btn-animated {
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.btn-animated:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-animated:active {
	transform: translateY(-1px);
}

/* Card Hover Effects */
.card-hover {
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.card-hover:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

/* Form Field Animations */
.form-control-animated {
	transition: all 0.3s ease;
	border-width: 2px;
}

.form-control-animated:focus {
	transform: scale(1.02);
	box-shadow: 0 0 0 0.25rem rgba(102, 45, 145, 0.25);
}

/* ==================================================
	Entrance Animations
================================================== */

.slide-in-left {
	opacity: 0;
	transform: translateX(-50px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.appear {
	opacity: 1;
	transform: translateX(0);
}

/* ==================================================
	Loading Animations
================================================== */

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid rgba(102, 45, 145, 0.3);
	border-top: 4px solid #662D91;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 20px auto;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.page-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
	opacity: 0;
	visibility: hidden;
}

.content-reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-reveal.loaded {
	opacity: 1;
	transform: translateY(0);
}

/* ==================================================
	Micro-Interactions
================================================== */

.icon-hover {
	transition: all 0.3s ease;
}

.icon-hover:hover {
	transform: scale(1.2);
	color: #F7941D;
}

.form-field-focus {
	position: relative;
}

.form-field-focus::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: #662D91;
	transition: width 0.3s ease;
}

.form-field-focus:focus-within::after {
	width: 100%;
}

/* Testimonial Carousel Animation */
.testimonial-slide {
	opacity: 0;
	transform: translateX(50px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}

.testimonial-slide.active {
	opacity: 1;
	transform: translateX(0);
	z-index: 2;
}

.testimonial-slide.prev {
	transform: translateX(-50px);
}

/* ==================================================
	Hero Section Animations
================================================== */

.hero-title {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-title.animate {
	opacity: 1;
	transform: translateY(0);
}

.hero-subtitle {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.hero-subtitle.animate {
	opacity: 1;
	transform: translateY(0);
}

.hero-button {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.hero-button.animate {
	opacity: 1;
	transform: translateY(0);
}

.hero-features {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.hero-features.animate {
	opacity: 1;
	transform: translateY(0);
}

.hero-image {
	opacity: 0;
	transform: translateX(50px);
	transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s;
}

.hero-image.animate {
	opacity: 1;
	transform: translateX(0);
}

/* ==================================================
	Advanced Animations
================================================== */

.gradient-animation {
	background: linear-gradient(-45deg, #662D91, #F7941D, #FBB040, #6D6E71);
	background-size: 400% 400%;
	animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.pulse-animation {
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(102, 45, 145, 0.7);
	}
	70% {
		transform: scale(1.02);
		box-shadow: 0 0 0 15px rgba(102, 45, 145, 0);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(102, 45, 145, 0);
	}
}

.floating-animation {
	animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
	0% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-15px);
	}
	100% {
		transform: translateY(0px);
	}
}

.morphing-shape {
	transition: all 0.5s ease;
	border-radius: 20% 80% 70% 30% / 30% 30% 70% 70%;
	animation: morph 8s ease-in-out infinite;
	transform-origin: center;
}

@keyframes morph {
	0% {
		border-radius: 20% 80% 70% 30% / 30% 30% 70% 70%;
	}
	25% {
		border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
	}
	50% {
		border-radius: 40% 60% 30% 70% / 70% 30% 70% 30%;
	}
	75% {
		border-radius: 30% 70% 60% 40% / 60% 40% 60% 40%;
	}
	100% {
		border-radius: 20% 80% 70% 30% / 30% 30% 70% 70%;
	}
}

/* ==================================================
	WhatsApp Button
================================================== */

.whatsapp-button {
	transition: all 0.3s ease;
	transform: scale(1);
}

.whatsapp-button:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
	transition: transform 0.3s ease;
}

.whatsapp-button:hover i {
	transform: scale(1.1);
}
