/* Our Services Section */

/* correction css */
.page-blog {
	padding: 50px 0 0 0;
}
.our-blog {
	padding: 50px 0;
}
.page-header-box p {
	font-size: 1.2rem;
	line-height: 1.6rem;
	margin-top: 8px;
	font-weight: 600;
	color: var(--white-color);
}
@media (max-width: 768px) {
	.page-header-box p {
		font-size: 1rem;
		line-height: 1.5rem;
		font-weight: 500;
	}
}
@media (max-width: 568px) {
	.page-header-box p {
		font-size: 0.8rem;
		line-height: 1.1rem;
		font-weight: 500;
		margin-top: 5px;
	}
}
.security-list {
	margin-top: 40px;
	padding-top: 40px;
}
.security-list > div {
	padding: 50px;

	box-shadow: var(--cr-card-shadow);
}
/* correction end */

@media screen and (min-width: 990px) and (max-width: 1199px) {
	.col-lg-3 {
		flex: 0 0 auto;
		width: 33%;
	}
}

/* this css is for Who we are section */
.company-experience-box {
	padding: 10px;
}
.company-experience-content {
	border-bottom: none;
	margin-bottom: 0px;
	padding-bottom: 10px;
}
.company-experience-content img {
	width: 100%;
	max-width: 60px;
}

/* this css is Swiper css  3333333333333333333333333333333333333333333333333333333333333333333333  Starting  3333333333333333333333333333333333333333*/
/* --- CONTAINER --- */
.project-swiper {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 50px 0;

	/* CRITICAL FIX 1: Perspective */
	/* Giving depth context to the 3D transforms helps the browser render them stably */
	perspective: 1000px;
	overflow: hidden; /* Hide overflow to prevent scrollbars during rotation */
}

/* --- SLIDE BASE --- */
.project-slide {
	position: relative;
	width: 420px;
	max-width: 30vw;
	aspect-ratio: 10 / 12;
	border-radius: 15px;

	/* CRITICAL FIX 2: Hardware Acceleration */
	/* Forces the browser to put each slide on its own composite layer */
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	will-change: transform; /* "Heads up" to the browser that this element will move */

	/* Smooth out the transitions */
	transition:
		transform 0.5s ease-out,
		opacity 0.5s ease-out;
}

/* --- IMAGE --- */
.project-image {
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 15px;
	/* Fix for Safari border-radius bug with transforms */
	-webkit-mask-image: -webkit-radial-gradient(white, black);
}

.project-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none; /* Prevents image dragging ghosting */
}

/* --- CONTENT (Text) --- */
.project-content {
	opacity: 0;
	transform: translateY(20px) translateZ(0); /* translateZ(0) prevents blur */
	transition: all 0.4s ease;
	text-align: center;
	margin-top: 20px;
}

/* --- ACTIVE SLIDE --- */
.swiper-slide-active .project-content {
	opacity: 1;
	transform: translateY(0) translateZ(0);
}

/* --- PAGINATION --- */
.swiper-pagination {
	position: static !important;
}

.swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	opacity: 0.3;
	background-color: #000;
	transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
	opacity: 1;
	width: 25px;
	border-radius: 10px;
	background-color: #007bff;
}

/* why choose us section */

#whycaCounter {
	width: 92%;
	margin: auto;
	max-width: 1650px;
}

.why-choose-content > .why-choose-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0px 20px;
}

/* why choose us section counter */

/* Responsive */
@media (max-width: 768px) {
	.project-slide {
		width: 260px;
		max-width: 75vw;
	}
	.projectSection {
		margin-top: 3rem;
		padding: 3.5rem 0 3.75rem;
	}

	.projectHeader {
		margin-bottom: 2.25rem;
	}

	.project-swiper {
		padding-top: 2rem;
	}
	.why-choose-content > .why-choose-list {
		grid-template-columns: none;
	}
}

@media (max-width: 576px) {
	.project-swiper {
		width: 100%;
	}
	.project-slide {
		min-width: 300px;
	}
}

/* Hide content by default */
.project-content {
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.4s ease;
	text-align: center;
	margin-top: 20px;
}

/* 🔥 ACTIVE (CENTER) SLIDE */
.swiper-slide-active.project-slide {
	transform: scale(1.05);
	opacity: 1;
}

/* Enlarge image */
.swiper-slide-active .project-image img {
	transform: scale(1.08);
}

/* Show text */
.swiper-slide-active .project-content {
	opacity: 1;
	transform: translateY(0);
}

/* Optional: softer side slides */
.swiper-slide-prev,
.swiper-slide-next {
	opacity: 0.6;
}

/* this css for main hero section of other page */
/* --- main-hero Section --- */
.main-hero {
	background: #061138;

	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	text-align: center;
}
.main-hero > .page-header-box {
	padding: 5% 0px;
}
.main-hero h1 {
	font-size: 3rem;
	/* background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); */

	color: #fff;
	
}

/* Ensure the Hero container positions elements relative to itself */
.main-hero {
	position: relative;
	overflow: hidden;
	/* Keep your existing styles for height/flex here... */
}

/* Position the canvas absolutely to cover the hero */
#main-canvas-overlay-hero {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1; /* Above background */
	pointer-events: none; /* Allows you to select text behind it */
}

/* Ensure the text sits ON TOP of the canvas */
.main-hero h1 {
	position: relative;
	z-index: 2; /* Higher than canvas */
	/* Keep your existing styles... */
}

/* Blog section css */
#blogContainer {
	gap: 30px 0px;
}
:root {
	--primary-blue: #1e6de8;
	--dark-text: #0f172a;
	--muted-text: #64748b;
	--card-bg: #ffffff;
	--hover-shadow: 0 20px 40px rgba(30, 109, 232, 0.1);
}

.case-studies-section {
	padding: 80px 0;
	background-color: #f8fafc; /* Light background for contrast */
}

/* CARD DESIGN */
.case-study-card {
	background: var(--card-bg);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.case-study-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--hover-shadow);
}

/* IMAGE AREA */
.card-image {
	position: relative;
	height: 240px; /* Fixed height for uniformity */
	overflow: hidden;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.case-study-card:hover .card-image img {
	transform: scale(1.08); /* Subtle zoom on hover */
}

/* CATEGORY TAG */
.category-tag {
	position: absolute;
	top: 15px;
	left: 15px;
	background: rgba(30, 109, 232, 0.9);
	color: #fff;
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	z-index: 2;
	text-transform: uppercase;
}

/* CONTENT AREA */
.card-content {
	padding: 25px;
	flex: 1; /* Pushes footer down if content is short */
	display: flex;
	flex-direction: column;
}

.card-content .date {
	font-size: 13px;
	color: var(--muted-text);
	margin-bottom: 10px;
	display: block;
}

.card-content h3 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 15px;
}

.card-content h3 a {
	color: var(--dark-text);
	text-decoration: none;
	transition: color 0.3s;
}

.case-study-card:hover .card-content h3 a {
	color: var(--primary-blue);
}

.card-content p {
	font-size: 15px;
	color: var(--muted-text);
	line-height: 1.6;
	margin-bottom: 20px;
	flex-grow: 1; /* Ensures buttons align at bottom */
}

/* READ MORE LINK */
.read-more {
	font-size: 14px;
	font-weight: 700;
	color: var(--primary-blue);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.read-more i {
	transition: transform 0.3s;
}

.read-more:hover i {
	transform: translateX(5px);
}
