/* === GLOBAL STYLES === */
:root {
	--color-bg: #0d1b2a;
	--color-surface: #1b263b;
	--color-primary: #36a2eb;
	--color-text-primary: #e0e1dd;
	--color-text-secondary: #778da9;
	--font-body: 'Inter', sans-serif;
	--font-heading: 'Plus Jakarta Sans', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--color-text-primary);
	font-weight: 700;
}

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

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

ul {
	list-style: none;
}

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

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

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 24px;
	color: var(--color-text-primary);
}

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

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

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

.header__nav {
	display: none; /* Hidden on mobile */
}

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

/* === MOBILE NAVIGATION === */
.mobile-nav {
	position: fixed;
	top: 0;
	right: -100%;
	width: 80%;
	max-width: 300px;
	height: 100vh;
	background-color: var(--color-surface);
	z-index: 1010;
	transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	padding: 60px 20px 20px;
	display: flex;
	flex-direction: column;
}

.mobile-nav.is-open {
	right: 0;
}

.mobile-nav__close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	color: var(--color-text-primary);
	cursor: pointer;
}

.mobile-nav__list {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.mobile-nav__link {
	font-size: 18px;
	font-weight: 500;
	color: var(--color-text-primary);
}

.mobile-nav__link--button {
	display: block;
	text-align: center;
	background-color: var(--color-primary);
	color: var(--color-bg);
	padding: 12px;
	border-radius: 8px;
	margin-top: 20px;
}

/* === FOOTER === */
.footer {
	background-color: var(--color-surface);
	padding: 60px 0 0;
	border-top: 1px solid rgba(120, 141, 169, 0.2);
}

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

.footer__column--brand .logo {
	margin-bottom: 15px;
}

.footer__tagline {
	color: var(--color-text-secondary);
	font-size: 14px;
}

.footer__title {
	font-size: 18px;
	margin-bottom: 20px;
	font-weight: 700;
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__link {
	color: var(--color-text-secondary);
	font-size: 14px;
}

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

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

.footer__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--color-text-secondary);
}

.footer__address span {
	color: var(--color-text-secondary);
	font-size: 14px;
	font-style: normal;
}

.footer__bottom {
	border-top: 1px solid rgba(120, 141, 169, 0.2);
	margin-top: 40px;
	padding: 20px 0;
	text-align: center;
	font-size: 13px;
	color: var(--color-text-secondary);
}

/* === MEDIA QUERIES (Desktop) === */
@media (min-width: 768px) {
	.header__burger-btn {
		display: none;
	}

	.header__nav {
		display: block;
	}

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

	.header__nav-link {
		font-size: 16px;
		color: var(--color-text-secondary);
		font-weight: 500;
		position: relative;
		padding: 5px 0;
	}

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

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

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

	.header__nav-link--button {
		background-color: var(--color-primary);
		color: var(--color-bg);
		padding: 10px 20px;
		border-radius: 8px;
		transition: background-color 0.3s ease, color 0.3s ease;
	}

	.header__nav-link--button:hover {
		background-color: var(--color-text-primary);
		color: var(--color-bg);
	}

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

	.footer__container {
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 50px;
	}
}

/* === HERO SECTION === */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding-top: 100px; /* Header offset */
	padding-bottom: 60px;
	overflow: hidden;
	text-align: center;
}

.hero__container {
	position: relative;
	z-index: 2;
}

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

/* Animation styles */
.hero__title,
.hero__description,
.hero__cta-button {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero__title.is-visible {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.2s;
}

.hero__description.is-visible {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.4s;
}

.hero__cta-button.is-visible {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.6s;
}

.hero__title {
	font-size: 36px;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 20px;
	background: linear-gradient(90deg, #ffffff, #e0e1dd);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero__description {
	font-size: 18px;
	color: var(--color-text-secondary);
	margin-bottom: 30px;
}

.hero__cta-button {
	display: inline-block;
	background-color: var(--color-primary);
	color: var(--color-bg);
	padding: 15px 35px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	font-family: var(--font-heading);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 4px 15px rgba(54, 162, 235, 0.2);
}

.hero__cta-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(54, 162, 235, 0.3);
	color: var(--color-bg);
}

.hero__bg-shape {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 800px;
	height: 800px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(27, 38, 59, 0.7) 0%,
		rgba(13, 27, 42, 0) 70%
	);
	transform: translate(-50%, -50%);
	z-index: 1;
}

/* === MEDIA QUERIES for Hero === */
@media (min-width: 768px) {
	.hero {
		text-align: left;
	}

	.hero__content {
		margin: 0;
	}

	.hero__title {
		font-size: 56px;
	}

	.hero__description {
		font-size: 20px;
	}
}

/* === FEATURES SECTION === */
.features {
	padding: 80px 0;
	background-color: var(--color-surface);
}

.features__header {
	text-align: center;
	max-width: 750px;
	margin: 0 auto 60px;
}

.features__title {
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 15px;
}

