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

/* ==================== CSS VARIABLES ==================== */
:root {
	/* Colors */
	--background-color: #0a0a0a;
	--secondary-color: #1a1a1a;
	--primary-color: #00f0a0;
	--text-color: #e0e0e0;
	--text-color-light: #a0a0a0;
	--border-color: #2a2a2a;

	/* Typography */
	--font-body: 'Inter', sans-serif;
	--font-mono: 'Roboto Mono', monospace;
	--h1-size: 2.5rem;
	--h2-size: 1.75rem;
	--h3-size: 1.25rem;
	--normal-size: 1rem;
	--small-size: 0.875rem;

	/* Z-index */
	--z-fixed: 100;
	--z-modal: 200;
}

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
	font-weight: 700;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: var(--text-color);
}

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

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

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

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-mono);
	font-weight: 500;
	color: var(--primary-color);
	transition: transform 0.3s;
}

.header__logo:hover {
	transform: scale(1.05);
}

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

.header__toggle {
	position: relative;
	z-index: 100;
	font-size: 1.25rem;
	color: var(--text-color);
	cursor: pointer;
	background: none;
	border: none;
	display: inline-flex;
}

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

@media screen and (max-width: 767px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		background-color: var(--secondary-color);
		width: 70%;
		height: 100vh;
		padding: 4rem 2rem 0;
		transition: right 0.4s ease;
	}
}

.header__nav-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.header__nav-link {
	color: var(--text-color);
	font-weight: 500;
	transition: color 0.3s;
}

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

.header__nav-link--button {
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 0.5rem 1rem;
	border-radius: 5px;
	transition: background-color 0.3s, color 0.3s;
}

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

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

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

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

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-mono);
	font-weight: 500;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

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

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

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

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

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

.footer__link:hover {
	color: var(--primary-color);
	padding-left: 5px;
}

.footer__list--contact li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--text-color-light);
	font-size: var(--small-size);
}

.footer__icon {
	width: 18px;
	height: 18px;
	color: var(--primary-color);
}

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

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

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

/* For large devices */
@media screen and (min-width: 768px) {
	.header__toggle {
		display: none;
	}

	.header__nav {
		width: auto;
	}

	.header__nav-list {
		flex-direction: row;
		gap: 2.5rem;
	}
}

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

@media screen and (min-width: 1120px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
}

/* ==================== BUTTONS ==================== */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem 2rem;
	background-color: var(--primary-color);
	color: var(--background-color);
	font-weight: 500;
	border-radius: 5px;
	border: 2px solid var(--primary-color);
	transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.button:hover {
	background-color: transparent;
	color: var(--primary-color);
	transform: translateY(-3px);
}

.button__icon {
	width: 20px;
	height: 20px;
	transition: transform 0.3s;
}

.button:hover .button__icon {
	transform: translateX(5px);
}

/* ==================== HERO ==================== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding-top: 4.5rem; /* Header height */
}

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

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

.hero__data {
	max-width: 700px;
	margin: 0 auto;
}

.hero__title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.hero__subtitle {
	font-size: 1.125rem;
	color: var(--text-color-light);
	margin-bottom: 2.5rem;
}

/* ==================== MEDIA QUERIES (Hero) ==================== */
@media screen and (min-width: 768px) {
	:root {
		--h1-size: 3.5rem;
	}

	.hero__title {
		font-size: 2.5rem;
	}
}

/* ==================== REUSABLE CSS CLASSES ==================== */
.section {
	padding: 6rem 0 2rem;
}

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

.section__subtitle {
	display: block;
	font-family: var(--font-mono);
	color: var(--primary-color);
	margin-bottom: 0.5rem;
}

.section__title {
	font-size: var(--h2-size);
}

/* ==================== FEATURES ==================== */
.features__container {
	display: grid;
	gap: 4rem;
}

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

.features__tab-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	border-radius: 8px;
	cursor: pointer;
	border: 1px solid var(--border-color);
	background-color: var(--secondary-color);
	transition: background-color 0.3s, border-color 0.3s;
}

.features__tab-item:hover {
	background-color: #252525;
}

.features__tab-item.active-feature {
	background-color: #2a2a2a;
	border-color: var(--primary-color);
}

.features__tab-icon {
	width: 24px;
	height: 24px;
	color: var(--primary-color);
	flex-shrink: 0;
}

.features__tab-title {
	font-size: var(--normal-size);
	margin-bottom: 0.25rem;
}

.features__tab-desc {
	font-size: var(--small-size);
	color: var(--text-color-light);
}

.features__content-item {
	display: none;
	animation: fadeIn 0.5s ease;
}

.features__content-item.active-feature {
	display: block;
}

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

.features__content-img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	margin-bottom: 1.5rem;
	border: 1px solid var(--border-color);
}

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

.features__content-description {
	color: var(--text-color-light);
	line-height: 1.7;
}

/* ==================== MEDIA QUERIES (Features) ==================== */
@media screen and (min-width: 768px) {
	.features__container {
		grid-template-columns: 1fr 1.25fr;
		align-items: flex-start;
	}
}

@media screen and (min-width: 992px) {
	.section {
		padding: 8rem 0 2rem;
	}

	.section__header {
		margin-bottom: 5rem;
	}
}
/* ==================== PROCESS (TIMELINE) ==================== */
.process__container {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	display: grid;
	gap: 3rem;
	padding-left: 3rem; /* Space for the timeline line and numbers */
}

/* The vertical line of the timeline */
.process__container::before {
	content: '';
	position: absolute;
	left: 20px;
	top: 10px;
	bottom: 10px;
	width: 2px;
	background-color: var(--border-color);
}

.process__item {
	position: relative;
}

