/* GLOBAL STYLES */
:root {
	--background-color: #fdfeff;
	--primary-text-color: #111827;
	--secondary-text-color: #6b7280;
	--accent-color: #3b82f6;
	--border-color: #e5e7eb;
	--header-height: 70px;
	--font-main: 'Inter', sans-serif;
	--font-headings: 'Rubik', sans-serif;
}

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-main);
	font-size: 16px;
	line-height: 1.6;
	color: var(--primary-text-color);
	background-color: var(--background-color);
	-webkit-font-smoothing: antialiased;
}

.container {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

a {
	color: var(--accent-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: #1d4ed8;
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.button {
	display: inline-block;
	padding: 12px 28px;
	background-color: var(--accent-color);
	color: #fff;
	font-family: var(--font-headings);
	font-weight: 500;
	font-size: 16px;
	border-radius: 6px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
	background-color: #2563eb;
	color: #fff;
	transform: translateY(-2px);
}

/* HEADER */
.header {
	width: 100%;
	height: var(--header-height);
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(253, 254, 255, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
	z-index: 100;
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-headings);
	font-weight: 700;
	font-size: 24px;
	color: var(--primary-text-color);
}

.logo:hover {
	color: var(--primary-text-color);
}

.header__nav {
	display: none;
}

.header__nav-list {
	display: flex;
	gap: 30px;
}

.header__nav-link {
	font-size: 16px;
	font-weight: 500;
	color: var(--primary-text-color);
	position: relative;
	padding: 5px 0;
}

.header__nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--accent-color);
	transition: width 0.3s ease;
}

.header__nav-link:hover::after {
	width: 100%;
}

.header__burger {
	display: block;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--primary-text-color);
}

/* HERO SECTION */
.hero {
	position: relative;
	min-height: 90vh;
	padding-top: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
}

.hero__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero__container {
	position: relative;
	z-index: 2;
}

.hero__content {
	max-width: 750px;
	margin: 0 auto;
}

.hero__title {
	font-family: var(--font-headings);
	font-size: 3rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 20px;
	color: var(--primary-text-color);
}

.hero__subtitle {
	font-size: 1.125rem;
	color: var(--secondary-text-color);
	margin-bottom: 40px;
}

/* FOOTER */
.footer {
	padding: 60px 0;
	background-color: #f9fafb;
	border-top: 1px solid var(--border-color);
}

.footer__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

