@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
	--primary-colour: #123524;
	--secondary-colour: #1e90ff;
	--tertiary-colour: #ffd200;
	--body-text: #9BBBAF;
	--body-text-light: #666;

	/* New variables added */
	--aesir-bg-dark: #0B1A14;
	--aesir-brand-green: #123524;
	--aesir-text-muted: #9BBBAF;
	--aesir-button-bg: #2C5A45;
	--aesir-button-text: #C2E3D6;
}

html, body {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
	scrollbar-width: none;
}
body {
	overflow: auto;
	-ms-overflow-style: none; /* IE and Edge */
	scrollbar-width: none; /* Firefox */
}

	body::-webkit-scrollbar {
		display: none; /* Chrome, Safari and Opera */
	}
.primary-background h1,
.primary-background h2,
.primary-background h3,
.primary-background h4 {
	color: var(--aesir-button-text);
}

.title-banner {
	/*top: -200px;*/
	position: relative;
}
.has-overlapping-title-image {
	margin-top: -150px;
}
.title-content {
	padding: 100px 0 180px;
/*	max-width: 600px;*/
}

h1:focus {
	outline: none;
}

a, .btn-link {
	color: #0071c1;
}

.btn-primary {
	color: #fff;
	background-color: #1b6ec2;
	border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
	box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
	padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
	outline: 1px solid #26b050;
}

.invalid {
	outline: 1px solid red;
}

.validation-message {
	color: red;
}

#blazor-error-ui {
	background: lightyellow;
	bottom: 0;
	box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
	display: none;
	left: 0;
	padding: 0.6rem 1.25rem 0.7rem 1.25rem;
	position: fixed;
	width: 100%;
	z-index: 1000;
}

	#blazor-error-ui .dismiss {
		cursor: pointer;
		position: absolute;
		right: 0.75rem;
		top: 0.5rem;
	}

.blazor-error-boundary {
	background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhla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uMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
	padding: 1rem 1rem 1rem 3.7rem;
	color: white;
}

	.blazor-error-boundary::after {
		content: "An error has occurred."
	}

.white-text {
	color:white;
}

.primary-background {
	background: var(--primary-colour);
	color:white;
}
.primary-background-soft {
	background: var(--primary-colour);
	color: white;
}

.secondary-background {
	background: var(--aesir-text-muted);
	color: black;
}

.white-background {
	background: var(--aesir-text-muted);
}

.footer {
	background-color: var(--sr-black);
	color: #fff;
	margin-top: 0;
	position: static;
}

/* Hide footer during preloader animation on home page */
body.preloader-active .footer {
	visibility: hidden !important;
	opacity: 0 !important;
	z-index: 1 !important;
	pointer-events: none !important;
}

.title-container {
	margin-top: 0 !important;
}

.container.title-container-banner {
	padding: 0;
}

	.container.title-container-banner > div {
		margin-top: -200px;
	}

.container.secondary-background.title-container-banner {
	background: var(--aesir-text-muted);
}

.container {
	
	width: 100%;
	padding-right: var(--bs-gutter-x, .75rem);
	padding-left: var(--bs-gutter-x, .75rem);
	margin-right: auto;
	margin-left: auto;
	margin-top: 70px;
}

.app-links img {
	width: 192px;
	height: 57px;
}

