/* Services Page Styles */
.services-page {
	min-height: 100%;
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(20, 35, 80, 0.6), transparent 60%),
		radial-gradient(900px 500px at 100% 0%, rgba(10, 20, 50, 0.6), transparent 55%),
		linear-gradient(180deg, #06080e 0%, #070a13 35%, #05060c 100%);
	color: #e6e9ef;
	scroll-behavior: smooth;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
	--nav-h: 64px;
}

/* Snap scrolling container */
.services-page {
	overflow: hidden;
	height: 100vh;
	position: relative;
}

.services-page main {
	scroll-snap-type: y mandatory;
	overflow-y: scroll;
	height: 100vh;
	padding-top: var(--nav-h);
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	position: relative;
	z-index: 1;
	/* Hide scrollbar cross-browser while keeping scroll */
	scrollbar-width: none;
	/* Firefox */
	-ms-overflow-style: none;
	/* IE/Edge */
}

/* WebKit scrollbar hide */
.services-page main::-webkit-scrollbar {
	width: 0;
	height: 0;
}

/* Mobile: Normal scrolling instead of snap scrolling */
@media (max-width: 768px) {
	.services-page {
		overflow: visible;
		height: auto;
		min-height: 100vh;
	}

	.services-page main {
		scroll-snap-type: none;
		overflow-y: auto;
		height: auto;
		scrollbar-width: thin;
		-ms-overflow-style: auto;
		padding-top: var(--nav-h);
	}

	.services-page main::-webkit-scrollbar {
		width: 8px;
		height: 8px;
	}

	.services-page main::-webkit-scrollbar-thumb {
		background: rgba(255, 255, 255, 0.2);
		border-radius: 4px;
	}

	.services-page main::-webkit-scrollbar-track {
		background: rgba(255, 255, 255, 0.05);
	}

	/* Fix sections to display fully on mobile */
	section {
		min-height: auto !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
		overflow-y: visible !important;
		align-items: flex-start !important;
		scroll-snap-align: none !important;
		scroll-snap-stop: normal !important;
		scrollbar-width: none !important;
		-ms-overflow-style: none !important;
	}

	/* Hide scrollbars in sections on mobile */
	section::-webkit-scrollbar {
		display: none !important;
		width: 0 !important;
		height: 0 !important;
	}

	/* Ensure footer section displays fully */
	section:has(.footer) {
		min-height: auto !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
		align-items: flex-start !important;
		padding: 20px 0 !important;
	}
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	overflow-x: hidden;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.container::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

/* Fixed blurred animated background shapes */
.bg-ornaments {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	max-width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.bg-ornaments .blob {
	position: absolute;
	filter: blur(60px);
	opacity: 0.45;
	border-radius: 50%;
	mix-blend-mode: screen;
	transform: translate3d(0, 0, 0);
	will-change: transform;
	transition: transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	backface-visibility: hidden;
	perspective: 1000px;
}

/* Initial blob positions */
.blob-1 {
	width: 520px;
	height: 520px;
	background: #173bff;
}

.blob-2 {
	width: 420px;
	height: 420px;
	background: #00bcd4;
}

.blob-3 {
	width: 360px;
	height: 360px;
	background: #6a00ff;
}

/* Sections - 100vh each with snap */
section {
	position: relative;
	z-index: 1;
	min-height: calc(100vh - var(--nav-h));
	height: calc(100vh - var(--nav-h));
	max-height: calc(100vh - var(--nav-h));
	display: flex;
	align-items: center;
	justify-content: center;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	padding: 0;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

/* Hide scrollbars in sections */
section::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.section:last-child {
	margin-top: 400px;
}

/* Hero Section */
.hero-content {
	text-align: center;
	max-width: 900px;
}

.hero-title {
	font-size: clamp(42px, 8vw, 72px);
	line-height: 1.1;
	margin: 0 0 24px;
	color: #f6f8fb;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
	font-weight: 700;
}

.hero-title .title-line {
	display: block;
}

.hero-title .highlight {
	background: linear-gradient(135deg, #9ecbff 0%, #6a00ff 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-subtitle {
	font-size: clamp(18px, 2.5vw, 24px);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.7);
	max-width: 700px;
	margin: 0 auto;
	font-weight: 300;
}

/* Service Section Layout */
.service-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	width: 100%;
}

.service-layout.reverse {
	grid-template-columns: 1fr 1fr;
}

.service-layout.reverse .service-image {
	order: 2;
}

.service-layout.reverse .service-content {
	order: 1;
}

.service-image {
	position: relative;
	width: 100%;
	height: 500px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.02);
}

.service-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
	padding: 40px;
}

