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

/*=============== CSS VARIABLES ===============*/
:root {
	/* Colors */
	--bg-color: #0d1117;
	--bg-secondary-color: #161b22;
	--primary-color: #2f81f7;
	--primary-color-hover: #4c9aff;
	--text-color: #e6edf3;
	--text-color-light: #7d8590;
	--border-color: #30363d;

	/* Fonts */
	--body-font: 'Inter', sans-serif;
	--title-font: 'Poppins', sans-serif;

	--h1-font-size: 2.5rem;
	--h2-font-size: 1.75rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* z-index */
	--z-header: 100;
	--z-menu: 1000;
}

/*=============== BASE STYLES ===============*/
* {
	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(--bg-color);
	color: var(--text-color);
}

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

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

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

.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-header);
	transition: background-color 0.4s, box-shadow 0.4s;
	border-bottom: 1px solid transparent;
}

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text-color);
}

.header__logo-img {
	width: 28px;
	height: 28px;
}

.header__toggle,
.header__close {
	display: flex;
	cursor: pointer;
	color: var(--text-color);
}

/* Mobile Menu Styles */
@media screen and (max-width: 767px) {
	.header__menu {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		height: 100%;
		background-color: var(--bg-secondary-color);
		padding: 6rem 2rem 0;
		backdrop-filter: blur(10px);
		transition: right 0.4s ease-in-out;
	}
}

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

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

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

.header__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	font-size: 1.5rem;
}

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

/* Sticky Header */
.header--scroll {
	background-color: rgba(13, 17, 23, 0.8);
	backdrop-filter: blur(10px);
	border-bottom-color: var(--border-color);
}

/*=============== 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: 2.5rem;
}

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

.footer__logo-img {
	width: 28px;
	height: 28px;
}

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

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

.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;
}

.footer__link:hover {
	color: var(--primary-color);
	padding-left: 0.25rem;
}

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

.footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	color: var(--text-color-light);
}

.footer__contact-icon {
	flex-shrink: 0; /* Prevents icon from shrinking */
	margin-top: 3px;
}

.footer__copy {
	text-align: center;
	color: var(--text-color-light);
	font-size: var(--small-font-size);
	border-top: 1px solid var(--border-color);
	padding-top: 2rem;
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.header__toggle,
	.header__close {
		display: none;
	}
	.header__list {
		flex-direction: row;
		gap: 2rem;
	}
	.header__link {
		font-size: var(--normal-font-size);
	}
	.footer__group {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* For large devices */
@media screen and (min-width: 1150px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
}
/*=============== HERO ===============*/
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: 5rem;
	overflow: hidden; /* Hide canvas overflow */
}

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

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

.hero__data {
	text-align: center;
}

.hero__title {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}

.hero__description {
	color: var(--text-color-light);
	margin-bottom: 2.5rem;
	line-height: 1.6;
}

.hero__buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.button {
	display: inline-block;
	padding: 0.9rem 2rem;
	border-radius: 0.5rem;
	font-family: var(--title-font);
	font-weight: 600;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.button--primary {
	background-color: var(--primary-color);
	color: #fff;
}

.button--primary:hover {
	background-color: var(--primary-color-hover);
	transform: translateY(-3px);
	box-shadow: 0 10px 20px -10px var(--primary-color);
}

.button--ghost {
	border-color: var(--border-color);
	color: var(--text-color);
}

.button--ghost:hover {
	background-color: var(--border-color);
	color: #fff;
}

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

.hero__image {
	display: none; /* Hide placeholder on mobile by default */
}

/*=============== BREAKPOINTS (Hero Section) ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.hero__container {
		grid-template-columns: repeat(2, 1fr);
		align-items: center;
		text-align: left;
	}
	.hero__data {
		text-align: left;
	}
	.hero__buttons {
		justify-content: flex-start;
	}
	.hero__image {
		display: block;
		justify-self: center;
	}
	.hero__img {
		width: 350px;
		border-radius: 1rem;
		/* Simple animation for the image */
		animation: floatImage 4s ease-in-out infinite;
	}
}

