/* ==========================================================================
   1. Global Styles & Variables
   ========================================================================== */

:root {
	--font-primary: 'Inter', sans-serif;
	--font-secondary: 'Manrope', sans-serif;

	--color-background: #ffffff;
	--color-text: #111827;
	--color-primary: #3b82f6;
	--color-secondary: #6b7280;
	--color-border: #e5e7eb;

	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-background);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

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

a:hover {
	color: #1d4ed8; /* Darker shade of primary */
}

ul {
	list-style: none;
}

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

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

/* ==========================================================================
   2. Header
   ========================================================================== */

.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-border);
	z-index: 1000;
	display: flex;
	align-items: center;
}

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

.header__logo {
	color: var(--color-text);
	font-family: var(--font-secondary);
	font-size: 24px;
	font-weight: 700;
}

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

.header__nav-link {
	color: var(--color-text);
	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 {
	width: 100%;
}

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

/* Mobile Menu Styles */
@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		left: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-background);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: left 0.4s ease;
	}

	.header__nav--active {
		left: 0;
	}

	.header__nav-list {
		flex-direction: column;
		align-items: center;
		gap: 40px;
	}

	.header__nav-link {
		font-size: 20px;
	}

	.header__burger-btn {
		display: block;
	}
}

/* ==========================================================================
   3. Footer
   ========================================================================== */

.footer {
	background-color: #f9fafb; /* Slightly off-white */
	border-top: 1px solid var(--color-border);
	padding: 60px 0 0;
}

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

.footer__column--about {
	grid-column: span 1;
}

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

.footer__title {
	font-size: 16px;
	margin-bottom: 15px;
	color: var(--color-text);
}

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

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

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

.footer__bottom {
	border-top: 1px solid var(--color-border);
	padding: 20px 0;
}

.footer__bottom-container {
	text-align: center;
}

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

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

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

/* ==========================================================================
   Placeholder for Main Content
   ========================================================================== */
