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

/*=============== CSS VARIABLES ===============*/
:root {
	/* Colors */
	--header-height: 3.5rem;
	--primary-color: #6c56f8;
	--primary-color-light: #b3a9ff;
	--dark-color: #0d0c22;
	--dark-color-alt: #1a183e;
	--text-color: #ffffff;
	--body-bg-color: #0d0c22;

	/* Fonts */
	--body-font: 'Manrope', sans-serif;
	--title-font: 'Orbitron', sans-serif;

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

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

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

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

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

ul {
	list-style: none;
}

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

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--text-color);
	padding: 0.8rem 1.8rem;
	border-radius: 50px;
	font-weight: var(--font-medium);
	transition: background-color 0.3s ease, transform 0.3s ease;
	border: 2px solid var(--primary-color);
}

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

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

.header.scrolled {
	background-color: rgba(13, 12, 34, 0.8);
	backdrop-filter: blur(10px);
}

.header__container {
	padding-block: 10px;
	height: var(--header-height);
	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-weight: var(--font-bold);
	color: var(--text-color);
}

.header__logo span {
	transition: color 0.3s ease;
}

.header__logo:hover span {
	color: var(--primary-color-light);
}

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

.header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.header__list {
	display: flex;
	gap: 2.5rem;
}

.header__link {
	position: relative;
	font-weight: var(--font-medium);
	transition: color 0.3s ease;
}

.header__link::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-color);
	transition: width 0.3s ease;
}

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

.header__link:hover::after {
	width: 100%;
}

/*=============== FOOTER ===============*/
.footer {
	background-color: var(--dark-color-alt);
	padding: 4rem 0 2rem;
	margin-top: 5rem;
}

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

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

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

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

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

.footer__list--contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.8rem;
}

.footer__icon {
	color: var(--primary-color);
	flex-shrink: 0;
	margin-top: 2px;
}

.footer__link {
	transition: color 0.3s ease;
}

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

/*=============== MEDIA QUERIES ===============*/
/* For medium devices */
@media screen and (max-width: 768px) {
	.header__toggle {
		display: block;
	}

	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100vh;
		background-color: var(--dark-color);
		display: flex;
		justify-content: center;
		align-items: center;
		transition: right 0.4s ease;
	}

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

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

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

	.header__toggle.is-active i[data-lucide='menu'] {
		display: none;
	}

	.header__toggle:not(.is-active) i[data-lucide='x'] {
		display: none;
	}
}

/* For small devices */
@media screen and (max-width: 350px) {
	:root {
		--h1-font-size: 2rem;
	}

	.container {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

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

	.footer__list--contact li {
		justify-content: center;
	}
}

/*=============== HERO ===============*/
.hero {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
	position: relative;
	overflow: hidden;
}

.hero__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: 1.5rem; /* Adjusted for mobile */
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

.hero__title-dynamic {
	color: var(--primary-color);
	border-right: 3px solid var(--primary-color-light);
	animation: blink 0.75s step-end infinite;
	white-space: nowrap;
}

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

.hero__description {
	max-width: 600px;
	margin: 0 auto 2.5rem;
	line-height: 1.7;
	font-size: var(--normal-font-size);
}

.hero__button {
	padding: 1rem 2.5rem;
	font-size: 1.1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.button__icon {
	transition: transform 0.3s ease;
}

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

.hero__image-wrapper {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero__image {
	width: 100%;
	height: auto;
	/* max-width: 450px; */
	border-radius: 20px;
	animation: float 4s ease-in-out infinite;
}

@keyframes float {
	0% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-15px);
	}
	100% {
		transform: translateY(0px);
	}
}

.hero__gradient {
	position: absolute;
	width: 400px;
	height: 400px;
	background: radial-gradient(
		circle,
		rgba(108, 86, 248, 0.2) 0%,
		rgba(108, 86, 248, 0) 70%
	);
	top: -50px;
	right: -100px;
	z-index: -1;
}

/* For medium devices */
@media screen and (min-width: 768px) {
	.hero__container {
		grid-template-columns: 1.2fr 1fr;
		text-align: left;
	}

	.hero__content {
		text-align: left;
	}

	.hero__title {
		font-size: 2rem; /* Larger font for desktop */
	}

	.hero__description {
		margin: 0 0 2.5rem;
	}
}

/* For large devices */
@media screen and (min-width: 1024px) {
	.hero {
		padding-top: calc(var(--header-height) + 6rem);
		padding-bottom: 6rem;
	}

	.hero__title {
		font-size: 2.5rem;
	}

	.hero__image {
		width: 100%;
	}
}

/*=============== REUSABLE CSS CLASSES (Додайте це до секції) ===============*/
.section {
	padding: 5rem 0 2rem;
}

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

.section__title .highlight {
	color: var(--primary-color);
}

.section__title::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 50px;
	height: 3px;
	background-color: var(--primary-color);
}

