/* ==========================================================================
   ABOUT PAGE, "SKY" THEME (matches the homepage)
   Loaded after About.css and Sky-common.css from aboutusView.php.
   ========================================================================== */

body {
	background: #f3f7fe !important;
	color: #4a5672 !important;
}

/* ---------- Type ---------- */
.about-hero-title,
.section-title,
.story-bento-box h3,
.pillar-card-box h3,
.step-heading,
.quote-text,
.about-cta-heading,
.stat-number-blue,
.stat-number-cyan {
	font-family: "Sora", "Inter", system-ui, sans-serif;
}

.section-title,
.section-title.title-light {
	color: #0a1633 !important;
	font-weight: 600;
	letter-spacing: -0.03em;
	font-size: clamp(1.7rem, 3vw, 2.35rem);
	padding-bottom: 16px;
}

.section-title::after {
	width: 56px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.section-subtitle,
.section-subtitle.subtitle-light {
	color: #5a6785 !important;
	font-size: 1.04rem;
	line-height: 1.75;
	max-width: 620px;
}

/* ---------- Hero ---------- */
.about-hero-section {
	padding: 140px 0 170px;
}

.about-hero-glow {
	display: none;
}

.about-hero-title {
	font-weight: 600;
	letter-spacing: -0.035em;
	font-size: clamp(1.9rem, 3.6vw, 3rem);
	line-height: 1.2;
	text-shadow: 0 2px 24px rgba(2, 0, 36, 0.35);
}

.sky-accent {
	background: linear-gradient(90deg, #ffffff 0%, #bae6fd 55%, #7dd3fc 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	text-shadow: none;
}

.about-hero-lead {
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(1rem, 1.5vw, 1.12rem);
	line-height: 1.8;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.about-hero-section .btn-premium-primary,
.about-hero-section .btn-premium-outline {
	border-radius: 999px;
	padding: 13px 28px;
	font-weight: 600;
}

.about-hero-section .btn-premium-outline {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---------- Stats ---------- */
.about-stats-section {
	position: relative;
	z-index: 3;
	margin-top: 0;
	padding-top: 6px;
	background: #f3f7fe;
}

.stat-box-modern {
	position: relative;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #e1eafa;
	border-bottom: 1px solid #e1eafa;
	border-radius: 22px;
	padding: 26px 16px 22px;
	box-shadow: 0 18px 40px -30px rgba(37, 99, 235, 0.45);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-box-modern::before {
	content: '';
	position: absolute;
	top: 0;
	left: 22%;
	right: 22%;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.stat-box-modern:hover {
	transform: translateY(-4px);
	box-shadow: 0 28px 50px -28px rgba(37, 99, 235, 0.55);
}

.stat-number-blue,
.stat-number-cyan {
	font-weight: 600;
	letter-spacing: -0.04em;
	font-size: clamp(1.9rem, 3vw, 2.5rem);
	color: transparent;
	background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 45%, #38bdf8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.stat-caption {
	color: #6b7896;
	letter-spacing: 0.1em;
}

/* ---------- Section backgrounds ---------- */
.about-section {
	position: relative;
	overflow: hidden;
	padding: 90px 0;
}

.about-section > .container {
	position: relative;
	z-index: 2;
}

#story,
#pillars,
#gallery,
#about-cta {
	background: #f3f7fe !important;
}

#story {
	padding-top: 70px;
}

#lifecycle,
#lifecycle.bg-dark-slate,
#ceo-vision {
	background: #ffffff !important;
	color: #4a5672;
}

#lifecycle,
#pillars,
#ceo-vision,
#gallery,
#about-cta {
	padding-top: 150px !important;
}

#lifecycle.bg-dark-slate {
	padding-bottom: 90px;
}

/* ---------- White cards with a soft blue shadow ---------- */
.story-bento-box,
.pillar-card-box,
#lifecycle .step-dark-card {
	background: #ffffff;
	border: 1px solid #e1eafa;
	border-top: 1px solid #e1eafa;
	border-radius: 22px;
	box-shadow: 0 22px 44px -30px rgba(37, 99, 235, 0.4);
	color: #4a5672;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.story-bento-box:hover,
.pillar-card-box:hover,
#lifecycle .step-dark-card:hover {
	transform: translateY(-6px);
	border-color: #b9d2fb;
	background: #ffffff;
	box-shadow: 0 32px 58px -28px rgba(37, 99, 235, 0.55);
}

