/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* scroll-behavior: smooth; - Removed from html to allow JavaScript to control smooth scrolling */

body {
	font-family: 'Questrial', sans-serif;
	line-height: 1.6;
	color: #333;
	background: #d5d5d5;
}

/* Container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.container p {
	text-align: center;
}

/* Header */
.header {
	background: transparent;
	color: white;
	padding: 2rem 0;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	transition: background 0.3s ease, padding 0.3s ease;
	width: 100%;
}

.header.scrolled {
	background: white;
	padding: 1rem 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.logo {
	height: 80px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
	transition: height 0.3s ease;
}

.header.scrolled .logo {
	height: 60px;
}

.nav {
	display: flex;
	gap: 2rem;
}

.nav-link {
	color: white;
	text-decoration: none;
	font-weight: 500;
	font-size: 1.25rem;
	transition: color 0.3s ease;
}

.header.scrolled .nav-link {
	color: #333;
}

.nav-link:hover {
	color: #00b894;
}

.header.scrolled .nav-link:hover {
	color: #00b894;
}

/* Hero section */
.hero {
	background: url('/assets/img/bg1.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: white;
	height: 100vh;
	min-height: 100vh;
	padding: 0;
	text-align: center;
	position: relative;
}

.hero-text-container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	max-width: 1200px;
	padding: 0 20px;
	z-index: 0;
	text-align: center;
	min-height: 200px;
	/* Reserve space to prevent layout shifts during typing */
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

.hero-logo-image {
	width: auto;
	height: auto;
	max-width: 600px;
	max-height: 300px;
	object-fit: contain;
	display: block;
}

.hero-subtitle {
	font-family: 'Allerta Stencil', sans-serif;
	font-size: 2.5rem;
	margin: 0;
	padding: 0;
	opacity: 0.9;
	line-height: 1.3;
	display: block;
	visibility: hidden;
	/* Will be made visible by typing animation */
}

.hero-subtitle .highlight-text {
	color: #00b894;
}

/* Typing cursor animation */
.typing-cursor {
	display: inline-block;
	animation: blink 1s infinite;
	margin-left: 2px;
}

@keyframes blink {

	0%,
	50% {
		opacity: 1;
	}

	51%,
	100% {
		opacity: 0;
	}
}


/* Sections */
.section {
	padding: 4rem 0;
	background: white;
	scroll-margin-top: 100px;
	/* Offset for fixed header */
}

.section h2 {
	font-size: 2.5rem;
	margin-bottom: 2rem;
	text-align: center;
	color: #1e293b;
}

.section.bg-light {
	background: white;
}

.section p.lead {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	color: #475569;
}

.section p {
	font-size: 1.25rem;
	line-height: 1.8;
}

/* Simulation section */
.simulation-section {
	background: white;
}

/* Simulation Carousel */
.simulation-carousel {
	margin-top: 2.5rem;
	position: relative;
	overflow: hidden;
}

.carousel-track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.simulation-card {
	flex: 0 0 100%;
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 0;
	padding: 3rem;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	opacity: 0;
	transform: scale(0.95);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.simulation-card.active {
	opacity: 1;
	transform: scale(1);
}

.simulation-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, #00b894, #00cec9);
}

.simulation-icon {
	width: 64px;
	height: 64px;
	margin-bottom: 1.5rem;
	color: #00b894;
}

.simulation-icon svg {
	width: 100%;
	height: 100%;
}

.simulation-card h3 {
	font-size: 1.6rem;
	color: #1e293b;
	margin: 0 0 1.25rem 0;
	text-align: left;
}

.simulation-card p {
	font-size: 1.15rem;
	line-height: 1.8;
	color: #475569;
	margin: 0;
	text-align: left;
	max-width: 900px;
}

/* Carousel Controls */
.carousel-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 2rem;
}

.carousel-btn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid #e2e8f0;
	background: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	color: #475569;
}

