.home {
	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;
}

/* Snap scrolling container */
.home {
	overflow: hidden;
	height: 100vh;
	position: relative;
	--nav-h: 64px;
}

.home 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 */
.home main::-webkit-scrollbar {
	width: 0;
	height: 0;
}

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

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

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

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

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

	.section {
		scroll-snap-align: none;
		scroll-snap-stop: normal;
		min-height: auto;
		overflow: visible;
		overflow-y: visible;
		align-items: flex-start;
		padding-bottom: 20px;
		scrollbar-width: none !important;
		-ms-overflow-style: none !important;
	}

	.portfolio-section {
		overflow: visible !important;
	}

	.portfolio-section > .container {
		overflow-x: visible !important;
		overflow-y: visible !important;
	}

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

	/* Footer section - ensure full display on mobile */
	.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;
		display: flex !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 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;
}

/* Section-specific positions will be set via JS */

/* Sections - 100vh each with snap */
.section {
	position: relative;
	z-index: 1;
	min-height: calc(100vh - var(--nav-h));
	height: auto;
	max-height: none;
	display: flex;
	align-items: center;
	justify-content: center;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	padding: 20px 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;
}

/* For small height screens, allow sections to grow */
@media (max-height: 700px) {
	.section {
		min-height: auto;
		height: auto;
		padding: 30px 0;
	}
}

.section-header {
	text-align: center;
	margin-bottom: 6px;
	flex-shrink: 0;
}

.section-header h2 {
	font-size: 40px;
	letter-spacing: 0.2px;
	margin: 0 0 8px;
	color: #f2f5f9;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
}

.section-header p {
	margin: 0;
	color: #b8c0cc;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
}

.section-lead {
	max-width: 800px;
	margin: 0 auto 20px;
	color: #c6ccd7;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
}

.section-cta {
	margin-top: 24px;
	text-align: center;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 12px 18px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
	transition: transform 0.12s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn.primary {
	background: #e6f2ff;
	color: #0a0f1a;
}

.btn.primary:hover {
	background: #ffffff;
	box-shadow: 0 8px 26px rgba(0, 162, 255, 0.2);
}

.btn.outline {
	background: transparent;
	color: #e6e9ef;
	border: 1.5px solid #3d4a66;
}

.btn.outline:hover {
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.btn.subtle {
	background: rgba(255, 255, 255, 0.06);
	color: #e6e9ef;
}

.btn.subtle:hover {
	background: rgba(255, 255, 255, 0.1);
}

.btn:active {
	transform: translateY(1px);
}

/* Hero */
.hero-section {
	padding-top: 0;
	padding-bottom: 0;
	/* Prevent CTA buttons from being clipped by snap-section overflow rules */
	overflow: visible;
	overflow-x: visible;
	overflow-y: visible;
}

.hero-section .container {
	overflow: visible;
	overflow-y: visible;
}

.hero-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	/* gap: 40px; */
	align-items: center;
	width: 100%;
}

.hero-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hero-image {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 300px;
	max-height: min(60vh, 600px);
	aspect-ratio: 4 / 3;
	/* border-radius: 16px; */
	overflow: visible;
	--faceRotate: 0deg;
}

/* Mobile: allow full image display */
@media (max-width: 768px) {
	.hero-image {
		overflow: visible;
		background: transparent;
		display: flex;
		justify-content: center;
		align-items: center;
	}
}

.hero-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 16px;
	transform-origin: center center;
	will-change: transform;
	transform: rotate(var(--faceRotate));
	transition: transform 220ms ease;
	/* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); */
}

/* Mobile: show full image */
@media (max-width: 768px) {
	.hero-image img {
		object-fit: contain;
		object-position: center;
		width: 80%;
		height: auto;
		max-width: 100%;
		display: block;
		margin: 0 auto;
		/* Small devices: mirror hero artwork so it faces right */
		transform: scaleX(-1) rotate(calc(-1 * var(--faceRotate)));
	}
}

