/* GLOBAL STYLES */
:root {
	--color-background: #0f172a;
	--color-text-primary: #f8fafc;
	--color-text-secondary: #94a3b8;
	--color-accent: #3b82f6;
	--color-surface: #1e293b;

	--font-family-headings: 'Space Grotesk', sans-serif;
	--font-family-body: 'Inter', sans-serif;

	--header-height: 70px;
}

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

html {
	scroll-behavior: smooth;
}

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

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

a {
	color: var(--color-accent);
	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;
}

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

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

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-family-headings);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-text-primary);
}

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

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

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

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

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

.nav__link:hover::after,
.nav__link.active::after {
	width: 100%;
}

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

.nav__link--button:hover {
	background-color: #2563eb;
	color: var(--color-text-primary);
}

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

.burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 1001;
}

.burger__line {
	display: block;
	width: 25px;
	height: 2px;
	background-color: var(--color-text-primary);
	position: relative;
	transition: background-color 0.3s ease;
}

.burger__line::before,
.burger__line::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: var(--color-text-primary);
	transition: transform 0.3s ease;
}

.burger__line::before {
	transform: translateY(-8px);
}

.burger__line::after {
	transform: translateY(8px);
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
	.nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		max-width: 300px;
		height: 100vh;
		background-color: var(--color-surface);
		transition: right 0.4s ease-in-out;
		padding-top: calc(var(--header-height) + 40px);
	}

	.nav--open {
		right: 0;
		box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
	}

	.nav__list {
		flex-direction: column;
		align-items: center;
		gap: 25px;
	}

	.nav__link {
		font-size: 1.1rem;
	}

	.burger {
		display: block;
	}

	.burger--open .burger__line {
		background-color: transparent;
	}

	.burger--open .burger__line::before {
		transform: rotate(45deg);
	}

	.burger--open .burger__line::after {
		transform: rotate(-45deg);
	}
}

/* FOOTER */
.footer {
	background-color: var(--color-surface);
	padding: 60px 0;
	border-top: 1px solid #2a3a55;
	margin-top: 80px; /* To be adjusted based on content */
}

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