.carousel-btn:hover {
	border-color: #00b894;
	color: #00b894;
	background: rgba(0, 184, 148, 0.05);
}

.carousel-btn svg {
	width: 24px;
	height: 24px;
}

.carousel-dots {
	display: flex;
	gap: 0.75rem;
}

.carousel-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	background: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.carousel-dot:hover {
	border-color: #00b894;
}

.carousel-dot.active {
	background: #00b894;
	border-color: #00b894;
	transform: scale(1.2);
}

/* Offering grid - Our Services section */
.offering-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	margin-top: 2.5rem;
}

.offering-card {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	padding: 2rem;
	background: white;
	border-radius: 0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	border-left: 4px solid #00b894;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offering-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.offering-number {
	font-family: 'Allerta Stencil', sans-serif;
	font-size: 2.5rem;
	font-weight: 700;
	color: #00b894;
	line-height: 1;
	flex-shrink: 0;
	opacity: 0.8;
}

.offering-content {
	flex: 1;
}

.offering-content h3 {
	font-size: 1.35rem;
	color: #1e293b;
	margin: 0 0 0.75rem 0;
	text-align: left;
}

.offering-content p {
	font-size: 1.15rem;
	line-height: 1.7;
	color: #475569;
	margin: 0;
	text-align: left;
}

/* Staggered animation delays for offering cards */
.offering-card:nth-child(1) {
	transition-delay: 0.1s;
}

.offering-card:nth-child(2) {
	transition-delay: 0.15s;
}

.offering-card:nth-child(3) {
	transition-delay: 0.2s;
}

.offering-card:nth-child(4) {
	transition-delay: 0.25s;
}

.offering-card:nth-child(5) {
	transition-delay: 0.3s;
}

.offering-card:nth-child(6) {
	transition-delay: 0.35s;
}

/* Expertise grid */
.expertise-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	margin-top: 3rem;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

/* Expertise card */
.expertise-card {
	background: transparent;
	padding: 0 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-shadow: none;
}

