/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&family=Roboto:wght@400;500&display=swap');

/* CSS Variables */
:root {
	--color-background: #0d1117;
	--color-background-secondary: #161b22;
	--color-primary: #00a99d;
	--color-text: #ffffff;
	--color-text-secondary: #8b949e;
	--font-primary: 'Poppins', sans-serif;
	--font-secondary: 'Roboto', sans-serif;
	--header-height: 80px;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

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

.container {
	position: relative;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

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

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

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

ul {
	list-style: none;
}

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

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

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

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

/* Header */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: rgba(13, 17, 23, 0.8);
	backdrop-filter: blur(10px);
	z-index: 1000;
	border-bottom: 1px solid var(--color-background-secondary);
}

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

.header__logo {
	flex-shrink: 0;
}

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

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

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

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

/* Burger Menu */
.burger {
	display: none;
	width: 30px;
	height: 20px;
	position: relative;
	z-index: 1001;
}

.burger__line {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--color-text);
	position: absolute;
	left: 0;
	transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.burger__line:nth-child(1) {
	top: 0;
}
.burger__line:nth-child(2) {
	top: 50%;
	transform: translateY(-50%);
}
.burger__line:nth-child(3) {
	bottom: 0;
}

.burger--active .burger__line:nth-child(1) {
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
}
.burger--active .burger__line:nth-child(2) {
	transform: scale(0);
}
.burger--active .burger__line:nth-child(3) {
	bottom: 50%;
	transform: translateY(50%) rotate(-45deg);
}

/* Footer */
.footer {
	background-color: var(--color-background-secondary);
	padding: 60px 0 0;
	border-top: 1px solid rgba(139, 148, 158, 0.2);
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	margin-bottom: 60px;
}

.footer__column--main {
	grid-column: 1 / 2;
}

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

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

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

.footer__link {
	font-size: 15px;
}

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

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

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

.footer__bottom {
	padding: 20px 0;
	text-align: center;
	border-top: 1px solid rgba(139, 148, 158, 0.1);
	font-size: 14px;
	color: var(--color-text-secondary);
}

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

@media (max-width: 768px) {
	:root {
		--header-height: 70px;
	}

	.nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: var(--color-background);
		transform: translateX(100%);
		transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
		padding-top: var(--header-height);
		display: flex;
		justify-content: center;
		align-items: center;
	}

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

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

	.nav__link {
		font-size: 24px;
		color: var(--color-text);
	}

	.burger {
		display: block;
	}

	body.no-scroll {
		overflow: hidden;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--main,
	.logo.footer__logo {
		margin: 0 auto;
	}

	.footer__item--contact {
		justify-content: center;
	}
}

/* Button Component */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 32px;
	background-color: var(--color-primary);
	color: var(--color-text);
	border-radius: 50px;
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 16px;
	text-align: center;
	border: 2px solid transparent;
	transition: all 0.3s ease;
}

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

.btn__icon {
	width: 20px;
	height: 20px;
}

/* Hero Section */
.hero {
	position: relative;
	height: 100vh;
	min-height: 700px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: 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;
}

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

.hero__title {
	font-size: 56px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 20px;
	text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	max-width: 650px;
	margin: 0 auto 30px;
	line-height: 1.7;
}

.hero__btn {
	font-size: 18px;
}

.hero__note {
	margin-top: 20px;
	font-size: 14px;
	color: var(--color-text-secondary);
	opacity: 0.8;
}

/* Hero Section Responsiveness */
@media (max-width: 768px) {
	.hero__title {
		font-size: 42px;
	}
	.hero__subtitle {
		font-size: 16px;
	}
}

@media (max-width: 576px) {
	.hero {
		min-height: 600px;
	}
	.hero__title {
		font-size: 32px;
	}
	.hero__subtitle {
		font-size: 15px;
	}
	.btn {
		padding: 12px 24px;
		font-size: 15px;
	}
}

/* General Section Styles */
.section {
	padding: 100px 0;
}

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

.section-header__title {
	font-size: 2rem;
	margin-bottom: 15px;
}

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