.footer__column:first-child {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.footer__copyright {
	color: var(--color-text-secondary);
	font-size: 0.9rem;
}

.footer__heading {
	font-size: 1.1rem;
	margin-bottom: 20px;
	color: var(--color-text-primary);
}

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

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

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

.footer__list--contacts .lucide {
	color: var(--color-accent);
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

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

/* HERO SECTION */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	padding-top: var(--header-height);
	overflow: hidden;
}

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

.hero__title {
	font-size: clamp(1.5rem, 5vw, 2.5rem);
	margin-bottom: 20px;
	font-weight: 700;
	line-height: 1.1;
	transform: translateY(30px);
	opacity: 0;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
		opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__subtitle {
	font-size: 1.1rem;
	color: var(--color-text-secondary);
	max-width: 500px;
	margin-bottom: 30px;
	transform: translateY(30px);
	opacity: 0;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
		opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.button {
	display: inline-block;
	background-color: var(--color-accent);
	color: var(--color-text-primary);
	padding: 14px 30px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 1rem;
	transition: transform 0.3s ease, background-color 0.3s ease;
	border: none;
	cursor: pointer;
}

.button:hover {
	transform: translateY(-3px);
	background-color: #2563eb;
	color: var(--color-text-primary);
}

.hero__button {
	transform: translateY(30px);
	opacity: 0;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
		opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

/* Animation trigger */
.hero.is-visible .hero__title,
.hero.is-visible .hero__subtitle,
.hero.is-visible .hero__button,
.hero.is-visible .hero__image {
	transform: translateY(0);
	opacity: 1;
}

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

.hero__image {
	max-width: 100%;
	transform: translateY(30px);
	opacity: 0;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
		opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

/* Background Glow Effect */
.hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(150px);
	z-index: 0;
}

.hero__glow--1 {
	width: 500px;
	height: 500px;
	background-color: rgba(59, 130, 246, 0.15);
	top: -150px;
	left: -150px;
	animation: pulse 10s infinite alternate;
}

.hero__glow--2 {
	width: 400px;
	height: 400px;
	background-color: rgba(99, 102, 241, 0.1);
	bottom: -100px;
	right: -100px;
	animation: pulse 12s infinite alternate-reverse;
}

@keyframes pulse {
	0% {
		transform: scale(1) translate(0, 0);
	}
	100% {
		transform: scale(1.2) translate(40px, -40px);
	}
}

/* Responsive */
@media (max-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}
	.hero__visual {
		margin-top: 40px;
	}
	.hero__image {
		max-width: 70%;
	}
}

@media (max-width: 768px) {
	.hero {
		min-height: auto;
		padding: 120px 0 60px;
	}
	.hero__image {
		max-width: 80%;
	}
}

/* SHARED SECTION HEADER */
.section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px;
}

.section-header__title {
	font-size: clamp(2rem, 4vw, 2.5rem);
	margin-bottom: 15px;
}

.section-header__subtitle {
	font-size: 1.1rem;
	color: var(--color-text-secondary);
}

/* FEATURES SECTION */
.features {
	padding: 80px 0;
}

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

.features__item {
	background-color: var(--color-surface);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid transparent;
	transition: transform 0.3s ease, border-color 0.3s ease;

	/* Animation setup */
	opacity: 0;
	transform: translateY(20px);
}

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

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

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

.features__icon-wrapper .lucide {
	width: 24px;
	height: 24px;
}

.features__title {
	font-size: 1.25rem;
	margin-bottom: 10px;
}

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

/* EXAMPLES (TABS) SECTION */
.examples {
	padding: 80px 0;
	background-color: var(--color-surface);
}

.tabs__nav {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.tabs__button {
	padding: 10px 25px;
	font-size: 1rem;
	font-weight: 500;
	font-family: var(--font-family-body);
	background-color: transparent;
	color: var(--color-text-secondary);
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	transition: color 0.3s ease, border-color 0.3s ease;
}

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

.tabs__button--active {
	color: var(--color-accent);
	border-bottom-color: var(--color-accent);
}

.tabs__panel {
	display: none;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 50px;
	animation: fadeIn 0.5s ease-in-out;
}

.tabs__panel--active {
	display: grid;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tabs__title {
	font-size: 1.8rem;
	margin-bottom: 15px;
}

.tabs__description {
	color: var(--color-text-secondary);
	margin-bottom: 25px;
	max-width: 500px;
}

.tabs__list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 30px;
}

.tabs__list li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tabs__list .lucide {
	color: var(--color-accent);
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.tabs__visual-content img {
	border-radius: 12px;
}

@media (max-width: 992px) {
	.tabs__panel {
		grid-template-columns: 1fr;
	}
	.tabs__text-content {
		order: 2;
		text-align: center;
	}
	.tabs__description {
		margin-left: auto;
		margin-right: auto;
	}
	.tabs__list {
		display: inline-flex;
		text-align: left;
	}
	.tabs__visual-content {
		order: 1;
		margin-bottom: 30px;
	}
}

/* PROCESS SECTION */
.process {
	padding: 80px 0;
}

.process__steps-wrapper {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	position: relative;
}

.process__step {
	background-color: var(--color-surface);
	padding: 30px;
	border-radius: 12px;
	width: 32%;
	position: relative;
	z-index: 2;

	/* Animation setup */
	opacity: 0;
	transform: translateY(20px);
}

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

/* Connecting Line */
.process__steps-wrapper::before {
	content: '';
	position: absolute;
	top: 50px;
	left: 15%;
	right: 15%;
	height: 2px;
	background: repeating-linear-gradient(
		90deg,
		var(--color-accent),
		var(--color-accent) 6px,
		transparent 6px,
		transparent 12px
	);
	z-index: 1;
}

.process__number {
	font-size: 3rem;
	font-weight: 700;
	color: var(--color-accent);
	margin-bottom: 15px;
	font-family: var(--font-family-headings);
}

.process__title {
	font-size: 1.25rem;
	margin-bottom: 10px;
}

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

@media (max-width: 992px) {
	.process__steps-wrapper {
		flex-direction: column;
	}
	.process__step {
		width: 100%;
	}
	.process__steps-wrapper::before {
		display: none; /* Hide horizontal line on mobile */
	}
}

/* REVIEWS SECTION */
.reviews {
	padding: 80px 0;
	background-color: var(--color-surface);
}

.testimonials {
	position: relative;
	max-width: 1100px;
	margin: 0 auto;
}

.testimonials__slider {
	padding: 10px 10px 60px 10px; /* Padding for shadow and pagination */
}

.review-card {
	background-color: var(--color-background);
	padding: 30px;
	border-radius: 12px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.review-card__text {
	font-style: italic;
	color: var(--color-text-secondary);
	margin-bottom: 25px;
	position: relative;
	padding-left: 20px;
}

.review-card__text::before {
	content: '“';
	font-family: 'Times New Roman', serif;
	font-size: 3rem;
	color: var(--color-accent);
	position: absolute;
	left: -10px;
	top: -10px;
}

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

.review-card__avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--color-accent);
}

.review-card__name {
	display: block;
	font-weight: 600;
	color: var(--color-text-primary);
}

.review-card__location {
	font-size: 0.9rem;
	color: var(--color-text-secondary);
}

/* Swiper custom styles */
.testimonials__navigation {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 30px;
	margin-top: 20px;
}

.swiper-button-prev,
.swiper-button-next {
	position: static;
	width: 44px;
	height: 44px;
	margin: 0;
	background-color: var(--color-surface);
	border-radius: 50%;
	color: var(--color-accent);
	transition: background-color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
	background-color: var(--color-accent);
	color: var(--color-text-primary);
}

.swiper-button-prev::after,
.swiper-button-next::after {
	font-size: 1.2rem;
	font-weight: bold;
}

.swiper-pagination {
	position: static;
	width: auto;
}

.swiper-pagination-bullet {
	background-color: var(--color-text-secondary);
	opacity: 0.5;
}

.swiper-pagination-bullet-active {
	background-color: var(--color-accent);
	opacity: 1;
}

/* CONTACT SECTION */
.contact {
	padding: 80px 0;
}

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

.contact__title {
	font-size: clamp(2rem, 4vw, 2.5rem);
	margin-bottom: 20px;
}

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

.contact__info {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.contact__info-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--color-text-secondary);
}

.contact__info-item .lucide {
	color: var(--color-accent);
}

.contact__form-wrapper {
	background-color: var(--color-surface);
	padding: 40px;
	border-radius: 12px;
}

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

.form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--color-text-secondary);
}