.service-image:hover img {
	transform: scale(1.05);
}

.service-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.section-header {
	margin-bottom: 4px;
}

.section-header h2 {
	font-size: 40px;
	line-height: 1.2;
	margin: 0 0 12px;
	color: #f6f8fb;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
	font-weight: 700;
}

.section-subtitle {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
	font-weight: 400;
}

.service-text {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.service-text p {
	font-size: 17px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
}

/* Service Features */
.service-features {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	transition: all 0.3s ease;
}

.feature-item:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(158, 203, 255, 0.3);
	transform: translateY(-2px);
}

.feature-item i {
	color: #9ecbff;
	font-size: 18px;
}

.feature-item span {
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	font-weight: 500;
}

/* Service Section Backgrounds (alternating) */
.service-section:nth-child(even) {
	background: rgba(255, 255, 255, 0.02);
	backdrop-filter: blur(10px);
}

/* CTA Section */
.services-cta {
	text-align: center;
}

.cta-content {
	max-width: 700px;
	margin: 0 auto;
}

.cta-content h2 {
	font-size: 48px;
	margin: 0 0 20px;
	color: #f6f8fb;
	font-weight: 700;
}

.cta-content p {
	font-size: 20px;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 40px;
}

.cta-buttons {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	cursor: pointer;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
}

.btn.primary {
	background: linear-gradient(135deg, #9ecbff 0%, #6a00ff 100%);
	color: #fff;
	border-color: transparent;
}

.btn.primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(158, 203, 255, 0.4);
}

.btn.outline {
	background: transparent;
	color: #9ecbff;
	border-color: rgba(158, 203, 255, 0.5);
}

.btn.outline:hover {
	background: rgba(158, 203, 255, 0.1);
	border-color: #9ecbff;
	transform: translateY(-2px);
}

/* Scroll Reveal Animations */
.sr {
	opacity: 0;
	transform: translateY(40px) scale(0.96);
	transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: opacity, transform;
}

.sr.sr-in {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.sr.sr-dir-top {
	transform: translateY(-50px) scale(0.96);
	opacity: 0;
}

.sr.sr-dir-bottom {
	transform: translateY(50px) scale(0.96);
	opacity: 0;
}

.sr.sr-dir-left {
	transform: translateX(-50px) scale(0.96);
	opacity: 0;
}

.sr.sr-dir-right {
	transform: translateX(50px) scale(0.96);
	opacity: 0;
}

.sr.sr-dir-top.sr-in,
.sr.sr-dir-bottom.sr-in,
.sr.sr-dir-left.sr-in,
.sr.sr-dir-right.sr-in {
	transform: translate(0, 0) scale(1);
	opacity: 1;
}

/* Custom Cursor Effect - Matching home page design */
.cursor-dot {
	width: 8px;
	height: 8px;
	background: #fff;
	border-radius: 50%;
	position: fixed;
	pointer-events: none;
	z-index: 10003;
	transition: transform 0.15s ease;
	transform: translate(-50%, -50%);
}

.cursor-outline {
	width: 40px;
	height: 40px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	position: fixed;
	pointer-events: none;
	z-index: 10002;
	transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.15s ease;
	transform: translate(-50%, -50%);
}

/* Cursor hover effects */
.cursor-outline.hover {
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.8);
}

.cursor-dot.hover {
	transform: translate(-50%, -50%) scale(0);
}

/* Cursor on white background (footer/navbar) */
.cursor-dot.on-white-bg {
	background: #111111;
}

.cursor-outline.on-white-bg {
	border-color: rgba(17, 17, 17, 0.6);
	background: rgba(17, 17, 17, 0.05);
}

