/* Typography & base */
:root {
	--bg-start: #000000;
	--bg-end: #0c0f14;
	--text: #e9eef6;
	--muted: #b9c2cf;
	--accent-start: #ff5acd;
	--accent-end: #5aa8ff;
	--card: rgba(255, 255, 255, 0.06);
	--border: rgba(255, 255, 255, 0.12);
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
	color: var(--text);
	background: radial-gradient(1200px 800px at 80% -10%, rgba(255,255,255,0.04), transparent 60%),
		linear-gradient(160deg, var(--bg-start), var(--bg-end));
	min-height: 100vh;
	overflow-x: hidden;
}

.container {
	width: min(1280px, 92%);
	margin: 0 auto;
}

/* Header / Nav */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	backdrop-filter: saturate(140%) blur(10px);
	background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
	border-bottom: 1px solid var(--border);
	z-index: 1000;
}

.nav { display: flex; justify-content: center; }
.nav__list {
	list-style: none;
	display: flex;
	gap: clamp(18px, 4vw, 48px);
	margin: 0;
	padding: 14px 0;
}
.nav__link {
	position: relative;
	text-decoration: none;
	color: #ffffff;
	letter-spacing: 0.08em;
	font-weight: 600;
	transition: transform 220ms ease, color 220ms ease;
}
.nav__link::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 260ms ease;
}
.nav__link:hover { transform: scale(1.05); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Avatar performance toggle button */
.avatar-toggle {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 8px 16px;
	color: var(--text);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
	backdrop-filter: blur(10px);
	z-index: 1001; /* Higher than avatar (z-index: 1) */
	/* Fix centering to prevent movement during scale */
	transform-origin: center;
}

.avatar-toggle:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.3);
	transform: translateX(-50%) scale(1.05);
	box-shadow: 
		0 0 20px rgba(255, 255, 255, 0.3),
		0 0 40px rgba(255, 255, 255, 0.2),
		0 0 60px rgba(255, 255, 255, 0.1);
}

.avatar-toggle:active {
	transform: translateX(-50%) scale(1.02);
}

.avatar-toggle.disabled {
	background: rgba(255, 90, 205, 0.2);
	border-color: rgba(255, 90, 205, 0.4);
	color: var(--accent-start);
}

.avatar-toggle svg {
	width: 16px;
	height: 16px;
}

/* Mobile adjustments for toggle button */
@media (max-width: 768px) {
	.avatar-toggle span {
		display: none; /* Hide text on mobile, keep icon */
	}
	
	.avatar-toggle {
		padding: 8px;
		min-width: 40px;
		justify-content: center;
	}
}

