/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Poppins:wght@600;700&display=swap');

/* --- CSS Variables --- */
:root {
	--color-background: rgb(10 10 10);
	--color-surface: rgb(23 23 23);
	--color-primary: rgb(52 211 153);
	--color-text-primary: rgb(245 245 245);
	--color-text-secondary: rgb(163 163 163);
	--color-border: rgb(40 40 40);

	--font-family-headings: 'Poppins', sans-serif;
	--font-family-body: 'Inter', sans-serif;

	--header-height: 80px;
}

/* --- Global Reset & Base Styles --- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

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

.container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

ul {
	list-style: none;
}

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

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

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

/* --- Header --- */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(10, 10, 10, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-border);
}

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

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--color-text-primary);
	font-family: var(--font-family-headings);
	font-weight: 600;
	font-size: 1.25rem;
}

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

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

.header__nav-link {
	color: var(--color-text-secondary);
	font-weight: 500;
	position: relative;
	padding: 0.5rem 0;
}

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

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

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

.header__nav-link--cta {
	background-color: var(--color-primary);
	color: var(--color-background);
	padding: 0.5rem 1.25rem;
	border-radius: 999px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.header__nav-link--cta:hover {
	background-color: var(--color-text-primary);
	color: var(--color-background);
}
.header__nav-link--cta::after {
	display: none;
}

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

/* --- Footer --- */
.footer {
	background-color: var(--color-surface);
	padding-top: 4rem;
	font-size: 0.9rem;
	color: var(--color-text-secondary);
}

.footer__container {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 2fr;
	gap: 2.5rem;
	padding-bottom: 4rem;
}

.footer__heading {
	font-family: var(--font-family-headings);
	color: var(--color-text-primary);
	font-size: 1.1rem;
	margin-bottom: 1.25rem;
}

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

.footer__link {
	color: var(--color-text-secondary);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

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

.footer__address {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.footer__icon {
	flex-shrink: 0;
	margin-top: 3px;
	width: 16px;
	height: 16px;
}

.footer__bottom {
	border-top: 1px solid var(--color-border);
	padding: 1.5rem 0;
	text-align: center;
}

/* --- Mobile Styles (Mobile-first) --- */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-background);
		transform: translateX(-100%);
		transition: transform 0.3s ease-in-out;
		padding-top: 2rem;
	}

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

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

	.header__nav-link {
		font-size: 1.2rem;
	}

	.header__burger {
		display: block;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.footer__link,
	.footer__address {
		justify-content: center;
	}
}

/* --- Button --- */
.button {
	display: inline-block;
	background-color: var(--color-primary);
	color: var(--color-background);
	padding: 0.8rem 2rem;
	border-radius: 999px;
	font-weight: 500;
	font-family: var(--font-family-body);
	text-align: center;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.button:hover {
	color: var(--color-background);
	transform: translateY(-3px);
	background-color: rgb(110 231 183); /* Lighter green on hover */
}

/* --- Hero Section --- */
.hero {
	min-height: calc(100vh - var(--header-height));
	display: flex;
	align-items: center;
	padding: 4rem 0;
	overflow: hidden; /* To hide decorative elements overflow */
}

.hero__container {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: center;
	gap: 4rem;
}

.hero__title {
	font-family: var(--font-family-headings);
	font-size: clamp(1.5rem, 5vw, 2.5rem); /* Responsive font size */
	line-height: 1.2;
	margin-bottom: 1.5rem;
	/* min-height: 144px; */
}

/* Blinking cursor for typing animation */
.hero__title::after {
	content: '_';
	font-weight: 400;
	color: var(--color-primary);
	animation: blink 1s step-end infinite;
}

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

.hero__description {
	font-size: 1.1rem;
	color: var(--color-text-secondary);
	max-width: 500px;
	margin-bottom: 2.5rem;
}

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

.hero__image {
	width: 100%;
	max-width: 400px;
	border-radius: 1.5rem;
	position: relative;
	z-index: 2;
}

/* Decorative background shape */
.hero__image-bg {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: var(--color-primary);
	border-radius: 1.5rem;
	transform: rotate(-8deg);
	z-index: 1;
	opacity: 0.2;
	transition: transform 0.4s ease;
}

.hero__image-wrapper:hover .hero__image-bg {
	transform: rotate(3deg) scale(1.05);
}

/* --- Responsive for Hero --- */
@media (max-width: 992px) {
	.hero {
		padding: 3rem 0;
		min-height: auto;
	}
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 3rem;
	}
	.hero__content {
		order: 2; /* Text goes below image on mobile */
	}
	.hero__image-wrapper {
		order: 1;
	}
	.hero__description {
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 576px) {
	.hero__title {
		min-height: 116px;
	}
}

/* --- Generic Section Styles --- */
.section {
	padding-top: 6rem;
	padding-bottom: 6rem;
}

.section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 4rem auto;
}

.section-header__title {
	font-family: var(--font-family-headings);
	font-size: clamp(2rem, 5vw, 2.5rem);
	margin-bottom: 1rem;
}

.section-header__subtitle {
	font-size: 1.1rem;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/* --- Process Section --- */
.process__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.process-card {
	background-color: var(--color-surface);
	padding: 2rem;
	border-radius: 1rem;
	border: 1px solid var(--color-border);
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-card:hover {
	transform: translateY(-8px);
	border-color: var(--color-primary);
}

.process-card__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1.5rem;
}

.process-card__icon {
	width: 32px;
	height: 32px;
	color: var(--color-primary);
}

.process-card__step {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-text-secondary);
	opacity: 0.5;
}

.process-card__title {
	font-family: var(--font-family-headings);
	font-size: 1.25rem;
	color: var(--color-text-primary);
	margin-bottom: 0.75rem;
}

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

/* --- Responsive for Process --- */
@media (max-width: 992px) {
	.process__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.process__grid {
		grid-template-columns: 1fr;
	}
	.section {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}
}

/* --- Technologies Section --- */
.tech {
	background-color: var(--color-surface);
}

.tech__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.tech-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 180px;
	padding: 2rem;
	background-color: var(--color-background);
	border-radius: 1rem;
	border: 1px solid var(--color-border);
	overflow: hidden; /* Important for the overlay effect */
	transition: border-color 0.3s ease;
}

