/* ═══════════════════════════════════════════════════════════════════════════
     SOLUTIONS - DISPERSION / RECOMPOSITION ANIMATION (Hero 2)
     ═══════════════════════════════════════════════════════════════════════════ */
.dispersion-stage {
	position: relative;
}

.dispersion-container {
	position: relative;
	width: 100%;
	max-width: 420px;
	height: 365px;
	perspective: 1200px;
}

@media (min-width: 640px) {
	.dispersion-container {
		max-width: 465px;
		height: 405px;
	}
}

/* Each solution card flies in from dispersed position */
.dispersion-card {
	position: absolute;
	width: 200px;
	padding: 1.25rem;
	border-radius: 18px;
	color: white;
	text-decoration: none;
	overflow: visible;
	transform-style: preserve-3d;
	cursor: pointer;

	/* Initial state: DISPERSED (far from final position) */
	opacity: 0;
	transform: translateX(calc(var(--disp-x, 0px) * 5)) translateY(calc(var(--disp-y, 0px) * 5))
		rotateZ(var(--disp-rot, 0deg)) scale(0.5);
	transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active state: COMPOSED into final grid */
.hero-slide.is-active .dispersion-card {
	opacity: 1;
	transform: translateX(var(--disp-x, 0px)) translateY(var(--disp-y, 0px))
		rotateZ(var(--disp-rot, 0deg)) scale(1);
	transition-delay: var(--disp-delay, 0s);
}

/* Individual card positions when composed */
.hero-slide.is-active .dispersion-card--1 {
	left: 0;
	top: 0;
}
.hero-slide.is-active .dispersion-card--2 {
	right: 0;
	top: 0;
}
.hero-slide.is-active .dispersion-card--3 {
	left: 0;
	bottom: 0;
}
.hero-slide.is-active .dispersion-card--4 {
	right: 0;
	bottom: 0;
}

/* Card inner styling */
.dispersion-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	background: rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: inherit;
	padding: 1.1rem;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dispersion-card:hover .dispersion-inner {
	background: rgba(0, 0, 0, 0.4);
	border-color: rgba(255, 255, 255, 0.2);
	transform: translateZ(15px);
}

.dispersion-card:hover {
	z-index: 10;
}

.dispersion-icon-wrap {
	position: relative;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 12px;
}

.dispersion-icon {
	width: 24px;
	height: 24px;
	color: white;
	position: relative;
	z-index: 2;
}

/* Pulse effect on icon */
.icon-pulse {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: inherit;
	opacity: 0;
	animation: iconPulse 2.5s ease-in-out infinite;
	animation-delay: calc(var(--disp-delay, 0s) + 1s);
}

@keyframes iconPulse {
	0%,
	100% {
		opacity: 0;
		transform: scale(1);
	}
	50% {
		opacity: 0.5;
		transform: scale(1.3);
	}
}

.dispersion-content {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.dispersion-name {
	font-family: var(--font-display), sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	color: white;
}

.dispersion-desc {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.35;
}

.dispersion-link {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	opacity: 0;
	transform: translateX(8px);
	transition: all 0.35s ease;
}

.dispersion-link svg {
	width: 14px;
	height: 14px;
}

.dispersion-card:hover .dispersion-link {
	opacity: 1;
	transform: translateX(0);
}

/* Glow behind card */
.dispersion-glow {
	position: absolute;
	inset: -2px;
	border-radius: 20px;
	filter: blur(25px);
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: -1;
}

.dispersion-card:hover .dispersion-glow {
	opacity: 0.35;
}

/* Trail effect during animation */
.dispersion-trail {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
	border-radius: inherit;
	opacity: 0;
	pointer-events: none;
}

.hero-slide.is-active .dispersion-trail {
	animation: trailFade 0.8s ease forwards;
	animation-delay: var(--disp-delay, 0s);
}

@keyframes trailFade {
	0% {
		opacity: 0.6;
		transform: scaleX(1.5) scaleY(1.5);
	}
	100% {
		opacity: 0;
		transform: scaleX(1) scaleY(1);
	}
}

/* Central Hub Element */
.dispersion-hub {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	scale: 0;
}

.hero-slide.is-active .dispersion-hub {
	animation: hubAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s forwards;
}

@keyframes hubAppear {
	0% {
		opacity: 0;
		scale: 0;
	}
	100% {
		opacity: 1;
		scale: 1;
	}
}

.hub-core {
	position: absolute;
	width: 20px;
	height: 20px;
	background: linear-gradient(135deg, #ee6c1a, #d45a0f);
	border-radius: 50%;
	box-shadow: 0 0 25px rgba(238, 108, 26, 0.5);
	z-index: 3;
}

.hub-ring {
	position: absolute;
	border-radius: 50%;
	border: 1.5px solid;
}

.hub-ring--1 {
	width: 100%;
	height: 100%;
	border-color: rgba(238, 108, 26, 0.3);
	animation: hubRingPulse 3s ease-in-out infinite 1s;
}

.hub-ring--2 {
	width: 140%;
	height: 140%;
	border-color: rgba(107, 127, 199, 0.2);
	animation: hubRingPulse 3s ease-in-out infinite 1.3s reverse;
}

.hub-ring--3 {
	width: 180%;
	height: 180%;
	border-color: rgba(26, 140, 66, 0.15);
	animation: hubRingPulse 3s ease-in-out infinite 1.6s;
}

@keyframes hubRingPulse {
	0%,
	100% {
		opacity: 0.5;
		transform: scale(1);
	}
	50% {
		opacity: 1;
		transform: scale(1.05);
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
     SERVICES - WOW CARDS ON RIGHT (Hero 3)
     ═══════════════════════════════════════════════════════════════════════════ */
.cards-showcase {
	position: relative;
	width: 100%;
	max-width: 420px;
}

.cards-stack {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.1rem;
	position: relative;
	z-index: 2;
}

/* Individual Service Wow Card */
.service-wow-card {
	position: relative;
	perspective: 1000px;
	opacity: 0;
	transform: translateY(60px) rotateX(-15deg);
}

.hero-slide.is-active .service-wow-card {
	animation: serviceWowIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	animation-delay: var(--svc-delay, 0s);
}

@keyframes serviceWowIn {
	0% {
		opacity: 0;
		transform: translateY(60px) rotateX(-15deg) scale(0.9);
	}
	60% {
		opacity: 1;
		transform: translateY(-8px) rotateX(3deg) scale(1.02);
	}
	100% {
		opacity: 1;
		transform: translateY(0) rotateX(0) scale(1);
	}
}

/* Card Inner Container */
.svc-card-inner {
	position: relative;
	padding: 1.4rem;
	background: rgba(15, 25, 45, 0.6);
	backdrop-filter: blur(16px);
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	transform-style: preserve-3d;
	cursor: default;
}

.service-wow-card:hover .svc-card-inner {
	transform: translateZ(20px) translateY(-5px);
	box-shadow:
		0 20px 50px -15px rgba(0, 0, 0, 0.4),
		0 0 30px -5px var(--svc-color, #ee6c1a);
}

/* Card Background Gradient */
.svc-card-bg {
	position: absolute;
	inset: 0;
	opacity: 0.6;
	transition: opacity 0.4s ease;
	z-index: 0;
}

.service-wow-card:hover .svc-card-bg {
	opacity: 1;
}

/* Card Border */
.svc-card-border {
	position: absolute;
	inset: 0;
	border-radius: 20px;
	border: 1px solid;
	pointer-events: none;
	z-index: 1;
	transition: border-color 0.4s ease;
}

.service-wow-card:hover .svc-card-border {
	border-color: var(--svc-color, #ee6c1a);
}

/* Card Glow Effect */
.svc-card-glow {
	position: absolute;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0;
	transition: opacity 0.5s ease;
	top: -50%;
	right: -30%;
	z-index: 0;
	pointer-events: none;
}

.service-wow-card:hover .svc-card-glow {
	opacity: 0.2;
}

/* Icon Float Area */
.svc-icon-float {
	position: relative;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	z-index: 2;
}

.svc-icon-ring {
	position: absolute;
	inset: 0;
	border-radius: 14px;
	border: 2px solid;
	opacity: 0.3;
	transition: all 0.4s ease;
}

.service-wow-card:hover .svc-icon-ring {
	opacity: 0.6;
	transform: scale(1.1) rotate(45deg);
}

.svc-icon {
	width: 24px;
	height: 24px;
	position: relative;
	z-index: 2;
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-wow-card:hover .svc-icon {
	transform: scale(1.15) rotate(-5deg);
}

/* Content */
.svc-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.svc-name {
	font-family: var(--font-display), sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	color: white;
	line-height: 1.2;
}

.svc-desc {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.4;
}

/* Hover Line Animation */
.svc-hover-line {
	position: absolute;
	bottom: 0;
	left: 1.4rem;
	right: 1.4rem;
	height: 2px;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 3;
}

.service-wow-card:hover .svc-hover-line {
	transform: scaleX(1);
}

/* Corner Decorations */
.svc-corner {
	position: absolute;
	width: 12px;
	height: 12px;
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 3;
}

.svc-corner--tl {
	top: 8px;
	left: 8px;
	border-top: 2px solid;
	border-left: 2px solid;
}

.svc-corner--br {
	bottom: 8px;
	right: 8px;
	border-bottom: 2px solid;
	border-right: 2px solid;
}

.service-wow-card:hover .svc-corner {
	opacity: 0.6;
}

/* Floating Particles per Card */
.svc-particles {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	border-radius: 20px;
	z-index: 1;
}

.svc-particle {
	position: absolute;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	opacity: 0;
}

.service-wow-card:hover .svc-particle {
	animation: svcParticleFloat 2s ease-in-out infinite;
	animation-delay: var(--particle-delay, 0s);
}

.svc-particle:nth-child(1) {
	top: 20%;
	left: 10%;
}
.svc-particle:nth-child(2) {
	top: 60%;
	right: 15%;
}
.svc-particle:nth-child(3) {
	bottom: 25%;
	left: 30%;
}

@keyframes svcParticleFloat {
	0% {
		opacity: 0;
		transform: translateY(10px) scale(0);
	}
	30% {
		opacity: 0.7;
		transform: translateY(0) scale(1);
	}
	70% {
		opacity: 0.4;
		transform: translateY(-15px) scale(0.8);
	}
	100% {
		opacity: 0;
		transform: translateY(-25px) scale(0);
	}
}

/* Background Decoration for Cards Area */
.cards-bg-deco {
	position: absolute;
	inset: -10%;
	pointer-events: none;
	z-index: 0;
}

.cards-mesh {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.4;
}

.cards-mesh--1 {
	width: 70%;
	height: 70%;
	top: -10%;
	right: -20%;
	background: radial-gradient(circle, rgba(107, 127, 199, 0.35), transparent 70%);
	animation: cardsMeshFloat 15s ease-in-out infinite alternate;
}

.cards-mesh--2 {
	width: 60%;
	height: 60%;
	bottom: -15%;
	left: -15%;
	background: radial-gradient(circle, rgba(238, 108, 26, 0.25), transparent 70%);
	animation: cardsMeshFloat 18s ease-in-out infinite alternate-reverse;
}

@keyframes cardsMeshFloat {
	to {
		transform: translate(5%, 3%) scale(1.08);
	}
}

/* Content Decoration for Services Slide */
.content-deco {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1.5rem;
	opacity: 0;
}

.hero-slide.is-active .content-deco {
	animation: fadeUp 0.6s ease 1.1s forwards;
}

.deco-line {
	width: 40px;
	height: 1px;
	background: linear-gradient(90deg, rgba(238, 108, 26, 0.5), transparent);
}

.deco-dots {
	display: flex;
	gap: 0.5rem;
}

.deco-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	transition: all 0.3s ease;
}

.hero-slide.is-active .deco-dot:nth-child(1) {
	animation: decoDotPulse 2s ease 1.3s infinite;
}
.hero-slide.is-active .deco-dot:nth-child(2) {
	animation: decoDotPulse 2s ease 1.4s infinite;
}
.hero-slide.is-active .deco-dot:nth-child(3) {
	animation: decoDotPulse 2s ease 1.5s infinite;
}
.hero-slide.is-active .deco-dot:nth-child(4) {
	animation: decoDotPulse 2s ease 1.6s infinite;
}
.hero-slide.is-active .deco-dot:nth-child(5) {
	animation: decoDotPulse 2s ease 1.7s infinite;
}

@keyframes decoDotPulse {
	0%,
	100% {
		background: rgba(255, 255, 255, 0.15);
		transform: scale(1);
	}
	50% {
		background: rgba(238, 108, 26, 0.6);
		transform: scale(1.3);
	}
}