/* Hero */
.hero {
	padding-top: 120px;
	padding-bottom: 64px;
	padding-left: clamp(40px, 8vw, 100px);
	padding-right: clamp(40px, 8vw, 100px);
	width: 100%;
	/* Enable absolute positioning for the toggle button */
	position: relative;
}
.hero__row{
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: clamp(20px, 4vw, 40px);
	flex-wrap: nowrap;
	min-height: 0;
}
.hero__title {
	font-size: clamp(60px, 10vw, 120px);
	line-height: 1.02;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0;
	background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 55%, #9aa5b1 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: 
		0 0 30px rgba(255,255,255,0.15),
		0 0 60px rgba(255,255,255,0.1),
		0 0 90px rgba(255,255,255,0.08),
		0 0 120px rgba(255,255,255,0.05),
		0 12px 40px rgba(255,255,255,0.1);
	text-align: center;
	filter: drop-shadow(0 0 40px rgba(255,255,255,0.2));
}
.hero__text {
	margin: 0 0 8px 0;
	font-size: clamp(14px, 1.8vw, 16px);
	line-height: 1.7;
	color: var(--muted);
	text-shadow: 
		0 0 20px rgba(255,255,255,0.6),
		0 0 40px rgba(255,255,255,0.4),
		0 0 60px rgba(255,255,255,0.3),
		0 0 80px rgba(255,255,255,0.2),
		0 0 100px rgba(255,255,255,0.1),
		2px 2px 4px rgba(255,255,255,0.3);
	filter: drop-shadow(0 0 25px rgba(255,255,255,0.4));
}
.hero__content{
	width: clamp(250px, 30%, 400px);
	flex-shrink: 0;
	min-width: 0;
}
.avatar {
	width: clamp(120px, 25vw, 648px);
	height: clamp(120px, 25vw, 648px);
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 
		0 0 30px rgba(255,255,255,0.2),
		0 0 60px rgba(255,255,255,0.15),
		0 0 90px rgba(255,255,255,0.1),
		0 0 120px rgba(255,255,255,0.08),
		0 20px 50px rgba(0,0,0,0.55), 
		inset 0 0 0 1px rgba(255,255,255,0.08), 
		0 0 40px rgba(255,255,255,0.15);
	background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), rgba(255,255,255,0) 60%),
		linear-gradient(135deg, #2a2f3a, #171b24);
	border: 1px solid var(--border);
	/* Ultra-fast hardware acceleration */
	will-change: transform;
	transform: translateZ(0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	/* No transitions for instant response */
	transition: none;
	position: relative;
	z-index: 1;
	flex-shrink: 1;
	min-width: 0;
	filter: drop-shadow(0 0 40px rgba(255,255,255,0.25));
}
.cta-btn {
	display: inline-block;
	padding: 14px 40px;
	min-width: clamp(200px, 25%, 300px);
	text-align: center;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #ffffff;
	background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
	box-shadow: 0 10px 28px rgba(90, 168, 255, 0.35), 0 6px 12px rgba(255, 90, 205, 0.25);
	transition: transform 200ms ease, box-shadow 220ms ease, filter 220ms ease;
	flex-shrink: 0;
}
.cta-btn:hover {
	transform: translateY(-1px) scale(1.02);
	box-shadow: 0 16px 46px rgba(90, 168, 255, 0.45), 0 10px 18px rgba(255, 90, 205, 0.35);
	filter: brightness(1.02);
}

/* Sections */
.placeholder-section { 
	padding: 64px 0 88px; 
	position: relative;
	z-index: 2;
}

/* Services Section */
.services-section {
	padding: 64px 0 88px;
	position: relative;
	z-index: 2;
}

.services-section .section-title {
	font-size: clamp(80px, 10vw, 120px);
	font-weight: 800;
	text-align: left;
	margin-bottom: 24px;
	letter-spacing: -0.02em;
	line-height: 1.1;
	/* Base positioning for pseudo-elements */
	position: relative;
	z-index: 1;
	/* Outline layer - always visible */
	color: transparent;
	-webkit-text-stroke: 2px var(--text);
	text-stroke: 2px var(--text);
	/* Remove previous background and mask properties */
	background: none;
	-webkit-background-clip: unset;
	background-clip: unset;
	-webkit-mask: none;
	mask: none;
	filter: none;
	will-change: unset;
	transition: none;
}

/* Fill layer using pseudo-element */
.services-section .section-title::before {
	content: attr(data-text);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	color: var(--text);
	/* Initial state: no fill visible */
	clip-path: inset(100% 0 0 0);
	/* Use CSS custom properties for smooth animation */
	clip-path: var(--clip-path, inset(100% 0 0 0));
	/* Ensure smooth transitions */
	transition: clip-path 0.1s ease-out;
	/* Inherit all text properties */
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-align: inherit;
	/* Remove stroke from fill layer */
	-webkit-text-stroke: 0;
	text-stroke: 0;
}

/* General Section Styles */
.section-title { 
	font-size: clamp(24px, 3.2vw, 36px); 
	margin: 0 0 12px 0; 
}

.section-text { 
	color: var(--muted); 
}

.services-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(800px 600px at 50% 50%, rgba(255, 90, 205, 0.02), transparent 70%);
	z-index: -1;
	transform: translateZ(-1px) scale(2);
	transition: transform 0.1s ease-out;
}

