/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@400;500&display=swap');

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

	/*========== Colors ==========*/
	--first-color: hsl(182, 100%, 50%); /* Cyan */
	--first-color-alt: hsl(182, 100%, 45%);
	--title-color: hsl(0, 0%, 88%);
	--text-color: hsl(0, 0%, 75%);
	--body-color: hsl(0, 0%, 5%);
	--container-color: hsl(0, 0%, 10%);
	--border-color: hsl(0, 0%, 20%);

	/*========== Font and typography ==========*/
	--body-font: 'Roboto', sans-serif;
	--title-font: 'Orbitron', sans-serif;
	--biggest-font-size: 2.25rem;
	--h1-font-size: 1.75rem;
	--h2-font-size: 1.25rem;
	--h3-font-size: 1rem;
	--normal-font-size: 0.938rem;
	--small-font-size: 0.813rem;

	/*========== Font weight ==========*/
	--font-regular: 400;
	--font-medium: 500;
	--font-bold: 700;

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

/*=============== BASE ===============*/
* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--body-color);
	color: var(--text-color);
}

h1,
h2,
h3 {
	color: var(--title-color);
	font-family: var(--title-font);
	font-weight: var(--font-bold);
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
	max-width: 1120px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: transparent;
	z-index: var(--z-fixed);
	transition: background-color 0.3s, box-shadow 0.3s;
}

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

.header__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--title-color);
	font-family: var(--title-font);
	font-weight: var(--font-bold);
}

.header__logo img {
	width: 30px;
	height: 30px;
}

.header__toggle,
.header__close {
	display: flex;
	font-size: 1.25rem;
	color: var(--title-color);
	cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 767px) {
	.header__menu {
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100%;
		background-color: hsla(0, 0%, 5%, 0.9);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
		transition: right 0.4s;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
}

.header__list {
	display: flex;
	flex-direction: column;
	row-gap: 3rem;
	text-align: center;
}

.header__link {
	color: var(--title-color);
	font-family: var(--title-font);
	font-size: var(--h2-font-size);
	transition: color 0.3s;
}

.header__link:hover {
	color: var(--first-color);
}

.header__close {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
}

/* Show menu */
.show-menu {
	right: 0;
}

/* Add shadow to header when scrolling */
.scroll-header {
	background-color: var(--body-color);
	box-shadow: 0 1px 4px hsla(0, 0%, 4%, 0.3);
}

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

.footer__container {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.footer__group {
	display: grid;
	gap: 2rem;
}

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--h3-font-size);
	font-family: var(--title-font);
	font-weight: var(--font-bold);
	color: var(--title-color);
	margin-bottom: 1rem;
}

.footer__logo img {
	width: 24px;
	height: 24px;
}

.footer__description {
	font-size: var(--small-font-size);
	margin-bottom: 1.5rem;
}

.footer__title {
	font-size: var(--h3-font-size);
	margin-bottom: 1rem;
}

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

.footer__link {
	color: var(--text-color);
	font-size: var(--small-font-size);
	transition: color 0.3s;
}

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

.footer__list--contact {
	gap: 1rem;
}

.footer__contact-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--small-font-size);
}

.footer__contact-item i {
	width: 16px;
	height: 16px;
	color: var(--first-color);
}

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

.footer__copy {
	font-size: var(--small-font-size);
	color: var(--text-color);
}

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

@media screen and (min-width: 767px) {
	.header__nav {
		height: calc(var(--header-height) + 1.5rem);
	}
	.header__toggle,
	.header__close {
		display: none;
	}
	.header__list {
		flex-direction: row;
		gap: 2.5rem;
	}
	.header__link {
		font-size: var(--normal-font-size);
		font-family: var(--body-font);
	}
}

/* For large devices */
@media screen and (min-width: 1024px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
	.footer__group {
		grid-template-columns: repeat(4, 1fr);
	}
}