@media (max-width: 550px) {
	.hero-image img {
		object-fit: contain;
		object-position: center;
		width: 92%;
		height: auto;
		max-width: 100%;
		display: block;
		margin: 0 auto;
		transform: scaleX(-1) rotate(calc(-1 * var(--faceRotate)));
	}
}

@media (max-width: 768px) {
	.hero-image:hover img {
		transform: scaleX(-1) rotate(calc(-1 * var(--faceRotate))) scale(1.03);
	}
}

/* 3D tilt + dynamic light (glare) effect */
.hero-image,
.about-image {
	--rx: 0deg;
	--ry: 0deg;
	--glareX: 50%;
	--glareY: 50%;
	--sx: 0px;
	--sy: 0px;
	--shadowOpacity: 0.0;
	transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
	transition: transform 240ms ease, box-shadow 300ms ease;
	will-change: transform;
}

/* Backlight glow behind the image */
.hero-image::before,
.about-image::before {
	content: "";
	position: absolute;
	inset: -12%;
	background:
		radial-gradient(closest-side at 50% 50%,
			rgba(158, 203, 255, 0.35),
			rgba(106, 0, 255, 0.25) 40%,
			rgba(0, 0, 0, 0) 70%);
	filter: blur(36px);
	transform: translate3d(var(--sx), var(--sy), 0) scale(1.05);
	opacity: var(--shadowOpacity);
	transition: opacity 180ms ease, transform 200ms ease;
	pointer-events: none;
	z-index: 0;
}

/* Activate glow on hover */
.hero-image:hover::before,
.about-image:hover::before {
	opacity: var(--shadowOpacity, 0.45);
}

/* Glare sweep layer */
.hero-image::after,
.about-image::after {
	content: "";
	position: absolute;
	inset: -10%;
	/* background: radial-gradient(1200px 600px at var(--glareX) var(--glareY),
			rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06) 20%, transparent 60%);
	*/
	opacity: 0;
	transition: opacity 240ms ease, transform 420ms ease;
	pointer-events: none;
}

.hero-image:hover::after,
.about-image:hover::after {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

/* Subtle scale on hover */
.hero-image:hover img {
	transform: rotate(var(--faceRotate)) scale(1.03);
	transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.about-image:hover img {
	transform: rotate(calc(-1 * var(--faceRotate))) scale(1.03);
	transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tagline {
	font-size: 56px;
	line-height: 1.06;
	margin: 0 0 16px;
	color: #f6f8fb;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
	font-weight: 600;
}

.tagline span {
	color: #9ecbff;
}

.intro {
	max-width: 100%;
	color: #c8cfdb;
	/* Reduce vertical spacing so CTAs remain visible on typical 100vh hero */
	margin: clamp(18px, 4vh, 40px) 0 clamp(18px, 5vh, 48px);
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
}

.cta-group {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* About */
.about-section {
	/* Same as hero: allow full card text when section is taller than viewport */
	overflow: visible;
	overflow-x: visible;
	overflow-y: visible;
}

.about-section .container {
	overflow: visible;
	overflow-y: visible;
}

.about-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	width: 100%;
}

.about-image {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 300px;
	max-height: min(60vh, 600px);
	aspect-ratio: 4 / 3;
	overflow: visible;
	--faceRotate: 0deg;
}

/* Mobile: allow full image display */
@media (max-width: 768px) {
	.about-image {
		overflow: visible;
		background: transparent;
		display: flex;
		justify-content: center;
		align-items: center;
	}
}

.about-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 16px;
	transform-origin: center center;
	will-change: transform;
	transform: rotate(calc(-1 * var(--faceRotate)));
	transition: transform 220ms ease;
}

/* Mobile: show full image */
@media (max-width: 768px) {
	.about-image img {
		object-fit: contain;
		object-position: center;
		width: 80%;
		height: auto;
		max-width: 100%;
		display: block;
		margin: 0 auto;
	}
}

@media (max-width: 550px) {
	.about-image img {
		object-fit: contain;
		object-position: center;
		width: 92%;
		height: auto;
		max-width: 100%;
		display: block;
		margin: 0 auto;
	}
}

.about-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.about-content .section-header {
	text-align: left;
	margin-bottom: 24px;
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.about-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 16px;
	padding: 22px;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
	backdrop-filter: blur(6px);
}

.about-card h3 {
	margin: 0 0 10px;
	color: #eaf0f7;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
}

.about-card p {
	margin: 0 0 10px;
	color: #bfcbdb;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
}

.about-card p:last-child {
	margin-bottom: 0;
}

/* Services */
.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.service-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 16px;
	padding: 10px;
	min-height: 110px;
	transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
	/* Two-column layout: image | text */
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 14px;
	align-items: center;
}

.service-card:hover {
	transform: translateY(-4px);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}



.service-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1.0);
	transition: transform 300ms ease;
}