.process__item-number {
	position: absolute;
	left: -50px;
	top: -5px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background-color: var(--secondary-color);
	border: 2px solid var(--border-color);
	color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-weight: 500;
	transition: border-color 0.3s;
}

.process__item:hover .process__item-number {
	border-color: var(--primary-color);
}

.process__item-title {
	font-size: var(--h3-size);
	margin-bottom: 0.75rem;
}

.process__item-description {
	color: var(--text-color-light);
	font-size: var(--small-size);
	line-height: 1.7;
}

/* ==================== MEDIA QUERIES (Process) ==================== */

/* For large devices - zig-zag timeline */
@media screen and (min-width: 768px) {
	.process__container {
		padding-left: 0;
	}

	/* Center the line */
	.process__container::before {
		left: 50%;
		transform: translateX(-50%);
	}

	.process__item {
		width: 50%;
	}

	/* Position items on the right */
	.process__item:nth-child(odd) {
		padding-left: 4rem;
	}

	/* Position items on the left */
	.process__item:nth-child(even) {
		margin-left: auto;
		padding-right: 4rem;
		text-align: right;
	}

	/* Position numbers on the center line */
	.process__item-number {
		top: -45px;
		left: 50%;
		transform: translateX(-50%);
	}
}

/* ==================== CASES (SLIDER) ==================== */
.cases__container {
	position: relative;
}

.cases__slider {
	padding: 1rem 0 3rem; /* Bottom padding for pagination/buttons */
}

.case-card {
	background-color: var(--secondary-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
}

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

.case-card__img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.case-card__data {
	padding: 1.5rem;
}

.case-card__tags {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.case-card__tags span {
	background-color: var(--border-color);
	color: var(--primary-color);
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-family: var(--font-mono);
	font-size: 0.75rem;
}

.case-card__title {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}

.case-card__description {
	font-size: var(--small-size);
	color: var(--text-color-light);
}

/* Swiper navigation buttons customization */
.swiper-button-next,
.swiper-button-prev {
	color: var(--primary-color);
	top: 50%;
	transform: translateY(-50%);
	width: 44px !important;
	height: 44px !important;
	background-color: rgba(10, 10, 10, 0.5);
	border-radius: 50%;
	backdrop-filter: blur(5px);
	transition: background-color 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
	background-color: rgba(0, 240, 160, 0.2);
}

.swiper-button-next::after,
.swiper-button-prev::after {
	font-size: 1.25rem !important;
	font-weight: 900;
}

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

/* ==================== FAQ (ACCORDION) ==================== */
.faq__container {
	max-width: 800px;
	margin: 0 auto;
	display: grid;
	gap: 1rem;
}

.faq__item {
	background-color: var(--secondary-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1rem 1.5rem;
	transition: padding 0.3s;
}

.faq__item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	cursor: pointer;
}

.faq__item-title {
	font-size: 1.125rem;
	font-weight: 500;
}

.faq__item-icon {
	width: 20px;
	height: 20px;
	color: var(--primary-color);
	transition: transform 0.4s;
}

.faq__item-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq__item-description {
	font-size: var(--small-size);
	color: var(--text-color-light);
	line-height: 1.7;
}

/* Open/Active state for FAQ item */
.faq__item.faq-open {
	padding-bottom: 1.5rem;
}

.faq__item.faq-open .faq__item-icon {
	transform: rotate(180deg);
}

.faq__item.faq-open .faq__item-content {
	max-height: 200px; /* Adjust if your answers are longer */
	padding-top: 1rem;
}

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

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

.contact__content-description {
	color: var(--text-color-light);
	margin-bottom: 2rem;
}

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

.contact__list-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--text-color);
}

.contact__list-icon {
	width: 20px;
	height: 20px;
	color: var(--primary-color);
}

.contact__form {
	display: grid;
	gap: 1.5rem;
}

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

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

.contact__form-input {
	width: 100%;
	padding: 1rem;
	background-color: var(--secondary-color);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	color: var(--text-color);
	font-family: var(--font-body);
	font-size: var(--normal-size);
	outline: none;
	transition: border-color 0.3s;
}

.contact__form-input::placeholder {
	color: #555;
}

.contact__form-input:focus {
	border-color: var(--primary-color);
}

.contact__form-group--checkbox {
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.contact__form-checkbox {
	width: 1.25rem;
	height: 1.25rem;
}

.contact__form-checkbox-label {
	font-size: var(--small-size);
	color: var(--text-color-light);
}

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

.contact__form-message {
	font-size: var(--small-size);
	text-align: center;
	margin-top: 1rem;
}

.contact__form-button {
	width: 100%;
	justify-content: center;
}

/* ==================== MEDIA QUERIES (Contact) ==================== */
@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1.25fr;
	}
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--secondary-color);
	border-top: 1px solid var(--border-color);
	padding: 1rem 1.5rem;
	z-index: var(--z-modal);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	text-align: center;
	transition: bottom 0.5s ease-in-out;
}

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

.cookie-popup__text {
	font-size: var(--small-size);
	color: var(--text-color-light);
}

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

.cookie-popup__button {
	padding: 0.5rem 1.5rem; /* Make button smaller */
}

@media screen and (min-width: 768px) {
	.cookie-popup {
		flex-direction: row;
		text-align: left;
	}
}

/* ==================== GENERIC PAGES (Privacy, Terms, etc.) ==================== */
.pages {
	padding: 8rem 0 4rem;
}

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

.pages h1 {
	font-size: 1.5rem;
	color: var(--primary-color);
	margin-bottom: 2rem;
}

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

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

.pages ul {
	list-style-position: inside;
	margin-bottom: 1rem;
}

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

.pages li::marker {
	color: var(--primary-color);
}

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

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

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