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

/* ===== CSS VARIABLES ===== */
:root {
	/* Colors */
	--bg-color: #0a192f;
	--text-color: #ccd6f6;
	--text-color-light: #8892b0;
	--accent-color: #64ffda;
	--card-bg-color: #112240;
	--border-color: #233554;
	--header-height: 5rem;

	/* Fonts */
	--body-font: 'Inter', sans-serif;
	--heading-font: 'Roboto Mono', monospace;

	/* Font sizes */
	--big-font-size: 2rem;
	--h1-font-size: 1.5rem;
	--h2-font-size: 1.25rem;
	--normal-font-size: 0.938rem;
	--small-font-size: 0.813rem;
}

@media screen and (min-width: 968px) {
	:root {
		--big-font-size: 3rem;
		--h1-font-size: 2.25rem;
		--h2-font-size: 1.5rem;
		--normal-font-size: 1rem;
		--small-font-size: 0.875rem;
	}
}

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
	font-family: var(--heading-font);
	font-weight: 500;
	color: var(--text-color);
}

ul {
	list-style: none;
}

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

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

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

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

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

.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(--heading-font);
	font-weight: 500;
	transition: color 0.3s;
}

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

.logo__svg path {
	transition: stroke 0.3s;
}

.logo:hover .logo__svg path:first-child {
	stroke: var(--accent-color);
}

.header__toggle {
	font-size: 1.2rem;
	cursor: pointer;
	color: var(--accent-color);
	background: none;
	border: none;
	display: none; /* Hidden by default */
}

/* Navigation */
@media screen and (max-width: 767px) {
	.header__toggle {
		display: block; /* Show on mobile */
		z-index: 200;
	}

	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		height: 100vh;
		background-color: var(--card-bg-color);
		padding: 4rem 2rem 2rem;
		transition: right 0.4s ease;
		z-index: 101;
	}

	.header__nav.nav--show {
		right: 0;
	}

	.nav__list {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}
}

@media screen and (min-width: 768px) {
	.nav__list {
		display: flex;
		align-items: center;
		gap: 2rem;
	}
}

.nav__link {
	font-family: var(--heading-font);
	font-size: var(--small-font-size);
	transition: color 0.3s;
}

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

.nav__link--cta {
	border: 1px solid var(--accent-color);
	padding: 0.5rem 1rem;
	border-radius: 4px;
	color: var(--accent-color);
}

.nav__link--cta:hover {
	background-color: rgba(100, 255, 218, 0.1);
}

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

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

@media screen and (min-width: 768px) {
	.footer__container {
		grid-template-columns: repeat(4, 1fr);
	}
}

.footer__column--about {
	grid-column: 1 / -1; /* Full width on small screens */
}
@media screen and (min-width: 768px) {
	.footer__column--about {
		grid-column: auto;
	}
}

.footer__description {
	margin-top: 1rem;
	color: var(--text-color-light);
	max-width: 300px;
}

.footer__title {
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
	font-family: var(--body-font);
	font-weight: 500;
}

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

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

.footer__list--contact .lucide {
	color: var(--accent-color);
	width: 18px;
}

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

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

.footer__bottom {
	margin-top: 4rem;
	text-align: center;
	font-size: var(--small-font-size);
	color: var(--text-color-light);
}

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

.hero__container {
	max-width: 1000px;
}

.hero__title {
	font-size: var(--big-font-size);
	font-family: var(--heading-font);
	font-weight: 500;
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

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

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.hero__subtitle {
	font-size: var(--h2-font-size);
	color: var(--text-color-light);
	max-width: 1000px;
	margin-bottom: 3rem;
	line-height: 1.5;
}

.hero__button {
	display: inline-block;
	font-family: var(--heading-font);
	font-size: var(--normal-font-size);
	color: var(--accent-color);
	border: 1px solid var(--accent-color);
	padding: 1rem 2rem;
	border-radius: 4px;
	transition: background-color 0.3s, color 0.3s;
}

.hero__button:hover {
	background-color: rgba(100, 255, 218, 0.1);
}

/* ===== REUSABLE SECTION STYLES ===== */
.section__title {
	font-size: var(--h1-font-size);
	text-align: center;
	margin-bottom: 3rem;
	position: relative;
	padding-bottom: 0.5rem;
}

/* Underline effect for titles */
.section__title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background-color: var(--accent-color);
}

/* ===== HOW IT WORKS (FEATURES) SECTION ===== */
.features {
	padding: 6rem 0;
}

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

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

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

