/* About Page Styles */
.about-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 */
.about-page {
	overflow: hidden;
	height: 100vh;
	position: relative;
}

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

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

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

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

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

	.about-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;
}

/* 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;
}

/* Story Section */
.story-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.story-image {
	position: relative;
	width: min(100%, 640px);
	height: 560px;
	margin: 0 auto;
	overflow: hidden;
}

.story-image img {
	width: 100%;
	height: 110%;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

.section-header h2 {
	font-size: 48px;
	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;
}

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

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

/* Vision & Mission Section */
.about-vision {
	/* Inherits from section above */
	background: rgba(255, 255, 255, 0.02);
	backdrop-filter: blur(10px);
}

.vision-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.vision-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 40px;
	text-align: center;
	transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	position: relative;
	overflow: hidden;
}

.vision-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #9ecbff, #6a00ff);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
}

.vision-card:hover::before {
	transform: scaleX(1);
}

.vision-card:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.15);
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.vision-icon {
	width: 200px;
	height: 200px;
	margin: 0 auto 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.4s ease;
	overflow: hidden;
}

.vision-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.4s ease;
}

.vision-card:hover .vision-icon {
	transform: scale(1.1) rotate(5deg);
}

.vision-card:hover .vision-icon img {
	transform: scale(1.05);
}

.vision-card h3 {
	font-size: 24px;
	margin: 0 0 16px;
	color: #f6f8fb;
	font-weight: 600;
}

.vision-card p {
	font-size: 16px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

/* Stats Section */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
}

.stat-item {
	text-align: center;
	padding: 30px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition: all 0.3s ease;
}

.stat-item:hover {
	background: rgba(255, 255, 255, 0.05);
	transform: translateY(-5px);
}

.stat-number {
	font-size: 56px;
	font-weight: 700;
	color: #9ecbff;
	margin-bottom: 12px;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
	background: linear-gradient(135deg, #9ecbff 0%, #6a00ff 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.stat-label {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.7);
	font-weight: 500;
}

/* Why Choose Us Section */
.about-why .section-header {
	text-align: center;
	margin-bottom: 60px;
}

.why-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.why-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 32px;
	position: relative;
	transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	overflow: hidden;
}

.why-card::after {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(158, 203, 255, 0.1) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.why-card:hover::after {
	opacity: 1;
}

.why-card:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(158, 203, 255, 0.3);
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.why-number {
	font-size: 48px;
	font-weight: 700;
	color: rgba(158, 203, 255, 0.3);
	margin-bottom: 16px;
	font-family: 'Inter', 'Montserrat', Arial, sans-serif;
	line-height: 1;
}

.why-card h3 {
	font-size: 22px;
	margin: 0 0 12px;
	color: #f6f8fb;
	font-weight: 600;
}

.why-card p {
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

/* Team Section */
.about-team {
	/* Inherits from section above */
	background: rgba(255, 255, 255, 0.02);
	backdrop-filter: blur(10px);
}

.about-team .section-header {
	text-align: center;
	margin-bottom: 60px;
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.team-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
	border-color: rgba(158, 203, 255, 0.3);
}

.team-image {
	width: 100%;
	height: 300px;
	overflow: hidden;
	position: relative;
}

.team-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover .team-image img {
	transform: scale(1.1);
}

.team-info {
	padding: 24px;
	text-align: center;
}

.team-info h3 {
	font-size: 20px;
	margin: 0 0 8px;
	color: #f6f8fb;
	font-weight: 600;
}

.team-info p {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

/* CTA Section */
.about-cta {
	/* Inherits from section above */
	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 */
.about-page,
.about-page a,
.about-page button,
.about-page input,
.about-page textarea,
.about-page select,
.about-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;
	}

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

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

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

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

	.story-image {
		width: 100%;
		max-width: 100%;
		height: auto;
		min-height: 0;
		aspect-ratio: unset;
		overflow: visible;
		order: -1;
	}

	.story-image img {
		width: 100%;
		height: auto;
		max-height: none;
		object-fit: contain;
		object-position: center top;
	}

	.story-content {
		order: 1;
	}

	.vision-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

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

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

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

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

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

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

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

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

	.about-story,
	.about-vision,
	.about-stats,
	.about-why,
	.about-team,
	.about-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;
		align-items: flex-start !important;
		scroll-snap-align: none !important;
		scroll-snap-stop: normal !important;
	}

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

	.story-layout {
		gap: 28px;
	}

	.about-story > .container {
		overflow-x: visible;
		overflow-y: visible;
	}

	.story-image {
		width: 100%;
		max-width: 100%;
		height: auto;
		min-height: 0;
		aspect-ratio: unset;
		overflow: visible;
		border-radius: 16px;
	}

	.story-image img {
		width: 100%;
		height: auto;
		display: block;
		object-fit: contain;
		object-position: center top;
		transform: none;
	}

	.story-image:hover img {
		transform: none;
	}

	body.about-page {
		overflow: visible !important;
	}

	.about-page main {
		height: auto !important;
		overflow-y: visible !important;
	}

	.story-content p,
	.vision-card p {
		font-size: 15px;
		line-height: 1.6;
	}

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

	.stat-card {
		padding: 20px;
	}

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

	.why-card {
		padding: 20px;
	}

	.team-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.team-card {
		padding: 20px;
	}

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

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

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

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

	.about-story,
	.about-vision,
	.about-stats,
	.about-why,
	.about-team,
	.about-cta {
		padding: 50px 0;
	}

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

	.story-image {
		border-radius: 14px;
	}

	.stat-card,
	.why-card,
	.team-card {
		padding: 18px;
	}

	.stat-number {
		font-size: 32px;
	}

	.why-number {
		font-size: 24px;
	}
}