.expertise-hexagon {
	background: #3c434a;
	background-image: url('/assets/img/42883.jpg');
	background-size: cover;
	background-position: center;
	position: relative;
	margin-bottom: 1.5rem;
	padding: 1.5rem;
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	width: min(320px, 100%);
	aspect-ratio: 0.866 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.expertise-hexagon::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(60, 67, 74, 0.6);
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.expertise-hexagon h3 {
	color: white;
	font-size: 1.35rem;
	margin: 0;
	line-height: 1.4;
	position: relative;
	z-index: 1;
}

.expertise-hexagon--laser {
	/* Uses same background as other hexagons */
}

.expertise-hexagon--rotated {
	transform: rotate(90deg);
}

.expertise-hexagon--rotated::after {
	transform: rotate(0deg);
}

.expertise-hexagon--rotated h3 {
	transform: rotate(-90deg);
}

.expertise-card p {
	color: #333;
	line-height: 1.7;
	font-size: 1.25rem;
	margin: 0;
	max-width: 520px;
}

/* Parallax sections */
.parallax-section {
	position: relative;
	height: 300px;
	overflow: hidden;
	background: #1e293b;
}

.parallax-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 120%;
	background-image: url('/assets/img/hexagons.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	opacity: 0.6;
}

.parallax-bg-section .parallax-bg {
	background-image: url('/assets/img/hexagons.jpg');
}

.parallax-simulation .parallax-bg {
	background-image: url('/assets/img/simulation.jpg');
}

.parallax-p3 .parallax-bg {
	background-image: url('/assets/img/p3.jpg');
}

.parallax-contact .parallax-bg {
	background-image: url('/assets/img/bg.jpg');
}

/* Focus areas */
.focus-areas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.focus-item {
	background: #3c434a;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25), 0 6px 12px rgba(0, 0, 0, 0.2);
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	text-align: center;
	aspect-ratio: 1 / 1.15;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}


.focus-item h3 {
	color: white;
	margin-bottom: 1rem;
	font-size: 1.5rem;
	text-align: center;
}

.focus-item p {
	text-align: center;
	color: white;
}

.focus-icon {
	width: 48px;
	height: 48px;
	color: white;
	margin-bottom: 1rem;
	flex-shrink: 0;
}

/* Contact */
.contact-wrapper {
	margin-top: 3rem;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.contact-form-container {
	position: relative;
}

.contact-form {
	background: linear-gradient(135deg, rgba(60, 67, 74, 0.95) 0%, rgba(45, 52, 57, 0.95) 100%);
	padding: 2.5rem;
	border-radius: 0;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
		0 0 0 1px rgba(92, 198, 181, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	position: relative;
	overflow: hidden;
}

.contact-form::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg,
			transparent 0%,
			#5cc6b5 20%,
			#5cc6b5 80%,
			transparent 100%);
	opacity: 0.6;
}

.form-group {
	margin-bottom: 2rem;
	position: relative;
}

.form-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
	color: #e5e5e5;
	font-weight: 600;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.label-accent {
	width: 40px;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, #5cc6b5 100%);
	opacity: 0.6;
	transition: opacity 0.3s ease, width 0.3s ease;
}

.form-group:focus-within .label-accent {
	opacity: 1;
	width: 60px;
	background: linear-gradient(90deg, transparent 0%, #5cc6b5 50%, #6dd4c3 100%);
}

.form-input {
	width: 100%;
	padding: 1rem 1.25rem;
	background: rgba(30, 41, 59, 0.6);
	border: 2px solid rgba(92, 198, 181, 0.2);
	border-radius: 0;
	color: #e5e5e5;
	font-family: 'Questrial', sans-serif;
	font-size: 1rem;
	transition: all 0.3s ease;
	outline: none;
	position: relative;
}

.form-input::placeholder {
	color: rgba(229, 229, 229, 0.4);
}

.form-input:focus {
	border-color: #5cc6b5;
	background: rgba(30, 41, 59, 0.8);
	box-shadow: 0 0 0 3px rgba(92, 198, 181, 0.15),
		0 0 20px rgba(92, 198, 181, 0.2),
		inset 0 0 10px rgba(92, 198, 181, 0.05);
	transform: translateY(-1px);
}

.form-textarea {
	resize: vertical;
	min-height: 120px;
	font-family: 'Questrial', sans-serif;
	line-height: 1.6;
}

.form-submit {
	width: 100%;
	padding: 1rem 2rem;
	background: #3c434a;
	border: 2px solid #5cc6b5;
	border-radius: 0;
	color: white;
	font-family: 'Questrial', sans-serif;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 6px 12px rgba(0, 0, 0, 0.2);
}

.form-submit:hover {
	background: #4a5259;
	border-color: #6dd4c3;
}

.form-submit:active {
	background: #3c434a;
}

.form-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background: #3c434a;
	border-color: rgba(92, 198, 181, 0.4);
}

.form-submit:disabled:hover {
	background: #3c434a;
	border-color: rgba(92, 198, 181, 0.4);
}

/* Responsive adjustments for contact form */
@media (max-width: 768px) {
	.contact-form {
		padding: 2rem;
	}
}

/* Footer */
.footer {
	background: #1e293b;
	color: white;
	padding: 3rem 0 1.5rem;
}

.footer-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.footer-section {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.footer-logo {
	max-width: 300px;
	align-items: center;
}

.footer-logo-img {
	height: 60px;
	width: auto;
	margin-bottom: 1rem;
	object-fit: contain;
}

.footer-tagline {
	font-size: 0.9rem;
	line-height: 1.6;
	opacity: 0.85;
	margin: 0;
}

.footer-heading {
	display: none;
}

.footer-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
}

.footer-link {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color 0.3s ease, transform 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
}

.footer-link:hover {
	color: #5cc6b5;
}

.footer-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 1.5rem;
	text-align: center;
}

.footer-bottom p {
	margin: 0;
	opacity: 0.7;
	font-size: 0.9rem;
}