.story-bento-box h3,
.pillar-card-box h3,
#lifecycle .step-heading {
	color: #0a1633;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.story-bento-box p,
.pillar-card-box p,
#lifecycle .step-text {
	color: #5a6785;
	line-height: 1.65;
}

.story-icon-badge,
.pillar-icon-box {
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	color: #ffffff;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 14px 26px -12px rgba(37, 99, 235, 0.6);
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-bento-box:hover .story-icon-badge,
.pillar-card-box:hover .pillar-icon-box {
	transform: translateY(-4px) rotate(-6deg);
}

.story-checklist li {
	color: #33405f;
}

.story-checklist i {
	color: #38bdf8;
}

.pillar-tag-badge {
	color: #2563eb;
}

/* Process step numbers */
#lifecycle .step-number-tag {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	color: #ffffff;
	font-family: "Sora", "Inter", sans-serif;
	font-weight: 600;
	box-shadow: 0 12px 22px -10px rgba(37, 99, 235, 0.65);
}

/* Technology chips */
#lifecycle .stack-pill-chip {
	background: #ffffff;
	border: 1px solid #d5e3fb;
	color: #1d4ed8;
	font-weight: 600;
	box-shadow: 0 12px 24px -20px rgba(37, 99, 235, 0.5);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

#lifecycle .stack-pill-chip i {
	color: #38bdf8;
}

#lifecycle .stack-pill-chip:hover {
	transform: translateY(-3px);
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	border-color: transparent;
	color: #ffffff;
}

#lifecycle .stack-pill-chip:hover i {
	color: #ffffff;
}

#lifecycle .text-white-50 {
	color: #6b7896 !important;
}

/* ---------- Founder quote ---------- */
.visionary-card {
	border: 1px solid #e1eafa;
	border-radius: 28px;
	background: linear-gradient(180deg, #f3f7fe 0%, #ffffff 100%);
	box-shadow: 0 30px 56px -34px rgba(37, 99, 235, 0.45);
}

.quote-text {
	color: #0a1633;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.5;
}

.giant-bg-quote {
	color: rgba(37, 99, 235, 0.08) !important;
}

.visionary-avatar-wrapper img {
	box-shadow: 0 0 0 4px #ffffff, 0 0 0 6px rgba(56, 189, 248, 0.5);
}

/* ---------- Gallery ---------- */
.mosaic-card {
	border-radius: 20px;
	box-shadow: 0 22px 44px -30px rgba(37, 99, 235, 0.45);
}

/* ---------- Closing banner ---------- */
.about-cta-card {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	padding: 72px 40px;
	box-shadow: 0 36px 70px -36px rgba(37, 99, 235, 0.65);
}

.about-cta-card::before {
	content: '';
	position: absolute;
	top: -150px;
	right: -90px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.22);
	pointer-events: none;
}

.about-cta-card > * {
	position: relative;
}

.about-cta-heading {
	font-weight: 600;
	letter-spacing: -0.025em;
}

.about-cta-card .btn-premium-primary,
.about-cta-card .btn-premium-outline {
	border-radius: 999px;
	padding: 13px 28px;
	font-weight: 600;
}

@media (max-width: 991.98px) {
	.about-hero-section { padding: 116px 0 130px; }

	#lifecycle,
	#pillars,
	#ceo-vision,
	#gallery,
	#about-cta {
		padding-top: 110px !important;
	}

	.about-section { padding-bottom: 64px; }
}

@media (max-width: 575.98px) {
	.about-hero-section { padding: 96px 0 90px; }
	.about-hero-title { font-size: 1.7rem; }

	#lifecycle,
	#pillars,
	#ceo-vision,
	#gallery,
	#about-cta {
		padding-top: 84px !important;
	}

	.about-section { padding-bottom: 48px; }
	.about-cta-card { padding: 46px 20px; border-radius: 22px; }
	.visionary-card { border-radius: 22px; }
}

.about-hero-title {
	text-wrap: balance;
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   GALLERY: photos from the admin gallery manager.
   The layout adapts to how many photos are published (1, 2, 3, 4 or 5+).
   ========================================================================== */
.gal-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 30px;
}