.tech-card:hover {
	border-color: var(--color-primary);
}

.tech-card__icon {
	width: 48px;
	height: 48px;
	color: var(--color-primary);
	margin-bottom: 1rem;
	transition: transform 0.4s ease, opacity 0.4s ease;
}

.tech-card__title {
	font-family: var(--font-family-body);
	font-weight: 600;
	font-size: 1.2rem;
	transition: transform 0.4s ease, opacity 0.4s ease;
}

.tech-card__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(52, 211, 153, 0.95);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1.5rem;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.9);
	transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
	border-radius: 1rem;
}

.tech-card:hover .tech-card__overlay {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

/* Animate icon and title out on hover */
.tech-card:hover .tech-card__icon,
.tech-card:hover .tech-card__title {
	transform: translateY(-20px);
	opacity: 0;
}

.tech-card__description {
	color: var(--color-background);
	font-weight: 500;
	text-align: center;
	line-height: 1.6;
}

/* --- Responsive for Tech --- */
@media (max-width: 992px) {
	.tech__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.tech__grid {
		grid-template-columns: 1fr;
	}
}

/* --- Cases Section --- */
.cases__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.case-card {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	background-color: var(--color-surface);
	border-radius: 1rem;
	overflow: hidden;
	border: 1px solid var(--color-border);
	transition: box-shadow 0.3s ease;
}

.case-card:hover {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.case-card__image-wrapper {
	min-height: 250px;
}

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

.case-card__content {
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
}

.case-card__tag {
	display: inline-block;
	align-self: flex-start;
	background-color: rgba(52, 211, 153, 0.1);
	color: var(--color-primary);
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 500;
	margin-bottom: 1rem;
}

.case-card__title {
	font-family: var(--font-family-headings);
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.case-card__description {
	color: var(--color-text-secondary);
	margin-bottom: 1.5rem;
	flex-grow: 1; /* Pushes results to the bottom */
}

.case-card__results-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.case-card__result-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.95rem;
}

.case-card__result-icon {
	width: 20px;
	height: 20px;
	color: var(--color-primary);
	flex-shrink: 0;
}

/* --- Responsive for Cases --- */
@media (max-width: 768px) {
	.case-card {
		grid-template-columns: 1fr;
	}

	.case-card__content {
		padding: 2rem;
	}
}

/* --- FAQ Section --- */
.faq {
	background-color: var(--color-surface);
}

.faq__container {
	max-width: 800px;
	margin: 0 auto;
	border-top: 1px solid var(--color-border);
}

.faq__item {
	border-bottom: 1px solid var(--color-border);
}

.faq__question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem 0;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;

	color: var(--color-text-primary);
	font-size: 1.1rem;
	font-weight: 500;
	font-family: var(--font-family-body);
}

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

.faq__icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.faq__question.active .faq__icon {
	transform: rotate(180deg);
}

.faq__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-in-out;
}