.services-section::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(600px 400px at 80% 20%, rgba(90, 168, 255, 0.01), transparent 70%);
	z-index: -2;
	transform: translateZ(-2px) scale(3);
	transition: transform 0.1s ease-out;
}

/* Enhanced parallax with CSS custom properties for services */
.services-section::before {
	transform: translate3d(var(--parallax-offset-1, 0), 0, -1px) scale(2);
}

.services-section::after {
	transform: translate3d(var(--parallax-offset-2, 0), 0, -2px) scale(3);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 48px;
	margin-top: 48px;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	/* Ensure perfect grid alignment */
	align-items: start;
	grid-auto-rows: 1fr;
}

/* Service card text slide animation */
.service-card-text-slide {
	opacity: 0;
	transform: translate(0px, 0px); /* Start at final position, will be animated from service card center */
	/* No transition - controlled by JavaScript for smooth parallax */
	overflow: hidden;
	/* Ensure no positioning offset */
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Lower z-index to appear underneath service cards */
	z-index: 1;
	position: relative;
}

.service-card-text-slide p {
	margin: 0;
	color: var(--muted);
	line-height: 1.7;
	font-size: clamp(14px, 2vw, 16px); /* Responsive font size */
	text-align: center;
	/* Ensure text fits within card dimensions */
	max-width: 100%;
	word-wrap: break-word;
	hyphens: auto;
	/* Match service card content positioning exactly */
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Make empty card visible when it contains text - but keep it "hidden" */
.service-card--empty.has-content {
	/* No background, border, or visual elements - truly hidden */
	background: transparent;
	border: none;
	backdrop-filter: none;
	box-shadow: none;
	padding: clamp(28px, 4vw, 40px); /* Match service-card padding exactly */
	display: flex;
	flex-direction: column; /* Match service-card flex direction exactly */
	align-items: center;
	justify-content: center; /* Match service-card justify-content exactly */
	/* Match service-card dimensions EXACTLY */
	height: 400px; /* Fixed height to match service cards */
	min-height: 400px; /* Override min-height */
	max-height: 400px; /* Prevent overflow */
	/* Ensure consistent sizing with other cards */
	box-sizing: border-box;
	/* Grid alignment - match service-card exactly */
	align-self: stretch;
	/* Position matching - identical to service-card */
	position: relative;
	overflow: hidden;
	/* Remove any default margins that might cause offset */
	margin: 0;
	/* Ensure no transforms that could affect positioning */
	transform: none;
}

/* Mobile-first responsive grid */
@media (max-width: 768px) {
	.services-grid {
		grid-template-columns: 1fr;
		gap: 24px;
		/* Ensure grid automatically adjusts when empty cards are hidden */
		grid-auto-flow: row;
		/* Force single column layout */
		grid-template-areas: 
			"card1"
			"card2" 
			"card3"
			"card4";
	}
	
	/* Explicitly position visible cards in single column */
	.service-card:not(.service-card--empty) {
		grid-column: 1;
	}
	
	/* Mobile text slide adjustments */
	.service-card-text-slide {
		margin-top: 24px;
		padding: 20px;
	}
}

.service-card {
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 20px;
	padding: clamp(28px, 4vw, 40px);
	text-align: center;
	box-shadow: 
		0 20px 40px rgba(0, 0, 0, 0.1),
		0 8px 16px rgba(0, 0, 0, 0.05),
		inset 0 1px 0 rgba(255, 255, 255, 0.8);
	backdrop-filter: saturate(140%) blur(20px);
	transition: all 0.3s ease-out;
	position: relative;
	overflow: hidden;
	/* Ensure ALL cards have EXACTLY the same dimensions */
	height: 400px; /* Fixed height for consistency */
	min-height: 400px; /* Override min-height */
	max-height: 400px; /* Prevent any overflow */
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* Initial state for parallax */
	opacity: 0.3;
	transform: translate3d(0, 0, 0) scale(1);
	/* Grid alignment */
	align-self: stretch;
	/* Higher z-index to appear above text slides */
	z-index: 10;
}

.service-card.revealed {
	/* Remove conflicting revealed styles - JavaScript parallax handles this now */
	/* opacity: 1; */
	/* transform: translateY(0); */
	/* transition: all 600ms ease; */
}

/* Remove conflicting transition delays - JavaScript parallax handles timing now */
/* .service-card:nth-child(1).revealed { transition-delay: 0.1s; } */
/* .service-card:nth-child(2).revealed { transition-delay: 0.2s; } */
/* .service-card:nth-child(3).revealed { transition-delay: 0.3s; } */
/* .service-card:nth-child(4).revealed { transition-delay: 0.4s; } */

.service-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
	opacity: 0;
	transition: opacity 300ms ease;
}

