/* ============================================================
   Services Section — «Platform of Solutions»
   ============================================================
   Dark glass cards with orange accents, tech mesh bg.
   Continuation of dark rhythm (hero → pains → services).
   ============================================================ */

/* ———————————————————————
   Section Background — dark
   ——————————————————————— */

section.services-section.section {
	position: relative;
	background-color: #0d0d20 !important;
	overflow: hidden;
}

/* Tech mesh — different from pains: tighter grid + dot matrix */
section.services-section.section::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		/* fine grid lines */
		linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
		/* dot matrix */
		radial-gradient(circle, rgba(255, 94, 20, 0.04) 1px, transparent 1px);
	background-size: 50px 50px, 50px 50px, 25px 25px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 45%, transparent 72%);
	mask-image: radial-gradient(ellipse at 50% 50%, black 45%, transparent 72%);
	pointer-events: none;
}

/* Constellation glow — subtle ambient boost */
section.services-section.section::after {
	content: '';
	position: absolute;
	bottom: -200px;
	left: -150px;
	width: 550px;
	height: 550px;
	background: radial-gradient(circle, rgba(255, 94, 20, 0.05) 0%, transparent 65%);
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

/* ———————————————————————
   Constellation Nodes & Lines
   ——————————————————————— */

/* Constellation container */
.services-constellation {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

/* Connection lines between nodes */
.services-constellation::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		/* Line 1: top-left to center-right */
		linear-gradient(35deg,
			transparent calc(50% - 0.5px),
			rgba(255, 94, 20, 0.04) calc(50% - 0.5px),
			rgba(255, 94, 20, 0.04) calc(50% + 0.5px),
			transparent calc(50% + 0.5px)
		),
		/* Line 2: top-right to bottom-left */
		linear-gradient(-50deg,
			transparent calc(50% - 0.5px),
			rgba(100, 180, 255, 0.04) calc(50% - 0.5px),
			rgba(100, 180, 255, 0.04) calc(50% + 0.5px),
			transparent calc(50% + 0.5px)
		),
		/* Line 3: horizontal midline */
		linear-gradient(90deg,
			transparent calc(50% - 0.5px),
			rgba(255, 94, 20, 0.03) calc(50% - 0.5px),
			rgba(255, 94, 20, 0.03) calc(50% + 0.5px),
			transparent calc(50% + 0.5px)
		),
		/* Line 4: diagonal */
		linear-gradient(60deg,
			transparent calc(50% - 0.5px),
			rgba(100, 180, 255, 0.03) calc(50% - 0.5px),
			rgba(100, 180, 255, 0.03) calc(50% + 0.5px),
			transparent calc(50% + 0.5px)
		);
	background-size:
		400px 300px, 350px 250px, 500px 1px, 300px 400px;
	background-repeat: no-repeat;
	background-position:
		top 15% left 10%, top 20% right 15%, center, bottom 20% left 30%;
}

/* Glowing nodes via pseudo-elements */
.services-constellation::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		/* Node 1 — large, top-left */
		radial-gradient(circle at 18% 22%, rgba(255, 94, 20, 0.20) 0%, rgba(255, 94, 20, 0.05) 8px, transparent 16px),
		/* Node 2 — medium, top-right */
		radial-gradient(circle at 78% 15%, rgba(100, 180, 255, 0.15) 0%, rgba(100, 180, 255, 0.04) 6px, transparent 12px),
		/* Node 3 — medium, center */
		radial-gradient(circle at 50% 50%, rgba(255, 94, 20, 0.12) 0%, rgba(255, 94, 20, 0.03) 5px, transparent 10px),
		/* Node 4 — small, bottom-left */
		radial-gradient(circle at 25% 75%, rgba(100, 180, 255, 0.10) 0%, rgba(100, 180, 255, 0.03) 4px, transparent 8px),
		/* Node 5 — small, bottom-right */
		radial-gradient(circle at 72% 80%, rgba(255, 94, 20, 0.12) 0%, rgba(255, 94, 20, 0.03) 4px, transparent 8px);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	animation: constellation-pulse 6s ease-in-out infinite;
}

@keyframes constellation-pulse {
	0%, 100% { opacity: 0.6; }
	25% { opacity: 1; }
	50% { opacity: 0.7; }
	75% { opacity: 0.9; }
}