.app-description-box {
	border-radius: 40px;
	padding: 50px 50px 0 50px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex: 1 1 50%;
}

	/*
.app-description-box {
	border-radius: 40px;
	padding: 50px 50px 0 50px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex: 1 1 50%;
}*/
	/*.app-description-box:hover{
background:var(--aesir-text-muted);
}*/
	.app-description-box-text {
		margin: 0 auto 5px auto;
		max-width: 520px;
		text-align: center;
		line-height: 1.23em;
		color: var(--aesir-button-text);
	}

	.app-description-box-1 {
		background-color: mediumpurple;
	}

	.app-description-box-2 {
		background-color: #00A94F;
	}

	.app-description-box-3 {
		background-color: lightblue;
	}
	/*Library Overrides*/
	.custom-gutter-row {
		--bs-gutter-x: 0rem !important; /* Adjust this value */
	}

	.card-body {
		color: black;
	}

	@keyframes slideOutLeft {
		from {
			opacity: 1;
			transform: translateX(0);
		}

		to {
			opacity: 0;
			transform: translateX(-100%);
		}
	}

	@keyframes slideInRight {
		from {
			opacity: 0;
			transform: translateX(100%);
		}

		to {
			opacity: 1;
			transform: translateX(0);
		}
	}

	.carousel-container {
		position: relative;
		overflow: hidden;
		min-height: 200px;
	}

	.carousel-slide {
		animation: slideInRight 0.5s ease-in-out;
		transition: all 0.5s ease-in-out;
	}

	.google-review {
		border-left: 4px solid #4285F4; /* Google Blue */
		background: #fff;
		transition: box-shadow 0.6s;
	}

		.google-review:hover {
			box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
		}

	.profile-pic {
		width: 48px;
		height: 48px;
		object-fit: cover;
		border: 1px solid #ccc;
	}

	.container.secondary-background {
		background: var(--aesir-text-muted);
	}

	.rating span {
		font-size: 16px;
	}

	.card-body {
		align-items: flex-start;
	}

	.blockquote {
		font-style: italic;
		color: #555;
		border-color: #ffc107;
	}

	.bg-light {
		background-color: #f8f9fa !important;
	}

	.navbar {
		padding: 0px;
	}

	.fade-in {
		opacity: 0;
		animation: fadeIn ease-in 1;
		animation-fill-mode: forwards;
		animation-duration: 1s;
		animation-delay: 0.1s; /* Reduced from 0.5s */
	}

	.fade-in-h1 {
		opacity: 0;
		animation: fadeIn ease-in 1;
		animation-fill-mode: forwards;
		animation-duration: 1s;
		animation-delay: 0.3s; /* Reduced from 1.5s */
	}

	.fade-in-h3 {
		opacity: 0;
		animation: fadeIn ease-in 1;
		animation-fill-mode: forwards;
		animation-duration: 1s;
		animation-delay: 0.5s; /* Reduced from 2.5s */
	}

	.fade-in-nav {
		opacity: 0;
		animation: fadeInNav ease-in 1;
		animation-fill-mode: forwards;
		animation-duration: 1s;
		animation-delay: 3.5s; /* Optional delay */
	}


	@keyframes fadeInNav {
		0% {
			opacity: 0;
		}

		100% {
			opacity: 1;
		}
	}

	@keyframes fadeIn {
		0% {
			opacity: 0;
			transform: translateY(20px); /* Optional for a slight "lift" */
		}

		100% {
			opacity: 1;
			transform: translateY(0);
		}
	}


	.carousel-container {
		position: relative;
		width: 100%;
		/*max-width: 800px;*/
		height: 600px;
		overflow: hidden;
	}

	.carousel-image {
		position: absolute;
		width: 100%;
		height: 100%;
		object-fit: contain;
		opacity: 0;
		transition: opacity 1s ease-in-out;
	}

		.carousel-image.active {
			opacity: 1;
		}


	.image-reveal-container {
		display: flex;
		flex-direction: column;
		align-items: center;
		overflow: visible; /* show overflow for animation */
		padding: 3rem 0;
		position: relative;
	}
	/* Each pair stacked vertically with overlap */
	.image-pair {
		position: relative;
		width: 80%; /* container width */
		height: 300px; /* fixed height */
		margin-top: -50px; /* vertical overlap */
		/* Optional: add background or border to see pairs */
	}
		/* Remove overlap for first pair */
		.image-pair:first-child {
			margin-top: 0;
		}
	/* Images side-by-side inside pair */
	.image-half {
		position: absolute;
		width: 50%;
		height: 100%;
		object-fit: fill;
		border-radius: 0.5rem;
		box-shadow: 0 5px 15px rgba(0,0,0,0.15);
		transition: transform 0.8s ease;
	}

	.image-left {
		left: 0;
		z-index: 2;
	}

	.image-right {
		right: 0;
		z-index: 1;
	}


	.image-left-2 {
		left: 0;
		z-index: 2;
	}

	.image-right-2 {
		right: 0;
		z-index: 1;
	}

	.center-text {
		position: absolute;
		top: 50%; /* center vertically */
		left: 50%; /* center horizontally */
		transform: translate(-50%, -50%); /* perfect centering */
		max-width: 70%;
		text-align: center;
		opacity: 0;
		transition: opacity 0.6s ease;
		z-index: 0; /* behind images */
		pointer-events: none;
	}
	/* Animation on reveal */
	.reveal .image-left {
		transform: translateX(-50%) rotate(-3deg);
	}

	.reveal .image-right {
		transform: translateX(50%) rotate(3deg);
	}


	.reveal .image-left-2 {
		transform: translateX(-50%) rotate(-8deg);
	}

	.reveal .image-right-2 {
		transform: translateX(50%) rotate(8deg);
	}

	.reveal .center-text {
		opacity: 1;
	}

	#pageContent {
		background: var(--aesir-text-muted);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.5s ease;
	}

		#pageContent.visible {
			opacity: 1;
			visibility: visible;
		}

		#pageContent.fading-out {
			opacity: 0;
			visibility: visible; /* keep visible while fading out */
		}


	.aesir-text-muted {
		color: var(--aesir-text-muted);
	}

	.staggered-grid-container {
		flex-grow: 1;
		height: 100%;
		width: 100%;
	}

	.flex-halfsize {
		flex: 0.5;
	}

	.service-box {
		flex: 1;
		height: 50%;
		background-color: var(--primary-colour);
		border: 1px solid var(--aesir-text-muted);
		padding: 2em;
	}

	.preloader {
		position: fixed;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
		width: 100px;
		height: 50px;
		background-color: var(--aesir-text-muted);
		animation: expandHeight 1s ease-out forwards, expandWidth 1s ease-out 1s forwards;
		z-index: 9999;
	}

	@keyframes expandHeight {
		0% {
			height: 50px;
			bottom: 0;
		}

		100% {
			height: calc(100% - 101.2px);
			bottom: 0;
		}
	}

	@keyframes expandWidth {
		0% {
			width: 100px;
			left: 50%;
			transform: translateX(-50%);
		}

		100% {
			width: 100%;
			left: 0;
			transform: none;
		}
	}

	#container-fluid {
		width: 100%;
		height: 100%;
		background: var(--aesir-text-muted);
		/*overflow: hidden;*/
	}

	#container-fluid-main {
		/*overflow: hidden;*/
		width: 100%;
		height: 100%;
		/*	overflow-y: scroll;*/
		padding-right: 17px; /* Increase/decrease this value for cross-browser compatibility */
		/*box-sizing: content-box;*/ /* So the width will be 100% + 17px */
	}

	.scrollable {
		overflow: auto;
		scrollbar-width: none; /* Firefox */
		-ms-overflow-style: none; /* IE 10+ */
	}

		.scrollable::-webkit-scrollbar {
			display: none; /* Chrome/Safari */
		}

	nav {
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.5s ease;
	}

		nav.nav-visible {
			opacity: 1;
			pointer-events: all;
		}
		/* Only home page starts with nav hidden and animates */
		nav.nav-fade {
			opacity: 0;
			pointer-events: none;
			animation: fadeInNav 0.5s ease forwards;
			animation-delay: 2s;
		}

	@keyframes fadeInNav {
		to {
			opacity: 1;
			pointer-events: all;
		}
	}

	.banner-description-box {
		width: 50%;
		border-radius: 40px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 1em;
		border: 1px solid var(--aesir-bg-dark);
		background-color: rgba(211, 211, 211, 0.9);
	}

	.timeline-description-box {
		width: 50%;
		border-radius: 40px;
		padding: 50px 50px 0 50px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
		flex: 1 1 50%;
		border: 1px solid var(--aesir-bg-dark);
		background-color: rgba(211, 211, 211, 0.9);
	}

	.timeline-description-box-dark-bg {
		background-color: rgb(18, 53, 36, 0.75);
		padding: 2rem 2.5rem;
		border-radius: 16px;
		max-width: 520px;
	}

	.tim
	/* About Us page shadow boxes for text readability */
	.about-us .row.align-items-center {
		align-items: stretch !important;
	}

	.about-us .col-lg-6 {
		display: flex;
		flex-direction: column;
	}

	.about-us .about-text-box {
		background-color: rgba(255, 255, 255, 0.95) !important;
		border-radius: 12px;
		padding: 2rem !important;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 5px 10px rgba(0, 0, 0, 0.2) !important;
		margin: auto 0;
		border: 1px solid rgba(0, 0, 0, 0.1);
		transition: box-shadow 0.3s ease;
		height: 75%;
		max-height: 75%;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

		.about-us .about-text-box:hover {
			box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 6px 12px rgba(0, 0, 0, 0.25) !important;
		}

		.about-us .about-text-box.alt {
			background-color: rgba(255, 255, 255, 0.98) !important;
			box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 6px 15px rgba(0, 0, 0, 0.25) !important;
			border: 1px solid rgba(0, 0, 0, 0.12);
		}

			.about-us .about-text-box.alt:hover {
				box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 8px 18px rgba(0, 0, 0, 0.3) !important;
			}
	/* Shadow boxes for images on About Us page - alternating styles */
	.about-us .row.align-items-center:nth-of-type(1) .img-fluid,
	.about-us .row.align-items-center:nth-of-type(3) .img-fluid,
	.about-us .row.align-items-center:nth-of-type(5) .img-fluid {
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 5px 10px rgba(0, 0, 0, 0.2) !important;
	}

	.about-us .row.align-items-center:nth-of-type(2) .img-fluid,
	.about-us .row.align-items-center:nth-of-type(4) .img-fluid {
		box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 6px 15px rgba(0, 0, 0, 0.25) !important;
	}
	/* Fix image sizing to match other images without distortion */
	.about-us .col-lg-6.mb-4.mb-lg-0 {
		display: flex;
		align-items: stretch;
		min-height: 400px;
	}

	.about-us .col-lg-6 img.img-fluid {
		width: 100%;
		height: 100%;
		min-height: 400px;
		object-fit: cover;
	}

	.about-us-image-wrapper {
		width: 100%;
		height: 100%;
		min-height: 400px;
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: rgba(245, 245, 245, 0.3);
		border-radius: 0.5rem;
		overflow: hidden;
	}

	.about-us .about-us-image {
		width: 100%;
		height: 100%;
		object-fit: contain !important;
		padding: 1rem;
	}
	/* Shadow box for From Zero to Online paragraph */
	.zero-to-online-box {
		background-color: var(--primary-colour) !important;
		border-radius: 12px;
		padding: 2rem !important;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 5px 10px rgba(0, 0, 0, 0.2) !important;
		border: 1px solid rgba(0, 0, 0, 0.1);
		transition: box-shadow 0.3s ease;
	}

		.zero-to-online-box:hover {
			box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 6px 12px rgba(0, 0, 0, 0.25) !important;
		}

	.slide-background-img {
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
	}
#site-footer.hidden {
	display: none !important;
}
.image-reveal-container-row-mobile {
display:none;
}
@media (max-width: 768px) {
	.app-description-box {
		padding: 1rem;
	}
}
@media (max-width: 768px) {
	.image-reveal-container-row {
				display: none;
	}
	.image-reveal-container-row-mobile {
	display:inherit;
	}
}