/* ══════════════════════════════════════
   HOME PAGE — Carousel, Marquee & Motion
   Aligns with site navy (#1A325A) / gold (#ffbf44)
   ══════════════════════════════════════ */

/* ── Reveal on scroll ── */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Hero Carousel ── */
.hero-carousel {
	position: relative;
	height: min(88vh, 720px);
	min-height: 480px;
	overflow: hidden;
	background: #0d1f3c;
}

.carousel-slides {
	position: absolute;
	inset: 0;
}

.carousel-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0.9s;
}

.carousel-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.carousel-slide .slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.06);
	transition: transform 7s ease-out;
}

.carousel-slide.active .slide-bg {
	transform: scale(1);
}

.carousel-slide::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(105deg, rgba(13, 31, 60, 0.92) 0%, rgba(26, 50, 90, 0.75) 45%, rgba(13, 31, 60, 0.45) 100%),
		linear-gradient(to top, rgba(13, 31, 60, 0.7) 0%, transparent 45%);
	z-index: 1;
}

.slide-content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	align-items: center;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 24px;
}

.slide-content-inner {
	max-width: 640px;
	transform: translateY(24px);
	opacity: 0;
	transition: transform 0.7s ease 0.25s, opacity 0.7s ease 0.25s;
}

.carousel-slide.active .slide-content-inner {
	transform: translateY(0);
	opacity: 1;
}

.slide-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #ffbf44;
	margin-bottom: 16px;
}

.slide-eyebrow::before {
	content: '';
	width: 28px;
	height: 2px;
	background: #ffbf44;
}

.slide-content h1 {
	font-size: clamp(30px, 5vw, 48px);
	font-weight: 800;
	color: #fff;
	line-height: 1.15;
	margin-bottom: 18px;
	letter-spacing: -0.4px;
}

.slide-content h1 span {
	color: #ffbf44;
}

.slide-content p {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.75;
	margin-bottom: 28px;
	max-width: 520px;
}

.slide-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.slide-actions .btn-outline {
	margin-left: 0;
}

/* Carousel controls */
.carousel-nav {
	position: absolute;
	bottom: 36px;
	left: 0;
	right: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 24px;
}

.carousel-arrows {
	display: flex;
	gap: 10px;
}

.carousel-btn {
	width: 46px;
	height: 46px;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	background: rgba(13, 31, 60, 0.45);
	backdrop-filter: blur(8px);
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.carousel-btn:hover {
	background: #ffbf44;
	border-color: #ffbf44;
	color: #1A325A;
}

.carousel-dots {
	display: flex;
	gap: 8px;
	align-items: center;
}

.carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	padding: 0;
	transition: background 0.25s, transform 0.25s, width 0.25s;
}

.carousel-dot.active {
	background: #ffbf44;
	width: 28px;
	border-radius: 999px;
}

.carousel-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: #ffbf44;
	z-index: 6;
	transition: width 0.1s linear;
}

/* ── Tech Marquee ── */
.tech-marquee {
	background: #1A325A;
	padding: 14px 0;
	overflow: hidden;
	border-top: 1px solid rgba(255, 191, 68, 0.25);
	border-bottom: 1px solid rgba(255, 191, 68, 0.25);
}

.tech-marquee-track {
	display: flex;
	gap: 0;
	width: max-content;
	animation: marqueeScroll 35s linear infinite;
}

.tech-marquee-track:hover {
	animation-play-state: paused;
}

.tech-marquee-item {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 0 28px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
}

.tech-marquee-item i {
	color: #ffbf44;
	font-size: 14px;
}

.tech-marquee-item .sep {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #ffbf44;
	opacity: 0.7;
	margin-left: 16px;
}

@keyframes marqueeScroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ── Home Features (upgraded) ── */
.home-features {
	background: #f7f9fc;
	padding: 80px 0;
	position: relative;
}

.home-features .section-head {
	text-align: center;
	margin-bottom: 48px;
}

.home-features .section-head .section-desc {
	margin: 0 auto;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.home-feature {
	background: #fff;
	border-radius: 10px;
	padding: 32px 26px;
	box-shadow: 0 4px 18px rgba(26, 50, 90, 0.06);
	border-top: 3px solid transparent;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
	position: relative;
	overflow: hidden;
}

.home-feature::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #1A325A, #ffbf44);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s ease;
}