/* Animation for placeholder */
@keyframes floatImage {
	0% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-20px);
	}
	100% {
		transform: translateY(0);
	}
}

/* For large devices */
@media screen and (min-width: 1150px) {
	.hero {
		min-height: 90vh;
	}
	.hero__title {
		font-size: 2rem;
	}
	.hero__img {
		width: 450px;
	}
}

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

.section__title {
	font-size: var(--h2-font-size);
	text-align: center;
	margin-bottom: 2.5rem;
}

/*=============== ABOUT ===============*/
.about {
	background-color: var(--bg-secondary-color);
}

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

.about__image {
	justify-self: center;
}

.about__img {
	width: 100%;
	height: auto;
	border-radius: 1rem;
}

.about__data {
	text-align: center;
}

.section__title {
	text-align: left; /* Override for this section */
	margin-bottom: 1.5rem;
}

.about__description {
	color: var(--text-color-light);
	margin-bottom: 2.5rem;
	line-height: 1.6;
	text-align: left;
}

.about__list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	text-align: left;
}

.about__item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.about__item-icon {
	font-size: 1.5rem;
	color: var(--primary-color);
	flex-shrink: 0; /* Prevent icon from shrinking */
	margin-top: 5px;
}

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

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

/*=============== BREAKPOINTS (About Section) ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.about__container {
		grid-template-columns: repeat(2, 1fr);
		align-items: center;
	}
	.about__img {
		width: 100%;
		height: auto;
	}
	.about__data {
		text-align: left;
	}
}

/* For large devices */
@media screen and (min-width: 1150px) {
	.section {
		padding: 7rem 0 2rem;
	}
	.about__container {
		gap: 5rem;
	}
}

/*=============== FEATURES ===============*/
.features {
	background-color: var(--bg-color); /* Back to the main background color */
}

.features__container {
	display: grid;
	gap: 1.5rem;
	padding-top: 1rem;
}

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

.features__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px -10px rgba(47, 129, 247, 0.2);
}

.features__icon-wrapper {
	display: inline-flex;
	padding: 0.75rem;
	border-radius: 50%;
	background-color: var(--bg-color);
	margin-bottom: 1.5rem;
}

.features__icon {
	width: 28px;
	height: 28px;
	color: var(--primary-color);
}

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

.features__description {
	color: var(--text-color-light);
	font-size: var(--small-font-size);
	line-height: 1.5;
}

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

/* For medium devices */
@media screen and (min-width: 768px) {
	.features__card {
		padding: 2.5rem 2rem;
	}
}

/* For large devices */
@media screen and (min-width: 1150px) {
	.features__container {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

/*=============== TECHNOLOGY ===============*/
.technology {
	background-color: var(--bg-secondary-color);
}

.technology__container {
	display: grid;
	gap: 2rem;
	position: relative;
	padding-top: 2rem;
}

/* Timeline line */
.technology__container::before {
	content: '';
	position: absolute;
	top: 3.5rem;
	left: 28px;
	width: 2px;
	height: calc(100% - 7rem);
	background: repeating-linear-gradient(
		to bottom,
		var(--primary-color),
		var(--primary-color) 5px,
		transparent 5px,
		transparent 10px
	);
}

.technology__step {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
}

.technology__number {
	font-family: var(--title-font);
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary-color);
	opacity: 0.5;
}

.technology__icon {
	width: 32px;
	height: 32px;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

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

.technology__description {
	color: var(--text-color-light);
	line-height: 1.6;
}

/*=============== BREAKPOINTS (Technology Section) ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.technology__container::before {
		left: 50%;
		transform: translateX(-50%);
	}

	.technology__step {
		width: 50%;
		padding-right: 3rem; /* Space from the center line */
	}

	.technology__step:nth-child(even) {
		margin-left: 50%;
		padding-left: 3rem; /* Space from the center line */
		padding-right: 0;
		text-align: left; /* Keep text align consistent */
	}
}

