/*=============== 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: #0d0c1d;
	--card-color: #1a192d;
	--primary-color: #9a4aff;
	--primary-color-hover: #8934ff;
	--text-color: #efefef;
	--secondary-text-color: #a0a0b4;
	--border-color: #5a5a6a;

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

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

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

/*=============== 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);
	line-height: 1.6;
}

h1,
h2,
h3 {
	font-family: var(--title-font);
	font-weight: 700;
	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: 0 auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--text-color);
	padding: 0.75rem 1.5rem;
	border-radius: var(--border-radius);
	font-weight: 500;
	transition: var(--transition);
	border: 2px solid var(--primary-color);
}

.button:hover {
	background-color: var(--primary-color-hover);
	border-color: var(--primary-color-hover);
}

/*=============== HEADER ===============*/
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: rgba(13, 12, 29, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 100;
	border-bottom: 1px solid rgba(90, 90, 106, 0.2);
	height: var(--header-height);
}

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

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

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

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

.header__nav-link {
	position: relative;
	transition: var(--transition);
	color: var(--secondary-text-color);
}

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

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

.header__nav-link:hover::after {
	width: 100%;
}

.header__burger-btn {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 110;
}

.header__burger-btn span {
	display: block;
	width: 25px;
	height: 2px;
	background-color: var(--text-color);
	margin: 5px 0;
	transition: var(--transition);
}

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

.footer__container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

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

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

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

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

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

.footer__link {
	color: var(--secondary-text-color);
	transition: var(--transition);
}

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

.footer__list--contacts li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--secondary-text-color);
}

.footer__list--contacts .lucide {
	color: var(--primary-color);
	width: 20px;
	height: 20px;
}

/*=============== MEDIA QUERIES ===============*/
@media screen and (max-width: 992px) {
	.container {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

	.header__nav.is-active {
		right: 0;
	}

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

	.header__cta-button {
		display: none;
	}

	.header__burger-btn {
		display: block;
	}

	.header__burger-btn.is-active span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}
	.header__burger-btn.is-active span:nth-child(2) {
		opacity: 0;
	}
	.header__burger-btn.is-active span:nth-child(3) {
		transform: rotate(-45deg) translate(5px, -5px);
	}
}

@media screen and (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__logo,
	.footer__list--contacts li {
		justify-content: center;
	}
}

/*=============== HERO SECTION ===============*/
.hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding-top: var(--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__content {
	max-width: 750px;
	margin: 0 auto;
}

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

.hero__subtitle {
	font-size: 1.125rem;
	color: var(--secondary-text-color);
	margin-bottom: 2.5rem;
	line-height: 1.7;
}

.hero__button {
	padding: 1rem 2.5rem;
	font-size: 1.1rem;
	font-weight: 500;
}

/*=============== MEDIA QUERIES (Hero) ===============*/
@media screen and (max-width: 768px) {
	.hero__title {
		font-size: 2.5rem;
	}
	.hero__subtitle {
		font-size: 1rem;
	}
}

@media screen and (max-width: 480px) {
	.hero {
		min-height: 500px;
	}
	.hero__title {
		font-size: 2rem;
	}
}

/*=============== REUSABLE SECTION STYLES ===============*/
.section {
	padding: 6rem 0 2rem;
	overflow: hidden; /* For animations */
}

.section__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 4rem;
}

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

.section__subtitle {
	color: var(--secondary-text-color);
	line-height: 1.7;
}

/*=============== TECH SECTION ===============*/
.tech__container {
	padding-top: 2rem;
}

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

.tech__card {
	background-color: var(--card-color);
	padding: 2.5rem 2rem;
	border-radius: var(--border-radius);
	border: 1px solid rgba(90, 90, 106, 0.2);
	text-align: center;
	transition: var(--transition);
}

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