.home-feature:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 36px rgba(26, 50, 90, 0.12);
}

.home-feature:hover::before {
	transform: scaleX(1);
}

.home-feature .hf-icon {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	background: linear-gradient(135deg, #1A325A, #2a4a7a);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	transition: transform 0.3s;
}

.home-feature:hover .hf-icon {
	transform: rotate(-6deg) scale(1.05);
}

.home-feature .hf-icon i {
	font-size: 22px;
	color: #ffbf44;
}

.home-feature h3 {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 10px;
}

.home-feature p {
	font-size: 14px;
	color: #666;
	line-height: 1.7;
}

/* ── Animated Stats Strip ── */
.stats-strip {
	background: linear-gradient(135deg, #0d1f3c 0%, #1A325A 55%, #1e4080 100%);
	padding: 56px 0;
	position: relative;
	overflow: hidden;
}

.stats-strip::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(255, 191, 68, 0.1), transparent 70%);
	pointer-events: none;
}

.stats-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	position: relative;
	z-index: 1;
}

.stat-box {
	text-align: center;
	padding: 12px;
}

.stat-box .stat-num {
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 800;
	color: #ffbf44;
	line-height: 1;
	margin-bottom: 8px;
}

.stat-box .stat-num span {
	font-size: 0.6em;
}

.stat-box .stat-lbl {
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.75);
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

/* ── About Home ── */
.home-about {
	padding: 80px 0;
	background: #fff;
}

.home-about .about-visual {
	position: relative;
}

.home-about .about-visual img {
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(26, 50, 90, 0.14);
}

.about-float-badge {
	position: absolute;
	bottom: 24px;
	left: 24px;
	background: #fff;
	padding: 16px 20px;
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(26, 50, 90, 0.18);
	display: flex;
	align-items: center;
	gap: 12px;
	animation: floatBadge 3.5s ease-in-out infinite;
}

.about-float-badge .afb-num {
	font-size: 28px;
	font-weight: 800;
	color: #1A325A;
	line-height: 1;
}

.about-float-badge .afb-lbl {
	font-size: 12px;
	font-weight: 600;
	color: #666;
	line-height: 1.3;
}

@keyframes floatBadge {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

/* ── Who section polish ── */
.who-section .about-img {
	position: relative;
}

.who-section .about-img img {
	border: 3px solid rgba(255, 191, 68, 0.35);
}

.who-pulse {
	position: absolute;
	top: -12px;
	right: -12px;
	width: 64px;
	height: 64px;
	background: #ffbf44;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1A325A;
	font-size: 22px;
	box-shadow: 0 0 0 0 rgba(255, 191, 68, 0.5);
	animation: pulseRing 2.2s ease-out infinite;
}

@keyframes pulseRing {
	0% { box-shadow: 0 0 0 0 rgba(255, 191, 68, 0.55); }
	70% { box-shadow: 0 0 0 16px rgba(255, 191, 68, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 191, 68, 0); }
}

/* ── Services showcase carousel ── */
.services-showcase {
	background: #f7f9fc;
	padding: 80px 0;
	overflow: hidden;
}

.services-showcase .services-header {
	margin-bottom: 40px;
}

.svc-carousel-wrap {
	position: relative;
}

.svc-carousel {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 8px 4px 24px;
	scroll-behavior: smooth;
}

.svc-carousel::-webkit-scrollbar {
	display: none;
}

.svc-slide {
	flex: 0 0 calc(33.333% - 16px);
	min-width: 280px;
	scroll-snap-align: start;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(26, 50, 90, 0.08);
	transition: transform 0.3s, box-shadow 0.3s;
}

.svc-slide:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(26, 50, 90, 0.14);
}

.svc-slide .svc-img {
	position: relative;
	height: 200px;
	overflow: hidden;
}

.svc-slide .svc-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.svc-slide:hover .svc-img img {
	transform: scale(1.08);
}

.svc-slide .svc-img::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(13, 31, 60, 0.55), transparent 55%);
}

.svc-body {
	padding: 22px;
}

.svc-body .s-icon-wrap {
	width: 44px;
	height: 44px;
	background: #1A325A;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	margin-top: -42px;
	position: relative;
	z-index: 2;
	border: 3px solid #fff;
	box-shadow: 0 4px 12px rgba(26, 50, 90, 0.2);
}

