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

/* ==================== CSS VARIABLES ==================== */
:root {
	/* Colors */
	--background-color: #f8f9fa;
	--text-color: #212529;
	--primary-color: #4f46e5;
	--primary-hover-color: #6366f1;
	--border-color: #e9ecef;
	--white-color: #ffffff;

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

	/* Font size */
	--normal-font-size: 1rem; /* 16px */
	--small-font-size: 0.875rem; /* 14px */
	--h1-font-size: 2.5rem;
	--h2-font-size: 2rem;
	--h3-font-size: 1.25rem;

	/* Other */
	--header-height: 5rem;
	--border-radius: 0.5rem;
	--transition-duration: 0.3s;
}

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
	font-family: var(--header-font);
	font-weight: 800;
}

ul {
	list-style: none;
}

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

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

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

/* ==================== HEADER & LOGO ==================== */
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	background-color: rgba(248, 249, 250, 0.8);
	backdrop-filter: blur(10px);
	-webkit-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(--header-font);
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--primary-color);
}

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

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

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

.header__nav-link--button {
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 0.5rem 1.25rem;
	border-radius: var(--border-radius);
	transition: background-color var(--transition-duration);
}

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

.header__toggle {
	display: none;
	font-size: 1.5rem;
	cursor: pointer;
	background: none;
	border: none;
	color: var(--text-color);
}

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

.footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem;
	padding-bottom: 3rem;
}

.footer__column--about {
	max-width: 320px;
}

.footer__description {
	margin-top: 1rem;
	font-size: var(--small-font-size);
	color: #6c757d;
}

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

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

.footer__link {
	font-size: var(--small-font-size);
	color: #6c757d;
	transition: color var(--transition-duration);
}

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

.footer__address {
	font-size: var(--small-font-size);
	color: #6c757d;
	font-style: normal;
	line-height: 1.5;
}

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

.footer__copy {
	font-size: var(--small-font-size);
	color: #6c757d;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media screen and (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		right: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--background-color);
		padding: 2rem;
		transition: right var(--transition-duration);
		overflow-y: auto;
	}

	.header__nav--show {
		right: 0;
	}

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

	.header__nav-link {
		font-size: var(--h3-font-size);
	}

	.header__toggle {
		display: block;
	}

	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--about {
		max-width: none;
		align-items: center;
		display: flex;
		flex-direction: column;
	}
	.footer__list {
		align-items: center;
	}
}

/* ==================== REUSABLE COMPONENTS ==================== */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 0.875rem 1.75rem;
	border-radius: var(--border-radius);
	font-weight: 500;
	font-family: var(--header-font);
	border: none;
	cursor: pointer;
	transition: background-color var(--transition-duration),
		transform var(--transition-duration);
}

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

.button__icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* ==================== HERO ==================== */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: var(--header-height);
	overflow: hidden;
}

.hero__container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
	gap: 3rem;
}

.hero__content {
	animation: fadeInDown 1s ease-out forwards;
}

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

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

.hero__subtitle {
	font-size: 1.125rem;
	margin-bottom: 2.5rem;
	color: #6c757d;
	max-width: 500px;
}

.hero__animation {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	height: 100%;
	min-height: 400px;
}

#hero-canvas {
	width: 100%;
	height: 100%;
	max-width: 500px;
	max-height: 500px;
	animation: fadeInUp 1s ease-out forwards;
}

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

/* Responsive Design for Hero */
@media screen and (max-width: 992px) {
	.hero__title {
		font-size: 1.75rem;
	}
}

@media screen and (max-width: 768px) {
	.hero {
		padding-top: calc(var(--header-height) + 2rem);
		padding-bottom: 4rem;
		min-height: auto;
		text-align: center;
	}

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

	.hero__animation {
		order: -1; /* Animation appears above the text on mobile */
		min-height: 300px;
	}

	.hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}
}

/* ==================== REUSABLE SECTION STYLES ==================== */
.section {
	padding-top: 5rem;
	padding-bottom: 5rem;
}

.section__title,
.section__subtitle {
	text-align: center;
}

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