.service-card:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 
		0 32px 64px rgba(0, 0, 0, 0.15),
		0 16px 32px rgba(0, 0, 0, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	border-color: rgba(255, 90, 205, 0.3);
}

.service-card:hover::before {
	opacity: 1;
}

.service-card:hover .service-title {
	color: var(--accent-start);
	transition: color 300ms ease;
}

.service-card:hover .service-description {
	color: var(--bg-start);
	transition: color 300ms ease;
}

.service-icon {
	width: 70px;
	height: 70px;
	margin: 0 auto 20px;
	background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	box-shadow: 
		0 8px 24px rgba(255, 90, 205, 0.3),
		0 4px 12px rgba(90, 168, 255, 0.2);
	transition: all 300ms ease;
}

.service-card:hover .service-icon {
	transform: scale(1.1) rotate(5deg);
	box-shadow: 
		0 12px 32px rgba(255, 90, 205, 0.4),
		0 6px 16px rgba(90, 168, 255, 0.3);
}

.service-title {
	font-size: clamp(18px, 2.2vw, 22px);
	font-weight: 700;
	color: var(--bg-start);
	margin: 0 0 14px 0;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.service-description {
	font-size: clamp(13px, 1.4vw, 15px);
	line-height: 1.6;
	color: var(--muted);
	margin: 0;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

/* Empty service cards for spacing */
.service-card--empty {
	background: transparent;
	border: none;
	box-shadow: none;
	backdrop-filter: none;
	/* Match service card dimensions exactly for layout consistency */
	height: 400px;
	min-height: 400px;
	max-height: 400px;
	opacity: 0;
	pointer-events: none;
	/* Grid alignment */
	align-self: stretch;
	/* Ensure no transforms that could affect positioning */
	transform: none;
}

/* Completely remove empty cards on mobile - they should not exist in layout */
@media (max-width: 768px) {
	.service-card--empty {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		height: 0 !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		position: absolute !important;
		left: -9999px !important;
		top: -9999px !important;
		z-index: -9999 !important;
		pointer-events: none !important;
		/* Ensure they don't take up grid space */
		grid-column: unset !important;
		grid-row: unset !important;
		/* Remove from flow completely */
		clip: rect(0 0 0 0) !important;
		/* Force removal from grid layout */
		grid-area: unset !important;
		/* Ensure no background or borders are visible */
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
		/* Ensure no transforms */
		transform: none !important;
	}
}

.service-card--empty:hover {
	transform: none;
	box-shadow: none;
	border-color: transparent;
}

.service-card--empty::before {
	display: none;
}

/* Comprehensive mobile optimization - hide empty cards on all mobile devices */
/* Primary mobile breakpoint */
@media (max-width: 768px) {
	.service-card--empty {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		height: 0 !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		position: absolute !important;
		left: -9999px !important;
		top: -9999px !important;
		z-index: -9999 !important;
		pointer-events: none !important;
	}
	
	/* Change grid layout to single column on mobile */
	.services-grid {
		grid-template-columns: 1fr !important;
		gap: 24px !important;
	}
}

/* iOS-specific optimizations */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
	.service-card--empty {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		height: 0 !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		position: absolute !important;
		left: -9999px !important;
		top: -9999px !important;
		z-index: -9999 !important;
		pointer-events: none !important;
	}
	
	/* Ensure single column layout on iOS */
	.services-grid {
		grid-template-columns: 1fr !important;
		gap: 24px !important;
	}
}

/* Additional mobile breakpoints for comprehensive coverage */
@media (max-width: 820px) and (orientation: portrait) {
	.service-card--empty {
		display: none !important;
		visibility: hidden !important;
	}
}

@media (max-width: 915px) and (orientation: landscape) {
	.service-card--empty {
		display: none !important;
		visibility: hidden !important;
	}
}

/* Touch device detection */
@media (hover: none) and (pointer: coarse) {
	.service-card--empty {
		display: none !important;
		visibility: hidden !important;
	}
}

/* Additional mobile performance optimizations */
@media (max-width: 768px) {
	/* Optimize animations for mobile */
	.service-card {
		transition: opacity 0.3s ease, transform 0.3s ease;
		will-change: opacity, transform;
	}
	
	/* Reduce parallax effects on mobile for better performance */
	.services-section {
		--parallax-offset-1: 0px !important;
		--parallax-offset-2: 0px !important;
	}
	
	/* Optimize touch interactions */
	.service-card:hover {
		transform: none;
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	}
	
	/* Ensure proper spacing without empty cards */
	.services-grid {
		grid-template-columns: 1fr !important;
		gap: 24px !important;
	}
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
	@media (max-width: 768px) {
		.service-card--empty {
			display: none !important;
			visibility: hidden !important;
			opacity: 0 !important;
			height: 0 !important;
			min-height: 0 !important;
			margin: 0 !important;
			padding: 0 !important;
			overflow: hidden !important;
			position: absolute !important;
			left: -9999px !important;
			top: -9999px !important;
			z-index: -9999 !important;
			pointer-events: none !important;
			/* iOS Safari specific - ensure complete removal from layout */
			grid-column: unset !important;
			grid-row: unset !important;
			clip: rect(0 0 0 0) !important;
			/* Force hardware acceleration */
			transform: translate3d(0, 0, 0) !important;
			will-change: auto !important;
		}
		
		/* Force single column layout on iOS Safari */
		.services-grid {
			grid-template-columns: 1fr !important;
			gap: 24px !important;
		}
	}
}

/* Service card parallax effect */
.service-card {
	transform: translateZ(0);
	transition: transform 0.1s ease-out;
}

/* Responsive adjustments for services */
@media (max-width: 1024px) {
	.services-grid {
		gap: 40px;
		margin-top: 40px;
		max-width: 900px;
	}
}

@media (max-width: 768px) {
	.services-grid {
		grid-template-columns: 1fr; /* Switch to single column on mobile */
		gap: 32px;
		margin-top: 32px;
		max-width: 600px;
	}
	
	.service-card {
		padding: clamp(24px, 5vw, 32px);
	}
	
	.service-icon {
		width: 64px;
		height: 64px;
		margin-bottom: 20px;
	}
	
	.service-icon svg {
		width: 32px;
		height: 32px;
	}
}

@media (max-width: 520px) {
	.services-section {
		padding: 48px 0 64px;
	}
	
	.services-grid {
		gap: 24px;
		margin-top: 24px;
	}
	
	.service-card {
		padding: 20px;
	}
	
	.service-icon {
		width: 56px;
		height: 56px;
		margin-bottom: 16px;
	}
	
	.service-icon svg {
		width: 28px;
		height: 28px;
	}
}

/* Footer */
.site-footer { padding: 24px 0 48px; color: var(--muted); text-align: center; }

/* Contact Form */
.contact-section {
	padding: 64px 0 88px;
	position: relative;
	z-index: 2;
}

.contact-form {
	max-width: 600px;
	margin: 48px auto 0;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: clamp(32px, 6vw, 48px);
	backdrop-filter: saturate(140%) blur(10px);
	box-shadow: var(--shadow);
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 24px;
}

.form-group {
	margin-bottom: 24px;
}

.form-group:last-of-type {
	margin-bottom: 32px;
}

.form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--text);
	font-size: 14px;
	letter-spacing: 0.02em;
	transition: color 220ms ease;
}