.footer__column--main {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.footer__copyright {
	font-size: 14px;
	color: var(--secondary-text-color);
}

.footer__heading {
	font-family: var(--font-headings);
	font-size: 18px;
	font-weight: 500;
	margin-bottom: 15px;
}

.footer__list li {
	margin-bottom: 10px;
}

.footer__list--contacts li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer__list--contacts .lucide {
	flex-shrink: 0;
}

.footer__link,
.footer__text {
	font-size: 15px;
	color: var(--secondary-text-color);
}

.footer__link:hover {
	color: var(--accent-color);
}

/* MEDIA QUERIES (Mobile-First) */
@media (min-width: 640px) {
	.hero__title {
		font-size: 3.5rem;
	}
	.hero__subtitle {
		font-size: 1.25rem;
	}
}

/* Tablet */
@media (min-width: 768px) {
	.header__burger {
		display: none;
	}

	.header__nav {
		display: block;
	}

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

/* Desktop */
@media (min-width: 1024px) {
	.footer__container {
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 60px;
	}
	.hero {
		min-height: 100vh;
	}
}

/* Mobile Menu Styles (hidden by default) */
.header__nav--mobile {
	display: flex;
	position: fixed;
	top: var(--header-height);
	left: 0;
	width: 100%;
	height: calc(100vh - var(--header-height));
	background-color: var(--background-color);
	flex-direction: column;
	align-items: center;
	padding-top: 50px;
	transform: translateX(100%);
	transition: transform 0.3s ease-in-out;
	z-index: 99;
}

.header__nav--mobile.active {
	transform: translateX(0);
}

.header__nav--mobile .header__nav-list {
	flex-direction: column;
	align-items: center;
	gap: 40px;
}

.header__nav--mobile .header__nav-link {
	font-size: 24px;
}

/* --- SECTION STYLES --- */
.section {
	padding: 80px 0;
}

.section__title {
	font-family: var(--font-headings);
	font-size: 2.5rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 15px;
}

.section__subtitle {
	font-size: 1.125rem;
	color: var(--secondary-text-color);
	text-align: center;
	max-width: 600px;
	margin: 0 auto 50px;
}

/* --- CONCEPTS SECTION --- */
.concepts__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.concepts__card {
	background-color: #fff;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concepts__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.concepts__card-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #eff6ff; /* Light blue background */
	border-radius: 50%;
	color: var(--accent-color);
}

.concepts__card-icon .lucide {
	width: 32px;
	height: 32px;
}

.concepts__card-title {
	font-family: var(--font-headings);
	font-size: 1.5rem;
	margin-bottom: 10px;
}

.concepts__card-description {
	color: var(--secondary-text-color);
	margin-bottom: 20px;
	line-height: 1.7;
}

.concepts__card-link {
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.concepts__card-link .lucide {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.concepts__card-link:hover .lucide {
	transform: translateX(4px);
}

/* Responsive Grid for Concepts */
@media (min-width: 768px) {
	.concepts__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.concepts__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* --- TECHNOLOGIES SECTION --- */
.section--gray {
	background-color: #f9fafb; /* Slightly off-white background for visual separation */
}

.technologies__tabs {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.technologies__list {
	display: flex;
	flex-direction: column;
	overflow-x: auto;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 10px;
}

.technologies__button {
	background: none;
	border: none;
	padding: 10px 15px;
	font-size: 16px;
	font-family: var(--font-main);
	color: var(--secondary-text-color);
	cursor: pointer;
	transition: color 0.3s, border-color 0.3s;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
}

.technologies__button:hover {
	color: var(--primary-text-color);
}

.technologies__button--active {
	color: var(--accent-color);
	font-weight: 500;
	border-bottom-color: var(--accent-color);
}

.technologies__panel {
	display: none;
	grid-template-columns: 1fr;
	gap: 20px;
	align-items: center;
}

.technologies__panel--active {
	display: grid;
	animation: fadeIn 0.5s ease-in-out;
}

.technologies__panel-image {
	width: 100%;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
	aspect-ratio: 16 / 10;
}

.technologies__panel-text h3 {
	font-family: var(--font-headings);
	font-size: 1.75rem;
	margin-bottom: 15px;
}

.technologies__panel-text p {
	color: var(--secondary-text-color);
	line-height: 1.7;
}

/* Fade in animation */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive Tabs for Technologies */
@media (min-width: 768px) {
	.technologies__tabs {
		flex-direction: row;
		gap: 50px;
	}
	.technologies__list {
		flex-shrink: 0;
		flex-direction: column;
		border-bottom: none;
		border-right: 1px solid var(--border-color);
		padding-right: 20px;
		padding-bottom: 0;
		align-items: flex-start;
	}
	.technologies__button {
		border-bottom: none;
		border-right: 3px solid transparent;
		text-align: left;
		width: 100%;
	}
	.technologies__button--active {
		border-right-color: var(--accent-color);
	}
	.technologies__panel {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px;
	}
	.technologies__panel-image {
		aspect-ratio: 4 / 3;
	}
}

/* --- CASES SECTION --- */
.cases__slider {
	position: relative;
	padding: 20px 0 50px; /* Add padding for shadow and pagination */
}

.cases__card {
	background-color: #fff;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: box-shadow 0.3s ease;
}

.cases__card:hover {
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.cases__card-image {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
}

.cases__card-content {
	padding: 20px;
	flex-grow: 1;
}

.cases__card-tag {
	display: inline-block;
	background-color: #dbeafe; /* Lighter blue */
	color: #1e40af; /* Darker blue */
	padding: 4px 10px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 500;
	margin-bottom: 15px;
}

.cases__card-title {
	font-family: var(--font-headings);
	font-size: 1.25rem;
	margin-bottom: 10px;
}

.cases__card-description {
	font-size: 0.95rem;
	color: var(--secondary-text-color);
	line-height: 1.6;
}

/* Swiper Customization */
:root {
	--swiper-theme-color: var(--accent-color);
	--swiper-navigation-size: 30px;
}

.swiper-button-prev,
.swiper-button-next {
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	width: 44px !important;
	height: 44px !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.swiper-button-prev:after,
.swiper-button-next:after {
	font-size: 20px !important;
	font-weight: bold;
}

.swiper-pagination-bullet-active {
	background-color: var(--accent-color);
}

.swiper-container {
	padding-bottom: 40px;
}

@media (max-width: 767px) {
	.swiper-button-prev,
	.swiper-button-next {
		display: none;
	}
}

/* --- BLOG SECTION --- */
.blog__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.blog__card {
	background-color: #fff;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.blog__card-image-link {
	display: block;
}

.blog__card-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.blog__card-content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog__card-date {
	font-size: 0.875rem;
	color: var(--secondary-text-color);
	margin-bottom: 10px;
}

.blog__card-title {
	font-family: var(--font-headings);
	font-size: 1.25rem;
	line-height: 1.4;
	margin-bottom: 10px;
}

.blog__card-title a {
	color: var(--primary-text-color);
}
.blog__card-title a:hover {
	color: var(--accent-color);
}

.blog__card-excerpt {
	color: var(--secondary-text-color);
	margin-bottom: 20px;
	flex-grow: 1;
}

.blog__card-readmore {
	font-weight: 500;
	color: var(--accent-color);
}

.blog__card-readmore:hover {
	text-decoration: underline;
}

/* Responsive Grid for Blog */
@media (min-width: 768px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.blog__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* --- CONTACT SECTION --- */
.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 50px;
	margin-top: 50px;
}

.contact__info h3 {
	font-family: var(--font-headings);
	font-size: 2rem;
	margin-bottom: 15px;
}

.contact__info p {
	color: var(--secondary-text-color);
	line-height: 1.7;
	margin-bottom: 30px;
}

.contact__info-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.contact__info-list li {
	display: flex;
	align-items: center;
	gap: 15px;
	color: var(--primary-text-color);
}

.contact__form {
	background-color: #fff;
	padding: 30px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
}

.form__group {
	margin-bottom: 20px;
}

.form__label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	font-size: 0.9rem;
}

.form__input {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	font-size: 1rem;
	font-family: var(--font-main);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.form__input:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.form__group--checkbox input {
	margin-top: 5px;
}
.form__group--checkbox label {
	font-size: 0.875rem;
	color: var(--secondary-text-color);
}
.form__group--checkbox a {
	text-decoration: underline;
}

.form__button {
	width: 100%;
}

.form__message {
	margin-top: 20px;
	padding: 15px;
	border-radius: 6px;
	background-color: #d1fae5;
	color: #065f46;
	text-align: center;
	font-weight: 500;
}

@media (min-width: 1024px) {
	.contact__wrapper {
		grid-template-columns: 1fr 1.2fr;
	}
	.contact__form {
		padding: 40px;
	}
}

/* --- COOKIE POP-UP --- */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: #fff;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	padding: 20px;
	z-index: 200;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 15px;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup--show {
	bottom: 0;
}

.cookie-popup__text {
	color: var(--secondary-text-color);
	font-size: 0.9rem;
}

.cookie-popup__text a {
	text-decoration: underline;
}

.cookie-popup__button {
	padding: 8px 20px;
	font-size: 0.9rem;
}

@media (min-width: 768px) {
	.cookie-popup {
		flex-direction: row;
		justify-content: center;
		text-align: left;
		padding: 20px 30px;
	}
}

/* --- GENERIC PAGES STYLES (privacy, terms, etc.) --- */
.pages {
	padding: 100px 0;
}

.pages .container {
	max-width: 800px; /* Limit line length for readability */
}

.pages h1 {
	font-family: var(--font-headings);
	font-size: 1.5rem;
	margin-bottom: 30px;
}

.pages h2 {
	font-family: var(--font-headings);
	font-size: 1.5rem;
	margin: 40px 0 20px;
}

.pages p {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--secondary-text-color);
	margin-bottom: 20px;
}

.pages ul {
	list-style: disc;
	padding-left: 25px;
	margin-bottom: 20px;
}

.pages li {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--secondary-text-color);
	margin-bottom: 10px;
}

.pages a {
	text-decoration: underline;
}

.pages a:hover {
	color: #1d4ed8;
}

.pages strong {
	color: var(--primary-text-color);
}
