/* ============================================================
   Firstcode Hero Slider – hero-slider.css
   Pixel-perfect port of ServiceSlideHero.tsx + HeroAnimation.tsx
   ============================================================ */

/* ── Custom Properties (overridden per-widget via Elementor) ── */
.fcw-hs {
	--fcw-accent: #862780;
	--fcw-green:  #93C241;
	--fcw-dark:   #1a2332;
	--fcw-speed:  6000ms;

	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	font-family: 'Inter', sans-serif;
	box-sizing: border-box;
}

/* ============================================================
   Background Slides
   ============================================================ */
.fcw-hs__bgs {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.fcw-hs__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1.06);
	transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
	will-change: opacity, transform;
}

.fcw-hs__bg.is-active {
	opacity: 1;
	transform: scale(1);
}

/* Dark gradient overlays */
.fcw-hs__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.fcw-hs__overlay--tb {
	background: linear-gradient(
		to bottom,
		rgba(26,35,50,.82) 0%,
		rgba(26,35,50,.70) 45%,
		rgba(26,35,50,.90) 100%
	);
}

.fcw-hs__overlay--lr {
	background: linear-gradient(
		to right,
		rgba(26,35,50,.60) 0%,
		transparent 50%,
		rgba(26,35,50,.40) 100%
	);
}

/* ============================================================
   Floating Animation Layer (desktop only)
   ============================================================ */
.fcw-hs__anim {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	display: none;
}

@media (min-width: 1024px) {
	.fcw-hs__anim { display: block; }
}

/* Central glow */
.fcw-hs__anim-glow {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 18rem;
	height: 18rem;
	background: rgba(134,39,128,.18);
	border-radius: 50%;
	filter: blur(3.5rem);
}

/* ── Keyframes ─────────────────────────────────── */
@keyframes fcw-float {
	from { transform: translateY(0); }
	to   { transform: translateY(-12px); }
}
@keyframes fcw-float-mc {        /* mid-center needs translate-x reset */
	from { transform: translateX(-50%) translateY(0); }
	to   { transform: translateX(-50%) translateY(-12px); }
}
@keyframes fcw-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}
@keyframes fcw-pulse-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(147,194,65,0); }
	50%       { box-shadow: 0 0 22px 6px rgba(147,194,65,.35); }
}
@keyframes fcw-bar-grow {
	from { transform: scaleY(0); }
	to   { transform: scaleY(1); }
}
@keyframes fcw-dash-draw {
	from { stroke-dasharray: 0, 100; }
}
@keyframes fcw-slide-left {
	from { opacity: 0; transform: translateX(-30px); }
	to   { opacity: 1; transform: translateX(0); }
}
@keyframes fcw-slide-right {
	from { opacity: 0; transform: translateX(30px); }
	to   { opacity: 1; transform: translateX(0); }
}

/* ── Floating card base ──────────────────────── */
.fcw-fa {
	position: absolute;
	animation: fcw-float var(--fa-dur, 4s) ease-in-out var(--fa-delay, 0s) infinite alternate;
}

/* Positions matching React original */
.fcw-fa--tl { top: 4%;    left: 8%; }
.fcw-fa--tr { top: 16%;   right: 4%; }
.fcw-fa--mc { top: 36%;   left: 50%; transform: translateX(-50%);
              animation-name: fcw-float-mc; }
.fcw-fa--bl { bottom: 24%; left: 4%; }
.fcw-fa--br { bottom: 8%;  right: 12%; }
.fcw-fa--tt { top: 2%;    right: 33%; }

/* glass card helper */
.fcw-chart,
.fcw-doc,
.fcw-pie,
.fcw-currency,
.fcw-growth {
	background: rgba(255,255,255,.10);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255,255,255,.20);
	box-shadow: 0 8px 32px rgba(0,0,0,.30);
}

/* Chart bars */
.fcw-chart {
	width: 8rem;
	height: 6rem;
	border-radius: .75rem;
	padding: .75rem;
	display: flex;
	align-items: flex-end;
	gap: .375rem;
}

.fcw-chart__bar {
	flex: 1;
	border-radius: 2px 2px 0 0;
	background: linear-gradient(to top, var(--fcw-accent), var(--fcw-green));
	opacity: .85;
	transform-origin: bottom;
	animation: fcw-bar-grow 2s ease-out both;
}

/* Document card */
.fcw-doc {
	width: 9rem;
	height: 7rem;
	border-radius: .75rem;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.fcw-doc__head {
	display: flex;
	align-items: center;
	gap: .5rem;
}

.fcw-doc__check {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--fcw-green);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.fcw-doc__check i {
	color: #fff;
	font-size: .7rem;
}

.fcw-doc__body {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	margin-top: .15rem;
}

.fcw-doc__line {
	height: .35rem;
	width: 100%;
	background: rgba(255,255,255,.22);
	border-radius: 999px;
}

.fcw-doc__line--accent {
	background: rgba(134,39,128,.55) !important;
}

.fcw-doc__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
}