.form-input:focus + .form-label,
.form-textarea:focus + .form-label {
	color: var(--accent-start);
}

/* Form group focus state */
.form-group:focus-within .form-label {
	color: var(--accent-start);
	transform: translateY(-2px);
	transition: all 220ms ease;
}

.form-input,
.form-textarea {
	width: 100%;
	padding: 14px 18px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text);
	font-family: inherit;
	font-size: 16px;
	transition: all 220ms ease;
	backdrop-filter: saturate(140%) blur(10px);
}

.form-input:hover,
.form-textarea:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.2);
}

.form-input:focus,
.form-textarea:focus {
	outline: none;
	border-color: var(--accent-start);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 3px rgba(255, 90, 205, 0.1);
	transform: translateY(-1px);
}

.form-input::placeholder,
.form-textarea::placeholder {
	color: var(--muted);
	opacity: 0.6;
}

.form-textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.6;
}

.submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 16px 32px;
	background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
	border: none;
	border-radius: 999px;
	color: #ffffff;
	font-family: inherit;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: all 220ms ease;
	box-shadow: 0 10px 28px rgba(90, 168, 255, 0.35), 0 6px 12px rgba(255, 90, 205, 0.25);
	position: relative;
	overflow: hidden;
}

.submit-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.submit-btn:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 16px 46px rgba(90, 168, 255, 0.45), 0 10px 18px rgba(255, 90, 205, 0.35);
	filter: brightness(1.05);
}