/*=============== ABOUT ===============*/
.about__container {
	display: grid;
	gap: 3rem;
}

.about__content {
	text-align: center;
}

.about__description {
	line-height: 1.7;
	max-width: 700px;
	margin: 0 auto;
}

.about__cards {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

.about__card {
	background-color: var(--dark-color-alt);
	padding: 2rem 1.5rem;
	border-radius: 12px;
	text-align: center;
	border: 1px solid transparent;
	transition: transform 0.3s ease, border-color 0.3s ease;
	position: relative;
	overflow: hidden;
}

.about__card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 12px;
	border: 1px solid transparent;
	background: linear-gradient(
			145deg,
			var(--primary-color),
			var(--primary-color-light)
		)
		border-box;
	-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: destination-out;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.about__card:hover {
	transform: translateY(-8px);
}

.about__card:hover::before {
	opacity: 1;
}

.about__card-icon {
	margin-bottom: 1rem;
}

.about__card-icon i {
	width: 40px;
	height: 40px;
	color: var(--primary-color);
}

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

.about__card-description {
	font-size: var(--small-font-size);
	line-height: 1.6;
	color: var(--primary-color-light);
}

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

@media screen and (min-width: 768px) {
	.section__title {
		font-size: 2rem;
	}
}

/* For large devices */
@media screen and (min-width: 992px) {
	.section {
		padding: 7rem 0 3rem;
	}

	.about__container {
		grid-template-columns: 0.8fr 1.2fr;
		align-items: center;
		gap: 5rem;
	}

	.about__content {
		text-align: left;
	}

	.about__description {
		margin: 0;
	}

	.section__title {
		text-align: left;
	}

	.section__title::after {
		left: 0;
		transform: translateX(0);
	}

	.about__cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

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

.features__image-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
}

.features__image {
    width: 100%;
	max-width: 400px;
	border-radius: 12px;
}

.features__content .section__title {
	text-align: center;
	margin-bottom: 2rem;
}
.features__content .section__title::after {
	left: 50%;
	transform: translateX(-50%);
}

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

.features__item {
	background-color: var(--dark-color-alt);
	border-radius: 8px;
	border: 1px solid transparent;
	transition: border 0.3s ease;
}

.features__item--open {
	border-color: var(--primary-color);
}

.features__item-header {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
	cursor: pointer;
}

.features__item-icon {
	color: var(--primary-color);
}

.features__item-title {
	font-size: var(--normal-font-size);
	font-family: var(--body-font);
	font-weight: var(--font-medium);
	transition: color 0.3s ease;
}

.features__item-toggle .features__item-minus {
	display: none;
}

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

.features__item-content p {
	padding: 0 1.25rem 1.25rem;
	line-height: 1.6;
	color: var(--primary-color-light);
}

/* Accordion open state */
.features__item--open .features__item-title {
	color: var(--primary-color-light);
}

.features__item--open .features__item-minus {
	display: block;
}

.features__item--open .features__item-plus {
	display: none;
}

.features__item--open .features__item-content {
	max-height: 200px; /* Adjust if content is taller */
}

/* For large devices */
@media screen and (min-width: 992px) {
	.features__container {
		grid-template-columns: 1fr 1.2fr;
		align-items: center;
		gap: 5rem;
	}

	.features__content .section__title {
		text-align: left;
	}
	.features__content .section__title::after {
		left: 0;
		transform: translateX(0);
	}
}

/*=============== TECHNOLOGY ===============*/
.technology__container {
	position: relative;
}

.technology__grid {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	margin-top: 4rem;
}

.technology__core {
	position: relative;
	width: 150px;
	height: 150px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.technology__core-img {
	width: 80%;
	height: 80%;
	border-radius: 50%;
	object-fit: cover;
	z-index: 2;
}

.technology__core-ring {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 2px solid var(--primary-color);
	border-radius: 50%;
	animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
	0% {
		transform: scale(0.9);
		opacity: 1;
	}
	100% {
		transform: scale(1.5);
		opacity: 0;
	}
}

.technology__item {
	background-color: var(--dark-color-alt);
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	max-width: 400px;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.technology__item:hover {
	transform: translateY(-5px);
	border-color: var(--primary-color-light);
}

.technology__item-icon {
	flex-shrink: 0;
}

.technology__item-icon i {
	color: var(--primary-color);
	width: 32px;
	height: 32px;
}

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

.technology__item-description {
	font-size: var(--small-font-size);
	line-height: 1.5;
	color: var(--primary-color-light);
}

/* For large devices */
@media screen and (min-width: 992px) {
	.technology__grid {
		display: grid;
		grid-template-columns: 1fr 250px 1fr;
		grid-template-rows: repeat(2, 1fr);
		align-items: center;
		gap: 2rem 4rem;
	}

	.technology__core {
		grid-column: 2 / 3;
		grid-row: 1 / 3;
		width: 200px;
		height: 200px;
	}

	.technology__item:nth-of-type(2) {
		/* Item 1 */
		grid-column: 1 / 2;
		grid-row: 1 / 2;
		justify-self: end;
	}
	.technology__item:nth-of-type(3) {
		/* Item 2 */
		grid-column: 3 / 4;
		grid-row: 1 / 2;
		justify-self: start;
	}
	.technology__item:nth-of-type(4) {
		/* Item 3 */
		grid-column: 1 / 2;
		grid-row: 2 / 3;
		justify-self: end;
	}
	.technology__item:nth-of-type(5) {
		/* Item 4 */
		grid-column: 3 / 4;
		grid-row: 2 / 3;
		justify-self: start;
	}
}

/*=============== FAQ ===============*/
.faq__content {
	max-width: 700px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.faq__item {
	background-color: var(--dark-color-alt);
	border-radius: 8px;
	border-bottom: 2px solid transparent;
	transition: border-color 0.3s ease;
}

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

.faq__item-title {
	font-size: var(--normal-font-size);
	font-weight: var(--font-medium);
	transition: color 0.3s ease;
}

.faq__item-header:hover .faq__item-title {
	color: var(--primary-color-light);
}

.faq__item-toggle i {
	color: var(--primary-color);
	transition: transform 0.4s ease;
}

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

.faq__item-content p {
	padding: 0 1.25rem 1.25rem;
	line-height: 1.6;
	color: var(--primary-color-light);
}

/* Accordion open state */
.faq__item--open {
	border-bottom-color: var(--primary-color);
}

.faq__item--open .faq__item-title {
	color: var(--primary-color-light);
}

.faq__item--open .faq__item-toggle i {
	transform: rotate(45deg);
}

.faq__item--open .faq__item-content {
	max-height: 200px; /* Adjust if content is taller */
}

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

.contact__content .section__title,
.contact__content .contact__description {
	text-align: center;
}

.contact__description {
	line-height: 1.7;
	margin-bottom: 2rem;
}

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

.form__group {
	position: relative;
}

.form__icon {
	position: absolute;
	top: 50%;
	left: 1rem;
	transform: translateY(-50%);
	color: var(--primary-color-light);
	pointer-events: none;
}

.form__input {
	width: 100%;
	padding: 1rem 1rem 1rem 3.5rem;
	background-color: var(--dark-color-alt);
	border: 2px solid transparent;
	border-radius: 8px;
	color: var(--text-color);
	font-size: var(--normal-font-size);
	font-family: var(--body-font);
	outline: none;
	transition: border-color 0.3s ease;
}

.form__input::placeholder {
	color: var(--primary-color-light);
	opacity: 0.7;
}

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

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

.form__checkbox-input {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	background-color: var(--dark-color-alt);
	border: 2px solid var(--primary-color-light);
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	margin-top: 2px;
}

.form__checkbox-input:checked {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.form__checkbox-input:checked::before {
	content: '✔';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--dark-color);
	font-size: 12px;
}

.form__checkbox-label {
	font-size: var(--small-font-size);
	line-height: 1.5;
	color: var(--primary-color-light);
}

.form__checkbox-label a {
	color: var(--text-color);
	text-decoration: underline;
	transition: color 0.3s ease;
}

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

.contact__button {
	width: 100%;
	justify-content: center;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.contact__success-message {
	background-color: var(--dark-color-alt);
	padding: 2rem;
	border-radius: 8px;
	text-align: center;
	border: 2px solid var(--primary-color);
}

.contact__success-icon {
	width: 48px;
	height: 48px;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

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

.is-hidden {
	display: none;
}

/* For large devices */
@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: 5rem;
	}

	.contact__content .section__title,
	.contact__content .contact__description {
		text-align: left;
	}
}

/*=============== COOKIE POPUP ===============*/
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--dark-color-alt);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	padding: 1.5rem;
	z-index: var(--z-modal);
	transition: bottom 0.5s ease-in-out;
}

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

.cookie-popup__container {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	flex-direction: column;
}

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

.cookie-popup__link {
	color: var(--text-color);
	text-decoration: underline;
}

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

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

/*=============== POLICY PAGES STYLES ===============*/
.pages {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
}

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

.pages .container h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	color: var(--primary-color-light);
}

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

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

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

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

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

@media screen and (min-width: 768px) {
	.pages .container h1 {
		font-size: 2.5rem;
	}
	.pages .container h2 {
		font-size: 1.75rem;
	}
}