/*=============== BENEFITS (FAQ ACCORDION) ===============*/
.benefits {
	background-color: var(--bg-color);
}

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

.benefits__data {
	text-align: center;
}

.benefits__description {
	color: var(--text-color-light);
	max-width: 600px;
	margin: 0 auto;
}

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

.benefits__item {
	background-color: var(--bg-secondary-color);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	padding: 1rem;
	transition: all 0.3s;
}

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

.benefits__question {
	font-size: var(--normal-font-size);
	font-family: var(--body-font);
	font-weight: 500;
}

.benefits__icon {
	transition: transform 0.4s;
}

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

.benefits__answer {
	padding-top: 0;
	font-size: var(--small-font-size);
	color: var(--text-color-light);
	line-height: 1.6;
}

/* Accordion open state */
.benefits__item.accordion-open {
	padding-bottom: 1.5rem;
}

.benefits__item.accordion-open .benefits__icon {
	transform: rotate(180deg);
}

.benefits__item.accordion-open .benefits__answer {
	padding-top: 1rem;
}

/*=============== BREAKPOINTS (Benefits Section) ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.benefits__container {
		grid-template-columns: 1fr 1.2fr;
		align-items: flex-start;
		gap: 3rem;
	}
	.benefits__data {
		text-align: left;
	}
	.section__title {
		text-align: left;
	}
}

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

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

.contact__description {
	color: var(--text-color-light);
	line-height: 1.6;
}

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

.contact__form-group {
	position: relative;
}

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

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

.contact__form-label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	color: var(--text-color-light);
	pointer-events: none;
	transition: top 0.3s, font-size 0.3s, color 0.3s;
}

/* Input focus animations */
.contact__form-input:focus + .contact__form-label,
.contact__form-input:not(:placeholder-shown) + .contact__form-label {
	top: -0.75rem;
	left: 0.75rem;
	font-size: var(--small-font-size);
	color: var(--primary-color);
	background-color: var(--bg-secondary-color);
	padding: 0 0.25rem;
}

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

.contact__form-checkbox {
	margin-top: 3px;
	accent-color: var(--primary-color); /* Modern way to color checkboxes */
}

.contact__form-checkbox-label {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
	line-height: 1.5;
}
.contact__form-checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
}

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

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

.contact__success-icon {
	width: 48px;
	height: 48px;
	color: #28a745; /* Success Green */
	margin-bottom: 1rem;
}

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

.contact__success-text {
	color: var(--text-color-light);
}

/*=============== BREAKPOINTS (Contact Section) ===============*/
@media screen and (min-width: 768px) {
	.contact__container {
		grid-template-columns: repeat(2, 1fr);
		align-items: center;
	}
}

/*=============== COOKIE POP-UP ===============*/
.cookie {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--bg-secondary-color);
	border-top: 1px solid var(--border-color);
	box-shadow: 0 -5px 20px -10px rgba(0, 0, 0, 0.5);
	padding: 1rem 0;
	z-index: var(--z-menu);
	transition: bottom 0.5s ease-in-out;
}

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

.cookie__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

.cookie__text {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
	line-height: 1.5;
}

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

.cookie__button {
	padding: 0.6rem 1.5rem; /* Make the button a bit smaller */
}

/*=============== BREAKPOINTS (Cookie Pop-up) ===============*/
@media screen and (min-width: 768px) {
	.cookie__container {
		flex-direction: row;
		justify-content: space-between;
	}
	.cookie__text {
		text-align: left;
	}
}

/*=============== POLICY & TERMS PAGES ===============*/
.pages {
	padding: 7rem 0 4rem; /* Add more padding at the top to account for the fixed header */
}

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

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

.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: 1.5rem;
}

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

.pages li {
	margin-bottom: 0.75rem;
	line-height: 1.8;
}

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

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

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