.submit-btn:hover::before {
	left: 100%;
}

.submit-btn:active {
	transform: translateY(0) scale(0.98);
}

.submit-icon {
	transition: transform 220ms ease;
}

.submit-btn:hover .submit-icon {
	transform: translateX(4px);
}

/* Responsive form adjustments */
@media (max-width: 768px) {
	.form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
	
	.contact-form {
		padding: clamp(24px, 5vw, 32px);
		margin-top: 32px;
	}
}

@media (max-width: 520px) {
	.contact-form {
		padding: 20px;
		margin-top: 24px;
	}
	
	.form-input,
	.form-textarea {
		padding: 12px 16px;
		font-size: 15px;
	}
	
	.submit-btn {
		padding: 14px 24px;
		font-size: 15px;
	}
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(12px); }
.revealed { opacity: 1; transform: translateY(0); transition: opacity 700ms ease, transform 700ms ease; }

/* Hero title drop-in animation */
.hero__title {
	opacity: 0;
	transform: translateY(-200px);
	animation: dropIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
	filter: blur(0px);
}

@keyframes dropIn {
	0% {
		opacity: 0;
		transform: translateY(-200px);
		filter: blur(8px);
	}
	40% {
		opacity: 1;
		transform: translateY(8px);
		filter: blur(2px);
	}
	70% {
		opacity: 1;
		transform: translateY(-2px);
		filter: blur(0px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
		filter: blur(0px);
	}
}

/* Showcase Slider */
.showcase {
	position: relative;
	overflow: hidden;
	padding: 80px 0;
	background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3), transparent);
}

/* Parallax Background Layers */
.parallax-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: -1;
}

.parallax-layer-1 {
	background: radial-gradient(800px 600px at 20% 80%, rgba(255, 90, 205, 0.03), transparent 60%);
	transform: translateZ(-1px) scale(2);
}

