:root {
	/* Colors */
	--color-primary: #38a2a5;
	--color-navy: #22577a;
	--color-text: #333;
	--color-text-gray: #4a5568;
	--color-text-light: #a0aec0;
	--color-white: #fff;
	--color-bg-light: #fafcf9;
	--color-overlay: rgba(0, 0, 0, 0.5);
	--color-border: rgba(255, 255, 255, 0.1);
	--font-primary: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", Roboto, sans-serif;
	--font-weight-thin: 100;
	--font-weight-light: 300;
	--font-weight-regular: 400;
	--font-weight-medium: 500;
	--font-weight-demibold: 600;
	--font-weight-bold: 700;
	--font-weight-black: 900;
}

@font-face {
	font-family: "Montserrat";
	src: url("../assets/fonts/Montserrat/static/Montserrat-ThinItalic.ttf") format("truetype");
	font-weight: 100;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../assets/fonts/Montserrat/static/Montserrat-LightItalic.ttf") format("truetype");
	font-weight: 300;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../assets/fonts/Montserrat/static/Montserrat-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../assets/fonts/Montserrat/static/Montserrat-Medium.ttf") format("truetype");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../assets/fonts/Montserrat/static/Montserrat-SemiBoldItalic.ttf") format("truetype");
	font-weight: 600;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../assets/fonts/Montserrat/static/Montserrat-Bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../assets/fonts/Montserrat/static/Montserrat-Black.ttf") format("truetype");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: var(--font-primary);
}

body {
	line-height: 1.6;
	overflow-x: hidden;
	color: var(--color-text);
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
}

::-webkit-scrollbar {
	display: none;
}
* {
	-ms-overflow-style: none; /* IE and Edge */
	scrollbar-width: none; /* Firefox */
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 5%;
}

/* Navigation */
.navbar {
	padding: 1rem 5%;
	gap: 2rem;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: center;
	background-color: var(--color-white);
	@media (max-width: 768px) {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}
}

.logo {
	height: 30px;
}

.nav-links {
	position: relative;
	align-items: center;
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	color: var(--color-navy);
	font-weight: 500;
	@media (max-width: 700px) {
		width: 100%;
	}
	@media (max-width: 1000px) {
		width: 100%;
	}
}

.nav-links a {
	text-decoration: none;
	color: var(--color-navy);
	cursor: pointer;
}
.nav-links a:hover {
	opacity: 0.8;
}

/* Hero Section */
.hero {
	padding: 4rem 0;
	min-height: 70vh;
	overflow: hidden; /* Important for slide animation */
}

.hero-content {
	width: 100%;
	text-align: center;
	margin: 0 auto;
	transform: translateY(100%); /* Start from below the screen */
	opacity: 1; /* Keep opacity at 1 for pure slide effect */
	animation: slideUp 1s forwards;
}

.hero h1 {
	font-size: 3rem;
	margin-bottom: 1rem;
	line-height: 3.5rem;
	color: var(--color-navy);
}

.highlight {
	color: var(--color-primary);
}

.subtitle {
	color: var(--color-text-gray);
	max-width: 600px;
	margin: 0 auto 2rem;
}

.hero-image {
	width: 100%;
	max-width: 1100px;
	margin: 2rem auto;
}

.hero-image img {
	width: 100%;
	border-radius: 10px;
}

/* Solutions Section */
.solutions {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
	padding: 4rem 5%;
	background-color: var(--color-bg-light);
	height: max-content;
	@media (max-width: 768px) {
		height: max-content;
	}
}

.solutions-header {
	text-align: center;
}

.solutions-header h2 {
	font-size: 2rem;
	line-height: 2.6rem;
	color: var(--color-navy);
	margin-bottom: 1rem;
}

.offerings {
	display: flex;
	gap: 4rem;
	max-width: 1200px;
	margin: 0 auto;
}

.solutions-image {
	flex: 1;
}

.solutions-image img {
	width: 100%;
	padding: 1rem;
	border-radius: 10px;
}

.offerings-list {
	flex: 1;
}

.offerings-list p {
	margin: 1rem 0;
}

.offerings-list h3 {
	margin: 2rem 0;
	font-size: 1.5rem;
	font-weight: 500;
}

.offerings-items {
	color: var(--color-navy);
	height: 70%;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.offering-item {
	line-height: 1.5rem;
	display: flex;
	align-items: start;
	flex-direction: column;
	gap: 2rem;
}

.offering-item h4 {
	font-size: 20px;
	font-weight: 500;
}

.offering-item p {
	font-size: 1rem;
	color: var(--color-text-gray);
	line-height: 1.5rem;
}

.icon {
	width: 40px;
	height: 40px;
}

/* Services Section */
.services {
	padding: 5rem 5%;
}

.section-header {
	text-align: start;
	margin-bottom: 4rem;
}

.section-header h2 {
	font-size: 2rem;
	color: var(--color-navy);
}
.section-header p {
	font-size: 18px;
}

.service-items {
	opacity: 1; /* Make sure the container is visible */
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.service-item {
	display: flex;
	align-items: center;
	gap: 4rem;
	margin-bottom: 4rem;
	opacity: 1;
	@media (max-width: 768px) {
		flex-direction: column;
	}
}

.service-content {
	flex: 1;
	width: 50%;
	@media (max-width: 768px) {
		width: 100%;
	}
}

.order-reverse {
	@media (max-width: 768px) {
		order: -1;
	}
}

.service-content h3 {
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--color-primary);
	margin-bottom: 1rem;
}

.service-image {
	flex: 1;
	height: 300px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

/* Stats Section */
.stats {
	background-color: var(--color-navy);
	color: var(--color-white);
	padding: 3rem 5%;
	display: flex;
	width: 100%;
	justify-content: space-between;
	text-align: center;
}

.stat-item h3 {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
}

/* Businesses Section */
.businesses {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 5rem 120px;
	text-align: start;
}

.businesses h2 {
	font-size: 2rem;
	line-height: 40px;
	color: var(--color-navy);
}

.business-grid {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin: 4rem 0;
}

.business-item {
	position: relative;
	aspect-ratio: 1;
	border-radius: 4rem;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-white);
	font-weight: var(--font-weight-medium);
}

.business-item img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

.business-item::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--color-overlay);
	z-index: 2;
}

