/**
 * Naseem Floating Button — circular CTA + optional fixed placement + scroll reveal.
 *
 * @package Naseem
 */

/* Scroll reveal (services / team style) */
.naseem-floating-btn-root--reveal .naseem-floating-btn {
	transition:
		opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.naseem-floating-btn-root--reveal:not(.naseem-floating-btn-root--inview) .naseem-floating-btn {
	opacity: 0;
	transform: translate3d(0, 28px, 0) scale(0.96);
	pointer-events: none;
}

.naseem-floating-btn-root--reveal.naseem-floating-btn-root--inview .naseem-floating-btn {
	opacity: 1;
	transform: translate3d(0, 0, 0) scale(1);
	pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
	.naseem-floating-btn-root--reveal .naseem-floating-btn,
	.naseem-floating-btn-root--reveal:not(.naseem-floating-btn-root--inview) .naseem-floating-btn {
		opacity: 1;
		transform: none;
		transition: none;
		pointer-events: auto;
	}

	.naseem-floating-btn__magnetic::after {
		animation: none;
		opacity: 0;
		visibility: hidden;
	}
}

.naseem-floating-btn-root {
	width: 100%;
}

.naseem-floating-btn-root--inline {
	width: 100%;
}

.naseem-floating-btn {
	display: inline-block;
	position: relative;
	vertical-align: middle;
}

.naseem-floating-btn-root--fixed-br .naseem-floating-btn,
.naseem-floating-btn-root--fixed-bl .naseem-floating-btn,
.naseem-floating-btn-root--fixed-tr .naseem-floating-btn,
.naseem-floating-btn-root--fixed-tl .naseem-floating-btn {
	position: fixed;
	z-index: 1000;
}

.naseem-floating-btn-root--fixed-br .naseem-floating-btn {
	right: 24px;
	bottom: 24px;
}

.naseem-floating-btn-root--fixed-bl .naseem-floating-btn {
	left: 24px;
	bottom: 24px;
}

.naseem-floating-btn-root--fixed-tr .naseem-floating-btn {
	right: 24px;
	top: 24px;
}

.naseem-floating-btn-root--fixed-tl .naseem-floating-btn {
	left: 24px;
	top: 24px;
}

.naseem-floating-btn__link {
	display: block;
	text-decoration: none;
	color: inherit;
	outline: none;
}

.naseem-floating-btn__link:focus-visible .naseem-floating-btn__disk {
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25);
}

.naseem-floating-btn__magnetic {
	display: block;
	position: relative;
	transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
	will-change: transform;
}

/* Expanding ring — loops behind the disk (matches disk size from Elementor). */
.naseem-floating-btn__magnetic::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 100%;
	aspect-ratio: 1;
	height: auto;
	max-width: 100%;
	box-sizing: border-box;
	border-radius: 50%;
	border: 2px solid rgba(204, 255, 0, 0.55);
	pointer-events: none;
	z-index: 0;
	transform: translate(-50%, -50%);
	transform-origin: center center;
	animation: naseem-floating-btn-pulse-ring 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes naseem-floating-btn-pulse-ring {
	0% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 0.9;
	}
	55% {
		transform: translate(-50%, -50%) scale(1.42);
		opacity: 0;
	}
	56%,
	100% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 0;
	}
}

.naseem-floating-btn__disk {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	box-sizing: border-box;
	border-radius: 50%;
	width: 140px;
	height: 140px;
	margin: 0 auto;
	background-color: #ccff00;
	transition: transform 0.2s ease;
	position: relative;
	z-index: 1;
}

.naseem-floating-btn__ico {
	display: block;
	flex-shrink: 0;
	margin-bottom: 0.35em;
	color: #0a0a0a;
	stroke: currentColor;
	fill: none;
}

.naseem-floating-btn__lines {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.1em;
	font-weight: 700;
	font-size: 0.6875rem;
	line-height: 1.15;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0a0a0a;
	font-family: var(--font-sans, "Inter", system-ui, sans-serif);
}

.naseem-floating-btn__line {
	display: block;
	max-width: 100%;
	word-break: break-word;
}

.naseem-floating-btn__link:hover .naseem-floating-btn__disk {
	transform: scale(1.02);
}