.parallax-layer-2 {
	background: radial-gradient(600px 400px at 80% 20%, rgba(90, 168, 255, 0.02), transparent 60%);
	transform: translateZ(-2px) scale(3);
}

.parallax-layer-3 {
	background: radial-gradient(1000px 800px at 50% 50%, rgba(255, 255, 255, 0.01), transparent 70%);
	transform: translateZ(-3px) scale(4);
}

/* Hero Parallax Background */
.hero {
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(1200px 800px at 80% -10%, rgba(255,255,255,0.04), transparent 60%);
	z-index: -1;
	transform: translateZ(-1px) scale(2);
	transition: transform 0.1s ease-out;
}

.hero::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(800px 600px at 20% 90%, rgba(255, 90, 205, 0.02), transparent 60%);
	z-index: -2;
	transform: translateZ(-2px) scale(3);
	transition: transform 0.1s ease-out;
}

/* Contact Section Parallax */
.contact-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(600px 400px at 50% 50%, rgba(90, 168, 255, 0.01), transparent 70%);
	z-index: -1;
	transform: translateZ(-1px) scale(2);
	transition: transform 0.1s ease-out;
}

/* Enhanced parallax with CSS custom properties */
.hero::before {
	transform: translate3d(var(--parallax-offset-1, 0), 0, -1px) scale(2);
}

.hero::after {
	transform: translate3d(var(--parallax-offset-2, 0), 0, -2px) scale(3);
}

.contact-section::before {
	transform: translate3d(var(--parallax-offset, 0), 0, -1px) scale(2);
}


.showcase__subtitle {
	color: var(--muted);
	font-size: 16px;
	margin: 0;
	opacity: 0.8;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 0.6; }
	50% { opacity: 1; }
}

.slider1 {
	display: flex;
	gap: 20px;
	transform: translateX(0);
	will-change: transform;
	transition: transform 0.1s ease-out;
	width: max-content; /* Ensure all images are in a single row */
	padding: 0 20px; /* Add some padding for better visual balance */
}

.slider1 img {
	width: 500px;
	height: 250px;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.3);
	border: 1px solid var(--border);
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.slider1 img:hover {
	transform: scale(1.05);
}

/* Second slider - opposite direction */
.slider2-container {
	overflow: hidden;
	margin-top: 40px; /* Space between the two sliders */
	text-align: right; /* Align content to the right */
	direction: rtl; /* Right-to-left direction for the container */
}

.slider2 {
	display: flex;
	gap: 20px;
	transform: translateX(0);
	will-change: transform;
	transition: transform 0.1s ease-out;
	width: max-content; /* Ensure all images are in a single row */
	padding: 0 20px; /* Add some padding for better visual balance */
	direction: rtl; /* Right-to-left direction like Arabic text */
}

.slider2 img {
	width: 500px;
	height: 250px;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.3);
	border: 1px solid var(--border);
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.slider2 img:hover {
	transform: scale(1.05);
}

@media (max-width: 1024px) {
	.hero__row {
		flex-direction: column;
		text-align: center;
		gap: clamp(30px, 6vw, 50px);
	}
	.hero__content {
		width: 100%;
		max-width: 600px;
	}
	.avatar {
		width: clamp(150px, 30vw, 300px);
		height: clamp(150px, 30vw, 300px);
	}
	.cta-btn {
		min-width: clamp(200px, 60%, 300px);
		padding: 14px 40px;
	}
}

@media (max-width: 768px) {
	.hero {
		padding-top: 100px;
		padding-bottom: 40px;
	}
	.hero__title {
		font-size: clamp(40px, 12vw, 80px);
	}
	.hero__row {
		gap: clamp(25px, 5vw, 40px);
	}
	.hero__content {
		width: 100%;
		max-width: 500px;
	}
	.avatar {
		width: clamp(120px, 40vw, 200px);
		height: clamp(120px, 40vw, 200px);
	}
	.cta-btn {
		min-width: clamp(180px, 70%, 250px);
		padding: 12px 30px;
		font-size: 14px;
	}
	
	/* Responsive slider */
	.slider1 img {
		width: 300px;
		height: 150px;
	}
	.slider2 img {
		width: 300px;
		height: 150px;
	}
}