/* Node glint — tiny bright dots on top */
.services-node-glint {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.services-node-glint::before,
.services-node-glint::after {
	content: '';
	position: absolute;
	border-radius: 50%;
}

.services-node-glint::before {
	top: 22%;
	left: 18%;
	width: 4px;
	height: 4px;
	background: #ffffff;
	box-shadow:
		0 0 6px rgba(255, 94, 20, 0.6),
		0 0 12px rgba(255, 94, 20, 0.2);
	animation: glint-pulse 3s ease-in-out infinite;
}

.services-node-glint::after {
	top: 15%;
	left: 78%;
	width: 3px;
	height: 3px;
	background: rgba(180, 220, 255, 0.9);
	box-shadow:
		0 0 5px rgba(100, 180, 255, 0.5),
		0 0 10px rgba(100, 180, 255, 0.15);
	animation: glint-pulse 4.2s ease-in-out 0.7s infinite;
}

@keyframes glint-pulse {
	0%, 100% { transform: scale(1); opacity: 0.5; }
	50% { transform: scale(2.2); opacity: 1; }
}

/* Orbiting micro-dot */
.services-orbit {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 160px;
	height: 160px;
	margin: -80px 0 0 -80px;
	z-index: 0;
	pointer-events: none;
	animation: orbit-spin 14s linear infinite;
}

.services-orbit::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	width: 3px;
	height: 3px;
	background: var(--color-primary);
	border-radius: 50%;
	margin: -1.5px 0 0 -1.5px;
	box-shadow: 0 0 5px rgba(255, 94, 20, 0.4);
}

@keyframes orbit-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

section.services-section .container {
	position: relative;
	z-index: 1;
}

/* ———————————————————————
   Section Header
   ——————————————————————— */

.services-header {
	margin-bottom: 52px;
}

.services-title-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Decorative marker — same system as pains */
.services-marker {
	display: flex;
	align-items: center;
	gap: 10px;
}

.services-marker-line {
	width: 32px;
	height: 2px;
	background: var(--color-primary);
	opacity: 0.6;
	border-radius: 1px;
}

.services-marker-dot {
	display: block;
	width: 6px;
	height: 6px;
	background: var(--color-primary);
	border-radius: 1px;
	transform: rotate(45deg);
	box-shadow: 0 0 8px rgba(255, 94, 20, 0.3);
}

.services-title {
	font-family: var(--font-heading);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
	letter-spacing: -0.02em;
	margin: 0;
	max-width: 700px;
}

.services-title-accent {
	color: var(--color-primary);
}

/* ———————————————————————
   Services Grid — 3 glass cards
   ——————————————————————— */

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

/* Card — glassmorphism */
.service-card {
	position: relative;
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: var(--radius-lg);
	padding: 36px 30px 32px;
	display: flex;
	flex-direction: column;
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
	            border-color 0.4s ease,
	            box-shadow 0.4s ease;
	overflow: hidden;
}

/* Hover — lift + orange border glow */
.service-card:hover {
	transform: translateY(-8px);
	border-color: rgba(255, 94, 20, 0.25);
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.3),
		0 0 60px rgba(255, 94, 20, 0.04);
}

/* Glow element — appears on hover at bottom */
.service-card-glow {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60%;
	background: linear-gradient(to top, rgba(255, 94, 20, 0.06), transparent);
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.service-card:hover .service-card-glow {
	opacity: 1;
}

/* Card icon — circle with radial gradient */
.service-icon {
	width: 68px;
	height: 68px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 94, 20, 0.1);
	border-radius: 50%;
	position: relative;
	margin-bottom: 22px;
	flex-shrink: 0;
}

.service-icon::before {
	content: '';
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 94, 20, 0.12) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.service-card:hover .service-icon::before {
	opacity: 1;
}

.service-icon svg {
	position: relative;
	z-index: 1;
}

/* Card title */
.service-title {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 10px;
	line-height: 1.3;
}

/* Card description */
.service-desc {
	font-size: 15px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 20px;
	flex: 1;
}

/* Features list */
.service-features {
	list-style: none;
	padding: 0;
	margin-bottom: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.service-features li {
	position: relative;
	padding-left: 22px;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.65);
}

.service-features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--color-primary);
	font-weight: 700;
	font-size: 13px;
}

/* CTA button — outline style on dark */
.service-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	font-family: var(--font-primary);
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 30px;
	text-decoration: none;
	transition: all 0.35s ease;
	align-self: flex-start;
	cursor: pointer;
}

.service-btn svg {
	transition: transform 0.35s ease;
}

.service-btn:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #ffffff;
}

.service-btn:hover svg {
	transform: translateX(3px);
}