.cursor-outline.on-white-bg.hover {
	border-color: rgba(17, 17, 17, 0.9);
	background: rgba(17, 17, 17, 0.15);
}

/* Hide default cursor */
.services-page,
.services-page a,
.services-page button,
.services-page input,
.services-page textarea,
.services-page select,
.services-page .btn {
	cursor: none !important;
}

/* Hide cursor on touch devices */
@media (pointer: coarse) {

	.cursor-dot,
	.cursor-outline {
		display: none !important;
	}
}

/* Back to Top Button - Matching home page design */
.back-to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #e6e9ef;
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
	display: grid;
	place-items: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

.back-to-top i {
	font-size: 18px;
}

/* When button is over white background (footer/navbar) */
.back-to-top.on-white-bg {
	background: rgba(17, 17, 17, 0.9);
	color: #ffffff;
	border: 1.5px solid rgba(17, 17, 17, 0.3);
	backdrop-filter: blur(8px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.on-white-bg:hover {
	background: #111111;
	border-color: #111111;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
	.container {
		padding: 0 20px;
	}

	.hero-title {
		font-size: 48px;
	}
}

@media (max-width: 992px) {
	.container {
		padding: 0 20px;
	}

	.services-hero {
		padding: 80px 0;
	}

	.hero-title {
		font-size: 42px;
	}

	.hero-subtitle {
		font-size: 19px;
	}

	.service-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.service-layout.reverse {
		grid-template-columns: 1fr;
	}

	.service-layout.reverse .service-image {
		order: 1;
	}

	.service-layout.reverse .service-content {
		order: 2;
	}

	.service-image {
		height: 380px;
		border-radius: 16px;
	}

	.service-content h3 {
		font-size: 28px;
	}

	.service-content p {
		font-size: 16px;
	}

	.service-features {
		flex-direction: column;
		gap: 16px;
	}

	.section-header h2 {
		font-size: 38px;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 15px;
	}

	.services-hero {
		padding: 60px 0;
		min-height: auto;
	}

	.hero-title {
		font-size: 32px;
		line-height: 1.2;
	}

	.hero-subtitle {
		font-size: 16px;
		margin-top: 12px;
	}

	.service-section,
	.services-cta {
		padding: 60px 0;
		min-height: auto !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	/* Ensure all sections display fully on mobile */
	section {
		min-height: auto !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
		overflow-y: visible !important;
		align-items: flex-start !important;
		scroll-snap-align: none !important;
		scroll-snap-stop: normal !important;
		scrollbar-width: none !important;
		-ms-overflow-style: none !important;
	}

	/* Hide scrollbars in sections on mobile */
	section::-webkit-scrollbar {
		display: none !important;
		width: 0 !important;
		height: 0 !important;
	}

	/* Remove large margin-top on last section for mobile */
	.section:last-child {
		margin-top: 0 !important;
	}

	.section-header h2 {
		font-size: 28px;
		margin-bottom: 20px;
	}

	.service-layout {
		gap: 24px;
	}

	.service-image {
		height: 300px;
		border-radius: 14px;
	}

	.service-content h3 {
		font-size: 24px;
		margin-bottom: 12px;
	}

	.service-content p {
		font-size: 15px;
		line-height: 1.6;
	}

	.service-features {
		gap: 12px;
		margin-top: 20px;
	}

	.feature-item {
		padding: 14px;
		font-size: 14px;
	}

	.cta-buttons {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.btn {
		width: 100%;
		text-align: center;
		padding: 14px 24px;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 12px;
	}

	.services-hero {
		padding: 50px 0;
	}

	.hero-title {
		font-size: 28px;
	}

	.hero-subtitle {
		font-size: 15px;
	}

	.service-section,
	.services-cta {
		padding: 50px 0;
	}

	.section-header h2 {
		font-size: 24px;
	}

	.service-image {
		height: 250px;
		border-radius: 12px;
	}

	.service-content h3 {
		font-size: 22px;
	}

	.service-content p {
		font-size: 14px;
	}

	.feature-item {
		padding: 12px;
		font-size: 13px;
	}
}