.faq__answer p {
	padding-bottom: 1.5rem;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/* --- Contact Section --- */
.contact__container {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 4rem;
	align-items: center;
}

.contact__title {
	font-family: var(--font-family-headings);
	font-size: clamp(2rem, 5vw, 2.5rem);
	margin-bottom: 1rem;
}

.contact__description {
	color: var(--color-text-secondary);
	line-height: 1.7;
	font-size: 1.1rem;
	margin-bottom: 2rem;
}

.contact__details {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact__link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--color-text-secondary);
	font-size: 1.1rem;
}
.contact__link:hover {
	color: var(--color-primary);
}

/* Form Styles */
.contact__form {
	background-color: var(--color-surface);
	padding: 2.5rem;
	border-radius: 1rem;
	border: 1px solid var(--color-border);
}

.form__group {
	margin-bottom: 1.5rem;
}

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

.form__input {
	width: 100%;
	padding: 0.8rem 1rem;
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	color: var(--color-text-primary);
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

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

.form__checkbox {
	margin-top: 5px;
	flex-shrink: 0;
}

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

.form__checkbox-label a {
	text-decoration: underline;
}

.form__button {
	width: 100%;
	padding-top: 1rem;
	padding-bottom: 1rem;
	font-size: 1.1rem;
}

.form__success-message {
	display: none; /* Hidden by default */
	margin-top: 1.5rem;
	padding: 1rem;
	background-color: rgba(52, 211, 153, 0.1);
	border: 1px solid var(--color-primary);
	border-radius: 0.5rem;
	color: var(--color-text-primary);
	text-align: center;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.form__success-message.show {
	display: flex; /* Shown with JS */
}

/* --- Responsive for Contact --- */
@media (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	.contact__info {
		text-align: center;
	}
	.contact__details {
		align-items: center;
	}
}

/* --- Cookie Pop-up --- */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden below the screen */
	left: 0;
	width: 100%;
	background-color: var(--color-surface);
	border-top: 1px solid var(--color-border);
	padding: 1rem;
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
	bottom: 0; /* Slides in from the bottom */
}

.cookie-popup__content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	gap: 1rem;
}

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

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

.cookie-popup__button {
	background-color: var(--color-primary);
	color: var(--color-background);
	border: none;
	padding: 0.6rem 1.2rem;
	border-radius: 999px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
	background-color: rgb(110 231 183);
}

@media (max-width: 576px) {
	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
	}
}

/* --- Policy & Text Pages Styles --- */
.pages {
	padding-top: 4rem;
	padding-bottom: 6rem;
}

.pages .container {
	max-width: 800px; /* Optimal width for reading text */
}

.pages h1 {
	font-family: var(--font-family-headings);
	font-size: 1.5rem;
	margin-bottom: 2rem;
	line-height: 1.2;
}

.pages h2 {
	font-family: var(--font-family-headings);
	font-size: 1.5rem;
	margin-top: 3rem;
	margin-bottom: 1.5rem;
}

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

.pages ul {
	list-style: disc;
	padding-left: 2rem;
	color: var(--color-text-secondary);
	margin-bottom: 1.5rem;
}

.pages li {
	font-size: 1.1rem;
	line-height: 1.8;
	margin-bottom: 1rem;
}

.pages a {
	color: var(--color-primary);
	text-decoration: underline;
}

.pages a:hover {
	text-decoration: none;
}

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