/* GLOBAL STYLES */
:root {
	--bg-color: #0d1117;
	--text-color: #c9d1d9;
	--accent-color: #39ff14;
	--card-color: #161b22;
	--border-color: #30363d;
	--font-main: 'Inter', sans-serif;
	--font-headings: 'Roboto Mono', monospace;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-main);
	background-color: var(--bg-color);
	color: var(--text-color);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

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

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

ul {
	list-style: none;
}

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

/* HEADER */
.header {
	padding: 20px 0;
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	background-color: rgba(13, 17, 23, 0.8);
	backdrop-filter: blur(10px);
	z-index: 100;
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-headings);
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--text-color);
}

.logo svg {
	transition: transform 0.3s ease;
}

.logo:hover svg {
	transform: rotate(15deg);
}

.header__nav-list {
	display: flex;
	align-items: center;
	gap: 30px;
}

.header__nav-link {
	font-size: 1rem;
	padding: 5px 0;
	position: relative;
}

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

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

.header__nav-link--cta {
	border: 1px solid var(--accent-color);
	padding: 8px 16px;
	border-radius: 5px;
	color: var(--accent-color);
}

.header__nav-link--cta:hover {
	background-color: rgba(57, 255, 20, 0.1);
	color: var(--accent-color);
}

.header__nav-link--cta::after {
	display: none;
}

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

/* FOOTER */
.footer {
	padding: 60px 0;
	background-color: var(--card-color);
	border-top: 1px solid var(--border-color);
}

.footer__container {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 2fr;
	gap: 40px;
}