.features__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

.features__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.features__card {
	background-color: var(--color-bg);
	padding: 35px 30px;
	border-radius: 16px;
	border: 1px solid rgba(120, 141, 169, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;

	/* Animation styles */
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.features__card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

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

.features__card-icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-primary);
	border-radius: 12px;
	margin-bottom: 25px;
}

.features__card-icon i {
	width: 28px;
	height: 28px;
	color: var(--color-bg);
}

.features__card-title {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 10px;
}

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

/* Staggered animation delay */
.features__card:nth-child(2).is-visible {
	transition-delay: 0.1s;
}
.features__card:nth-child(3).is-visible {
	transition-delay: 0.2s;
}
.features__card:nth-child(4).is-visible {
	transition-delay: 0.3s;
}

/* === MEDIA QUERIES for Features === */
@media (min-width: 768px) {
	.features {
		padding: 100px 0;
	}

	.features__title {
		font-size: 40px;
	}

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

@media (min-width: 1024px) {
	.features__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* === TECH SECTION === */
.tech {
	padding: 80px 0;
	overflow-x: hidden; /* Prevent horizontal scrollbar during animation */
}

.tech__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 50px;
	align-items: center;
}

.tech__title {
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 20px;
}

.tech__description {
	font-size: 18px;
	color: var(--color-text-secondary);
	margin-bottom: 30px;
}

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

.tech__list-item {
	display: flex;
	align-items: center;
	gap: 15px;
}

.tech__list-icon {
	flex-shrink: 0;
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: var(--color-surface);
}

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

.tech__visual {
	position: relative;
}

.tech__image {
	border-radius: 16px;
	border: 1px solid rgba(120, 141, 169, 0.2);
}

/* Animation styles */
.tech__content,
.tech__visual {
	opacity: 0;
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.tech__content {
	transform: translateX(-30px);
}

.tech__visual {
	transform: translateX(30px);
}

.tech__content.is-visible,
.tech__visual.is-visible {
	opacity: 1;
	transform: translateX(0);
}

/* === MEDIA QUERIES for Tech === */
@media (min-width: 768px) {
	.tech {
		padding: 100px 0;
	}

	.tech__container {
		grid-template-columns: repeat(2, 1fr);
		gap: 60px;
	}

	.tech__title {
		font-size: 40px;
	}
}

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

.process__header {
	text-align: center;
	max-width: 750px;
	margin: 0 auto 60px;
}

.process__title {
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 15px;
}

.process__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

.process__timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	padding: 20px 0;
}

.process__timeline::before {
	content: '';
	position: absolute;
	top: 0;
	left: 15px;
	height: 100%;
	width: 2px;
	background-color: rgba(120, 141, 169, 0.2);
}

.process__step {
	position: relative;
	padding-left: 50px;
	margin-bottom: 40px;
}

.process__step:last-child {
	margin-bottom: 0;
}

.process__step-content {
	background-color: var(--color-bg);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid rgba(120, 141, 169, 0.2);
}

.process__step-number {
	position: absolute;
	left: 15px;
	top: 20px;
	font-size: 24px;
	font-weight: 800;
	font-family: var(--font-heading);
	color: var(--color-primary);
	background-color: var(--color-surface);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid rgba(120, 141, 169, 0.2);
	transform: translateX(-50%);
}

.process__step-title {
	font-size: 22px;
	margin-bottom: 10px;
}

.process__step-description {
	color: var(--color-text-secondary);
}

/* Animation styles */
.process__step {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.process__step.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.process__step:nth-child(2).is-visible {
	transition-delay: 0.15s;
}
.process__step:nth-child(3).is-visible {
	transition-delay: 0.3s;
}
.process__step:nth-child(4).is-visible {
	transition-delay: 0.45s;
}

/* === MEDIA QUERIES for Process === */
@media (min-width: 768px) {
	.process {
		padding: 100px 0;
	}

	.process__title {
		font-size: 40px;
	}

	.process__timeline::before {
		left: 50%;
		transform: translateX(-50%);
	}

	.process__step {
		width: 50%;
		padding-left: 0;
		padding-right: 50px;
	}

	.process__step:nth-child(even) {
		margin-left: 50%;
		padding-left: 50px;
		padding-right: 0;
	}

	.process__step-number {
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	.process__step:nth-child(odd) .process__step-number {
		right: -25px;
		left: auto;
		transform: translate(0, -50%);
	}

	.process__step:nth-child(even) .process__step-number {
		left: -25px;
		transform: translate(0, -50%);
	}

	/* Animation on Desktop */
	.process__step:nth-child(odd) {
		transform: translateX(-30px);
	}

	.process__step:nth-child(even) {
		transform: translateX(30px);
	}

	.process__step.is-visible {
		transform: translateX(0);
	}
}

/* === CASES SECTION === */
.cases {
	padding: 80px 0;
}

.cases__header {
	text-align: center;
	max-width: 750px;
	margin: 0 auto 60px;
}

.cases__title {
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 15px;
}

.cases__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

.cases__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.cases__card {
	background-color: var(--color-surface);
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(120, 141, 169, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.cases__card-image-wrapper {
	overflow: hidden;
}

.cases__card-image {
	transition: transform 0.4s ease;
}

.cases__card:hover .cases__card-image {
	transform: scale(1.05);
}

.cases__card-content {
	padding: 25px 30px;
}

.cases__card-category {
	display: inline-block;
	background-color: var(--color-primary);
	color: var(--color-bg);
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 15px;
	text-transform: uppercase;
}

.cases__card-title {
	font-size: 22px;
	margin-bottom: 10px;
}

.cases__card-description {
	color: var(--color-text-secondary);
	font-size: 15px;
}

/* Animation styles */
.cases__card {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.cases__card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.cases__card:nth-child(2).is-visible {
	transition-delay: 0.15s;
}
.cases__card:nth-child(3).is-visible {
	transition-delay: 0.3s;
}

/* === MEDIA QUERIES for Cases === */
@media (min-width: 768px) {
	.cases {
		padding: 100px 0;
	}

	.cases__title {
		font-size: 40px;
	}

	.cases__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.cases__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* === CONTACT SECTION === */
.contact {
	padding: 80px 0;
	background-color: var(--color-surface);
}

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

.contact__title {
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 15px;
}

.contact__description {
	font-size: 18px;
	color: var(--color-text-secondary);
	line-height: 1.7;
	max-width: 500px;
}

.contact__form-wrapper {
	background-color: var(--color-bg);
	padding: 40px;
	border-radius: 16px;
	border: 1px solid rgba(120, 141, 169, 0.2);
}

.contact__form-group {
	position: relative;
	margin-bottom: 25px;
}

.contact__form-input {
	width: 100%;
	background-color: transparent;
	border: 1px solid var(--color-surface);
	border-radius: 8px;
	padding: 15px;
	color: var(--color-text-primary);
	font-size: 16px;
	transition: border-color 0.3s ease;
}

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

.contact__form-label {
	position: absolute;
	top: 16px;
	left: 15px;
	color: var(--color-text-secondary);
	background-color: var(--color-bg);
	padding: 0 5px;
	transition: all 0.2s ease;
	pointer-events: none;
}

.contact__form-input:focus + .contact__form-label,
.contact__form-input:not(:placeholder-shown) + .contact__form-label {
	top: -10px;
	left: 10px;
	font-size: 12px;
	color: var(--color-primary);
}

.contact__form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 25px;
}

.contact__form-checkbox {
	margin-top: 5px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.contact__form-checkbox-label {
	font-size: 14px;
	color: var(--color-text-secondary);
}

.contact__form-checkbox-label a {
	text-decoration: underline;
}

.contact__form-button {
	width: 100%;
	background-color: var(--color-primary);
	color: var(--color-bg);
	padding: 15px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	font-family: var(--font-heading);
	cursor: pointer;
	transition: background-color 0.3s ease;
}

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

.contact__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 20px;
}

.contact__success-icon {
	color: var(--color-primary);
	margin-bottom: 15px;
}

.contact__success-icon i {
	width: 60px;
	height: 60px;
}

.contact__success-title {
	font-size: 24px;
	margin-bottom: 10px;
}

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

/* === MEDIA QUERIES for Contact === */
@media (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1.2fr;
		gap: 60px;
	}

	.contact__title {
		font-size: 40px;
	}
}

/* === COOKIE CONSENT === */
.cookie-consent {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--color-surface);
	color: var(--color-text-secondary);
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 15px;
	z-index: 2000;
	border-top: 1px solid rgba(120, 141, 169, 0.2);
	transform: translateY(100%); /* Hidden by default */
	transition: transform 0.4s ease-out;
}

.cookie-consent.is-visible {
	transform: translateY(0);
}

.cookie-consent__text {
	font-size: 14px;
	text-align: center;
}

.cookie-consent__text a {
	text-decoration: underline;
}

.cookie-consent__button {
	background-color: var(--color-primary);
	color: var(--color-bg);
	border: none;
	padding: 8px 25px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
	transition: background-color 0.3s;
}

.cookie-consent__button:hover {
	background-color: #55b7f3;
}

@media (min-width: 768px) {
	.cookie-consent {
		flex-direction: row;
		justify-content: space-between;
		padding: 20px 40px;
	}

	.cookie-consent__text {
		text-align: left;
	}
}

/* === STATIC PAGES (Privacy, Terms, etc.) === */
.pages {
	padding: 120px 0 80px; /* Top padding to account for fixed header */
}

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

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

.pages p,
.pages li {
	font-size: 16px;
	color: var(--color-text-secondary);
	line-height: 1.8;
	margin-bottom: 15px;
}

.pages a {
	text-decoration: underline;
}

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

.pages ul {
	list-style: disc;
	padding-left: 25px;
	margin-bottom: 20px;
}

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

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