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

/*=============== CSS VARIABLES ===============*/
:root {
	/* Colors */
	--primary-color: #4f46e5;
	--primary-color-hover: #4338ca;
	--title-color: #111827;
	--text-color: #374151;
	--text-color-light: #6b7280;
	--body-color: #ffffff;
	--container-color: #ffffff;
	--border-color: #e5e7eb;

	/* Fonts */
	--body-font: 'Inter', sans-serif;
	--title-font: 'Manrope', sans-serif;

	--h1-font-size: 2.5rem;
	--h2-font-size: 1.5rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* Font weight */
	--font-medium: 500;
	--font-semibold: 600;
	--font-bold: 700;

	/* z-index */
	--z-tooltip: 10;
	--z-fixed: 100;
}

/*=============== BASE ===============*/
* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--body-color);
	color: var(--text-color);
}

h1,
h2,
h3 {
	color: var(--title-color);
	font-family: var(--title-font);
	font-weight: var(--font-semibold);
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
	max-width: 1120px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: #fff;
	padding: 0.8rem 1.75rem;
	border-radius: 0.5rem;
	font-weight: var(--font-medium);
	transition: background-color 0.3s;
}

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

/*=============== HEADER ===============*/
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: var(--z-fixed);
	background-color: var(--body-color);
	border-bottom: 1px solid var(--border-color);
}

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-weight: var(--font-bold);
	color: var(--title-color);
}

.header__logo img {
	width: 28px;
	height: 28px;
}

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

.nav__link {
	color: var(--title-color);
	font-weight: var(--font-medium);
	transition: color 0.3s;
}

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

.nav__link.button {
	color: #fff;
	padding: 0.5rem 1.5rem;
}

.nav__close,
.nav__toggle {
	cursor: pointer;
	color: var(--title-color);
	font-size: 1.25rem;
	transition: color 0.3s;
}

.nav__close:hover,
.nav__toggle:hover {
	color: var(--primary-color);
}

.nav__close {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	font-size: 1.5rem;
}

/* Navigation for mobile devices */
@media screen and (max-width: 767px) {
	.nav {
		position: fixed;
		top: -100%;
		left: 0;
		width: 100%;
		background-color: var(--body-color);
		padding: 4rem 1.5rem 2rem;
		transition: top 0.4s;
		border-bottom: 1px solid var(--border-color);
		box-shadow: 0 8px 24px hsla(228, 66%, 45%, 0.15);
		z-index: var(--z-fixed);
	}

	.nav__list {
		gap: 1.5rem;
	}

	.nav__link {
		font-size: var(--h3-font-size);
		font-weight: var(--font-semibold);
	}
}

.nav.show-menu {
	top: 5rem; /* Header height */
}

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

.footer__container {
	display: grid;
	gap: 2.5rem;
}

.footer__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-weight: var(--font-bold);
	color: var(--title-color);
	margin-bottom: 1rem;
}

.footer__logo img {
	width: 24px;
	height: 24px;
}

.footer__description {
	color: var(--text-color-light);
	font-size: var(--small-font-size);
}

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

.footer__link {
	font-size: var(--normal-font-size);
	color: var(--text-color-light);
	transition: color 0.3s;
	display: inline-block;
	margin-bottom: 0.5rem;
}

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

.footer__list--contact li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-color-light);
	margin-bottom: 0.5rem;
}

.footer__list--contact i {
	color: var(--primary-color);
	width: 18px;
	height: 18px;
}