.gal-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid #d5e3fb;
	background: #ffffff;
	color: #33405f;
	font-weight: 600;
	font-size: 0.92rem;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.gal-filter span {
	min-width: 22px;
	padding: 1px 7px;
	border-radius: 999px;
	background: #eef4ff;
	color: #2563eb;
	font-size: 0.78rem;
}

.gal-filter:hover {
	border-color: #2563eb;
	color: #1d4ed8;
}

.gal-filter.is-active {
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	border-color: transparent;
	color: #ffffff;
	box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.8);
}

.gal-filter.is-active span {
	background: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

/* ---------- Grid ---------- */
.gal-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 210px;
	grid-auto-flow: dense;
	gap: 16px;
}

.gal-item {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 20px;
	background: #dbe8ff;
	cursor: zoom-in;
	box-shadow: 0 22px 44px -30px rgba(37, 99, 235, 0.55);
}

.gal-item[hidden] {
	display: none;
}

.gal-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gal-item:hover img,
.gal-item:focus-visible img {
	transform: scale(1.06);
}

.gal-item:focus-visible {
	outline: 3px solid #38bdf8;
	outline-offset: 3px;
}

.gal-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 44px 16px 14px;
	text-align: left;
	background: linear-gradient(180deg, rgba(2, 0, 36, 0) 0%, rgba(2, 0, 36, 0.82) 100%);
	pointer-events: none;
}

.gal-tag {
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #1d4ed8;
	font-size: 0.72rem;
	font-weight: 700;
}

.gal-title {
	font-family: "Sora", "Inter", system-ui, sans-serif;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.3;
	color: #ffffff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gal-zoom {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: #2563eb;
	font-size: 0.85rem;
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.gal-item:hover .gal-zoom,
.gal-item:focus-visible .gal-zoom {
	opacity: 1;
	transform: none;
}

/* Five or more: the first photo is the feature, every seventh one is wide */
.gal-grid--5 .gal-item:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.gal-grid--5 .gal-item:nth-child(7n + 6) {
	grid-column: span 2;
}

.gal-grid--5 .gal-item:first-child .gal-title {
	font-size: 1.25rem;
}

/* Few photos: fill the row instead of leaving gaps */
.gal-grid--1 {
	grid-template-columns: minmax(0, 860px);
	justify-content: center;
	grid-auto-rows: 460px;
}

.gal-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 360px;
}

.gal-grid--3 {
	grid-template-columns: 1.4fr 1fr;
	grid-auto-rows: 230px;
}

.gal-grid--3 .gal-item:first-child {
	grid-row: span 2;
}

.gal-grid--4 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 280px;
}

/* A filtered view is an even grid */
.gal-grid.is-filtered {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 240px;
}

.gal-grid.is-filtered .gal-item {
	grid-column: auto !important;
	grid-row: auto !important;
}

/* Photos beyond the first screenful wait behind "Show all" */
.gal-grid:not(.is-expanded):not(.is-filtered) .gal-item--more {
	display: none;
}

