/* REFAT motion effects migrated from Elementor Custom Code #45. */

:root {
	--refat-motion-accent: #2dd4bf;
	--refat-motion-warm: #f0b45b;
	--refat-motion-text: #f5f0e8;
	--refat-motion-canvas-opacity: 0.82;
}

#refat-particle-canvas {
	position: fixed;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	opacity: var(--refat-motion-canvas-opacity);
	pointer-events: none;
}

body.home.elementor-page #main-content.wd-content-layout {
	max-width: none !important;
	padding: 0 !important;
}

.refat-scroll-section {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.refat-scroll-section::before {
	position: absolute;
	top: var(--refat-glow-y, 15%);
	left: var(--refat-glow-x, -15%);
	z-index: -1;
	width: 44vw;
	height: 44vw;
	min-width: 430px;
	min-height: 430px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(45, 212, 191, 0.105), rgba(45, 212, 191, 0.025) 42%, transparent 70%);
	content: "";
	filter: blur(12px);
	pointer-events: none;
	animation: refatGlowDrift 12s ease-in-out infinite alternate;
}

.refat-scroll-section:nth-child(even)::before {
	right: -18%;
	left: auto;
	background: radial-gradient(circle, rgba(240, 180, 91, 0.09), rgba(240, 180, 91, 0.02) 42%, transparent 70%);
	animation-delay: -4s;
}

.refat-tilt-card {
	position: relative;
	overflow: hidden;
	transform-style: preserve-3d;
}

.refat-tilt-card::after {
	position: absolute;
	inset: 0;
	opacity: 0;
	background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(45, 212, 191, 0.16), transparent 62%);
	content: "";
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.refat-tilt-card:hover::after {
	opacity: 1;
}

.refat-focus-card {
	box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42), 0 0 35px rgba(45, 212, 191, 0.08);
	animation: refatFocusFloat 5.6s ease-in-out infinite;
}

.refat-hero-visual::before {
	position: absolute;
	top: 9%;
	left: 9%;
	z-index: -1;
	width: 82%;
	height: 82%;
	border-radius: 50%;
	background: conic-gradient(from 90deg, rgba(45, 212, 191, 0.26), transparent 32%, rgba(240, 180, 91, 0.2), transparent 72%);
	content: "";
	filter: blur(32px);
	animation: refatHeroAura 11s linear infinite;
}

.refat-float-orb {
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	animation: refatOrbFloat 5s ease-in-out infinite;
}

.refat-float-orb.refat-float-b {
	animation-delay: -2.5s;
}

.refat-float-orb::before {
	position: absolute;
	inset: -8px;
	border: 1px solid currentColor;
	border-radius: 50%;
	content: "";
	pointer-events: none;
	animation: refatOrbPulse 2.8s ease-out infinite;
}

.refat-scroll-section .elementor-button {
	position: relative;
	overflow: hidden;
}

.refat-scroll-section .elementor-button::after {
	position: absolute;
	inset: -2px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
	content: "";
	transform: translateX(-120%) skewX(-18deg);
	transition: transform 0.65s ease;
}

.refat-scroll-section .elementor-button:hover::after {
	transform: translateX(120%) skewX(-18deg);
}

.refat-shimmer-text .elementor-heading-title {
	background: linear-gradient(100deg, var(--refat-motion-warm) 20%, var(--refat-motion-text) 45%, var(--refat-motion-accent) 65%, var(--refat-motion-warm) 85%);
	background-size: 220% auto;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: refatShimmer 5s linear infinite;
}

.refat-typing-active::after {
	display: inline-block;
	width: 0.08em;
	height: 0.9em;
	margin-left: 0.08em;
	background: currentColor;
	content: "";
	vertical-align: -0.06em;
	animation: refatCaretBlink 0.8s steps(1, end) infinite;
}

.refat-cursor-dot,
.refat-cursor-ring {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999999;
	opacity: 0;
	border-radius: 50%;
	pointer-events: none;
	transition: opacity 0.2s ease;
	will-change: transform;
}

.refat-cursor-dot {
	width: 7px;
	height: 7px;
	background: var(--refat-motion-accent);
	box-shadow: 0 0 18px var(--refat-motion-accent);
}

.refat-cursor-ring {
	width: 34px;
	height: 34px;
	border: 1px solid rgba(45, 212, 191, 0.65);
	box-shadow: 0 0 22px rgba(45, 212, 191, 0.18);
}

.refat-cursor-visible {
	opacity: 1;
}

@keyframes refatShimmer {
	to { background-position: 220% center; }
}

@keyframes refatGlowDrift {
	from { transform: translate3d(-4%, -3%, 0) scale(0.92); }
	to { transform: translate3d(12%, 8%, 0) scale(1.08); }
}

@keyframes refatFocusFloat {
	0%, 100% { transform: translate3d(0, 0, 24px); }
	50% { transform: translate3d(0, -10px, 34px); }
}

@keyframes refatHeroAura {
	to { transform: rotate(1turn); }
}

@keyframes refatOrbFloat {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50% { transform: translate3d(0, -10px, 0); }
}

@keyframes refatOrbPulse {
	0% { opacity: 1; transform: scale(0.76); }
	80%, 100% { opacity: 0; transform: scale(1.45); }
}

@keyframes refatCaretBlink {
	0%, 48% { opacity: 1; }
	49%, 100% { opacity: 0; }
}

@media (max-width: 767px) {
	:root { --refat-motion-canvas-opacity: 0.68; }
	.refat-shimmer-text .elementor-heading-title { animation-duration: 7s; }
	.refat-scroll-section::before { width: 110vw; height: 110vw; min-width: 0; min-height: 0; }
	.refat-focus-card { animation: none; }
	.refat-cursor-dot,
	.refat-cursor-ring { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	#refat-particle-canvas,
	.refat-cursor-dot,
	.refat-cursor-ring { display: none !important; }

	.refat-shimmer-text .elementor-heading-title,
	.refat-scroll-section::before,
	.refat-focus-card,
	.refat-hero-visual::before,
	.refat-float-orb,
	.refat-float-orb::before,
	.refat-typing-active::after { animation: none; }

	.refat-tilt-card { transform: none !important; }
}