@media (max-width: 520px) {
	.nav__list { gap: 20px; padding: 10px 0; }
	.hero { padding-top: 96px; }
	.hero__row {
		gap: 20px;
	}
	.hero__content {
		width: 100%;
		max-width: 400px;
	}
	.avatar {
		width: clamp(100px, 50vw, 150px);
		height: clamp(100px, 50vw, 150px);
	}
	.cta-btn {
		min-width: clamp(150px, 80%, 200px);
		padding: 10px 25px;
		font-size: 13px;
	}
	
	/* Mobile slider */
	.slider1 img {
		width: 250px;
		height: 125px;
	}
	.slider2 img {
		width: 250px;
		height: 125px;
	}
	.showcase {
		padding: 40px 0;
	}
} 

/* Service decoration images */
.service-decoration {
	position: absolute;
	width: 200px;
	height: 200px;
	object-fit: cover;
	border-radius: 12px;
	z-index: 1;
	/* Initial state: off-screen with diagonal positioning */
	opacity: 0;
	/* Remove transition since we're using JavaScript for smooth parallax */
	transition: none;
	/* Add motion blur effect */
	filter: blur(0px);
	/* Will-change for better performance */
	will-change: transform, opacity, top, right, bottom, left;
}

.service-decoration--left {
	top: -100px; /* Start above viewport */
	right: -100px; /* Start from right overflow */
	transform: translate(100px, 100px) rotate(-300deg); /* Diagonal movement + extreme rotation */
}

.service-decoration--right {
	bottom: -100px; /* Start below viewport */
	left: -150px; /* Start from left overflow */
	transform: translate(-100px, -100px) rotate(300deg); /* Diagonal movement + extreme rotation */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
	.service-decoration {
		width: 150px;
		height: 150px;
	}
	
	.service-decoration--left {
		top: -75px;
		right: -75px;
		transform: translate(75px, 75px) rotate(-300deg);
	}
	
	.service-decoration--right {
		bottom: -75px;
		left: -120px;
		transform: translate(-75px, -75px) rotate(300deg);
	}
}

@media (max-width: 768px) {
	.service-decoration {
		width: 120px;
		height: 120px;
		position: relative;
		top: auto;
		bottom: auto;
		left: auto;
		right: auto;
		margin: 20px auto;
		display: block;
	}
	
	.service-decoration--left,
	.service-decoration--right {
		transform: translateY(50px) rotate(0deg);
		opacity: 0;
	}
} 

/* Mobile-specific positioning for service decoration images */
@media (max-width: 768px) {
	.service-decoration {
		position: absolute;
		width: 120px;
		height: 120px;
		z-index: 1;
		opacity: 0;
		transform: scale(0);
		transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
		border: none; /* Remove any borders */
	}
	
	.service-decoration--left {
		/* Position at top-right corner of first service card */
		top: 120px; /* Below the title */
		right: 20px; /* Right edge with margin */
		transform: translate(100px, 100px) rotate(-300deg) scale(0); /* Start at scale 0 and -300deg rotation */
	}
	
	.service-decoration--right {
		/* Position at bottom-right edge of last service card */
		bottom: 20px; /* Bottom edge with margin */
		left: 20px; /* Left edge with margin - moved much more to the left */
		transform: translate(-100px, -100px) rotate(300deg) scale(0); /* Start at scale 0 and 300deg rotation */
	}
	
	/* When revealed, images move to their final positions */
	.service-decoration--left.revealed {
		transform: translate(0, 0) rotate(0deg) scale(1);
		opacity: 1;
	}
	
	.service-decoration--right.revealed {
		transform: translate(0, 0) rotate(0deg) scale(1);
		opacity: 1;
	}
} 