.gal-more {
	margin-top: 30px;
	padding: 12px 28px;
	border-radius: 999px;
	border: 1px solid #d5e3fb;
	background: #ffffff;
	color: #1d4ed8;
	font-weight: 700;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gal-more:hover {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
}

/* ---------- Full-size viewer ---------- */
.gal-viewer {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 60px 76px 24px;
	border: 0;
	background: rgba(2, 0, 36, 0.94);
	color: #ffffff;
}

.gal-viewer[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.gal-viewer::backdrop {
	background: rgba(2, 0, 36, 0.94);
}

.gal-viewer figure {
	margin: 0;
	max-width: 1100px;
	width: 100%;
	text-align: center;
}

.gal-viewer figure img {
	max-width: 100%;
	max-height: calc(100vh - 210px);
	border-radius: 16px;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

.gal-viewer figcaption {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-top: 18px;
}

.gal-viewer figcaption strong {
	font-family: "Sora", "Inter", system-ui, sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
}

.gal-viewer figcaption strong:empty,
.gal-viewer figcaption span:empty {
	display: none;
}

.gal-viewer figcaption span {
	max-width: 640px;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.6;
}

.gal-viewer figcaption .gal-viewer-count {
	color: #7dd3fc;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.gal-viewer-btn {
	position: absolute;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	transition: background 0.2s ease;
}

.gal-viewer-btn:hover {
	background: rgba(255, 255, 255, 0.28);
}

.gal-viewer-close { top: 16px; right: 16px; }
.gal-viewer-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.gal-viewer-next { right: 16px; top: 50%; transform: translateY(-50%); }

.gal-viewer.is-single .gal-viewer-prev,
.gal-viewer.is-single .gal-viewer-next,
.gal-viewer.is-single .gal-viewer-count {
	display: none;
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 991.98px) {
	.gal-grid,
	.gal-grid.is-filtered {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-auto-rows: 190px;
	}

	.gal-grid--2,
	.gal-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 240px;
	}

	.gal-grid--3 { grid-template-columns: 1.4fr 1fr; }
	.gal-grid--1 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 380px; }
}

@media (max-width: 575.98px) {
	/* Filters: one row you can swipe */
	.gal-filters {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: none;
		margin: 0 -12px 20px;
		padding: 4px 12px 8px;
	}

	.gal-filters::-webkit-scrollbar { display: none; }
	.gal-filter { flex: none; }

	.gal-grid,
	.gal-grid--2,
	.gal-grid--3,
	.gal-grid--4,
	.gal-grid.is-filtered {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 150px;
		gap: 10px;
	}

	.gal-grid--1 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 240px; }

	/* The first photo leads across both columns */
	.gal-grid--3,
	.gal-grid--5 { grid-auto-rows: minmax(150px, auto); }

	.gal-grid--3:not(.is-filtered) .gal-item:first-child,
	.gal-grid--5:not(.is-filtered) .gal-item:first-child {
		grid-column: span 2;
		grid-row: span 1;
		height: 220px;
	}

	.gal-item { border-radius: 16px; }
	.gal-caption { padding: 30px 10px 10px; gap: 4px; }
	.gal-title { font-size: 0.82rem; }
	.gal-grid--5 .gal-item:first-child .gal-title { font-size: 1rem; }
	.gal-tag { font-size: 0.66rem; padding: 2px 8px; }
	.gal-zoom { display: none; }

	.gal-viewer { padding: 64px 12px 84px; }
	.gal-viewer figure img { max-height: calc(100vh - 260px); }
	.gal-viewer-prev,
	.gal-viewer-next { top: auto; bottom: 18px; transform: none; }
	.gal-viewer-prev { left: calc(50% - 56px); }
	.gal-viewer-next { right: calc(50% - 56px); }
}

@media (prefers-reduced-motion: reduce) {
	.gal-item img,
	.gal-zoom {
		transition: none;
	}
}

/* ==========================================================================
   TECHNOLOGIES WE WORK WITH (end of the story section)
   ========================================================================== */
.about-tech {
	margin-top: 56px;
	text-align: center;
}

.about-tech-title {
	font-family: "Sora", "Inter", system-ui, sans-serif;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #0a1633;
	margin-bottom: 22px;
}

.about-tech-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	list-style: none;
	max-width: 900px;
	margin: 0 auto;
	padding: 0;
}

.about-tech-list li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 20px;
	border-radius: 999px;
	border: 1px solid #e1eafa;
	background: #ffffff;
	color: #33405f;
	font-weight: 600;
	box-shadow: 0 16px 34px -28px rgba(37, 99, 235, 0.5);
	transition: transform 0.25s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}

.about-tech-list li i {
	color: #2563eb;
	font-size: 1.15rem;
	transition: transform 0.25s ease;
}

.about-tech-list li:hover {
	transform: translateY(-4px);
	border-color: #b9d2fb;
	color: #1d4ed8;
	box-shadow: 0 24px 40px -26px rgba(37, 99, 235, 0.65);
}

.about-tech-list li:hover i {
	transform: scale(1.2);
}

@media (max-width: 575.98px) {
	.about-tech { margin-top: 36px; }
	.about-tech-title { font-size: 1.1rem; margin-bottom: 16px; }
	.about-tech-list { gap: 8px; }
	.about-tech-list li { padding: 9px 14px; font-size: 0.9rem; gap: 8px; }
	.about-tech-list li i { font-size: 1rem; }
}