/* Solutions Section */
.solutions {
	background-color: var(--color-background-secondary);
	border-top: 1px solid rgba(139, 148, 158, 0.1);
	border-bottom: 1px solid rgba(139, 148, 158, 0.1);
}

.solutions__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

/* Card Component */
.card {
	background-color: var(--color-background);
	border: 1px solid var(--color-background-secondary);
	border-radius: 12px;
	padding: 35px;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card__icon-wrapper {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: rgba(0, 169, 157, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 25px;
}

.card__icon {
	width: 28px;
	height: 28px;
	color: var(--color-primary);
}

.card__title {
	font-size: 22px;
	margin-bottom: 15px;
}

.card__description {
	color: var(--color-text-secondary);
	margin-bottom: 25px;
	flex-grow: 1; /* Pushes the link to the bottom */
}

.card__link {
	font-family: var(--font-primary);
	font-weight: 500;
	color: var(--color-primary);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

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

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

/* Solutions Section Responsiveness */
@media (max-width: 992px) {
	.solutions__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.section {
		padding: 80px 0;
	}
	.section-header__title {
		font-size: 1.5rem;
	}
	.section-header__subtitle {
		font-size: 16px;
	}
	.solutions__grid {
		grid-template-columns: 1fr;
	}
}

/* Tech Section */
.tech {
	background-color: var(--color-background);
}

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

.tech__image-wrapper {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
}

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

.section-header--left-aligned {
	text-align: left;
	margin: 0 0 40px 0;
	max-width: 100%;
}

/* Accordion Component */
.accordion {
	border: 1px solid var(--color-background-secondary);
	border-radius: 12px;
	overflow: hidden;
}

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

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

.accordion__header {
	width: 100%;
	background-color: transparent;
	padding: 20px 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: left;
	color: var(--color-text);
}

.accordion__title {
	font-family: var(--font-primary);
	font-size: 18px;
	font-weight: 500;
}

.accordion__icon {
	width: 22px;
	height: 22px;
	color: var(--color-primary);
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

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

.accordion__text {
	padding: 0 25px 0px;
	color: var(--color-text-secondary);
	font-size: 15px;
	line-height: 1.7;
}

/* Accordion Active State */
.accordion__item--active .accordion__header {
	background-color: var(--color-background-secondary);
}

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

.accordion__item--active .accordion__content {
	/* max-height is set in JS for smooth animation */
	padding-bottom: 25px;
}

/* Tech Section Responsiveness */
@media (max-width: 992px) {
	.tech__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

/* Benefits Section */
.benefits {
	background-color: var(--color-background-secondary);
}

.benefits__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
}

.benefit-item {
	background-color: var(--color-background);
	padding: 30px;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border: 1px solid var(--color-background-secondary);
}

.benefit-item__icon-wrapper {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: rgba(0, 169, 157, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.benefit-item__icon {
	width: 30px;
	height: 30px;
	color: var(--color-primary);
}

.benefit-item__title {
	font-size: 20px;
	margin-bottom: 10px;
}

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

/* Benefits Section Responsiveness */
@media (max-width: 992px) {
	.benefits__grid {
		gap: 30px;
	}
}

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

/* Cases Section */
.cases {
	position: relative;
	overflow: hidden; /* Важливе виправлення для усунення горизонтальної прокрутки */
}

.swiper-slide {
	height: auto; /* Дозволяє слайду адаптуватися під висоту контенту */
}

.case-card {
	background-color: var(--color-background-secondary);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%; /* Картка займає всю висоту слайду */
	border: 1px solid rgba(139, 148, 158, 0.1);
}

.case-card__image {
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.case-card__content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.case-card__title {
	font-size: 20px;
	margin-bottom: 10px;
}

.case-card__description {
	color: var(--color-text-secondary);
	font-size: 15px;
	flex-grow: 1;
	margin-bottom: 20px;
}

.case-card__tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.case-card__tag {
	background-color: rgba(0, 169, 157, 0.1);
	color: var(--color-primary);
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
}

/* Swiper Controls */
.cases__controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-top: 40px;
}

.cases-slider__prev,
.cases-slider__next {
	position: static;
	margin: 0;
	width: 44px !important;
	height: 44px !important;
	background-color: var(--color-background-secondary);
	border-radius: 50%;
	transition: background-color 0.3s ease;
}

.cases-slider__prev:hover,
.cases-slider__next:hover {
	background-color: var(--color-primary);
}

.cases-slider__prev::after,
.cases-slider__next::after {
	font-size: 20px !important;
	color: var(--color-text);
}

.cases-slider__pagination {
	position: static;
	width: auto;
}

.swiper-pagination-bullet {
	background-color: var(--color-text-secondary);
	opacity: 0.5;
	transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
	background-color: var(--color-primary);
	opacity: 1;
	transform: scale(1.2);
}

/* Contact Section */
.contact {
	background-color: var(--color-background-secondary);
}

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

.contact__list {
	margin-top: 30px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

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

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

.contact__link,
.contact__text {
	font-size: 18px;
	color: var(--color-text-secondary);
}

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

/* Form Styles */
.contact__form-wrapper {
	background-color: var(--color-background);
	padding: 40px;
	border-radius: 12px;
	position: relative;
	overflow: hidden;
}

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

.form__input {
	width: 100%;
	padding: 14px 15px;
	background-color: var(--color-background-secondary);
	border: 1px solid var(--color-background-secondary);
	border-radius: 8px;
	color: var(--color-text);
	font-size: 16px;
	transition: border-color 0.3s ease;
}

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

.form__label {
	position: absolute;
	top: 50%;
	left: 15px;
	transform: translateY(-50%);
	color: var(--color-text-secondary);
	font-size: 16px;
	pointer-events: none;
	transition: all 0.3s ease;
}

/* Floating Label Animation */
.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
	top: -10px;
	left: 10px;
	font-size: 12px;
	color: var(--color-primary);
	background-color: var(--color-background);
	padding: 0 5px;
}

/* Checkbox Styles */
.form__group--checkbox {
	display: flex;
	align-items: center;
	margin-bottom: 30px;
}

.form__checkbox-input {
	display: none; /* Hide default checkbox */
}

.form__checkbox-label {
	display: inline-block;
	align-items: center;
	cursor: pointer;
	font-size: 14px;
	color: var(--color-text-secondary);
}

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

.form__custom-checkbox {
	width: 20px;
	height: 20px;
	background-color: var(--color-background-secondary);
	border: 1px solid var(--color-text-secondary);
	border-radius: 4px;
	margin-right: 12px;
	display: inline-block;
	position: relative;
	transition: background-color 0.3s ease;
}

.form__checkbox-input:checked + .form__checkbox-label .form__custom-checkbox {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}

.form__custom-checkbox::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid var(--color-text);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.form__checkbox-input:checked
	+ .form__checkbox-label
	.form__custom-checkbox::after {
	opacity: 1;
}

.form__btn {
	width: 100%;
}

/* Form Success Message */
.form-success {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--color-background);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.9);
	transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.form-success--active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.form-success__icon-wrapper {
	width: 70px;
	height: 70px;
	background-color: var(--color-primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.form-success__icon {
	width: 36px;
	height: 36px;
	color: var(--color-text);
}

.form-success__title {
	font-size: 24px;
	margin-bottom: 10px;
}

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

/* Contact Section Responsiveness */
@media (max-width: 992px) {
	.contact__grid {
		grid-template-columns: 1fr;
	}
}

/* Cookie Pop-up */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--color-background-secondary);
	border-top: 1px solid rgba(139, 148, 158, 0.1);
	padding: 20px;
	z-index: 2000;
	transform: translateY(100%);
	transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.cookie-popup__content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	gap: 20px;
}

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

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

.btn--small {
	padding: 8px 20px;
	font-size: 14px;
}

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

/* Policy Pages Styles */
.pages {
	padding: 120px 0 80px;
	background-color: var(--color-background-secondary);
	min-height: 100vh;
}

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

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

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

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

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

.pages ul {
	list-style: disc;
	padding-left: 25px;
	color: var(--color-text-secondary);
	margin-bottom: 20px;
}

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

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