/*=============== BUTTONS ===============*/
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background-color: var(--first-color);
	color: var(--body-color);
	padding: 1rem 1.75rem;
	border-radius: 0.5rem;
	font-family: var(--title-font);
	font-weight: var(--font-bold);
	transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
	background-color: var(--first-color-alt);
	transform: translateY(-2px);
}

.button i {
	width: 1.25rem;
	height: 1.25rem;
}

/*=============== HERO ===============*/
.hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

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

.hero__content {
	text-align: center;
	max-width: 700px;
	margin: 0 auto;
}

.hero__title {
	font-size: var(--biggest-font-size);
	margin-bottom: 1.5rem;
}

.hero__title-line2 {
	color: var(--first-color);
	min-height: 50px; /* Reserve space for the text */
	display: inline-block;
}

/* Blinking cursor for typewriter effect */
.hero__title-line2::after {
	content: '|';
	animation: blink 1s step-end infinite;
	color: var(--first-color);
	margin-left: 0.25rem;
}

@keyframes blink {
	from,
	to {
		color: transparent;
	}
	50% {
		color: var(--first-color);
	}
}

.hero__description {
	font-size: var(--h3-font-size);
	margin-bottom: 2.5rem;
	line-height: 1.6;
	padding: 0 1rem;
}

/* Subtle background grid animation */
.hero__background-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
		linear-gradient(to right, var(--border-color) 1px, transparent 1px);
	background-size: 40px 40px;
	opacity: 0.2;
	animation: pan-background 30s linear infinite;
	z-index: 1;
}

@keyframes pan-background {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: 400px 400px;
	}
}

/*=============== HERO BREAKPOINTS ===============*/
@media screen and (min-width: 767px) {
	:root {
		--biggest-font-size: 3.5rem;
		--h1-font-size: 2.25rem;
	}
	.hero__title-line2 {
		min-height: 65px;
	}
	.hero__description {
		font-size: var(--h2-font-size);
	}
}

/*=============== REUSABLE SECTION STYLES ===============*/
.section {
	padding: 6rem 0 2rem;
}

.section__header {
	text-align: center;
	margin-bottom: 3rem;
}

.section__title {
	font-size: var(--h1-font-size);
	margin-bottom: 0.75rem;
}

.section__subtitle {
	font-size: var(--normal-font-size);
	color: var(--text-color);
}

/*=============== STAGES ===============*/
.stages__timeline {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* The vertical line */
.stages__timeline::after {
	content: '';
	position: absolute;
	width: 2px;
	background-color: var(--border-color);
	top: 20px;
	bottom: 20px;
	left: 24px;
	z-index: -1;
}

.stages__item {
	position: relative;
}

.stages__content {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	padding: 1.5rem;
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	transition: transform 0.3s, box-shadow 0.3s;
}

.stages__content:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px hsla(182, 100%, 50%, 0.1);
}

.stages__icon {
	width: 32px;
	height: 32px;
	color: var(--first-color);
	flex-shrink: 0;
	margin-top: 5px;
}

.stages__number {
	font-family: var(--title-font);
	font-size: var(--small-font-size);
	color: var(--first-color);
	margin-bottom: 0.5rem;
	display: block;
}

.stages__title {
	font-size: var(--h2-font-size);
	margin-bottom: 0.5rem;
}

.stages__description {
	font-size: var(--normal-font-size);
	line-height: 1.6;
}

/*=============== STAGES BREAKPOINTS ===============*/
@media screen and (min-width: 767px) {
	.section {
		padding: 8rem 0 2rem;
	}
	.stages__timeline::after {
		left: 50%;
		margin-left: -1px;
	}
	.stages__item {
		width: 50%;
	}
	/* Place items to the left */
	.stages__item:nth-child(odd) {
		align-self: flex-start;
		padding-right: 3rem;
	}
	/* Place items to the right */
	.stages__item:nth-child(even) {
		align-self: flex-end;
		padding-left: 3rem;
	}
	/* The circle on the timeline */
	.stages__item::after {
		content: '';
		position: absolute;
		width: 16px;
		height: 16px;
		background-color: var(--body-color);
		border: 2px solid var(--first-color);
		top: 24px;
		border-radius: 50%;
		z-index: 1;
	}

	.stages__item:nth-child(odd)::after {
		right: -8px;
	}
	.stages__item:nth-child(even)::after {
		left: -8px;
	}
}