/* Scroll to top button */
.scroll-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: white;
	color: #1e293b;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
	opacity: 0;
	visibility: hidden;
	z-index: 99;
}

.scroll-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.scroll-to-top:hover {
	background: #f1f5f9;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top:active {
	transform: translateY(0);
}

.scroll-to-top-icon {
	width: 24px;
	height: 24px;
}

/* Scroll Animation Classes */
.scroll-animate {
	opacity: 0;
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.fade-up {
	transform: translateY(40px);
}

.scroll-animate.fade-left {
	transform: translateX(-40px);
}

.scroll-animate.fade-right {
	transform: translateX(40px);
}

.scroll-animate.fade-in {
	transform: scale(0.95);
}

.scroll-animate.animate-in {
	opacity: 1;
	transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays for grid items */
.service-tile:nth-child(1) {
	transition-delay: 0.1s;
}

.service-tile:nth-child(2) {
	transition-delay: 0.2s;
}

.service-tile:nth-child(3) {
	transition-delay: 0.3s;
}

.service-tile:nth-child(4) {
	transition-delay: 0.4s;
}

.service-tile:nth-child(5) {
	transition-delay: 0.5s;
}

.service-tile:nth-child(6) {
	transition-delay: 0.6s;
}

.focus-item:nth-child(1) {
	transition-delay: 0.1s;
}

.focus-item:nth-child(2) {
	transition-delay: 0.2s;
}

.focus-item:nth-child(3) {
	transition-delay: 0.3s;
}

@media (max-width: 1024px) {
	.services-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Responsive */
@media (max-width: 768px) {
	.hero-logo-image {
		max-width: 90%;
		max-height: 200px;
	}

	.hero-subtitle {
		font-size: 2.5rem;
	}

	.hero-text-container {
		gap: 1.5rem;
	}

	.nav {
		gap: 1rem;
	}

	.nav-link {
		font-size: 1.1rem;
	}

	.header {
		padding: 1.5rem 0;
	}

	.header.scrolled {
		padding: 0.75rem 0;
	}

	.logo {
		height: 60px;
		max-width: 150px;
	}

	.header.scrolled .logo {
		height: 50px;
	}

	.section h2 {
		font-size: 2rem;
	}

	.focus-areas {
		grid-template-columns: 1fr;
	}

	.services-grid {
		grid-template-columns: 1fr;
	}

	.service-tile {
		min-height: auto;
		padding: 1.5rem;
	}

	.simulation-card {
		padding: 2rem;
	}

	.simulation-card h3 {
		font-size: 1.4rem;
	}

	.simulation-icon {
		width: 48px;
		height: 48px;
	}

	.carousel-btn {
		width: 40px;
		height: 40px;
	}

	.carousel-btn svg {
		width: 20px;
		height: 20px;
	}

	.offering-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.offering-card {
		padding: 1.5rem;
		gap: 1rem;
	}

	.offering-number {
		font-size: 2rem;
	}

	.expertise-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.expertise-card {
		padding: 0 1rem;
	}

	.expertise-hexagon {
		width: min(260px, 100%);
		padding: 0 1.25rem;
	}

	.expertise-hexagon h3 {
		font-size: 1.2rem;
	}

	.scroll-to-top {
		bottom: 2rem;
		right: 1rem;
		width: 48px;
		height: 48px;
	}

	/* Reduce animation distance on mobile */
	.scroll-animate.fade-up {
		transform: translateY(20px);
	}

	.scroll-animate.fade-left {
		transform: translateX(-20px);
	}

	.scroll-animate.fade-right {
		transform: translateX(20px);
	}

	/* Footer mobile adjustments */
	.footer-content {
		grid-template-columns: 1fr;
		gap: 2rem;
		text-align: center;
	}

	.footer-logo {
		max-width: 100%;
		align-items: center;
	}

	.footer-section {
		align-items: center;
	}

	.footer-list {
		align-items: center;
	}
}