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

/* GLOBAL STYLES */
:root {
	--background-color: #12121c;
	--primary-color: #1a1a2e;
	--accent-color: #00f5c9;
	--text-color: #c7c7d2;
	--heading-color: #ffffff;
	--font-body: 'Inter', sans-serif;
	--font-heading: 'Roboto Mono', monospace;
	--container-width: 1200px;
	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--heading-color);
	font-family: var(--font-heading);
	line-height: 1.2;
}

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;
}

button {
	cursor: pointer;
	border: none;
	background: none;
	font-family: inherit;
}

/* LOGO */
.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 24px;
	color: var(--heading-color);
}

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

/* HEADER */
.header {
	background-color: var(--primary-color);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	height: var(--header-height);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
}

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

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

.nav__link {
	font-size: 16px;
	font-weight: 500;
	position: relative;
	padding: 5px 0;
}

.nav__link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--accent-color);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease-in-out;
}

.nav__link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.nav__link--cta {
	background-color: var(--accent-color);
	color: var(--primary-color);
	padding: 8px 20px;
	border-radius: 5px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.nav__link--cta:hover {
	background-color: var(--heading-color);
	color: var(--primary-color);
}

.nav__link--cta::after {
	display: none;
}

.header__burger {
	display: none;
	color: var(--heading-color);
}

/* FOOTER */
.footer {
	background-color: var(--primary-color);
	padding: 60px 0 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer__column--about {
	max-width: 300px;
}

.footer__description {
	margin-top: 15px;
	font-size: 14px;
}

.footer__title {
	font-size: 18px;
	margin-bottom: 15px;
	font-weight: 500;
}

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

.footer__list--contact .footer__item {
	display: flex;
	align-items: center;
	gap: 10px;
}

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

.footer__link,
.footer__text {
	font-size: 14px;
}

.footer__bottom {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 14px;
	color: rgba(255, 255, 255, 0.5);
}

/* MOBILE ADAPTIVE STYLES */
@media (max-width: 768px) {
	.header__burger {
		display: block;
		z-index: 1001;
	}

	.nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: var(--primary-color);
		display: flex;
		justify-content: center;
		align-items: center;
		transform: translateX(100%);
		transition: transform 0.4s ease-in-out;
	}

	.nav--active {
		transform: translateX(0);
	}

	.nav__list {
		flex-direction: column;
		gap: 40px;
	}

	.nav__link {
		font-size: 24px;
	}
}

/* REUSABLE COMPONENTS */
.button {
	display: inline-block;
	background-color: var(--accent-color);
	color: var(--primary-color);
	padding: 12px 30px;
	border-radius: 5px;
	font-weight: 700;
	font-family: var(--font-heading);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-transform: uppercase;
	font-size: 16px;
}

.button:hover {
	color: var(--primary-color);
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(0, 245, 201, 0.2);
}

/* MAIN CONTENT PADDING */
.main {
	padding-top: var(--header-height);
}

/* HERO SECTION */
.hero {
	min-height: calc(100vh - var(--header-height));
	display: flex;
	align-items: center;
	padding: 60px 0;
}

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

.hero__title {
	font-size: 48px;
	font-weight: 700;
	margin-bottom: 20px;
	line-height: 1.3;
}

.hero__title--animated {
	color: var(--accent-color);
	position: relative;
}

/* Typing animation cursor */
.hero__title--animated::after {
	content: '|';
	position: absolute;
	right: -10px;
	top: 0;
	color: var(--accent-color);
	animation: blink 0.7s infinite;
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.hero__subtitle {
	font-size: 18px;
	max-width: 500px;
	margin-bottom: 30px;
}

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

.hero__image {
	max-width: 100%;
	border-radius: 10px;
}

/* ADAPTIVE FOR HERO */
@media (max-width: 992px) {
	.hero__title {
		font-size: 36px;
	}
}

@media (max-width: 768px) {
	.hero {
		padding: 40px 0;
		min-height: auto;
		text-align: center;
	}

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

	.hero__text-content {
		order: 2;
	}

	.hero__visual-content {
		order: 1;
	}

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

/* SECTION STYLES */
.section {
	padding: 80px 0;
}

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

.section__title {
	font-size: 36px;
	margin-bottom: 15px;
}

.section__subtitle {
	font-size: 18px;
	color: var(--text-color);
}

/* STAGES SECTION */
.stages {
	background-color: var(--primary-color);
}

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

.stages__card {
	background-color: var(--background-color);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 30px;
	border-radius: 10px;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.stages__card-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
}

.stages__card-icon {
	color: var(--accent-color);
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}

.stages__card-title {
	font-size: 20px;
}

.stages__card-description {
	font-size: 15px;
	line-height: 1.7;
}

/* ADAPTIVE FOR SECTION */
@media (max-width: 768px) {
	.section {
		padding: 60px 0;
	}
	.section__title {
		font-size: 30px;
	}
	.section__subtitle {
		font-size: 16px;
	}
}

/* TECH SECTION */
.tech {
	background-color: var(--background-color); /* Or keep it the same as body */
}

.tech__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 20px;
	max-width: 800px;
	margin: 0 auto;
}

.tech__item {
	background-color: var(--primary-color);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 15px;
	aspect-ratio: 1 / 1;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.tech__item-icon {
	width: 48px;
	height: 48px;
	color: var(--accent-color);
}

.tech__item-name {
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 500;
	color: var(--heading-color);
}

@media (max-width: 768px) {
	.tech__grid {
		grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
		gap: 15px;
	}

	.tech__item-icon {
		width: 36px;
		height: 36px;
	}
}

/* CASES SECTION */
.cases {
	background-color: var(--primary-color);
}

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

.cases__card {
	background-color: var(--background-color);
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

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

.cases__card-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.cases__card-content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.cases__card-category {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: var(--accent-color);
	text-transform: uppercase;
	margin-bottom: 10px;
}

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

.cases__card-description {
	font-size: 15px;
	margin-bottom: 20px;
	flex-grow: 1;
}

.cases__card-result {
	display: flex;
	align-items: center;
	gap: 10px;
	background-color: var(--primary-color);
	padding: 10px;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 500;
}

.cases__card-result-icon {
	width: 20px;
	height: 20px;
	color: var(--accent-color);
	flex-shrink: 0;
}

/* BLOG SECTION */
.blog {
	background-color: var(--background-color);
}

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

.blog__card {
	background-color: var(--primary-color);
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

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

.blog__card-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.3s ease;
}

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

.blog__card-content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog__card-date {
	color: var(--text-color);
	font-size: 13px;
	margin-bottom: 10px;
}

.blog__card-title {
	font-size: 20px;
	margin-bottom: 15px;
	line-height: 1.4;
}

.blog__card-title a {
	color: var(--heading-color);
}

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

.blog__card-description {
	font-size: 15px;
	margin-bottom: 20px;
	flex-grow: 1;
}

.blog__card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--accent-color);
	margin-top: auto;
}

.blog__card-link:hover {
	text-decoration: underline;
	color: var(--accent-color);
}

.blog__card-link-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.blog__card-link:hover .blog__card-link-icon {
	transform: translateX(5px);
}

/* CONTACT SECTION */
.contact {
	background-color: var(--primary-color);
}

.contact__form-container {
	max-width: 600px;
	margin: 0 auto;
	background-color: var(--background-color);
	padding: 40px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form__group {
	display: flex;
	flex-direction: column;
}

.form__label {
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-color);
}

.form__input {
	width: 100%;
	padding: 12px 15px;
	background-color: var(--primary-color);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 5px;
	color: var(--heading-color);
	font-size: 16px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 2px rgba(0, 245, 201, 0.2);
}

.form__group--checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
}

.form__checkbox {
	width: 18px;
	height: 18px;
}

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

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

.form__button {
	width: 100%;
	padding: 15px;
	font-size: 18px;
}

.form__success-message {
	display: none; /* Hidden by default */
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 40px 20px;
}

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

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

.form__success-text {
	font-size: 16px;
}

/* COOKIE POP-UP */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--primary-color);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	z-index: 2000;
	transform: translateY(100%);
	transition: transform 0.5s ease-in-out;
}

.cookie-popup.show {
	transform: translateY(0);
}

.cookie-popup__text {
	font-size: 14px;
	color: var(--text-color);
}

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

.cookie-popup__button {
	background-color: var(--accent-color);
	color: var(--primary-color);
	padding: 8px 20px;
	border-radius: 5px;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color 0.3s;
}

.cookie-popup__button:hover {
	background-color: var(--heading-color);
}

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

/* GENERIC PAGES STYLES (privacy, terms, etc.) */
.pages {
	padding: 120px 0;
	min-height: calc(
		100vh - var(--header-height) - 300px
	); /* 300px is approx footer height */
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-bottom: 20px;
}

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

.pages p {
	margin-bottom: 20px;
	line-height: 1.8;
	font-size: 17px;
}

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

.pages li {
	margin-bottom: 10px;
	font-size: 17px;
	line-height: 1.8;
}

.pages strong {
	color: var(--heading-color);
	font-weight: 500;
}

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

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