/*=============== FEATURES ===============*/
.features__grid {
	display: grid;
	gap: 1.5rem;
}

.features__card {
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	padding: 2rem 1.5rem;
	border-radius: 0.5rem;
	text-align: center;
	transition: transform 0.3s, box-shadow 0.3s;
}

.features__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px hsla(182, 100%, 50%, 0.1);
}

.features__icon {
	width: 48px;
	height: 48px;
	color: var(--first-color);
	margin-bottom: 1rem;
}

.features__title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.5rem;
}

.features__description {
	font-size: var(--small-font-size);
	line-height: 1.6;
}

/*=============== FEATURES BREAKPOINTS ===============*/
@media screen and (min-width: 576px) {
	.features__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.features__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/*=============== CASES ===============*/
.cases__container {
	display: grid;
	gap: 4rem;
}

.cases__item {
	display: grid;
	gap: 2rem;
}

.cases__image {
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

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

.cases__tag {
	display: inline-block;
	background-color: hsla(182, 100%, 50%, 0.1);
	color: var(--first-color);
	padding: 0.25rem 0.75rem;
	border-radius: 0.25rem;
	font-size: var(--small-font-size);
	font-weight: var(--font-medium);
	margin-bottom: 1rem;
}

.cases__title {
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.cases__description {
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

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

.cases__results li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--small-font-size);
}

.cases__results i {
	color: var(--first-color);
	width: 16px;
	height: 16px;
}

/*=============== CASES BREAKPOINTS ===============*/
@media screen and (min-width: 767px) {
	.cases__container {
		gap: 6rem;
	}
	.cases__item {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}
	.cases__item--reversed .cases__image {
		order: 2;
	}
}

/*=============== PROCESS ===============*/
.process__container {
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	overflow: hidden;
}

.process__tabs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	background-color: hsla(0, 0%, 100%, 0.05);
}

.process__tab {
	padding: 1rem;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	transition: background-color 0.3s;
	text-align: center;
	font-size: var(--small-font-size);
}

.process__tab i {
	width: 20px;
	height: 20px;
}

.process__tab:hover {
	background-color: hsla(182, 100%, 50%, 0.1);
}

.process__tab--active {
	background-color: var(--first-color);
	color: var(--body-color);
	font-weight: var(--font-bold);
}
.process__tab--active:hover {
	background-color: var(--first-color-alt);
}

.process__content-area {
	padding: 2rem 1.5rem;
	position: relative;
}

.process__content {
	display: none;
	animation: fadeIn 0.4s;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.process__content--active {
	display: block;
}

.process__content-title {
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.process__content-description {
	line-height: 1.7;
	max-width: 600px;
}

.process__content-number {
	position: absolute;
	right: 1.5rem;
	bottom: -1rem;
	font-size: 6rem;
	font-family: var(--title-font);
	font-weight: var(--font-bold);
	color: hsla(0, 0%, 100%, 0.05);
	z-index: -1;
	user-select: none;
}

/*=============== PROCESS BREAKPOINTS ===============*/
@media screen and (min-width: 767px) {
	.process__container {
		display: flex;
	}
	.process__tabs {
		display: flex;
		flex-direction: column;
		grid-template-columns: none;
		width: 250px;
		flex-shrink: 0;
	}
	.process__tab {
		justify-content: flex-start;
		padding: 1.5rem;
		font-size: var(--normal-font-size);
	}
	.process__content-area {
		padding: 3rem;
	}
	.process__content-number {
		font-size: 8rem;
		bottom: 0;
	}
}

/*=============== CONTACT ===============*/
.contact__container {
	display: grid;
	gap: 3rem;
}

.contact__info .section__header {
	text-align: left;
	margin-bottom: 2rem;
}

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

.contact__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.contact__item i {
	color: var(--first-color);
	width: 20px;
	height: 20px;
}

.contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact__form-group {
	display: flex;
	flex-direction: column;
}

.contact__form-label {
	font-size: var(--small-font-size);
	color: var(--text-color);
	margin-bottom: 0.5rem;
}

.contact__form-input {
	width: 100%;
	padding: 0.8rem 1rem;
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	color: var(--title-color);
	font-size: var(--normal-font-size);
	outline: none;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form-input:focus {
	border-color: var(--first-color);
	box-shadow: 0 0 0 3px hsla(182, 100%, 50%, 0.2);
}

.contact__form-group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
}

.contact__form-checkbox {
	margin-top: 4px;
	accent-color: var(--first-color);
}

.contact__form-checkbox-label {
	font-size: var(--small-font-size);
	line-height: 1.5;
}

.contact__form-checkbox-label a {
	color: var(--first-color);
	text-decoration: underline;
}

.contact__button {
	width: 100%;
}

.contact__success-message {
	display: none; /* Initially hidden */
	text-align: center;
	padding: 2rem;
	border: 1px solid var(--first-color);
	border-radius: 0.5rem;
	background-color: hsla(182, 100%, 50%, 0.05);
	animation: fadeIn 0.4s;
}

.contact__success-message i {
	width: 48px;
	height: 48px;
	color: var(--first-color);
	margin-bottom: 1rem;
}

.contact__success-title {
	font-size: var(--h2-font-size);
	margin-bottom: 0.5rem;
}

/*=============== CONTACT BREAKPOINTS ===============*/
@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1.2fr;
		gap: 5rem;
	}
}

/*=============== COOKIE POPUP ===============*/
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 50%;
	transform: translateX(-50%);
	max-width: 90%;
	width: 600px;
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	padding: 1.5rem;
	box-shadow: 0 4px 16px hsla(0, 0%, 4%, 0.2);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	z-index: var(--z-fixed);
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.is-visible {
	bottom: 2rem; /* Becomes visible */
}

.cookie-popup__text {
	font-size: var(--small-font-size);
	text-align: center;
	line-height: 1.6;
}

.cookie-popup__text a {
	color: var(--first-color);
	text-decoration: underline;
}

.cookie-popup__button {
	padding: 0.5rem 1rem; /* Smaller button */
}

/*=============== COOKIE POPUP BREAKPOINTS ===============*/
@media screen and (min-width: 576px) {
	.cookie-popup {
		flex-direction: row;
		justify-content: space-between;
	}
	.cookie-popup__text {
		text-align: left;
	}
}

/*=============== STATIC PAGES (PRIVACY, TERMS, ETC.) ===============*/
.pages {
	padding-top: calc(var(--header-height) + 4rem); /* Offset for fixed header */
	padding-bottom: 4rem;
}

.pages .container {
	max-width: 800px; /* Narrower container for better readability */
}

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

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

.pages p {
	line-height: 1.8;
	margin-bottom: 1rem;
}

.pages a {
	color: var(--first-color);
	text-decoration: none;
	transition: text-decoration 0.3s;
}

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

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

.pages ul li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.75rem;
	line-height: 1.7;
}

.pages ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 10px;
	width: 6px;
	height: 6px;
	background-color: var(--first-color);
	border-radius: 50%;
}

.pages strong {
	color: var(--title-color);
	font-weight: var(--font-medium);
}

/*=============== STATIC PAGES BREAKPOINTS ===============*/
@media screen and (min-width: 767px) {
	.pages h1 {
		font-size: var(--biggest-font-size);
	}
}