.fcw-doc__ref {
	font-size: .6rem;
	color: rgba(255,255,255,.45);
	font-weight: 500;
}

/* Pie chart */
.fcw-pie {
	width: 6rem;
	height: 6rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.fcw-pie__svg {
	width: 4rem;
	height: 4rem;
	transform: rotate(-90deg);
}

.fcw-pie__arc--green  { animation: fcw-dash-draw 2s ease-out .5s both; }
.fcw-pie__arc--purple { animation: fcw-dash-draw 2s ease-out .8s both; }

.fcw-pie__label {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
}

/* Currency pulse */
.fcw-currency {
	width: 5rem;
	height: 5rem;
	border-radius: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	font-weight: 700;
	color: var(--fcw-green);
	animation: fcw-pulse-glow 3s ease-in-out infinite;
}

/* Growth arrow */
.fcw-growth {
	width: 7rem;
	height: 4rem;
	border-radius: .75rem;
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: 0 1rem;
}

.fcw-growth__lines {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: .3rem;
}

.fcw-growth__stat {
	display: flex;
	align-items: center;
	color: var(--fcw-green);
}

.fcw-growth__stat i    { font-size: 1.1rem; }
.fcw-growth__stat span { font-size: .72rem; font-weight: 700; }

/* Badge ring (spinning) */
.fcw-badge {
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	border: 2px dashed rgba(255,255,255,.30);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fcw-spin 12s linear infinite;
}

.fcw-badge__inner {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: rgba(134,39,128,.40);
	display: flex;
	align-items: center;
	justify-content: center;
}

.fcw-badge__inner i {
	color: #fff;
	font-size: .875rem;
}

/* Decorative floating dots */
.fcw-anim-dot {
	position: absolute;
	width: .4rem;
	height: .4rem;
	background: rgba(255,255,255,.40);
	border-radius: 50%;
	animation: fcw-float var(--fa-dur, 3s) ease-in-out var(--fa-delay, 0s) infinite alternate;
}

.fcw-anim-dot--g { background: rgba(147,194,65,.60);  width: .3rem; height: .3rem; }
.fcw-anim-dot--p { background: rgba(134,39,128,.60); width: .3rem; height: .3rem; }

/* ============================================================
   Slide Content
   ============================================================ */
.fcw-hs__wrap {
	position: relative;
	z-index: 10;
	max-width: 1280px;
	margin: 0 auto;
	padding: 6rem 1.5rem;
	width: 100%;
}

@media (min-width: 1024px) {
	.fcw-hs__wrap { padding: 8rem 2rem; }
}

/* Each slide is hidden by default; .is-active makes it a grid */
.fcw-hs__slide {
	display: none;
	width: 100%;
}

.fcw-hs__slide.is-active {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.fcw-hs__slide.is-active {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

/* ── Left text column ── */
.fcw-hs__text { color: #fff; }

/* Service tag pill */
.fcw-hs__tag {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .5rem 1rem;
	border-radius: 999px;
	background: rgba(255,255,255,.10);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,.20);
	font-size: .8rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	letter-spacing: .04em;
	animation: fcw-slide-left .6s ease-out both;
}

.fcw-hs__tag-dot {
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	background: var(--fcw-accent);
	flex-shrink: 0;
}

/* Heading */
.fcw-hs__title {
	font-size: clamp(1.875rem, 4.5vw, 3.75rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 1.5rem;
	color: #fff;
	animation: fcw-slide-left .6s ease-out .1s both;
}

.fcw-hs__highlight { color: var(--fcw-green); }

/* Description */
.fcw-hs__desc {
	font-size: clamp(1rem, 2vw, 1.2rem);
	color: rgba(209,213,219,1);
	margin: 0 0 2rem;
	line-height: 1.75;
	max-width: 36rem;
	animation: fcw-slide-left .6s ease-out .2s both;
}

/* CTAs */
.fcw-hs__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	animation: fcw-slide-left .6s ease-out .3s both;
}

.fcw-hs__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .875rem 2rem;
	border-radius: 999px;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	border: 2px solid transparent;
	transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
	line-height: 1;
}

.fcw-hs__btn--primary {
	background-color: var(--fcw-accent);
	color: #fff;
	border-color: var(--fcw-accent);
}

.fcw-hs__btn--primary:hover {
	background-color: #6b1f66;
	border-color: #6b1f66;
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(134,39,128,.45);
	color: #fff;
}

.fcw-hs__btn--secondary {
	background-color: transparent;
	color: #fff;
	border-color: #fff;
}

.fcw-hs__btn--secondary:hover {
	background-color: #fff;
	color: #1a2332;
}

/* ── Stats: mobile (2-col, below text) ── */
.fcw-hs__stats--mobile {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .75rem;
	margin-top: 2.5rem;
	animation: fcw-slide-right .6s ease-out .4s both;
}

@media (min-width: 1024px) {
	.fcw-hs__stats--mobile { display: none; }
}

.fcw-hs__stat-sm {
	background: rgba(255,255,255,.10);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: .75rem;
	padding: .75rem 1rem;
}

.fcw-hs__stat-val {
	font-size: 1.125rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: .125rem;
	line-height: 1.2;
}

.fcw-hs__stat-lbl {
	font-size: .72rem;
	color: rgba(209,213,219,.9);
}

/* ── Stats: desktop (2×2 card grid, right column) ── */
.fcw-hs__stats--desktop {
	display: none;
}

@media (min-width: 1024px) {
	.fcw-hs__stats--desktop {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1.25rem;
		animation: fcw-slide-right .6s ease-out .2s both;
	}
}

.fcw-hs__stat-lg {
	background: rgba(255,255,255,.10);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 1rem;
	padding: 1.25rem;
	transition: background .25s ease, transform .25s ease;
}

.fcw-hs__stat-lg:hover {
	background: rgba(255,255,255,.20);
	transform: translateY(-4px);
}

.fcw-hs__stat-icon {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: rgba(134,39,128,.40);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: .75rem;
}

.fcw-hs__stat-icon i {
	font-size: 1.125rem;
	color: #fff;
}

.fcw-hs__stat-val-lg {
	font-size: 1.875rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
	margin-bottom: .3rem;
}

.fcw-hs__stat-lbl-lg {
	font-size: .875rem;
	color: rgba(209,213,219,.9);
}

/* ============================================================
   Dot Indicators
   ============================================================ */
.fcw-hs__dots {
	position: absolute;
	bottom: 5.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;
	display: flex;
	align-items: center;
	gap: .75rem;
}

.fcw-hs__dot {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: .35rem;
	transition: transform .3s ease;
}

.fcw-hs__dot:hover,
.fcw-hs__dot.is-active {
	transform: scale(1.15);
}

.fcw-hs__dot-pip {
	height: .625rem;
	width: .625rem;
	border-radius: 999px;
	background: rgba(255,255,255,.40);
	transition: width .45s ease, background .45s ease;
}

.fcw-hs__dot.is-active .fcw-hs__dot-pip {
	width: 2.5rem;
	background: var(--fcw-green);
}

/* Tooltip above dot */
.fcw-hs__dot-tip {
	position: absolute;
	bottom: calc(100% + .5rem);
	left: 50%;
	transform: translateX(-50%);
	padding: .35rem .75rem;
	background: #fff;
	color: #111827;
	font-size: .72rem;
	font-weight: 500;
	border-radius: .5rem;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
	box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

.fcw-hs__dot:hover .fcw-hs__dot-tip {
	opacity: 1;
}

/* ============================================================
   Arrow Navigation
   ============================================================ */
.fcw-hs__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: rgba(255,255,255,.10);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,.22);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, transform .2s ease;
}

.fcw-hs__arrow:hover {
	background: rgba(255,255,255,.22);
	transform: translateY(-50%) scale(1.1);
}

.fcw-hs__arrow i { font-size: 1.25rem; }

.fcw-hs__arrow--prev { left: 1rem; }
.fcw-hs__arrow--next { right: 1rem; }

@media (min-width: 1024px) {
	.fcw-hs__arrow--prev { left: 2rem; }
	.fcw-hs__arrow--next { right: 2rem; }
}

/* ============================================================
   Slide Counter
   ============================================================ */
.fcw-hs__counter {
	position: absolute;
	bottom: 5.5rem;
	right: 1.5rem;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: .2rem;
	color: rgba(255,255,255,.55);
	font-size: .875rem;
	font-weight: 500;
}

@media (min-width: 1024px) {
	.fcw-hs__counter { right: 2rem; }
}

.fcw-hs__counter-cur { color: #fff; font-weight: 700; }
.fcw-hs__counter-sep { margin: 0 .15rem; }

/* ============================================================
   Progress Bar
   ============================================================ */
.fcw-hs__prog-track {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: rgba(255,255,255,.12);
	z-index: 20;
}

.fcw-hs__prog-bar {
	height: 100%;
	width: 0%;
	background: var(--fcw-green);
	transition: width 6000ms linear;
}

/* ============================================================
   Elementor Editor Fixes
   ============================================================ */
.elementor-editor-active .fcw-hs {
	min-height: 600px;
}

/* Ensure Elementor wrapper doesn't clip the slider */
.elementor-widget-firstcode_hero_slider {
	overflow: visible;
}
