/* Horizontal Scroll Slider on Scroll */
/* Lenis Smooth Scroll Recommended Styles */
html.lenis,
html.lenis body {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

.lenis.lenis-smooth iframe {
	pointer-events: none;
}

@media screen and (max-width: 1024px) {
	.interactive-features-cards-wrapper {
		position: relative !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

@media screen and (min-width: 1025px) {
	.animate-anything-spacer {
		position: relative;
		width: 100%;
	}

	.animate-anything-sticky-container {
		position: sticky;
		top: 0;
		height: 100vh;
		width: 100%;
		overflow: hidden;
		display: flex;
		align-items: center;
		margin-top: -63px;
	}

	.animate-anything-cards-wrapper {
		display: flex;
		align-items: center;
		justify-content: flex-start !important;
		gap: 40px;
		width: max-content;
		max-width: none !important;
		margin: 0 !important;
		will-change: transform;

	}
	.animate-anything-cards-wrapper .animate-anything-card {
		flex-shrink: 0;
		transition: transform 0.4s ease, z-index 0.4s ease;
		z-index: 1;
	}

	.animate-anything-cards-wrapper .animate-anything-card:nth-child(odd) {
		transform: rotate(5deg);
	}

	.animate-anything-cards-wrapper .animate-anything-card:nth-child(even) {
		transform: rotate(-5deg);
	}

	.if-spacer {
		position: relative;
		width: 100%;
	}

	.if-sticky-container {
		position: sticky;
		top: 0;
		height: 100vh;
		width: 100%;
		overflow: hidden;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.if-sticky-container>* {
		width: 100%;
	}

	.interactive-features-animated-heading .L {
		display: inline-block;
		will-change: transform, opacity;
		background: linear-gradient(to left,
				#252a5c var(--wipe-trail, 0%),
				#f32b66 var(--wipe-trail, 0%),
				#f32b66 var(--wipe-lead, 0%),
				#252a5c var(--wipe-lead, 0%));
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		background-clip: text;
	}

	.interactive-features-cards-wrapper {
		display: flex;
		flex-wrap: nowrap !important;
		align-items: flex-start !important;
		width: max-content;
		max-width: none !important;
		will-change: transform;
	}

	.interactive-features-cards-wrapper>* {
		flex-shrink: 0 !important;
		transform: scale(var(--scroll-velocity-scale, 1));
		transform-origin: center center;
		transition: transform 0.05s ease-out;
		will-change: transform;
	}

	.interactive-features-cards-wrapper>*:nth-child(1) {
		margin-top: 0px;
	}

	.interactive-features-cards-wrapper>*:nth-child(2) {
		margin-top: 270px;
	}

	.interactive-features-cards-wrapper>*:nth-child(3) {
		margin-top: 135px;
	}

	.interactive-features-cards-wrapper>*:nth-child(4) {
		margin-top: 0px;
	}

	.interactive-features-cards-wrapper>*:nth-child(5) {
		margin-top: 135px;
	}
}

/* --- New Text Animation Styles --- */
.animated-text .fb-advanced-heading {
	opacity: 0;
}

.text-animation-ready .animated-text .fb-advanced-heading {
	opacity: 1;
}

.text-anim-spacer {
	position: relative;
	width: 100%;
}

.text-anim-sticky-container {
	position: sticky;
	top: 0;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	z-index: 10;
}

.text-phrase-layer {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: max-content;
	white-space: nowrap;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.wavy-letter {
	display: inline-block;
	will-change: transform, opacity;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

/* -------------------------------- */

/* --- New Slider Animation Styles --- */
.slider-anim-spacer {
	position: relative;
	width: 100%;
}

/* Specific style for the floating follower image */
.slider-animated-floating-button {
	position: absolute !important;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	cursor: pointer;
	will-change: transform;
	user-select: none;
	-webkit-user-drag: none;
}

.brands-slider-main-container {
	display: flex !important;
	flex-direction: column !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 60px;
	position: relative;
	/* Base for absolute follower */
}

.brands-slider-wrapper {
	display: flex !important;
	flex-direction: column !important;
	gap: 30px;
	width: 100%;
	overflow-x: clip;
}

.brands-slider-right,
.brands-slider-left {
	display: flex !important;
	white-space: nowrap;
	will-change: transform;
	gap: 30px;
}

.brands-card {
	flex-shrink: 0;
}

.animate-heading-text {
	text-align: center;
	width: 100%;
}

@media screen and (max-width: 1024px) {

	/* --- Responsive Wavy Text --- */
	.wavy-phrase-layer {
		position: relative !important;
		opacity: 1 !important;
		visibility: visible !important;
		display: block !important;
		margin-bottom: 20px;
		transform: none !important;
	}

	.wavy-letter {
		transform: none !important;
		opacity: 1 !important;
		display: inline-block;
	}

	.wavy-text-sticky-container {
		height: auto !important;
		padding: 40px 20px;
	}

	/* --- Responsive Slider --- */
	.slider-anim-sticky-container {
		height: auto !important;
		overflow: visible !important;
		display: block !important;
	}

	.brands-slider-wrapper {
		gap: 40px !important;
	}

	.brands-slider-right,
	.brands-slider-left {
		flex-wrap: wrap !important;
		/* Logos will wrap into rows on mobile */
		justify-content: center !important;
		white-space: normal !important;
		transform: none !important;
		gap: 20px !important;
	}

	/* Hide the cursor follower on mobile/touch devices */
	.slider-animated-floating-button {
		display: none !important;
	}

	.animate-heading-text {
		margin-top: 30px;
	}
}

/* --- Hero Section Overlay Adjustments --- */
.hero-section .blur-overlay-container {
	position: relative !important;
	top: auto !important;
	margin-top: -990px;
}

/* Laptop / Small Desktop */
@media screen and (max-width: 1460px) {
	.hero-section .blur-overlay-container {
		margin-top: -920px;
	}
}

@media screen and (max-width: 1390px) {
	.hero-section .blur-overlay-container {
		margin-top: -870px;
	}
}

@media screen and (max-width: 1330px) {
	.hero-section .blur-overlay-container {
		margin-top: -820px;
	}
}

@media screen and (max-width: 1280px) {
	.hero-section .hero-section-desc {
		top: 275px;
	}

	.hero-section .blur-overlay-container {
		margin-top: -790px;
	}
}

@media screen and (max-width: 1200px) {

	.hero-section .blur-overlay-container {
		margin-top: -740px;
	}
}

@media screen and (max-width: 1150px) {
	.hero-section .hero-section-desc {
		top: 253px;
	}

	.hero-section .blur-overlay-container {
		margin-top: -713px;
	}
}

@media screen and (max-width: 1100px) {
	.hero-section .hero-section-desc {
		top: 245px;
	}

	.hero-section .blur-overlay-container {
		margin-top: -683px;
	}
}

@media screen and (max-width: 1065px) {
	.hero-section .hero-section-desc {
		top: 255px;
	}

	.hero-section .blur-overlay-container {
		margin-top: -660px;
	}
}

/* Tablet Landscape */
@media screen and (max-width: 1024px) {
	.hero-section .hero-section-desc {
		top: 220px;
	}

	.hero-section .blur-overlay-container {
		margin-top: -650px;
	}
}

@media screen and (max-width: 1000px) {
	.hero-section .hero-section-desc {
		top: 225px;
	}

	.hero-section .blur-overlay-container {
		margin-top: -630px;
	}
}

@media screen and (max-width: 950px) {
	.hero-section .hero-section-desc {
		top: 205px;
	}

	.hero-section .blur-overlay-container {
		margin-top: -590px;
	}
}

@media screen and (max-width: 900px) {
	.hero-section .hero-section-desc {
		top: 170px;
	}

	.hero-section .blur-overlay-container {
		margin-top: -590px;
	}
}

@media screen and (max-width: 850px) {
	.hero-section .hero-section-desc {
		top: 165px;
	}

	.hero-section .blur-overlay-container {
		margin-top: -550px;
	}
}

@media screen and (max-width: 800px) {
	.hero-section .hero-section-desc {
		top: 145px;
	}

	.hero-section .blur-overlay-container {
		margin-top: -520px;
	}
}

/* Mobile */
@media screen and (max-width: 768px) {
	.hero-section .hero-section-desc {
		top: 136px;
	}

	.hero-section .blur-overlay-container {
		margin-top: -140px;
	}
}

@media screen and (max-width: 767px) {
	.hero-section .hero-section-desc {
		top: 110px;
	}

	.hero-section .blur-overlay-container {
		margin-top: -140px;
	}
}

/* --- Scroll-driven Card Rotation Styles --- */
.rotate-cards-main-container {
	overflow-x: clip;
}

.animate-card-1,
.animate-card-2,
.animate-card-3 {
	will-change: transform, margin-top, background-color;
	position: relative;
}

/* Setup the hover icon container */
.animate-card-1 .fb-advanced-image-inner,
.animate-card-2 .fb-advanced-image-inner,
.animate-card-3 .fb-advanced-image-inner {
	position: relative;
}

@media screen and (max-width: 1024px) {

	.animate-card-1,
	.animate-card-2,
	.animate-card-3 {
		transform: none !important;
		margin-top: 0 !important;
	}
}

.svg-block svg {
	width: 100%;
	height: auto;
}

/* --- Results Section Reveal Animation --- */
.result-item-hidden {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
	will-change: opacity, transform;
}

.result-item-visible {
	opacity: 1 !important;
	transform: translateY(0) !important;
}


header.wp-block-template-part {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	transform: translateY(0);
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
	z-index: 9999;
}

header.wp-block-template-part.is-hidden {
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
}

header.wp-block-template-part.scrolled {
	transform: translateY(0);
	opacity: 1;
	background-color: transparent;


}


header.wp-block-template-part .frontis-interaction-header .frontis-interaction-header-inner {
	background: transparent !important;
	box-shadow: none !important;
	/* backdrop-filter: blur(0) !important; */
	transition: all 0.3s ease;
}


header.wp-block-template-part.scrolled .frontis-interaction-header .frontis-interaction-header-inner {
	background: #FFFFFF !important;
	padding: 6px 6px 6px 30px;
	border-radius: 999px;
	border: 1px solid #F5F5F5;
	box-shadow: 0px 2px 16px 0px #0000000A;
	transition: none;
	max-width: 1070px;

}
@media all and (max-width: 1024px) {
	header.wp-block-template-part.scrolled .frontis-interaction-header .frontis-interaction-header-inner {
	padding: 12px 18px 12px 22px;
}
}
.frontis-interaction-header .fb-off-canvas-menu-block .fb-off-canvas-header .fb-close-menu::before {
    content: url("https://primeelementoraddons.com/wp-content/uploads/2026/02/gridicons_cross.svg");
    display: block;
    width: 32px;
    height: 32px;
}
.frontis-interaction-header .fb-off-canvas-menu-block .fb-off-canvas-header .fb-close-menu svg {
    display: none;
}

/* --- Wave Text Animation --- */
.animate-heading-text-brand-sec .fb-advanced-heading {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
}

.animate-heading-text-brand-sec .fb-advanced-heading span {
	display: inline-block;
	transform: translateY(250px);
	opacity: 0;
	will-change: transform, opacity;
}

.animate-heading-text-brand-sec.active .fb-advanced-heading span {
	animation: waveUp 1.3s cubic-bezier(.22, 1, .36, 1) forwards;
}

/* Middle first stagger logic */
.animate-heading-text-brand-sec.active .fb-advanced-heading span:nth-child(4) {
	animation-delay: 0s;
}

.animate-heading-text-brand-sec.active .fb-advanced-heading span:nth-child(5) {
	animation-delay: .05s;
}

.animate-heading-text-brand-sec.active .fb-advanced-heading span:nth-child(3) {
	animation-delay: .12s;
}

.animate-heading-text-brand-sec.active .fb-advanced-heading span:nth-child(6) {
	animation-delay: .18s;
}

.animate-heading-text-brand-sec.active .fb-advanced-heading span:nth-child(2) {
	animation-delay: .26s;
}

.animate-heading-text-brand-sec.active .fb-advanced-heading span:nth-child(7) {
	animation-delay: .33s;
}

.animate-heading-text-brand-sec.active .fb-advanced-heading span:nth-child(1) {
	animation-delay: .42s;
}

.animate-heading-text-brand-sec.active .fb-advanced-heading span:nth-child(8) {
	animation-delay: .5s;
}

@keyframes waveUp {
	0% {
		transform: translateY(250px);
		opacity: 0;
	}

	60% {
		transform: translateY(-35px);
		opacity: 1;
	}

	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

/* --- Infinite Text Cycling Animation --- */
.gradient-text {
	display: inline-flex !important;
	vertical-align: middle;
	position: relative;
}

.gradient-text-cycler {
	display: inline-flex;
	flex-direction: column;
	height: 1.4em;
	overflow: hidden;
	position: relative;
	vertical-align: bottom;
}

.gradient-text-item {
	display: block;
	height: 1.4em;
	line-height: 1.4em;
	white-space: nowrap;
	will-change: transform;
	transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
	
  background: linear-gradient(90deg, #B5B1FF, #FF7F9C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

@media screen and (max-width: 768px) {
	.gradient-text-cycler {
		height: 1.4em;
	}
	.gradient-text-item {
		height: 1.4em;
		line-height: 1.4em;
	}
}