.service-card:hover .service-media img {
	transform: scale(1.20);
}

.service-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
}

.service-card h3 {
	margin: 0 0 8px;
	color: #eaf0f7;
	font-size: 18px;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
}

.service-card p {
	margin: 0;
	color: #c1cada;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
}

/* Responsive adjustments for service cards */
@media (max-width: 1100px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.service-card {
		grid-template-columns: 1fr;
	}

	.service-media {
		aspect-ratio: 1 / 1;
		min-height: 80px;
		max-height: 120px;
		width: 100%;
		overflow: hidden;
	}

	.service-media img {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}
}

.portfolio-section {
	padding: 40px 0;
	position: relative;
}

/* Portfolio Header */
.portfolio-header {
	margin-bottom: 30px;
	text-align: center;
}

.portfolio-title {
	margin: 0;
	font-size: clamp(32px, 5vw, 48px);
	line-height: 1.2;
	color: #f2f5f9;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
	font-weight: 700;
	letter-spacing: -0.5px;
}

/* Portfolio Showcase */
.portfolio-showcase {
	display: flex;
	gap: 16px;
	width: 100%;
	height: 380px;
}

.portfolio-item {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	text-decoration: none;
	display: block;
	flex-shrink: 0;
	transition: flex 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		flex-grow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		transform 0.3s ease;
}

.portfolio-item-image {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Soft glass — transparent PNG/WebP show through to page background */
.portfolio-item-image--transparent {
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.portfolio-item-image--transparent::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	z-index: 1;
	background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(255, 255, 255, 0.07), transparent 65%);
}

.portfolio-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item-image--transparent img {
	position: relative;
	z-index: 2;
	object-fit: contain;
	object-position: center;
	padding: 10px;
	box-sizing: border-box;
}

.portfolio-item-big {
	flex: 3 1 0;
	flex-basis: 0;
}

.portfolio-item-small {
	flex: 1 1 0;
	flex-basis: 0;
}

.portfolio-showcase:hover .portfolio-item-big:not(:hover) {
	flex: 1 1 0;
}

.portfolio-showcase:hover .portfolio-item-small:hover {
	flex: 3 1 0;
	z-index: 10;
}

.portfolio-item-big:hover {
	flex: 3 1 0;
}

.portfolio-item:hover {
	transform: translateY(-4px);
}

.portfolio-item:hover .portfolio-item-image img {
	transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
	.portfolio-item {
		transition: transform 0.3s ease;
	}

	.portfolio-item-image img {
		transition: transform 0.3s ease;
	}

	.portfolio-showcase:hover .portfolio-item-big:not(:hover),
	.portfolio-showcase:hover .portfolio-item-small:hover,
	.portfolio-item-big:hover {
		flex-grow: unset;
	}
}

/* Responsive Portfolio */
@media (max-width: 992px) {
	.portfolio-section {
		padding: 35px 0;
	}

	.portfolio-header {
		margin-bottom: 25px;
	}

	.portfolio-showcase {
		height: 320px;
		gap: 12px;
	}
}