.svc-body .s-icon-wrap i {
	color: #ffbf44;
	font-size: 16px;
}

.svc-body h3 {
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 8px;
}

.svc-body p {
	font-size: 13px;
	color: #666;
	margin-bottom: 14px;
	line-height: 1.65;
}

.svc-nav {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 8px;
}

.svc-nav-btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1.5px solid #1A325A;
	background: #fff;
	color: #1A325A;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
}

.svc-nav-btn:hover {
	background: #1A325A;
	color: #ffbf44;
}

/* ── Process steps ── */
.home-process {
	padding: 80px 0;
	background: #fff;
}

.home-process .section-head {
	text-align: center;
	margin-bottom: 52px;
}

.process-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	position: relative;
}

.process-steps::before {
	content: '';
	position: absolute;
	top: 36px;
	left: 8%;
	right: 8%;
	height: 2px;
	background: linear-gradient(90deg, #1A325A, #ffbf44, #1A325A);
	opacity: 0.25;
	z-index: 0;
}

.process-step {
	text-align: center;
	position: relative;
	z-index: 1;
}

.process-step .ps-num {
	width: 72px;
	height: 72px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid #1A325A;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 800;
	color: #1A325A;
	transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
	box-shadow: 0 4px 16px rgba(26, 50, 90, 0.1);
}

.process-step:hover .ps-num {
	background: #ffbf44;
	border-color: #ffbf44;
	color: #1A325A;
	transform: scale(1.08);
}

.process-step h3 {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 8px;
}

.process-step p {
	font-size: 13px;
	color: #666;
	max-width: 220px;
	margin: 0 auto;
	line-height: 1.6;
}

/* ── Dual marquee clients ── */
.clients-section .clients-track.reverse {
	animation-direction: reverse;
	animation-duration: 48s;
	margin-top: 14px;
}

.clients-section .clients-track-wrap + .clients-track-wrap {
	margin-top: 0;
}

/* ── CTA Banner ── */
.home-cta {
	position: relative;
	padding: 80px 0;
	background:
		linear-gradient(120deg, rgba(13, 31, 60, 0.94), rgba(26, 50, 90, 0.88)),
		url('../images/road-survey.jpg') center/cover no-repeat;
	text-align: center;
	overflow: hidden;
}

.home-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 191, 68, 0.15), transparent 70%);
	pointer-events: none;
}

.home-cta .container {
	position: relative;
	z-index: 1;
}

.home-cta h2 {
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 800;
	color: #fff;
	margin-bottom: 14px;
}

.home-cta p {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.75);
	max-width: 520px;
	margin: 0 auto 28px;
}

.home-cta .cta-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.home-cta .btn-outline {
	margin-left: 0;
}

/* ── Responsive ── */
@media (max-width: 992px) {
	.feature-grid {
		grid-template-columns: 1fr 1fr;
	}

	.stats-row {
		grid-template-columns: 1fr 1fr;
		gap: 32px 16px;
	}

	.process-steps {
		grid-template-columns: 1fr 1fr;
		gap: 36px 20px;
	}

	.process-steps::before {
		display: none;
	}

	.svc-slide {
		flex: 0 0 calc(50% - 12px);
	}
}

@media (max-width: 768px) {
	.hero-carousel {
		height: auto;
		min-height: 520px;
	}

	.slide-content {
		padding: 100px 20px 110px;
		align-items: flex-end;
	}

	.carousel-nav {
		bottom: 20px;
	}

	.feature-grid {
		grid-template-columns: 1fr;
	}

	.svc-slide {
		flex: 0 0 85%;
	}

	.about-float-badge {
		left: 12px;
		bottom: 12px;
		padding: 12px 14px;
	}

	.who-pulse {
		width: 52px;
		height: 52px;
		font-size: 18px;
		top: -8px;
		right: -8px;
	}
}

@media (max-width: 576px) {
	.stats-row {
		grid-template-columns: 1fr 1fr;
	}

	.process-steps {
		grid-template-columns: 1fr;
	}

	.slide-actions .btn {
		width: 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tech-marquee-track,
	.clients-track,
	.about-float-badge,
	.who-pulse {
		animation: none !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.carousel-slide .slide-bg {
		transition: none;
		transform: none;
	}
}