.footer__bottom {
	margin-top: 4rem;
	padding: 1.5rem 0;
	text-align: center;
	border-top: 1px solid var(--border-color);
	font-size: var(--small-font-size);
	color: var(--text-color-light);
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (min-width: 576px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 768px) {
	.nav {
		width: auto;
		position: static;
		background-color: transparent;
		padding: 0;
		box-shadow: none;
		border-bottom: none;
	}
	.nav__toggle,
	.nav__close {
		display: none;
	}
	.nav__list {
		flex-direction: row;
		gap: 2.5rem;
	}
	.nav__link {
		font-size: var(--normal-font-size);
		font-weight: var(--font-medium);
	}
	.nav__link.button {
		margin-left: 1rem;
	}
}

/* For large devices */
@media screen and (min-width: 1024px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
	.header__container {
		height: 6rem;
	}
	.footer__container {
		grid-template-columns: repeat(4, 1fr);
	}
}

/*=============== HERO SECTION ===============*/
.hero {
	padding-top: 8rem; /* Space for fixed header */
	padding-bottom: 4rem;
	background-color: #f9fafb; /* Slightly different background for depth */
}

.hero__container {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: 1.5rem;
	line-height: 1.2;
	margin-bottom: 1rem;
}

.hero__description {
	font-size: 1.125rem;
	color: var(--text-color-light);
	margin-bottom: 2rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hero__button {
	padding: 1rem 2rem;
	font-size: 1.125rem;
}

.hero__image-wrapper {
	display: flex;
	justify-content: center;
}

.hero__image {
	border-radius: 0.75rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -4px rgba(0, 0, 0, 0.1);
	width: 100%;
	max-width: 500px;
}

/*=============== BREAKPOINTS (Hero) ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.hero__content {
		text-align: left;
	}

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

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

/* For large devices */
@media screen and (min-width: 1024px) {
	.hero {
		padding-top: 10rem;
		padding-bottom: 6rem;
	}

	.hero__container {
		gap: 5rem;
	}

	.hero__title {
		font-size: 2.5rem;
	}
}

/*=============== REUSABLE CSS (доповнення) ===============*/
.section {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.section__header {
	text-align: center;
	margin-bottom: 3rem;
}

.section__title {
	font-size: var(--h2-font-size);
	margin-bottom: 0.5rem;
}

.section__subtitle {
	font-size: var(--normal-font-size);
	color: var(--text-color-light);
	max-width: 500px;
	margin: 0 auto;
}

/*=============== STRATEGY SECTION ===============*/
.strategy__grid {
	display: grid;
	gap: 1.5rem;
}

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

.strategy__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07),
		0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.strategy__icon-wrapper {
	display: inline-flex;
	padding: 1rem;
	background-color: #eef2ff; /* Light purple/blue background for icon */
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

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

.strategy__title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.5rem;
}

.strategy__description {
	color: var(--text-color-light);
	font-size: var(--small-font-size);
	line-height: 1.6;
}

/*=============== BREAKPOINTS (Strategy) ===============*/
/* For medium devices */
@media screen and (min-width: 576px) {
	.strategy__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* For large devices */
@media screen and (min-width: 1024px) {
	.section {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}
	.section__title {
		font-size: 2rem;
	}
	.strategy__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/*=============== SKILLS SECTION ===============*/
.skills {
	background-color: #f9fafb;
}

.skills__container {
	display: grid;
	gap: 2rem;
}

.skills__content {
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	padding: 2rem;
	border-radius: 0.75rem;
}

.skills__title {
	font-size: var(--h3-font-size);
	text-align: center;
	margin-bottom: 2rem;
}

.skills__list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.skills__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.skills__item i {
	color: var(--primary-color);
	width: 20px;
	height: 20px;
}

.skills__item span {
	color: var(--text-color);
	font-weight: var(--font-medium);
}

/*=============== BREAKPOINTS (Skills) ===============*/
@media screen and (min-width: 768px) {
	.skills__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/*=============== MARKET SECTION ===============*/
.market__container {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.market__tabs {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: flex-start;
}

.market__tab-button {
	width: 100%;
	padding: 1rem 1.5rem;
	font-size: var(--normal-font-size);
	font-weight: var(--font-medium);
	font-family: var(--title-font);
	color: var(--text-color-light);
	background-color: transparent;
	border: none;
	border-left: 3px solid var(--border-color);
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
	text-align: left;
}

.market__tab-button:hover {
	background-color: #f9fafb;
	color: var(--title-color);
}

.market__tab-button.is-active {
	border-left-color: var(--primary-color);
	color: var(--primary-color);
	background-color: #f0f1ff;
}

.market__content {
	display: none; /* Hidden by default */
	gap: 2rem;
	align-items: center;
}

.market__content.is-active {
	display: grid; /* Shown when active */
}

.market__image-wrapper {
	text-align: center;
}

.market__image {
	max-width: 400px;
	width: 100%;
	border-radius: 0.75rem;
}

.market__content-title {
	font-size: var(--h3-font-size);
	margin-bottom: 1rem;
}

.market__text p {
	color: var(--text-color-light);
	line-height: 1.6;
}

/*=============== BREAKPOINTS (Market) ===============*/
@media screen and (min-width: 768px) {
	.market__container {
		flex-direction: row;
		align-items: flex-start;
	}

	.market__tabs {
		flex-basis: 30%;
	}

	.market__content-area {
		flex-basis: 70%;
	}

	.market__content.is-active {
		grid-template-columns: 1fr 2fr;
	}

	.market__image-wrapper {
		order: -1; /* Image appears first */
	}
}

/*=============== CASES SECTION ===============*/
.cases {
	background-color: #f9fafb;
}

.cases__container {
	position: relative;
}

.cases-swiper {
	padding: 1rem 0 3rem 0; /* Add padding for pagination */
}

.case-card {
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 0.75rem;
	padding: 2rem;
	height: 100%;
}

.case-card__client {
	font-weight: var(--font-semibold);
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.case-card__problem {
	color: var(--text-color);
	margin-bottom: 1rem;
	line-height: 1.6;
}

.case-card__result {
	color: var(--text-color-light);
	line-height: 1.6;
}

.case-card strong {
	color: var(--title-color);
}

/* Swiper custom styles */
.swiper-button-next,
.swiper-button-prev {
	color: var(--primary-color);
	top: 50%;
	transform: translateY(-150%); /* Adjust position to be above pagination */
}

.swiper-pagination-bullet-active {
	background-color: var(--primary-color);
}

/*=============== BREAKPOINTS (Cases) ===============*/
@media screen and (min-width: 768px) {
	.cases-swiper {
		padding-left: 3rem;
		padding-right: 3rem;
	}
	.swiper-button-next,
	.swiper-button-prev {
		transform: translateY(-50%);
	}
}

/*=============== CONTACT SECTION ===============*/
.contact__container {
	max-width: 600px;
	margin: 0 auto;
	position: relative;
}

.contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact__form-input {
	width: 100%;
	padding: 1rem;
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	font-size: var(--normal-font-size);
	font-family: var(--body-font);
	outline: none;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form-input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px #e0e7ff;
}

.contact__form-group--checkbox {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: var(--small-font-size);
	color: var(--text-color-light);
}

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

.contact__form-group--checkbox label a:hover {
	text-decoration: none;
}

.contact__form-checkbox {
	width: 18px;
	height: 18px;
}

.contact__form-button {
	width: 100%;
	padding: 1rem;
	font-size: var(--normal-font-size);
}

.contact__message {
	display: none; /* Hidden by default */
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
	padding: 2rem;
	background-color: #f0fdf4; /* Light green */
	border: 1px solid #bbf7d0; /* Green border */
	border-radius: 0.75rem;
	color: #166534; /* Dark green text */
}

.contact__message i {
	width: 40px;
	height: 40px;
}

/*=============== COOKIE POPUP ===============*/
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--title-color);
	color: #fff;
	padding: 1.5rem 0;
	z-index: var(--z-fixed);
	transform: translateY(110%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.4s ease, opacity 0.4s, visibility 0.4s;
}

.cookie-popup.is-visible {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.cookie-popup__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	max-width: 1120px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

.cookie-popup__text {
	text-align: center;
	font-size: var(--small-font-size);
}

.cookie-popup__text a {
	text-decoration: underline;
	font-weight: var(--font-medium);
}

.cookie-popup__text a:hover {
	text-decoration: none;
}

.cookie-popup__button {
	background-color: var(--container-color);
	color: var(--title-color);
	padding: 0.5rem 1.5rem;
}

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

/*=============== BREAKPOINTS (Cookie) ===============*/
@media screen and (min-width: 768px) {
	.cookie-popup__content {
		flex-direction: row;
		margin-left: auto;
		margin-right: auto;
	}
	.cookie-popup__text {
		text-align: left;
	}
}

/*=============== PAGES (PRIVACY, TERMS, ETC.) ===============*/
.pages {
	padding-top: 8rem;
	padding-bottom: 4rem;
}

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

.pages h1,
.pages h2 {
	font-family: var(--title-font);
	color: var(--title-color);
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

.pages p {
	font-family: var(--body-font);
	color: var(--text-color);
	line-height: 1.7;
	margin-bottom: 1rem;
}

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

.pages li {
	margin-bottom: 0.75rem;
	line-height: 1.7;
	color: var(--text-color);
}

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

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

.pages strong {
	font-weight: var(--font-semibold);
	color: var(--title-color);
}