.features__card {
	background-color: var(--card-bg-color);
	padding: 2.5rem 2rem;
	border-radius: 6px;
	border: 1px solid var(--border-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.features__icon {
	color: var(--accent-color);
	margin-bottom: 1.5rem;
}

.features__icon .lucide {
	width: 48px;
	height: 48px;
}

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

.features__card-description {
	color: var(--text-color-light);
	font-size: var(--normal-font-size);
}

/* ===== KEY TECHNOLOGIES (TECH) SECTION ===== */
.tech {
	padding: 6rem 0;
}

.tech__container {
	max-width: 900px;
	margin: 0 auto;
}

.tech__tabs {
	display: flex;
	gap: 1rem;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 2rem;
	overflow-x: auto; /* For mobile */
	padding-bottom: 5px; /* space for scrollbar */
}

/* Hide scrollbar */
.tech__tabs::-webkit-scrollbar {
	display: none;
}

.tech__tab {
	padding: 0.75rem 0.5rem;
	cursor: pointer;
	background: none;
	border: none;
	color: var(--text-color-light);
	font-family: var(--heading-font);
	font-size: var(--normal-font-size);
	white-space: nowrap;
	position: relative;
	transition: color 0.3s;
}

.tech__tab::after {
	content: '';
	position: absolute;
	bottom: -1px; /* Sits on top of the container's border */
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--accent-color);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

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

.tech__tab--active {
	color: var(--accent-color);
}

.tech__tab--active::after {
	transform: scaleX(1);
}

.tech__pane {
	display: none; /* Hidden by default */
	animation: fadeIn 0.5s;
}

.tech__pane--active {
	display: grid;
	gap: 2rem;
	align-items: center;
}

@media screen and (min-width: 768px) {
	.tech__pane--active {
		grid-template-columns: 1fr 1fr;
	}
	.tech__pane-img {
		order: 1; /* Move image to the right */
	}
}

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

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

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

.tech__pane-list {
	list-style-type: none;
	padding-left: 1.5rem;
}

.tech__pane-list li {
	position: relative;
	margin-bottom: 0.75rem;
}

.tech__pane-list li::before {
	content: '▶';
	position: absolute;
	left: -1.5rem;
	top: 0;
	color: var(--accent-color);
	font-size: 0.8rem;
}

.tech__pane-img img {
	border-radius: 6px;
	border: 1px solid var(--border-color);
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ===== FIELDS SECTION ===== */
.fields {
	padding: 6rem 0;
	background-color: var(
		--card-bg-color
	); /* A slight change of bg for variety */
}

.fields__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.fields__card {
	background-color: var(--bg-color); /* Inverted colors for contrast */
	padding: 2.5rem 2rem;
	border-radius: 6px;
	border: 1px solid var(--border-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fields__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.fields__icon {
	color: var(--accent-color);
	margin-bottom: 1.5rem;
}

.fields__icon .lucide {
	width: 48px;
	height: 48px;
}

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

.fields__card-description {
	color: var(--text-color-light);
	font-size: var(--normal-font-size);
}

/* ===== CASES SECTION ===== */
.cases {
	padding: 6rem 0;
}

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

.cases__card {
	background-color: var(--card-bg-color);
	border-radius: 6px;
	border: 1px solid var(--border-color);
	overflow: hidden;
	display: grid;
	transition: box-shadow 0.3s;
}

.cases__card:hover {
	box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

@media screen and (min-width: 968px) {
	.cases__card {
		grid-template-columns: repeat(2, 1fr);
		align-items: center;
	}

	/* Alternating layout for desktop */
	.cases__card:nth-child(even) .cases__image {
		order: 2;
	}
}

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

@media screen and (min-width: 968px) {
	.cases__image img {
		max-height: none;
	}
}

.cases__content {
	padding: 2rem;
}

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

.cases__description {
	color: var(--text-color-light);
	margin-bottom: 1.5rem;
}

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

.cases__tag {
	background-color: rgba(100, 255, 218, 0.1);
	color: var(--accent-color);
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-family: var(--heading-font);
	font-size: var(--small-font-size);
}

/* ===== CONTACT SECTION ===== */
.contact {
	padding: 6rem 0;
}

.contact__container {
	display: flex;
	justify-content: center;
}

.contact__wrapper {
	width: 100%;
	max-width: 600px;
}

.contact__description {
	text-align: center;
	color: var(--text-color-light);
	margin-bottom: 3rem;
}

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

.form__group {
	display: flex;
	flex-direction: column;
}

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

.form__input {
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: var(--card-bg-color);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-color);
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	transition: border-color 0.3s;
}

.form__input:focus {
	outline: none;
	border-color: var(--accent-color);
}

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

.form__checkbox {
	margin-top: 0.25rem;
	accent-color: var(--accent-color);
}

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

.form__checkbox-label a {
	color: var(--accent-color);
	text-decoration: underline;
}

.contact__button {
	width: 100%;
	padding: 1rem;
	background-color: transparent;
	border: 1px solid var(--accent-color);
	color: var(--accent-color);
	font-family: var(--heading-font);
	font-size: var(--normal-font-size);
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.contact__button:hover {
	background-color: rgba(100, 255, 218, 0.1);
}

.form__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
	border: 1px solid var(--accent-color);
	border-radius: 4px;
	background-color: var(--card-bg-color);
}

.form__success-message--show {
	display: block; /* Shown via JS */
}

/* ===== COOKIE POP-UP ===== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--card-bg-color);
	border-top: 1px solid var(--border-color);
	padding: 1.5rem 0;
	z-index: 1000;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup--show {
	bottom: 0; /* Show the popup */
}

.cookie-popup__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	max-width: 1120px;
	margin: 0 1.5rem;
}

@media screen and (min-width: 768px) {
	.cookie-popup__content {
		flex-direction: row;
		justify-content: space-between;
		margin: 0 auto;
	}
}

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

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

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

.cookie-popup__button {
	background: transparent;
	border: 1px solid var(--accent-color);
	color: var(--accent-color);
	padding: 0.5rem 1.5rem;
	border-radius: 4px;
	font-family: var(--heading-font);
	cursor: pointer;
	transition: background-color 0.3s;
	white-space: nowrap;
}

.cookie-popup__button:hover {
	background-color: rgba(100, 255, 218, 0.1);
}

/* ===== STATIC PAGES (PRIVACY, TERMS, ETC.) ===== */
.pages {
	padding: calc(var(--header-height) + 4rem) 0 6rem;
}

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

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
}

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

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

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

.pages a {
	color: var(--accent-color);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s;
}

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

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