.section__subtitle {
	font-size: 1.125rem;
	color: #6c757d;
	max-width: 600px;
	margin: 0 auto 3.5rem;
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
	background-color: var(--white-color);
}

.how-it-works__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.how-it-works__card {
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	padding: 2rem;
	text-align: center;
	transition: transform var(--transition-duration),
		box-shadow var(--transition-duration);
}

.how-it-works__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.how-it-works__icon-wrapper {
	display: inline-flex;
	padding: 1rem;
	background-color: #eef2ff; /* Light Indigo */
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

.how-it-works__icon-wrapper i {
	color: var(--primary-color);
	width: 2rem;
	height: 2rem;
}

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

.how-it-works__card-description {
	font-size: var(--normal-font-size);
	color: #6c757d;
	line-height: 1.7;
}

/* Responsive Design for How It Works */
@media screen and (max-width: 992px) {
	.how-it-works__grid {
		grid-template-columns: 1fr;
	}
}

/* ==================== KEY TECHNOLOGIES ==================== */
.tech {
	background-color: var(--background-color);
}

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

.tech__card {
	position: relative;
	border-radius: var(--border-radius);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	cursor: pointer;
}

.tech__card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-duration) ease-out;
}

.tech__card:hover .tech__card-img {
	transform: scale(1.05);
}

.tech__card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.1) 0%,
		rgba(0, 0, 0, 0.8) 100%
	);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	transition: background var(--transition-duration);
}

.tech__card:hover .tech__card-overlay {
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.3) 0%,
		rgba(0, 0, 0, 0.9) 100%
	);
}

.tech__card-content {
	color: var(--white-color);
}

.tech__card-content i {
	width: 1.75rem;
	height: 1.75rem;
	margin-bottom: 0.5rem;
}

.tech__card-title {
	font-size: 1.5rem;
}

.tech__card-description {
	color: #e9ecef;
	font-size: var(--small-font-size);
	line-height: 1.5;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity var(--transition-duration),
		transform var(--transition-duration);
	height: 0; /* Hide it completely initially */
}

.tech__card:hover .tech__card-description {
	opacity: 1;
	transform: translateY(0);
	height: auto; /* Let it take its natural height */
	margin-top: 1rem;
}

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

@media screen and (max-width: 576px) {
	.tech__grid {
		grid-template-columns: 1fr;
	}
	.tech__card-title {
		font-size: 1.25rem;
	}
}

/* ==================== FORMATS ==================== */
.formats {
	background-color: var(--white-color);
}

.formats__container {
	display: grid;
	grid-template-columns: 1fr 2.5fr;
	gap: 3rem;
	align-items: flex-start;
}

