/* ====================
   GLOBAL STYLES & VARIABLES
   ==================== */
:root {
	--primary-color: #4f46e5; /* Indigo */
	--secondary-color: #384462;
	--background-color: #0f172a; /* Slate 900 */
	--text-color: #e2e8f0; /* Slate 200 */
	--muted-text-color: #94a3b8; /* Slate 400 */

	--font-primary: 'Poppins', sans-serif;
	--font-secondary: 'Lato', sans-serif;

	--container-width: 1200px;
	--container-padding: 1.5rem;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-secondary);
	font-size: 16px;
	line-height: 1.7;
	color: var(--text-color);
	background-color: var(--background-color);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--text-color);
}

ul {
	list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-primary);
	font-weight: 700;
	line-height: 1.3;
}

/* ====================
   LOGO
   ==================== */
.logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-primary);
	font-weight: 600;
	font-size: 1.5rem;
	color: var(--text-color);
}

.logo__img {
	width: 32px;
	height: 32px;
}

/* ====================
   HEADER
   ==================== */
.header {
	padding: 1.5rem 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color: rgba(15, 23, 42, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--secondary-color);
}

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

.nav__list {
	display: flex;
	gap: 2rem;
}

.nav__link {
	font-size: 1rem;
	font-weight: 600;
	color: var(--muted-text-color);
	position: relative;
	padding: 0.5rem 0;
}

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

.nav__link:hover,
.nav__link:focus {
	color: var(--text-color);
}

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

.header__burger {
	display: none;
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
}

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

.footer__container {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 2fr;
	gap: 2rem;
	padding-bottom: 4rem;
}

.footer__column--about {
	padding-right: 2rem;
}

.footer__description {
	margin-top: 1rem;
	color: var(--muted-text-color);
}

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

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

.footer__link,
.footer__text {
	color: var(--muted-text-color);
}

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

.footer__list--contacts .footer__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.footer__icon {
	width: 18px;
	height: 18px;
	color: var(--primary-color);
	flex-shrink: 0;
}

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

/* ====================
   RESPONSIVE STYLES
   ==================== */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		height: 100vh;
		background-color: var(--background-color);
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
		transition: right 0.4s ease-in-out;
		padding-top: 6rem;
	}

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

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

	.nav__link {
		font-size: 1.2rem;
	}

	.header__burger {
		display: block;
		z-index: 1001; /* Above mobile menu */
	}

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

	.footer__column--about {
		padding-right: 0;
	}

	.logo,
	.footer__list--contacts .footer__item {
		justify-content: center;
	}
}

/* ====================
   BUTTON
   ==================== */
.button {
	display: inline-block;
	padding: 0.875rem 2rem;
	background-color: var(--primary-color);
	color: #fff;
	font-family: var(--font-primary);
	font-weight: 600;
	border-radius: 8px;
	text-align: center;
	border: 2px solid transparent;
	transition: all 0.3s ease;
}

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

/* ====================
   HERO SECTION
   ==================== */
.hero {
	padding-top: 12rem; /* header height + extra space */
	padding-bottom: 6rem;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
}

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

.hero__content {
	z-index: 10;
}

.hero__title {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
	color: #fff;
}

.hero__description {
	font-size: 1.125rem;
	color: var(--muted-text-color);
	margin-bottom: 2.5rem;
	max-width: 550px;
}

.hero__animation-wrapper {
	position: relative;
	height: 100%;
	min-height: 400px;
}

#hero-canvas {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
}

/* ====================
   RESPONSIVE STYLES (Hero)
   ==================== */
@media (max-width: 992px) {
	.hero__title {
		font-size: 1.5rem;
	}
}