@media (max-width: 768px) {
	.portfolio-section {
		padding: 30px 0;
		overflow: visible;
		display: block;
		min-height: auto;
	}

	.portfolio-section > .container {
		overflow-x: visible;
		overflow-y: visible;
		width: 100%;
		max-width: 100%;
	}

	.portfolio-header {
		margin-bottom: 20px;
		padding: 0 15px;
	}

	.portfolio-title {
		font-size: clamp(28px, 6vw, 40px);
	}

	.portfolio-showcase {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		height: auto;
		gap: 10px;
		overflow: visible;
		scroll-snap-type: none;
	}

	.portfolio-item,
	.portfolio-item-big,
	.portfolio-item-small {
		flex: none;
		width: 100%;
		min-width: 0;
		height: auto;
		aspect-ratio: 4 / 3;
		display: grid;
		grid-template: 1fr / 1fr;
	}

	.portfolio-item-big {
		grid-column: 1 / -1;
		aspect-ratio: 16 / 9;
	}

	.portfolio-item-image {
		grid-area: 1 / 1;
		height: 100%;
		min-height: 0;
		max-height: none;
	}

	.portfolio-showcase:hover .portfolio-item-big:not(:hover),
	.portfolio-showcase:hover .portfolio-item-small:hover,
	.portfolio-item-big:hover {
		flex: none;
	}

	.portfolio-item:hover {
		transform: none;
	}
}

@media (max-width: 480px) {
	.portfolio-section {
		padding: 25px 0;
	}

	.portfolio-header {
		margin-bottom: 18px;
		padding: 0 12px;
	}

	.portfolio-title {
		font-size: clamp(24px, 7vw, 32px);
	}

	.portfolio-showcase {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.portfolio-item,
	.portfolio-item-big,
	.portfolio-item-small {
		aspect-ratio: 16 / 10;
	}

	.portfolio-item-big {
		grid-column: 1;
	}
}

/* Touch devices — no hover flex/scale (Safari/iOS) */
@media (hover: none) and (pointer: coarse) {
	.portfolio-item {
		transition: transform 0.2s ease;
	}

	.portfolio-item:hover,
	.portfolio-item:active {
		transform: none;
	}

	.portfolio-item:hover .portfolio-item-image img {
		transform: none;
	}

	.portfolio-showcase:hover .portfolio-item-big:not(:hover),
	.portfolio-showcase:hover .portfolio-item-small:hover,
	.portfolio-item-big:hover {
		flex: unset;
	}
}

/* Small height screens — desktop/tablet only; mobile uses aspect-ratio grid */
@media (max-height: 700px) and (min-width: 769px) {
	.portfolio-section {
		padding: 25px 0;
	}

	.portfolio-header {
		margin-bottom: 20px;
	}

	.portfolio-showcase {
		height: 280px;
	}
}

/* Contact Section */
.contact-section {
	height: calc(100vh - var(--nav-h));
	min-height: calc(100vh - var(--nav-h));
	max-height: calc(100vh - var(--nav-h));
	overflow: hidden;
}

.contact-section .container {
	width: 100%;
	margin: 0;
	padding: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

/* Enhanced scroll reveal animations with smooth staggered effects */
.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);
}

/* Directional variants - all 4 directions */
.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;
}

/* Directional animations override default - let direction classes handle it */
/* All elements use .sr base class and direction-specific classes (.sr-dir-top, etc.) */

/* Ensure hero/about images use GPU acceleration (portfolio skips scroll-reveal) */
.hero-image.sr,
.about-image.sr {
	will-change: transform, opacity;
	transform: translateZ(0);
}

.hero-image.sr.sr-in,
.about-image.sr.sr-in {
	will-change: auto;
}

/* Custom Cursor Effect - Matching provided 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 */
body,
a,
button,
input,
textarea,
select,
.btn {
	cursor: none !important;
}

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

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

