/* PM Flow Timeline Section Styles */
.pm-flow-section {
	width: 100%;
	padding: 120px 0;
	overflow: hidden;
	background: transparent;
	position: relative;
}

.pm-flow-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

.pm-flow-title {
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 700;
	text-align: center;
	margin-bottom: 16px;
	color: var(--fg, #0a0a0a);
}

.pm-flow-subtitle {
	font-size: clamp(16px, 2vw, 20px);
	text-align: center;
	color: var(--muted, #6b7280);
	margin-bottom: 80px;
}

.pm-flow-wrapper {
	position: relative;
	width: 100%;
	min-height: 600px;
	overflow: hidden;
}

/* Timeline Track Container */
.pm-flow-track {
	position: relative;
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0;
	padding: 100px 0;
	direction: rtl;
}

/* Timeline Line */
.pm-timeline-line {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 2px;
	background: rgba(154, 71, 255, 0.1);
	z-index: 1;
	transform: translateY(140px);
}

/* Timeline Steps */
.pm-step {
	position: relative;
	flex: 0 0 auto;
	width: 320px;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 3;
}

/* Timeline Node (Dot) */
.pm-step-node {
	position: relative;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--accent, #9a47ff);
	margin-bottom: 30px;
	transition: all 0.3s ease;
	z-index: 10;
	transform: translateY(-5px);
}

/* Active Step Node */
.pm-step.active .pm-step-node {
	background: #00ff88;
	transform: translateY(-5px) scale(1.5);
	box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.2);
}

/* Step Content Card */
.pm-step-content {
	width: 100%;
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	transition: all 0.3s ease;
	opacity: 0.5;
}

.pm-step.active .pm-step-content {
	opacity: 1;
}

.pm-step-title {
	font-size: 16px;
	font-weight: 500;
	color: var(--fg, #0a0a0a);
	margin: 0;
	line-height: 1.5;
	text-align: center;
	transition: color 0.3s ease;
}

.pm-step.active .pm-step-title {
	color: var(--fg, #0a0a0a);
	font-weight: 600;
}

/* Step Number Badge */
.pm-step-number {
	display: none;
}

/* Mobile Timeline (Vertical) */
@media (max-width: 768px) {
	.pm-flow-section {
		padding: 80px 0;
	}

	.pm-flow-subtitle {
		margin-bottom: 60px;
	}

	.pm-flow-wrapper {
		min-height: auto;
		padding-bottom: 60px;
	}

	.pm-flow-track {
		flex-direction: column;
		gap: 50px;
		padding: 60px 20px;
		direction: ltr;
		align-items: center;
	}

	.pm-timeline-line {
		top: 0;
		right: auto;
		left: 50%;
		width: 2px;
		height: 100%;
		transform: translateX(-50%);
	}

	.pm-step {
		width: 100%;
		max-width: 400px;
		padding: 0;
		flex-direction: row;
		align-items: flex-start;
		gap: 20px;
	}

	.pm-step-node {
		margin-bottom: 0;
		flex-shrink: 0;
		transform: translateX(-5px);
	}

	.pm-step.active .pm-step-node {
		transform: translateX(-5px) scale(1.5);
	}

	.pm-step-content {
		flex: 1;
		text-align: right;
		opacity: 0.7;
	}

	.pm-step.active .pm-step-content {
		opacity: 1;
	}

	.pm-step-title {
		text-align: right;
		font-size: 16px;
	}

	.pm-step-number {
		top: 50%;
		left: -16px;
		transform: translateY(-50%);
	}

	.pm-step.active .pm-step-number {
		transform: translateY(-50%) scale(1.1);
	}
}

/* Dark Mode Support */
html.dark .pm-flow-title {
	color: var(--white, #ffffff);
}

html.dark .pm-flow-subtitle {
	color: var(--muted, #9aa0b5);
}

html.dark .pm-step-content {
	background: transparent;
}

html.dark .pm-step-title {
	color: var(--white, #ffffff);
}

html.dark .pm-step.active .pm-step-title {
	color: #00ff88;
}

html.dark .pm-timeline-line {
	background: rgba(154, 71, 255, 0.15);
}

/* Performance Optimizations */
.pm-flow-section * {
	backface-visibility: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.pm-step,
.pm-step-content,
.pm-step-node {
	transform: translate3d(0, 0, 0);
}

@media screen and (max-width: 901px) {
	.pm-timeline-line {
		display: none;
	}
}