/* ====== GOOGLE FONTS ====== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@700;800&family=Nunito+Sans:wght@400;600&display=swap');

/* ====== CSS VARIABLES ====== */
:root {
	--header-height: 4.5rem;

	/* Colors */
	--background-color: #f9f9fb;
	--text-color: #1a1d2d;
	--primary-color: #4f46e5;
	--secondary-color: #a0aec0;
	--border-color: #e2e8f0;
	--container-color: #ffffff;

	/* Typography */
	--font-body: 'Nunito Sans', sans-serif;
	--font-header: 'Manrope', sans-serif;

	--fs-base: 1rem; /* 16px */
	--fs-lg: 1.125rem; /* 18px */
	--fs-xl: 1.25rem; /* 20px */
	--fs-2xl: 1.5rem; /* 24px */

	--fw-regular: 400;
	--fw-semi-bold: 600;
	--fw-bold: 700;
	--fw-extra-bold: 800;

	/* z-index */
	--z-tooltip: 10;
	--z-fixed: 100;
}

/* ====== BASE STYLES ====== */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-size: var(--fs-base);
	background-color: var(--background-color);
	color: var(--text-color);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

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

.container {
	max-width: 1140px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

/* ====== HEADER ====== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: var(--z-fixed);
	border-bottom: 1px solid var(--border-color);
	transition: box-shadow 0.3s ease;
}

.header__container {
	height: var(--header-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-header);
	font-weight: var(--fw-extra-bold);
	color: var(--primary-color);
	font-size: var(--fs-xl);
}

.header__nav {
	display: none; /* Mobile first */
}

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

.header__burger i {
	width: 28px;
	height: 28px;
}

/* ====== FOOTER ====== */
.footer {
	background-color: var(--container-color);
	padding: 4rem 0 2rem;
	border-top: 1px solid var(--border-color);
}

.footer__container {
	display: grid;
	gap: 2.5rem;
}

.footer__logo {
	margin-bottom: 1rem;
}

.footer__copyright {
	font-size: 0.875rem;
	color: var(--secondary-color);
}

.footer__title {
	font-family: var(--font-header);
	font-size: var(--fs-lg);
	font-weight: var(--fw-bold);
	margin-bottom: 1rem;
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer__link {
	color: var(--text-color);
	transition: color 0.3s ease;
}

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

.footer__list--contacts li {
	line-height: 1.5;
}

.footer__text {
	color: var(--text-color);
}

/* ====== MEDIA QUERIES ====== */

/* For tablets and medium devices */
@media screen and (min-width: 768px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}

	.header__nav {
		display: block;
	}

	.header__nav-list {
		display: flex;
		align-items: center;
		gap: 2rem;
	}

	.header__nav-link {
		position: relative;
		font-weight: var(--fw-semi-bold);
		transition: color 0.3s ease;
	}

	.header__nav-link:hover {
		color: var(--primary-color);
	}

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

	.header__nav-link:hover::after {
		transform: scaleX(1);
	}

	.header__burger {
		display: none;
	}
}

/* ====== Add this to the end of your style.css file ====== */

/* Lock body scroll when mobile menu is open */
.body--lock-scroll {
	overflow: hidden;
}

/* Mobile Menu Styles */
@media screen and (max-width: 767px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--background-color);
		padding: 2rem 1.5rem;
		transform: translateX(100%);
		transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
		overflow-y: auto;
	}

	.header__nav.is-active {
		display: block;
		transform: translateX(0);
	}

	.header__nav-list {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 2.5rem;
	}

	.header__nav-link {
		font-size: var(--fs-xl);
		font-family: var(--font-header);
		font-weight: var(--fw-bold);
	}
}

/* Styles for the burger icon transition */
.header__burger {
	position: relative;
	z-index: calc(var(--z-fixed) + 1); /* Ensure it's above the nav */
	transition: transform 0.3s ease;
}

.header__burger.is-active {
	transform: rotate(90deg);
}

/* For large devices */
@media screen and (min-width: 1024px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}

	.footer__container {
		grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
	}
}

/* ====== HERO SECTION ====== */
.hero {
	padding-top: calc(var(--header-height) + 2rem);
	padding-bottom: 4rem;
	min-height: 90vh;
	display: flex;
	align-items: center;
}

.hero__container {
	width: 100%;
	display: grid;
	gap: 3rem;
	align-items: center;
	justify-content: space-between;
}

.hero__content {
	text-align: start;
}

.hero__title {
	text-align: start;
	font-family: var(--font-header);
	font-size: 1.5rem; /* 40px */
	font-weight: var(--fw-extra-bold);
	line-height: 1.2;
	margin-bottom: 1.5rem;
	min-height: 87px;
}