.formats__tabs {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.formats__tab {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.5rem;
	border-radius: var(--border-radius);
	cursor: pointer;
	font-size: var(--normal-font-size);
	font-weight: 500;
	font-family: var(--body-font);
	border: 1px solid var(--border-color);
	background-color: transparent;
	text-align: left;
	transition: background-color var(--transition-duration),
		color var(--transition-duration);
}

.formats__tab i {
	width: 1.5rem;
	height: 1.5rem;
	color: var(--primary-color);
	transition: color var(--transition-duration);
}

.formats__tab:hover {
	background-color: #eef2ff; /* Light Indigo */
}

.formats__tab--active {
	background-color: var(--primary-color);
	color: var(--white-color);
	border-color: var(--primary-color);
}

.formats__tab--active i {
	color: var(--white-color);
}

.formats__tab--active:hover {
	background-color: var(--primary-hover-color);
}

.formats__content-area {
	position: relative;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	padding: 2rem;
}

.formats__content {
	display: none;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: center;
}

.formats__content--active {
	display: grid;
	animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

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

.formats__content-text p {
	color: #6c757d;
	line-height: 1.7;
}

.formats__content-img img {
	border-radius: var(--border-radius);
}

/* Responsive Design for Formats Section */
@media screen and (max-width: 992px) {
	.formats__container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.formats__tabs {
		flex-direction: row;
		justify-content: center;
		flex-wrap: wrap;
	}
}

@media screen and (max-width: 768px) {
	.formats__content {
		grid-template-columns: 1fr;
	}

	.formats__content-img {
		order: -1;
		margin-bottom: 1.5rem;
	}
}

@media screen and (max-width: 576px) {
	.formats__tabs {
		flex-direction: column;
		align-items: stretch;
	}
}

/* ==================== VISION ==================== */
.vision {
	position: relative;
	height: 60vh;
	background-image: url('../img/placeholder.png');

	/* Parallax Effect */
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.vision__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(
		79,
		70,
		229,
		0.7
	); /* Primary color with transparency */
	display: flex;
	justify-content: center;
	align-items: center;
}

.vision__content {
	color: var(--white-color);
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

.vision__title {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: 1.5rem;
}

.vision__text {
	font-size: 1.125rem;
	line-height: 1.7;
	opacity: 0.9;
}

/* Responsive Design for Vision Section */
@media screen and (max-width: 992px) {
	.vision__title {
		font-size: 1rem;
	}
}

/* Disable parallax on mobile for better performance */
@media screen and (max-width: 768px) {
	.vision {
		background-attachment: scroll;
		height: auto;
		padding-top: 5rem;
		padding-bottom: 5rem;
	}
}

/* ==================== CONTACT ==================== */
.contact {
	background-color: var(--white-color);
}

.contact__container {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 4rem;
	align-items: flex-start;
}

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

.contact__info-description {
	color: #6c757d;
	margin-bottom: 2rem;
}

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

.contact__info-list li {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.contact__info-list i {
	color: var(--primary-color);
}

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

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

.form__label {
	margin-bottom: 0.5rem;
	font-weight: 500;
	font-size: var(--small-font-size);
}

.form__input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	font-size: var(--normal-font-size);
	font-family: var(--body-font);
	transition: border-color var(--transition-duration),
		box-shadow var(--transition-duration);
}

.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 {
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
}

.form__checkbox {
	width: 1.25rem;
	height: 1.25rem;
}

.form__checkbox-label {
	font-size: var(--small-font-size);
	color: #6c757d;
}

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

.contact__button {
	width: 100%;
	position: relative;
	min-height: 50px; /* To prevent size change on loader show */
}

/* Loader animation */
.button__loader {
	display: none;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: var(--white-color);
	width: 24px;
	height: 24px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.contact__button--loading .button__text {
	display: none;
}

.contact__button--loading .button__loader {
	display: block;
}

.form__message {
	text-align: center;
	font-size: var(--small-font-size);
	height: 1rem; /* Reserve space */
}
.form__message--error {
	color: #dc3545;
}

.contact__success-message {
	display: none;
	text-align: center;
	padding: 2rem;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
}

.contact__success-message i {
	width: 3rem;
	height: 3rem;
	color: #198754; /* Success Green */
	margin-bottom: 1rem;
}

/* Responsive Design for Contact Section */
@media screen and (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}

/* ==================== COOKIE POP-UP ==================== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 50%;
	transform: translateX(-50%);
	max-width: 900px;
	width: calc(100% - 2rem);
	background-color: var(--white-color);
	padding: 1.5rem 2rem;
	border-radius: var(--border-radius);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.cookie-popup--show {
	bottom: 1rem;
}

.cookie-popup__text {
	font-size: var(--small-font-size);
	color: #6c757d;
}

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

.cookie-popup__button {
	padding: 0.6rem 1.2rem;
	flex-shrink: 0; /* Prevent button from shrinking */
}

/* Responsive Design for Cookie Pop-up */
@media screen and (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
		gap: 1.5rem;
	}
}

/* ==================== POLICY & TEXT PAGES ==================== */
.pages {
	background-color: var(--white-color);
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 5rem;
}

.pages .container {
	max-width: 800px;
}

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

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

.pages p {
	margin-bottom: 1.5rem;
	line-height: 1.8;
	color: #495057;
}

.pages ul {
	list-style-type: disc;
	margin-left: 1.5rem;
	margin-bottom: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

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

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

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