/* ==========================================================================
   Hinto Floating Backgrounds Elementor Addon CSS
   Author: Sarbaz
   ========================================================================== */

/* Main Container Floating Wrapper */
.hinto-floating-bg-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}

/* Container integration adjustment */
.elementor-element.hinto-has-floating-bg {
	position: relative !important;
}

.elementor-element.hinto-has-floating-bg > .elementor-container,
.elementor-element.hinto-has-floating-bg > .e-con-inner,
.elementor-element.hinto-has-floating-bg > .elementor-widget-container {
	position: relative;
	z-index: 1;
}

/* Widget wrapper */
.hinto-floating-bg-widget {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}

/* Individual Floating Item */
.hinto-floating-item {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	will-change: transform;
	transform-origin: center center;
	pointer-events: none;
	line-height: 0;
}

.hinto-floating-item-inner {
	width: 100%;
	height: 100%;
	display: block;
	will-change: transform;
}

.hinto-floating-item img,
.hinto-floating-item svg {
	width: 100%;
	height: auto;
	max-width: 100%;
	display: block;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.04));
}

/* Keyframe Animations */

/* 1. Float Vertical (Bobbing Up & Down) */
@keyframes hintoFloatVertical {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-22px);
	}
}

/* 2. Float Horizontal (Side to Side Drift) */
@keyframes hintoFloatHorizontal {
	0%, 100% {
		transform: translateX(0px);
	}
	50% {
		transform: translateX(25px);
	}
}

/* 3. Float Diagonal (Diagonal Glide) */
@keyframes hintoFloatDiagonal {
	0%, 100% {
		transform: translate(0px, 0px);
	}
	50% {
		transform: translate(18px, -20px);
	}
}

/* 4. Sway Rotate (Pendulum Swing) */
@keyframes hintoSwayRotate {
	0%, 100% {
		transform: rotate(0deg);
	}
	25% {
		transform: rotate(8deg);
	}
	75% {
		transform: rotate(-8deg);
	}
}

/* 5. Pulse Scale (Breathing Scale) */
@keyframes hintoPulseScale {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.12);
	}
}

/* 6. Circular Orbit (Figure 8 / Orbit Float) */
@keyframes hintoCircularOrbit {
	0% {
		transform: translate(0, 0) rotate(0deg);
	}
	25% {
		transform: translate(12px, -15px) rotate(3deg);
	}
	50% {
		transform: translate(-10px, -24px) rotate(-2deg);
	}
	75% {
		transform: translate(-14px, 10px) rotate(4deg);
	}
	100% {
		transform: translate(0, 0) rotate(0deg);
	}
}

/* Animation Helper Classes */
.hinto-anim-float-vertical .hinto-floating-item-inner {
	animation: hintoFloatVertical var(--hinto-anim-duration, 6s) ease-in-out infinite var(--hinto-anim-delay, 0s);
}

.hinto-anim-float-horizontal .hinto-floating-item-inner {
	animation: hintoFloatHorizontal var(--hinto-anim-duration, 7s) ease-in-out infinite var(--hinto-anim-delay, 0s);
}

.hinto-anim-float-diagonal .hinto-floating-item-inner {
	animation: hintoFloatDiagonal var(--hinto-anim-duration, 8s) ease-in-out infinite var(--hinto-anim-delay, 0s);
}

.hinto-anim-sway-rotate .hinto-floating-item-inner {
	animation: hintoSwayRotate var(--hinto-anim-duration, 7s) ease-in-out infinite var(--hinto-anim-delay, 0s);
}

.hinto-anim-pulse-scale .hinto-floating-item-inner {
	animation: hintoPulseScale var(--hinto-anim-duration, 5s) ease-in-out infinite var(--hinto-anim-delay, 0s);
}

.hinto-anim-circular-orbit .hinto-floating-item-inner {
	animation: hintoCircularOrbit var(--hinto-anim-duration, 10s) ease-in-out infinite var(--hinto-anim-delay, 0s);
}

/* Responsive Hide Utilities */
@media (max-width: 1024px) {
	.hinto-floating-item.hinto-hide-tablet {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.hinto-floating-item.hinto-hide-mobile {
		display: none !important;
	}
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
	.hinto-floating-item-inner {
		animation: none !important;
	}
}