.main {
	padding-top: var(--header-height);
	min-height: 100vh;
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */

.hero {
	padding: 80px 0;
	min-height: calc(80vh - var(--header-height));
	display: flex;
	align-items: center;
	overflow: hidden;
}

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

.hero__title {
	font-size: 48px;
	line-height: 1.2;
	margin-bottom: 20px;
	min-height: 175px; /* Для стабільності висоти під час анімації */
}

/* Typing animation cursor */
.hero__title::after {
	content: '|';
	animation: blink 0.7s infinite;
	color: var(--color-primary);
	font-weight: 300;
}

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

.hero__subtitle {
	font-size: 18px;
	color: var(--color-secondary);
	margin-bottom: 40px;
	max-width: 500px;
}

.button {
	display: inline-block;
	padding: 12px 28px;
	background-color: var(--color-primary);
	color: #fff;
	font-weight: 500;
	font-size: 16px;
	border-radius: 8px;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
	background-color: #1d4ed8;
	color: #fff;
	transform: translateY(-2px);
}

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

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

/* Hero Responsive Styles */
@media (max-width: 992px) {
	.hero__title {
		font-size: 36px;
		min-height: 130px;
	}
	.hero__subtitle {
		font-size: 16px;
	}
}

@media (max-width: 768px) {
	.hero {
		padding: 60px 0;
		text-align: center;
	}
	.hero__container {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.hero__content {
		order: 2;
	}
	.hero__image-wrapper {
		order: 1;
	}
	.hero__title {
		min-height: auto; /* Вимикаємо на мобільних, де текст з'являється одразу */
	}
	.hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}
}

/* ==========================================================================
   5. Strategy Section
   ========================================================================== */

.strategy {
	padding: 100px 0;
	background-color: #f9fafb; /* Off-white to distinguish from hero */
}

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

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

.strategy__description {
	font-size: 18px;
	color: var(--color-secondary);
}

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

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

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

.strategy-card__icon {
	display: inline-flex;
	padding: 15px;
	background-color: #eff6ff; /* Light blue */
	border-radius: 50%;
	margin-bottom: 20px;
}

.strategy-card__icon i {
	color: var(--color-primary);
	width: 32px;
	height: 32px;
}

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

.strategy-card__text {
	font-size: 15px;
	color: var(--color-secondary);
	line-height: 1.7;
}

/* Scroll Animation Styles */
.animated-card {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Strategy Responsive Styles */
@media (max-width: 992px) {
	.strategy__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.strategy {
		padding: 60px 0;
	}
	.strategy__title {
		font-size: 28px;
	}
	.strategy__description {
		font-size: 16px;
	}
	.strategy__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   6. Technologies Section
   ========================================================================== */

.tech {
	padding: 100px 0;
	/* White background to alternate with the previous grey section */
	background-color: var(--color-background);
}

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

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

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

.tech__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.tech-card {
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 25px 20px;
	text-align: center;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.tech-card:hover {
	transform: translateY(-5px);
	border-color: var(--color-primary);
}

.tech-card__name {
	font-family: var(--font-secondary);
	font-size: 20px;
	margin-bottom: 5px;
}

.tech-card__role {
	font-size: 14px;
	color: var(--color-secondary);
}

/* Tech Responsive Styles */
@media (max-width: 992px) {
	.tech__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.tech {
		padding: 60px 0;
	}
	.tech__title {
		font-size: 28px;
	}
	.tech__description {
		font-size: 16px;
	}
	.tech__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ==========================================================================
   7. Cases Section
   ========================================================================== */

.cases {
	padding: 100px 0;
	background-color: #f9fafb; /* Light grey background */
}

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

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

.cases__description {
	font-size: 18px;
	color: var(--color-secondary);
}

.case-item {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 60px;
	margin-bottom: 80px;
}

.case-item:last-child {
	margin-bottom: 0;
}

.case-item--reverse .case-item__image-wrapper {
	order: 2;
}

.case-item__image {
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.case-item__tag {
	display: inline-block;
	background-color: #dbeafe; /* Lighter blue */
	color: var(--color-primary);
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 15px;
}

.case-item__title {
	font-size: 28px;
	line-height: 1.3;
	margin-bottom: 20px;
}

.case-item__text {
	color: var(--color-secondary);
	line-height: 1.7;
}

.case-item__text strong {
	color: var(--color-text);
}

/* Case Animation Styles */
.animated-case {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Cases Responsive Styles */
@media (max-width: 992px) {
	.case-item {
		gap: 30px;
	}
	.case-item__title {
		font-size: 24px;
	}
}

@media (max-width: 768px) {
	.cases {
		padding: 60px 0;
	}
	.case-item {
		grid-template-columns: 1fr;
		margin-bottom: 60px;
	}
	.case-item--reverse .case-item__image-wrapper {
		order: initial;
	}
	.cases__title {
		font-size: 28px;
	}
}

/* ==========================================================================
   8. Analytics / Blog Section
   ========================================================================== */

.analytics {
	padding: 100px 0;
	background-color: var(--color-background); /* White background */
}

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

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

.analytics__description {
	font-size: 18px;
	color: var(--color-secondary);
}

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

.article-card {
	background-color: #fff;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card__image-link {
	display: block;
}

.article-card__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

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

.article-card__category {
	color: var(--color-primary);
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 10px;
}

.article-card__title {
	font-size: 20px;
	line-height: 1.4;
	margin-bottom: 15px;
	flex-grow: 1; /* Pushes meta to the bottom */
}

.article-card__title a {
	color: var(--color-text);
}

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

.article-card__meta {
	font-size: 14px;
	color: var(--color-secondary);
}

/* Analytics Responsive Styles */
@media (max-width: 992px) {
	.analytics__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.analytics {
		padding: 60px 0;
	}
	.analytics__grid {
		grid-template-columns: 1fr;
	}
	.analytics__title {
		font-size: 28px;
	}
}

/* ==========================================================================
   9. Contact Section
   ========================================================================== */
.contact {
	padding: 100px 0;
	background-color: #f9fafb; /* Light grey background */
}

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

.contact__title {
	font-size: 36px;
	margin-bottom: 20px;
}

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

.contact__details {
	list-style: none;
	padding: 0;
}

.contact__details-item {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
	color: var(--color-text);
}

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

.contact__details-item a,
.contact__details-item span {
	color: var(--color-text);
	font-size: 16px;
}

.contact__form-wrapper {
	background-color: #fff;
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.form-group {
	margin-bottom: 25px;
}

.form-group__label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 8px;
}

.form-group__input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	font-size: 16px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group__input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

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

.form-group-checkbox__input {
	margin-top: 5px;
	accent-color: var(--color-primary);
}

.form-group-checkbox__label {
	font-size: 14px;
	color: var(--color-secondary);
}

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

.contact__submit-btn {
	width: 100%;
	padding: 15px;
}

/* Success Message */
.success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 40px;
}
.success-message--visible {
	display: block;
}
.success-message__icon i {
	width: 60px;
	height: 60px;
	color: #10b981; /* Green color */
	margin-bottom: 20px;
}
.success-message__title {
	font-size: 24px;
	margin-bottom: 10px;
}
.success-message__text {
	color: var(--color-secondary);
}

/* Contact Responsive Styles */
@media (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
		gap: 60px;
	}
}

@media (max-width: 768px) {
	.contact {
		padding: 60px 0;
	}
}

/* ==========================================================================
   10. Cookie Pop-up
   ========================================================================== */

.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	background-color: var(--color-text);
	color: var(--color-background);
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	transform: translateY(200%);
	transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 0 !important; /* Override container padding */
}

.cookie-popup__text {
	font-size: 15px;
}

.cookie-popup__text a {
	color: #fff;
	text-decoration: underline;
}

.cookie-popup__text a:hover {
	color: var(--color-border);
}

.cookie-popup__btn {
	background-color: var(--color-primary);
	color: #fff;
	padding: 10px 20px;
	border-radius: 8px;
	white-space: nowrap; /* Prevent button text from wrapping */
	transition: background-color 0.3s ease;
}

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

/* Cookie pop-up responsive styles */
@media (max-width: 576px) {
	.cookie-popup {
		left: 10px;
		right: 10px;
		bottom: 10px;
	}
	.cookie-popup__container {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
}

/* ==========================================================================
   11. Policy / Static Pages
   ========================================================================== */

.pages {
	padding-top: calc(
		var(--header-height) + 60px
	); /* Add space below fixed header */
	padding-bottom: 100px;
}

/* We create a narrower container for better text readability */
.pages .container {
	max-width: 800px;
}

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

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

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

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

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

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

.pages a:hover {
	color: #1d4ed8;
}

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