/* Back to top minimal placement override on dark */
.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 */
@media (max-width: 1200px) {
	.container {
		padding: 0 20px;
	}

	.tagline {
		font-size: 52px;
	}

	.hero-content p {
		font-size: 18px;
	}
}

@media (max-width: 1080px) {

	.hero-layout,
	.about-layout {
		grid-template-columns: 1fr;
		/* gap: 24px; */
	}

	.hero-image,
	.about-image {
		height: auto;
		width: 100%;
		max-width: 100%;
		max-height: min(50vh, 400px);
		min-height: min(40vh, 250px);
		aspect-ratio: 16 / 9;
		order: -1;
		margin: 0 auto;
	}

	.about-layout .about-image {
		order: -1;
	}

	.about-layout .about-content {
		order: 1;
	}

	.tagline {
		font-size: 42px;
		line-height: 1.1;
	}

	.hero-content p {
		font-size: 17px;
		margin-top: 16px;
	}

	.services-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.service-card {
		padding: 24px;
	}

	.service-card h3 {
		font-size: 20px;
	}
}

/* Small height screens - adjust for landscape phones and small devices */
@media (max-height: 700px) and (min-width: 768px) {

	.hero-image,
	.about-image {
		max-height: min(45vh, 350px);
		min-height: min(35vh, 200px);
	}

	.tagline {
		font-size: 36px;
	}

	.intro {
		margin: 40px 0 30px;
		font-size: 15px;
	}

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

@media (max-width: 768px) {
	.section {
		padding: 20px 0;
		min-height: auto;
	}

	.container {
		padding: 0 15px;
	}

	.hero-image,
	.about-image {
		height: auto;
		width: 100%;
		max-width: 100%;
		max-height: min(45vh, 350px);
		min-height: min(30vh, 200px);
		aspect-ratio: auto;
		margin: 0 auto;
	}

	.tagline {
		font-size: 32px;
		line-height: 1.15;
	}

	.hero-content p {
		font-size: 16px;
		margin-top: 14px;
	}

	.hero-buttons {
		flex-direction: column;
		gap: 12px;
		margin-top: 24px;
	}

	.btn {
		width: 100%;
		justify-content: center;
	}

	.services-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.service-card {
		padding: 20px;
	}

	.service-card h3 {
		font-size: 18px;
	}

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

}

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

	.section {
		padding: 15px 0;
	}

	.tagline {
		font-size: clamp(22px, 6vw, 28px);
	}

	.hero-content p,
	.intro {
		font-size: clamp(13px, 3.5vw, 15px);
	}

	.hero-image,
	.about-image {
		height: auto;
		width: 100%;
		max-width: 100%;
		max-height: min(50vh, 400px);
		min-height: min(30vh, 200px);
		aspect-ratio: auto;
	}

	.service-card {
		padding: 14px;
	}

	.service-card h3 {
		font-size: 15px;
	}

	.service-card p {
		font-size: 12px;
	}

	.section-header h2 {
		font-size: clamp(20px, 5.5vw, 26px);
	}
}

/* Very small height screens */
@media (max-height: 600px) {
	.section {
		padding: 12px 0;
	}

	.hero-image,
	.about-image {
		max-height: min(50vh, 400px);
		min-height: min(20vh, 120px);
		aspect-ratio: auto;
	}

	.tagline {
		font-size: clamp(20px, 5vw, 26px);
		margin-bottom: 8px;
	}

	.intro {
		margin: clamp(12px, 2vh, 20px) 0;
		font-size: clamp(12px, 3vw, 14px);
	}

	.cta-group {
		margin-top: 12px;
		gap: 8px;
	}

	.btn {
		padding: 8px 12px;
		font-size: 12px;
	}

	.section-header h2 {
		font-size: clamp(18px, 5vw, 24px);
		margin-bottom: 4px;
	}

	.service-card {
		padding: 10px;
		min-height: auto;
	}

	.portfolio-section .portfolio-item-image {
		min-height: 0;
		max-height: none;
	}
}