.tech__card-icon {
	width: 60px;
	height: 60px;
	background-color: rgba(154, 74, 255, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
}

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

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

.tech__card-description {
	color: var(--secondary-text-color);
	font-size: var(--small-font-size);
}

/*=============== MEDIA QUERIES (Tech) ===============*/
@media screen and (max-width: 992px) {
	.tech__grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

@media screen and (max-width: 768px) {
	.section {
		padding: 4rem 0 1rem;
	}
	.section__title {
		font-size: 2rem;
	}
}

/*=============== FEATURES SECTION ===============*/
.features__tabs {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 3rem;
}

.features__tab-button {
	background-color: transparent;
	border: 1px solid var(--border-color);
	color: var(--secondary-text-color);
	padding: 0.75rem 1.5rem;
	border-radius: var(--border-radius);
	cursor: pointer;
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	font-weight: 500;
	transition: var(--transition);
}

.features__tab-button:hover {
	background-color: var(--card-color);
	color: var(--text-color);
}

.features__tab-button--active {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	color: var(--text-color);
}

.features__tab-button--active:hover {
	background-color: var(--primary-color-hover);
	border-color: var(--primary-color-hover);
}

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

.features__content-pane--active {
	display: block;
}

.features__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

.features__card {
	background-color: var(--card-color);
	padding: 2rem;
	border-radius: var(--border-radius);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	border: 1px solid transparent;
	transition: var(--transition);
}

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

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

.features__card-title {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}

.features__card-description {
	color: var(--secondary-text-color);
	font-size: var(--small-font-size);
}

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

/*=============== MEDIA QUERIES (Features) ===============*/
@media screen and (max-width: 768px) {
	.features__grid {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 480px) {
	.features__tabs {
		flex-direction: column;
	}
}

/*=============== CASES SECTION ===============*/
.cases__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	margin-top: 4rem;
}

.cases__item {
	background-color: var(--card-color);
	border-radius: var(--border-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid transparent;
	transition: var(--transition);
}

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

.cases__image-wrapper {
	height: 250px;
	overflow: hidden;
}

.cases__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.cases__item:hover .cases__image {
	transform: scale(1.05);
}

.cases__content {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.cases__tag {
	display: inline-block;
	background-color: rgba(154, 74, 255, 0.1);
	color: var(--primary-color);
	padding: 0.25rem 0.75rem;
	border-radius: 1rem;
	font-size: 0.8rem;
	font-weight: 500;
	margin-bottom: 1rem;
	align-self: flex-start;
}

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

.cases__description {
	color: var(--secondary-text-color);
	font-size: var(--small-font-size);
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.cases__link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-color);
	font-weight: 500;
	transition: var(--transition);
}

.cases__link .lucide {
	transition: var(--transition);
	width: 18px;
}

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

.cases__link:hover .lucide {
	transform: translateX(5px);
}

/*=============== MEDIA QUERIES (Cases) ===============*/
@media screen and (max-width: 992px) {
	.cases__grid {
		grid-template-columns: 1fr;
	}
}

/*=============== BLOG SECTION ===============*/
.blog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 4rem;
}

.blog__post {
	background-color: var(--card-color);
	border-radius: var(--border-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(90, 90, 106, 0.2);
	transition: var(--transition);
}

.blog__post:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.blog__image-wrapper {
	height: 220px;
	overflow: hidden;
}

.blog__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.blog__post:hover .blog__image {
	transform: scale(1.05);
}

.blog__content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog__tag {
	display: inline-block;
	background-color: rgba(154, 74, 255, 0.1);
	color: var(--primary-color);
	padding: 0.25rem 0.75rem;
	border-radius: 1rem;
	font-size: 0.8rem;
	font-weight: 500;
	margin-bottom: 1rem;
	align-self: flex-start;
}

.blog__title {
	font-size: 1.125rem;
	margin-bottom: 0.75rem;
}

.blog__title a {
	transition: color 0.3s;
}

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

.blog__description {
	color: var(--secondary-text-color);
	font-size: var(--small-font-size);
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.blog__link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-color);
	font-weight: 500;
	transition: var(--transition);
}

.blog__link .lucide {
	transition: var(--transition);
	width: 18px;
}

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

.blog__link:hover .lucide {
	transform: translateX(5px);
}

/*=============== MEDIA QUERIES (Blog) ===============*/
@media screen and (max-width: 992px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/*=============== CONTACT SECTION ===============*/
.contact__container {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 4rem;
	align-items: center;
}

.contact__info {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

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

.contact__info-item .lucide {
	color: var(--primary-color);
	width: 32px;
	height: 32px;
}

.contact__info-item h4 {
	font-size: var(--normal-font-size);
	margin-bottom: 0.25rem;
}

.contact__info-item span {
	color: var(--secondary-text-color);
}

.contact__note {
	margin-top: 2rem;
	font-size: var(--small-font-size);
	color: var(--secondary-text-color);
	background-color: var(--card-color);
	padding: 0.75rem;
	border-radius: var(--border-radius);
	text-align: center;
}

.contact__form-wrapper {
	background-color: var(--card-color);
	padding: 3rem;
	border-radius: var(--border-radius);
}

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

.form__group {
	position: relative;
}

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

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

.form__label {
	position: absolute;
	left: 1rem;
	top: 1rem;
	color: var(--secondary-text-color);
	background-color: var(--card-color); /* Match form wrapper background */
	padding: 0 0.25rem;
	transition: var(--transition);
	pointer-events: none;
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
	top: -0.75rem;
	left: 0.75rem;
	font-size: var(--small-font-size);
	color: var(--primary-color);
	background-color: var(
		--bg-color
	); /* Change background to match input focus */
}
/* Adjust label background for filled inputs */
.form__input:not(:placeholder-shown) + .form__label {
	background-color: var(--card-color);
}

.form__group--checkbox {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.form__checkbox {
	width: 1.25em;
	height: 1.25em;
	accent-color: var(--primary-color);
}

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

.form__button {
	width: 100%;
	padding: 1rem;
	font-size: 1.1rem;
}

.form__message {
	text-align: center;
	font-size: var(--small-font-size);
}

.form__message.success {
	color: #4ade80; /* Green */
}

.form__message.error {
	color: #f87171; /* Red */
}

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

.cookie.is-active {
	bottom: 1.5rem;
}

.cookie__text {
	font-size: var(--small-font-size);
	color: var(--secondary-text-color);
}

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

.cookie__button {
	white-space: nowrap;
	padding: 0.5rem 1rem;
}

/*=============== MEDIA QUERIES (Contact, Cookie) ===============*/
@media screen and (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
	}
	.contact__content {
		text-align: center;
	}
	.contact__info {
		justify-content: center;
		flex-direction: row;
	}
}

@media screen and (max-width: 576px) {
	.contact__form-wrapper {
		padding: 2rem 1.5rem;
	}
	.contact__info {
		flex-direction: column;
		align-items: center;
	}
	.cookie {
		flex-direction: column;
		text-align: center;
	}
}

/*=============== GENERIC PAGES (Privacy, Terms, etc.) ===============*/
.pages {
	padding: calc(var(--header-height) + 4rem) 0 4rem; /* Add padding to account for fixed header */
}

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

.pages h1,
.pages h2 {
	font-family: var(--title-font);
	margin-bottom: 1.5rem;
}

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

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

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

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

.pages li {
	color: var(--secondary-text-color);
	margin-bottom: 0.75rem;
}

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

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

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