.footer__column--logo {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer__copyright {
	font-size: 0.9rem;
	color: #8b949e;
}

.footer__title {
	font-family: var(--font-headings);
	font-size: 1.1rem;
	margin-bottom: 20px;
	color: #fff;
}

.footer__list li {
	margin-bottom: 10px;
}

.footer__list--contacts li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer__list--contacts .lucide {
	color: var(--accent-color);
	flex-shrink: 0;
}

.footer__link,
.footer__text {
	font-size: 0.95rem;
}

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

@media (max-width: 768px) {
	.header__nav {
		display: none; /* Will be toggled by JS */
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: var(--bg-color);
		border-bottom: 1px solid var(--border-color);
	}

	.header__nav.is-active {
		display: block;
	}

	.header__nav-list {
		flex-direction: column;
		padding: 20px;
		gap: 20px;
		align-items: flex-start;
	}

	.header__burger-btn {
		display: block;
	}

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

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

	.footer__column--logo {
		align-items: center;
	}
}

/* HERO SECTION */
.hero {
	min-height: 80vh;
	display: flex;
	align-items: center;
	padding: 80px 0;
}

.hero__container {
	text-align: center;
}

.hero__content {
	max-width: 800px;
	margin: 0 auto;
}

.hero__title {
	font-family: var(--font-headings);
	font-size: 2.5rem;
	line-height: 1.3;
	color: #fff;
	margin-bottom: 20px;
}

.hero__subtitle {
	font-size: 1.125rem;
	margin-bottom: 40px;
	color: var(--text-color);
}

.hero__console {
	background-color: var(--card-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 20px;
	margin: 0 auto 40px;
	font-family: var(--font-headings);
	color: var(--accent-color);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 60px; /* To prevent layout shift */
}

.hero__console-text::after {
	content: '_';
	animation: blink 1s step-end infinite;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

.hero__cta-btn {
	display: inline-block;
	background-color: var(--accent-color);
	color: #000;
	padding: 14px 32px;
	border-radius: 5px;
	font-weight: 500;
	font-size: 1rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__cta-btn:hover {
	color: #000;
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(57, 255, 20, 0.2);
}

/* Responsive for Hero */
@media (max-width: 768px) {
	.hero {
		min-height: 70vh;
		padding: 60px 0;
	}

	.hero__title {
		font-size: 2rem;
	}

	.hero__subtitle {
		font-size: 1rem;
	}
}

/* --- UTILITY & SHARED CLASSES --- */
.section-header {
	text-align: center;
	margin-bottom: 60px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.section-header__title {
	font-family: var(--font-headings);
	font-size: 2.25rem;
	margin-bottom: 15px;
	color: #fff;
}

.section-header__subtitle {
	font-size: 1.1rem;
	color: var(--text-color);
}

/* --- PLATFORMS SECTION --- */
.platforms {
	padding: 80px 0;
	background-color: var(
		--bg-color
	); /* Same as body, can be changed for contrast */
}

.platforms__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.platforms__card {
	background-color: var(--card-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 40px 30px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platforms__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
	border-color: var(--accent-color);
}

.platforms__card-icon {
	color: var(--accent-color);
	width: 48px;
	height: 48px;
	margin-bottom: 20px;
}

.platforms__card-title {
	font-family: var(--font-headings);
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: #fff;
}

.platforms__card-description {
	font-size: 1rem;
	line-height: 1.6;
}

/* Responsive for Section Header */
@media (max-width: 768px) {
	.section-header__title {
		font-size: 1.8rem;
	}
	.section-header__subtitle {
		font-size: 1rem;
	}
	.platforms {
		padding: 60px 0;
	}
}

/* --- INTEGRATIONS SECTION --- */
.integrations {
	padding: 80px 0;
	background-color: var(
		--card-color
	); /* A slightly different background for variety */
}

.integrations__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 40px;
	align-items: center;
	justify-content: center;
}

.integrations__item {
	text-align: center;
}

.integrations__item-logo {
	max-width: 80px; /* Adjust size as needed */
	height: 80px;
	object-fit: contain;
	margin: 0 auto 15px;
	filter: grayscale(100%) opacity(60%);
	transition: filter 0.3s ease;
}

.integrations__item:hover .integrations__item-logo {
	filter: grayscale(0%) opacity(100%);
}

.integrations__item-name {
	font-family: var(--font-main);
	font-weight: 500;
	font-size: 1rem;
	color: var(--text-color);
}

/* Responsive for Integrations */
@media (max-width: 768px) {
	.integrations {
		padding: 60px 0;
	}
	.integrations__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}
}

/* --- CASES SECTION --- */
.cases {
	padding: 80px 0;
	overflow-x: hidden; /* Prevent horizontal scrollbar from AOS */
}

.cases__wrapper {
	display: flex;
	flex-direction: column;
	gap: 60px;
}

.cases__item {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	background-color: var(--card-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 40px;
}

.cases__item-image img {
	border-radius: 8px;
	width: 100%;
}

.cases__item-tag {
	display: inline-block;
	background-color: rgba(57, 255, 20, 0.1);
	color: var(--accent-color);
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 20px;
}

.cases__item-title {
	font-family: var(--font-headings);
	font-size: 1.8rem;
	color: #fff;
	margin-bottom: 15px;
}

.cases__item-description {
	margin-bottom: 25px;
}

.cases__item-results {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cases__item-results li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cases__item-results .lucide {
	color: var(--accent-color);
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* Reverse layout for odd items */
.cases__item--reverse {
	direction: rtl; /* Changes the direction of grid items */
}
.cases__item--reverse > * {
	direction: ltr; /* Resets direction for the content inside */
}

/* Responsive for Cases */
@media (max-width: 992px) {
	.cases__item {
		grid-template-columns: 1fr;
		padding: 30px;
	}
	.cases__item--reverse {
		direction: ltr; /* Disable reverse on mobile */
	}
}

@media (max-width: 768px) {
	.cases {
		padding: 60px 0;
	}
	.cases__item-title {
		font-size: 1.5rem;
	}
}

/* --- PROCESS SECTION --- */
.process {
	padding: 80px 0;
	background-color: var(--card-color);
}

.process__timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* The vertical line */
.process__timeline::before {
	content: '';
	position: absolute;
	left: 24px;
	top: 20px;
	bottom: 20px;
	width: 2px;
	background-color: var(--border-color);
}

.process__item {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	position: relative;
	padding-left: 70px; /* Space for the line and number */
}

.process__item-number {
	position: absolute;
	left: 0;
	top: 0;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--bg-color);
	border: 2px solid var(--border-color);
	border-radius: 50%;
	font-family: var(--font-headings);
	font-size: 1.25rem;
	color: var(--accent-color);
	z-index: 1;
}

.process__item-content {
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	padding: 30px;
	border-radius: 8px;
	width: 100%;
	position: relative;
}

.process__item-icon {
	margin-bottom: 15px;
	color: var(--accent-color);
	width: 32px;
	height: 32px;
}

.process__item-title {
	font-family: var(--font-headings);
	font-size: 1.5rem;
	color: #fff;
	margin-bottom: 10px;
}

.process__item-description {
	font-size: 1rem;
	line-height: 1.6;
}

/* Responsive for Process */
@media (max-width: 768px) {
	.process {
		padding: 60px 0;
	}
	.process__timeline::before {
		left: 19px; /* Adjust line position for smaller screens */
	}
	.process__item {
		padding-left: 50px; /* Adjust padding */
		gap: 20px;
	}
	.process__item-number {
		width: 40px;
		height: 40px;
		font-size: 1rem;
	}
	.process__item-content {
		padding: 20px;
	}
	.process__item-title {
		font-size: 1.3rem;
	}
}

/* --- CONTACT SECTION --- */
.contact {
	padding: 80px 0;
}

.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 60px;
	margin-top: 60px;
}

.contact__info-title {
	font-family: var(--font-headings);
	font-size: 1.8rem;
	color: #fff;
	margin-bottom: 15px;
}

.contact__info-text {
	margin-bottom: 30px;
}

.contact__info-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 30px;
}

.contact__info-list li {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 1.1rem;
}

.contact__info-list .lucide {
	color: var(--accent-color);
}

.contact__info-hours {
	display: flex;
	align-items: center;
	gap: 15px;
	background-color: var(--card-color);
	border: 1px solid var(--border-color);
	padding: 15px;
	border-radius: 8px;
}

.contact__form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-group__label {
	margin-bottom: 8px;
	font-weight: 500;
}

.form-group__input {
	width: 100%;
	padding: 12px 15px;
	background-color: var(--card-color);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	color: var(--text-color);
	font-size: 1rem;
	font-family: var(--font-main);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group__input:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.2);
}

.form-group--checkbox {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
}

.form-group--checkbox a {
	color: var(--accent-color);
	text-decoration: underline;
}

.contact__form-btn {
	align-self: flex-start;
	background-color: var(--accent-color);
	color: #000;
	padding: 14px 32px;
	border-radius: 5px;
	font-weight: 500;
	font-size: 1rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: none;
	cursor: pointer;
}

.contact__form-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(57, 255, 20, 0.2);
}

.success-message {
	background-color: var(--card-color);
	border: 1px solid var(--accent-color);
	border-radius: 8px;
	padding: 40px;
	text-align: center;
}

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

.success-message .lucide {
	color: var(--accent-color);
	width: 48px;
	height: 48px;
	margin-bottom: 15px;
}

.success-message__title {
	font-family: var(--font-headings);
	font-size: 1.8rem;
	margin-bottom: 10px;
}

/* Responsive for Contact */
@media (max-width: 992px) {
	.contact__wrapper {
		grid-template-columns: 1fr;
	}
}

/* --- COOKIE POP-UP --- */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--card-color);
	border-top: 1px solid var(--border-color);
	padding: 20px;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
	z-index: 200;
	transition: bottom 0.5s ease-in-out;

	/* Flexbox for layout */
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

.cookie-popup.is-visible {
	bottom: 0; /* Make it visible */
}

.cookie-popup__text {
	margin: 0;
	text-align: center;
}

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

.cookie-popup__btn {
	background-color: var(--accent-color);
	color: #000;
	padding: 10px 25px;
	border-radius: 5px;
	font-weight: 500;
	border: none;
	cursor: pointer;
	flex-shrink: 0; /* Prevent button from shrinking */
	transition: background-color 0.3s;
}

.cookie-popup__btn:hover {
	background-color: #fff;
}

/* Responsive for Cookie Pop-up */
@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		padding: 20px;
	}
	.cookie-popup__text {
		margin-bottom: 15px;
	}
}

/* --- POLICY & STATIC PAGES --- */
.pages {
	padding: 80px 0;
}

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

.pages h1,
.pages h2 {
	font-family: var(--font-headings);
	color: #fff;
	margin-bottom: 20px;
}

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

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

.pages p {
	margin-bottom: 20px;
	line-height: 1.7;
}

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

.pages a:hover {
	text-decoration: none;
}

.pages ul,
.pages ol {
	margin: 20px 0;
	padding-left: 25px;
}

.pages li {
	margin-bottom: 10px;
}

.pages strong {
	color: #fff;
	font-weight: 600;
}