.form-input {
	width: 100%;
	padding: 12px;
	background-color: var(--color-background);
	border: 1px solid #334155;
	border-radius: 8px;
	color: var(--color-text-primary);
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 25px;
	font-size: 0.9rem;
	color: var(--color-text-secondary);
}

.form-group--checkbox input[type='checkbox'] {
	margin-top: 3px;
	flex-shrink: 0;
}

.contact-form__button {
	width: 100%;
	padding: 15px;
	font-size: 1.1rem;
}

.success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 40px;
	animation: fadeIn 0.5s ease-in-out;
}

.success-message.is-visible {
	display: block;
}

.success-message .lucide {
	width: 60px;
	height: 60px;
	color: #22c55e; /* Green color */
	margin-bottom: 20px;
}
.success-message h4 {
	font-size: 1.5rem;
	margin-bottom: 10px;
}

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

/* COOKIE POP-UP */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	max-width: 500px;
	background-color: var(--color-surface);
	padding: 20px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	z-index: 1001;
	border: 1px solid #334155;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	transform: translateY(200%);
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

.cookie-popup__button {
	padding: 8px 20px;
	flex-shrink: 0;
}

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

/* GENERIC PAGES STYLING (privacy.html, terms.html, etc.) */
.pages {
	padding: calc(var(--header-height) + 60px) 0 80px;
}

.pages .container {
	max-width: 800px;
}

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

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

.pages p,
.pages li {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--color-text-secondary);
	margin-bottom: 20px;
}

.pages a {
	text-decoration: underline;
}

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

.pages ul,
.pages ol {
	padding-left: 25px;
}

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