.business-item span {
	position: relative;
	z-index: 3;
	padding: 1rem;
	text-align: center;
	font-size: 1.25rem;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* For the last "And more" item */
.business-item.more {
	background-color: var(--color-bg-light);
}

.business-item.more span {
	color: var(--color-white);
	text-shadow: none;
}

@media (max-width: 768px) {
	.businesses {
		padding: 3rem 20px;
	}

	.business-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.business-item {
		border-radius: 2rem;
	}
}

@media (max-width: 1200px) {
	.businesses {
		padding: 4rem 48px;
	}

	.business-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.business-item {
		border-radius: 4rem;
	}
}

/* Footer */
footer {
	background-color: var(--color-navy);
	color: var(--color-white);
	padding: 4rem 5% 2rem;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	margin-bottom: 3rem;
}

.footer-logo img {
	height: 30px;
	filter: brightness(0) invert(1);
}

.footer-links {
	display: flex;
	gap: 4rem;
}

.footer-section h4 {
	margin-bottom: 1rem;
	color: var(--color-white);
}

.footer-section p {
	margin-bottom: 0.5rem;
	color: var(--color-white);
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid var(--color-border);
	color: var(--color-text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
	.offerings {
		flex-direction: column;
	}

	.service-item {
		flex-direction: column;
		gap: 2rem;
	}

	.business-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-content {
		flex-direction: column;
		gap: 2rem;
	}

	.footer-links {
		flex-direction: column;
		gap: 2rem;
	}
}

/* Animation classes */
.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: all 1s ease;
}

.slide-in {
	opacity: 0;
	transform: translateX(-50px);
	transition: all 1s ease;
}

.show {
	opacity: 1;
	transform: translate(0);
}

.slide-in-left {
	opacity: 0;
	transform: translateX(-100px);
	transition: all 1s ease;
}

.slide-in-right {
	opacity: 0;
	transform: translateX(100px);
	transition: all 1s ease;
}

/* When element becomes visible */
.showX {
	opacity: 1;
	transform: translateX(0);
}

.no-js .slide-in-left,
.no-js .slide-in-right {
	opacity: 1;
	transform: none;
}

/*-----------ANIMATION EFFECTS---------------------*/

/* Button hover effect for nav links */
.nav-links a {
	position: relative;
	transition: color 0.3s ease;
}

.nav-links a::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -4px;
	left: 0;
	background-color: var(--color-primary);
	transition: width 0.3s ease;
}

.nav-links a:hover::after {
	width: 100%;
}

/* Hover effects */
.business-item {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.business-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.offering-item {
	transition: transform 0.3s ease;
}

.offering-item:hover {
	transform: translateX(10px);
}

/* Gradient overlay for business items */

.business-item:hover::after {
	opacity: 0.9;
}

/* Stats counter animation */
@keyframes countUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.stat-item {
	animation: countUp 1s ease forwards;
}

/* Service image hover effect */
.service-image img {
	transition: transform 0.5s ease;
}

.service-image:hover img {
	transform: scale(1.05);
}

/* Hero section animation */

/* Slide up animation */
@keyframes slideUp {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
	}
}

/* Individual element animations */
.hero-content > * {
	transform: translateY(100px);
	animation: slideUpElements 1s forwards;
}

.hero-content h1 {
	animation-delay: 0.2s;
}

.hero-content .subtitle {
	animation-delay: 0.4s;
}

.hero-content .hero-image {
	animation-delay: 0.6s;
}

@keyframes slideUpElements {
	from {
		transform: translateY(100px);
	}
	to {
		transform: translateY(0);
	}
}

/*-----------------------LANGUAGE TOGGLE STYLYES--------------------------*/
/* Add this to your existing CSS file */
.nav-links {
	position: relative;
	display: flex;
	align-items: center;
}

.lang-toggle {
	display: flex;
	margin-left: 2rem;
	padding: 4px;
	border-radius: 24px;
	background-color: var(--color-bg-light);
	position: relative;
	transition: all 0.3s ease;
}
.lang-toggle::before {
	content: "";
	position: absolute;
	top: 4px; /* Match padding */
	left: 4px; /* Match padding */
	width: calc(50% - 4px); /* Subtract padding */
	height: calc(100% - 8px); /* Subtract padding from top and bottom */
	background: var(--color-primary);
	border-radius: 24px;
	transition: transform 0.3s ease;
}

.lang-toggle.en-active::before {
	transform: translateX(0);
}

.lang-toggle.uz-active::before {
	transform: translateX(100%);
}

.lang-btn {
	position: relative;
	padding: 0.5rem 2rem;
	width: 50%;
	transition: color 0.3s ease;
	border: none;
	background: transparent;
	color: var(--color-primary);
	border-radius: 24px;
	cursor: pointer;
	transition: all 0.2s;
	font-weight: 500;
}

.lang-btn.active {
	color: white;
}

.lang-btn:hover:not(.active) {
	background: rgba(56, 162, 165, 0.1);
}

@media (max-width: 768px) {
	.lang-toggle {
		margin-left: 0;
		margin-top: 1rem;
	}
}