@media (max-width: 768px) {
	.hero {
		padding-top: 8rem;
		padding-bottom: 4rem;
		text-align: center;
	}

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

	.hero__content {
		order: 2; /* Content below animation on mobile */
	}

	.hero__animation-wrapper {
		order: 1;
		min-height: 300px;
		width: 100%;
	}

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

/* ====================
   STAGES SECTION
   ==================== */
.stages {
	padding-top: 6rem;
	padding-bottom: 6rem;
	background-color: #0c1221; /* Slightly different dark bg */
	border-top: 1px solid var(--secondary-color);
	border-bottom: 1px solid var(--secondary-color);
}

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

.stages__title {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	color: #fff;
}

.stages__subtitle {
	font-size: 1.125rem;
	color: var(--muted-text-color);
}

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

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

.stages__card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 30px rgba(79, 70, 229, 0.1);
}

.stages__icon-wrapper {
	margin: 0 auto 1.5rem;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(79, 70, 229, 0.1);
	border-radius: 50%;
}

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

.stages__card-title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

.stages__card-text {
	color: var(--muted-text-color);
	font-size: 0.95rem;
}

/* ====================
   RESPONSIVE STYLES (Stages)
   ==================== */

@media (max-width: 992px) {
	.stages__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.stages__title {
		font-size: 2rem;
	}
	.stages__grid {
		grid-template-columns: 1fr;
	}
}

/* ====================
   TECH SECTION
   ==================== */
.tech {
	padding-top: 6rem;
	padding-bottom: 6rem;
}

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

.tech__title {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	color: #fff;
}

.tech__subtitle {
	font-size: 1.125rem;
	color: var(--muted-text-color);
}

.tech__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	align-items: center;
	justify-content: center;
	max-width: 900px;
	margin: 0 auto;
}

.tech__item {
	text-align: center;
	transition: transform 0.3s ease;
}

.tech__item:hover {
	transform: scale(1.1);
}