/* Typing animation cursor */
.hero__title::after {
	content: '|';
	color: var(--primary-color);
	font-weight: var(--fw-regular);
	animation: blink 0.7s infinite;
}
.hero__title.typing-done::after {
	animation: none;
	content: '';
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

.hero__description {
	font-size: var(--fs-lg);
	line-height: 1.7;
	margin-bottom: 2.5rem;
	max-width: 500px;
	color: var(--secondary-color);
}

.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: #fff;
	padding: 1rem 2rem;
	border-radius: 8px;
	font-weight: var(--fw-bold);
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
	background-color: #4338ca; /* Darker Indigo */
	transform: translateY(-3px);
}

.hero__visual {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero__image {
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	max-width: 400px;
	width: 100%;
}

/* Animation for description and button */
.hero__description,
.hero__cta {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero__description.is-visible,
.hero__cta.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* MEDIA QUERIES for Hero */
@media screen and (min-width: 768px) {
	.hero {
		min-height: 100vh;
	}
	.hero__container {
		grid-template-columns: 1.2fr 1fr;
	}
	.hero__title {
		font-size: 2.5rem; /* 48px */
		min-height: 144px;
	}
}

@media screen and (min-width: 1024px) {
	.hero__title {
		font-size: 2rem; /* 56px */
		min-height: 100px;
	}
}

/* ====== REUSABLE COMPONENTS ====== */
.section-title {
	font-family: var(--font-header);
	font-size: var(--fs-2xl);
	font-weight: var(--fw-extra-bold);
	text-align: center;
	margin-bottom: 3rem;
}

@media screen and (min-width: 768px) {
	.section-title {
		font-size: 2.25rem; /* 36px */
	}
}

/* ====== CASES SECTION ====== */
.cases {
	padding: 4rem 0;
	background-color: var(--container-color);
}

.cases__grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

.cases__card {
	background-color: var(--background-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cases__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cases__image-wrapper {
	height: 200px;
	background-color: #e2e8f0;
}

.cases__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cases__content {
	padding: 1.5rem;
}

.cases__title {
	font-family: var(--font-header);
	font-size: var(--fs-xl);
	font-weight: var(--fw-bold);
	margin-bottom: 0.75rem;
}

.cases__description {
	color: var(--secondary-color);
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.cases__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cases__tag {
	background-color: #eef2ff; /* Light Indigo */
	color: var(--primary-color);
	font-size: 0.8rem;
	font-weight: var(--fw-bold);
	padding: 0.25rem 0.75rem;
	border-radius: 99px;
}

/* MEDIA QUERIES for Cases */
@media screen and (min-width: 640px) {
	.cases__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 1024px) {
	.cases {
		padding: 6rem 0;
	}
	.cases__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ====== TECHNOLOGIES SECTION ====== */
.tech {
	padding: 4rem 0;
}

.tech__container {
	display: grid;
	gap: 3rem;
}

/* Modifier for left-aligned title */
.section-title--left {
	text-align: left;
	margin-bottom: 1.5rem;
}

.tech__lead {
	font-size: var(--fs-lg);
	line-height: 1.7;
	color: var(--secondary-color);
}

.tech__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1.5rem;
}

.tech__item {
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 1.5rem;
	text-align: center;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.tech__item:hover {
	transform: translateY(-5px);
	border-color: var(--primary-color);
}

.tech__icon {
	margin-bottom: 1rem;
	color: var(--primary-color);
}

.tech__icon i {
	width: 36px;
	height: 36px;
}

.tech__name {
	font-family: var(--font-header);
	font-size: 1rem;
	font-weight: var(--fw-bold);
	margin-bottom: 0.25rem;
}

.tech__description {
	font-size: 0.875rem;
	color: var(--secondary-color);
	line-height: 1.5;
}

/* MEDIA QUERIES for Tech */
@media screen and (min-width: 768px) {
	.tech__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (min-width: 1024px) {
	.tech {
		padding: 6rem 0;
	}
	.tech__container {
		grid-template-columns: 1fr 1.5fr;
		align-items: center;
		gap: 5rem;
	}
}

/* ====== PROCESS SECTION ====== */
.process {
	padding: 4rem 0;
	background-color: var(--container-color);
}

.process__steps {
	display: grid;
	gap: 2rem;
	max-width: 800px;
	margin: 0 auto;
}

.process__step {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	background-color: var(--background-color);
	padding: 2rem;
	border-radius: 12px;
	border: 1px solid var(--border-color);
}

.process__icon {
	flex-shrink: 0;
	color: var(--primary-color);
	background-color: #eef2ff; /* Light Indigo */
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.process__icon i {
	width: 24px;
	height: 24px;
}

.process__title {
	font-family: var(--font-header);
	font-size: var(--fs-xl);
	font-weight: var(--fw-bold);
	margin-bottom: 0.5rem;
}

.process__description {
	color: var(--secondary-color);
	line-height: 1.7;
}

/* MEDIA QUERIES for Process */
@media screen and (min-width: 1024px) {
	.process {
		padding: 6rem 0;
	}
}

/* ====== ARTICLES SECTION ====== */
.articles {
	padding: 4rem 0;
}

.articles__grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

.articles__card {
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.articles__image-link {
	display: block;
	overflow: hidden;
}

.articles__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.articles__card:hover .articles__image {
	transform: scale(1.05);
}

.articles__content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.articles__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.875rem;
	margin-bottom: 1rem;
	color: var(--secondary-color);
}

.articles__category {
	background-color: #fef3c7; /* Light Yellow */
	color: #92400e; /* Dark Yellow/Brown */
	font-weight: var(--fw-bold);
	padding: 0.25rem 0.75rem;
	border-radius: 99px;
	font-size: 0.8rem;
}

.articles__title {
	font-family: var(--font-header);
	font-size: var(--fs-lg);
	font-weight: var(--fw-bold);
	line-height: 1.4;
	margin-bottom: 0.75rem;
}

.articles__title a {
	transition: color 0.3s ease;
}

.articles__card:hover .articles__title a {
	color: var(--primary-color);
}

.articles__excerpt {
	color: var(--secondary-color);
	line-height: 1.6;
	flex-grow: 1;
	margin-bottom: 1.5rem;
}

.articles__read-more {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-weight: var(--fw-bold);
	color: var(--primary-color);
	transition: gap 0.3s ease;
}

.articles__read-more:hover {
	gap: 0.5rem;
}

.articles__read-more-icon {
	width: 16px;
	height: 16px;
}

/* MEDIA QUERIES for Articles */
@media screen and (min-width: 640px) {
	.articles__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 1024px) {
	.articles {
		padding: 6rem 0;
	}
	.articles__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ====== CONTACT SECTION ====== */
.contact {
	padding: 4rem 0;
	background-color: var(--container-color);
}

.contact__container {
	display: grid;
	gap: 3rem;
}

.contact__text {
	font-size: var(--fs-base);
	line-height: 1.7;
	color: var(--secondary-color);
	max-width: 450px;
}

.form__group {
	margin-bottom: 1.5rem;
}

.form__label {
	display: block;
	font-weight: var(--fw-semi-bold);
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

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

.form__input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.form__checkbox {
	margin-top: 4px;
	width: 1em;
	height: 1em;
	accent-color: var(--primary-color);
}

.form__checkbox-label {
	font-size: 0.875rem;
	color: var(--secondary-color);
	line-height: 1.5;
}

.form__checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.contact__button {
	width: 100%;
	padding-top: 1rem;
	padding-bottom: 1rem;
	font-size: var(--fs-lg);
}

/* Success Message */
.form__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
	border: 1px solid #a7f3d0; /* Light Green */
	background-color: #f0fdf4; /* Lighter Green */
	border-radius: 12px;
}

.form__success-icon {
	color: #10b981; /* Green */
	margin-bottom: 1rem;
}

.form__success-icon i {
	width: 48px;
	height: 48px;
}

.form__success-title {
	font-family: var(--font-header);
	font-size: var(--fs-2xl);
	margin-bottom: 0.5rem;
	color: #065f46; /* Dark Green */
}

/* MEDIA QUERIES for Contact */
@media screen and (min-width: 1024px) {
	.contact {
		padding: 6rem 0;
	}
	.contact__container {
		grid-template-columns: 1fr 1.2fr;
		gap: 5rem;
		align-items: center;
	}
}

/* ====== COOKIE POP-UP ====== */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--container-color);
	padding: 1.5rem 0;
	box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
	z-index: calc(var(--z-fixed) + 10);
	transform: translateY(120%);
	transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.cookie-popup.is-visible {
	transform: translateY(0);
}

.cookie-popup__container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

.cookie-popup__text {
	color: var(--secondary-color);
	line-height: 1.5;
}

.cookie-popup__text a {
	color: var(--primary-color);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cookie-popup__button {
	padding: 0.75rem 1.5rem;
	width: 100%;
}

/* MEDIA QUERIES for Cookie Pop-up */
@media screen and (min-width: 768px) {
	.cookie-popup__container {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.cookie-popup__button {
		width: auto;
	}
}

/* ====== POLICY & STATIC PAGES ====== */
.pages {
	padding: calc(var(--header-height) + 2rem) 0 4rem;
	background-color: var(--container-color);
}

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

.pages h1,
.pages h2 {
	font-family: var(--font-header);
	font-weight: var(--fw-extra-bold);
	line-height: 1.3;
	margin-bottom: 1rem;
}

.pages h1 {
	font-size: 1.8rem;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 1rem;
	margin-bottom: 2rem;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
}

.pages p {
	line-height: 1.8;
	color: var(--text-color);
	margin-bottom: 1.5rem;
}

.pages ul {
	list-style-type: disc;
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.pages li {
	margin-bottom: 0.75rem;
	line-height: 1.8;
	color: var(--text-color);
}

.pages a {
	color: var(--primary-color);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.3s ease;
}

.pages a:hover {
	color: #4338ca; /* Darker Indigo */
}

.pages strong {
	font-weight: var(--fw-bold);
}