.tech__logo {
	width: 100px;
	height: 100px;
	margin: 0 auto 1rem;
	border-radius: 8px;
	object-fit: cover;
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

.tech__item:hover .tech__logo {
	opacity: 1;
}

.tech__name {
	color: var(--muted-text-color);
	font-weight: 600;
}

/* ====================
   RESPONSIVE STYLES (Tech)
   ==================== */
@media (max-width: 768px) {
	.tech__title {
		font-size: 2rem;
	}
	.tech__grid {
		grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
		gap: 1.5rem;
	}
}

/* ====================
   SOLUTIONS SECTION
   ==================== */
.solutions {
	padding-top: 6rem;
	padding-bottom: 6rem;
	background-color: #0c1221;
	border-top: 1px solid var(--secondary-color);
}

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

.solutions__title {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	color: #fff;
}

.solutions__subtitle {
	font-size: 1.125rem;
	color: var(--muted-text-color);
}

.solutions__accordion {
	max-width: 800px;
	margin: 0 auto;
	border: 1px solid var(--secondary-color);
	border-radius: 12px;
	overflow: hidden;
}

.accordion__item {
	border-bottom: 1px solid var(--secondary-color);
}

.accordion__item:last-child {
	border-bottom: none;
}

.accordion__header {
	width: 100%;
	padding: 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: none;
	border: none;
	color: var(--text-color);
	font-family: var(--font-primary);
	font-size: 1.25rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.accordion__header:hover {
	background-color: var(--secondary-color);
}

.accordion__icon {
	transition: transform 0.4s ease;
	flex-shrink: 0;
	margin-left: 1rem;
}

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

.accordion__text {
	padding: 0 1.5rem;
	color: var(--muted-text-color);
	line-height: 1.8;
}

/* Active State */
.accordion__item.is-active .accordion__content {
	max-height: 200px; /* Adjust if content is taller */
	padding-top: 0;
	padding-bottom: 1.5rem;
	transition: max-height 0.4s ease-in, padding 0.4s ease-in;
}

.accordion__item.is-active .accordion__icon {
	transform: rotate(180deg);
}

.accordion__item.is-active .accordion__header {
	color: var(--primary-color);
}

/* ====================
   RESPONSIVE STYLES (Solutions)
   ==================== */
@media (max-width: 768px) {
	.solutions__title {
		font-size: 2rem;
	}
	.accordion__header {
		font-size: 1.1rem;
	}
}

/* ====================
   ABOUT SECTION
   ==================== */
.about {
	padding-top: 6rem;
	padding-bottom: 6rem;
}

.about__container {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 4rem;
	align-items: center;
}

.about__image-wrapper {
	border-radius: 12px;
	overflow: hidden;
}

.about__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about__title {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
	color: #fff;
}

.about__description {
	font-size: 1.125rem;
	color: var(--muted-text-color);
	margin-bottom: 2.5rem;
}

.about__features {
	list-style: none;
	padding: 0;
	margin-bottom: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.about__feature-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-weight: 600;
}

.about__feature-icon {
	color: var(--primary-color);
	width: 24px;
	height: 24px;
}

/* ====================
   RESPONSIVE STYLES (About)
   ==================== */
@media (max-width: 992px) {
	.about__container {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}

@media (max-width: 768px) {
	.about__title {
		font-size: 2rem;
	}
}

/* ====================
   CONTACT SECTION
   ==================== */
.contact {
	padding-top: 6rem;
	padding-bottom: 6rem;
	background-color: #0c1221;
	border-top: 1px solid var(--secondary-color);
}

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

.contact__title {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
	color: #fff;
}

.contact__text {
	font-size: 1.125rem;
	color: var(--muted-text-color);
	max-width: 500px;
}

.contact__form-wrapper {
	background-color: var(--background-color);
	padding: 2.5rem;
	border-radius: 12px;
	border: 1px solid var(--secondary-color);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--muted-text-color);
}

.form-input {
	width: 100%;
	padding: 0.875rem 1rem;
	background-color: #0c1221;
	border: 1px solid var(--secondary-color);
	border-radius: 8px;
	color: var(--text-color);
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

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

.form-group--checkbox label {
	font-size: 0.9rem;
	color: var(--muted-text-color);
}

.form-group--checkbox input[type='checkbox'] {
	width: 18px;
	height: 18px;
}

.form-button {
	width: 100%;
}

.form-success {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	margin-bottom: 1.5rem;
	background-color: rgba(16, 185, 129, 0.1);
	border: 1px solid rgba(16, 185, 129, 0.5);
	border-radius: 8px;
	color: #10b981;
}

.form-success.is-hidden {
	display: none;
}

/* ====================
   RESPONSIVE STYLES (Contact)
   ==================== */
@media (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	.contact__info {
		text-align: center;
	}
	.contact__text {
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 768px) {
	.contact__title {
		font-size: 2rem;
	}
	.contact__form-wrapper {
		padding: 1.5rem;
	}
}

/* ====================
   COOKIE POPUP
   ==================== */
.cookie-popup {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	max-width: 500px;
	background-color: var(--background-color);
	padding: 1.5rem;
	border: 1px solid var(--secondary-color);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	transform: translateY(200%);
	transition: transform 0.5s ease-in-out;
}

.cookie-popup:not(.is-hidden) {
	transform: translateY(0);
}

.cookie-popup__text {
	font-size: 0.9rem;
	color: var(--muted-text-color);
}

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

.cookie-popup__button {
	flex-shrink: 0;
	padding: 0.5rem 1rem;
	background-color: var(--primary-color);
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
	background-color: #3e35b4;
}

@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
	}
}

/* ====================
   POLICY & GENERIC PAGES
   ==================== */
.pages {
	padding-top: 10rem;
	padding-bottom: 6rem;
}

.pages h1,
.pages h2 {
	color: #fff;
	font-family: var(--font-primary);
	margin-bottom: 1rem;
}

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

.pages p,
.pages li {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--muted-text-color);
	margin-bottom: 1.5rem;
}

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

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

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

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