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

/*=============== CSS VARIABLES ===============*/
:root {
	/* Colors */
	--first-color: #64ffda;
	--dark-color: #0a192f;
	--text-color: #ccd6f6;
	--body-color: #0a192f;
	--container-color: #172a45;
	--border-color: #233554;

	/* Typography */
	--body-font: 'Roboto', sans-serif;
	--title-font: 'Poppins', 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-regular: 400;
	--font-medium: 500;
	--font-semibold: 600;
	--font-bold: 700;

	/* Margins & Paddings */
	--mb-0-5: 0.5rem;
	--mb-1: 1rem;
	--mb-1-5: 1.5rem;
	--mb-2: 2rem;
	--mb-2-5: 2.5rem;
}

/*=============== 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);
	transition: background-color 0.4s;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: var(--text-color);
}

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

.container {
	max-width: 1120px;
	margin: 0 auto;
	padding-left: var(--mb-1-5);
	padding-right: var(--mb-1-5);
}

/*=============== HEADER ===============*/
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	background-color: rgba(10, 25, 47, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
}

.header__container {
	height: 4.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-semibold);
	font-size: 1.25rem;
	color: var(--first-color);
}

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

.header__toggle {
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--first-color);
	display: none; /* Hidden by default, shown in media query */
}

/*=============== NAV ===============*/
.nav__list {
	display: flex;
	gap: 2.5rem;
}

.nav__link {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	color: var(--text-color);
	transition: color 0.3s;
	position: relative;
	padding-bottom: 0.25rem;
}

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

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

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

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

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

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

.footer__logo img {
	width: 32px;
}

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

.footer__title {
	font-family: var(--title-font);
	font-size: var(--h3-font-size);
	color: #fff;
	margin-bottom: var(--mb-1-5);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer__link {
	color: var(--text-color);
	transition: color 0.3s;
	font-size: var(--normal-font-size);
}

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

.footer__contact {
	font-style: normal;
}

.footer__contact p {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: var(--mb-1);
}

.footer__icon {
	width: 20px;
	height: 20px;
	color: var(--first-color);
}

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

/*=============== MEDIA QUERIES ===============*/
/* For medium devices */
@media screen and (max-width: 768px) {
	.header__toggle {
		display: block;
	}

	.nav {
		position: fixed;
		top: -100vh;
		left: 0;
		background-color: var(--dark-color);
		width: 100%;
		padding: 4rem 0 3rem;
		transition: top 0.4s;
		border-bottom: 1px solid var(--border-color);
	}

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

	/* Show menu */
	.show-menu {
		top: 4.5rem;
	}
}

/* For small devices */
@media screen and (max-width: 350px) {
	.container {
		padding-left: var(--mb-1);
		padding-right: var(--mb-1);
	}
}

/*=============== REUSABLE CSS CLASSES ===============*/
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem 1.75rem;
	border-radius: 4px;
	font-family: var(--body-font);
	font-weight: var(--font-medium);
	transition: all 0.3s ease;
	cursor: pointer;
	border: 2px solid var(--first-color);
}

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

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

.button__icon {
	width: 20px;
	height: 20px;
	transition: transform 0.3s ease;
}

.button:hover .button__icon {
	transform: translateX(0.25rem);
}

/*=============== HERO ===============*/
.hero {
	padding-top: 8rem; /* header height + extra space */
	padding-bottom: 4rem;
	min-height: 100vh;
	display: flex;
	align-items: center;
}

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

.hero__title {
	font-family: var(--title-font);
	font-size: 1.5rem; /* Mobile first */
	line-height: 1.3;
	margin-bottom: var(--mb-1-5);
	color: #fff;
}

.hero__title-dynamic {
	color: var(--first-color);
}

.hero__cursor {
	color: var(--first-color);
	animation: blink 1s step-end infinite;
}

@keyframes blink {
	from,
	to {
		color: transparent;
	}
	50% {
		color: var(--first-color);
	}
}

.hero__description {
	font-size: var(--normal-font-size);
	line-height: 1.6;
	margin-bottom: var(--mb-2-5);
	max-width: 550px;
}

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

.hero__image {
	width: 100%;
	max-width: 450px;
	border-radius: 8px;
	transition: all 0.4s ease;
}

/*=============== MEDIA QUERIES (Hero) ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.hero__container {
		grid-template-columns: 1fr 1fr;
	}

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

/* For large devices */
@media screen and (min-width: 992px) {
	.hero__title {
		font-size: 2.5rem;
	}
	.hero__description {
		font-size: 1.125rem;
	}
}

/*=============== REUSABLE CSS CLASSES (Section) ===============*/
.section {
	padding: 6rem 0 2rem;
}

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

.section__title {
	font-size: var(--h2-font-size);
	font-family: var(--title-font);
	color: #fff;
	margin-bottom: var(--mb-0-5);
}

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

/*=============== STEPS (How it works) ===============*/
.steps__container {
	display: grid;
	gap: 2rem;
	position: relative;
}

/* Decorative line */
.steps__container::before {
	content: '';
	position: absolute;
	top: 2rem;
	left: 50%;
	width: 2px;
	height: calc(100% - 4rem);
	background: linear-gradient(
		var(--border-color),
		var(--border-color) 60%,
		transparent
	);
	transform: translateX(-50%);
	display: none; /* Hidden on mobile */
}

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

.steps__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.steps__icon-wrapper {
	position: relative;
	margin-bottom: var(--mb-2);
	display: inline-block;
}

.steps__icon {
	width: 48px;
	height: 48px;
	color: var(--first-color);
}

.steps__number {
	position: absolute;
	top: -0.75rem;
	right: -1.5rem;
	font-family: var(--title-font);
	font-size: 1.5rem;
	font-weight: var(--font-bold);
	color: var(--border-color);
}

.steps__title {
	font-family: var(--title-font);
	font-size: var(--h3-font-size);
	color: #fff;
	margin-bottom: var(--mb-0-5);
}

.steps__description {
	line-height: 1.6;
}

/*=============== MEDIA QUERIES (Steps) ===============*/
@media screen and (min-width: 768px) {
	.section {
		padding: 8rem 0 4rem;
	}
	.section__title {
		font-size: 2rem;
	}
	.steps__container {
		grid-template-columns: repeat(3, 1fr);
		gap: 2.5rem;
	}

	.steps__container::before {
		display: block;
		width: calc(100% - 10rem);
		height: 2px;
		top: 3.5rem; /* Vertically center with icons */
		left: 5rem;
		transform: translateY(-50%);
	}

	.steps__card {
		text-align: left;
	}
}

/*=============== FEATURES ===============*/
.features__container {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.features__card {
	background-color: var(--container-color);
	padding: 2rem;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.features__icon {
	margin-bottom: var(--mb-1-5);
}

.features__icon i {
	width: 40px;
	height: 40px;
	color: var(--first-color);
}

.features__title {
	font-family: var(--title-font);
	font-size: 1.125rem;
	color: #fff;
	margin-bottom: var(--mb-0-5);
}

.features__description {
	font-size: var(--small-font-size);
	line-height: 1.6;
}

/*=============== MEDIA QUERIES (Features) ===============*/
@media screen and (min-width: 992px) {
	.features__container {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

/*=============== CASES (Swiper) ===============*/
.cases__container {
	padding-bottom: 3rem; /* Space for pagination */
}

.cases-swiper {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

.cases__card {
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 2rem;
	text-align: center;
}

.cases__img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: var(--mb-1-5);
	border: 3px solid var(--first-color);
}

.cases__quote {
	font-style: italic;
	line-height: 1.6;
	margin-bottom: var(--mb-2);
}

.cases__quote strong {
	color: var(--first-color);
	font-style: normal;
}

.cases__author {
	margin-top: auto;
}

.cases__name {
	font-family: var(--title-font);
	font-size: 1.125rem;
	color: #fff;
}

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

/* Swiper Styles */
.swiper-pagination-bullet {
	background-color: var(--border-color);
}

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

.swiper-button-prev,
.swiper-button-next {
	color: var(--first-color);
	background-color: var(--container-color);
	width: 44px !important;
	height: 44px !important;
	border-radius: 50%;
	border: 1px solid var(--border-color);
	transition: background-color 0.3s, border-color 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
	background-color: var(--first-color);
	border-color: var(--first-color);
	color: var(--dark-color);
}

.swiper-button-prev::after,
.swiper-button-next::after {
	content: '';
}

.swiper-button-prev i,
.swiper-button-next i {
	width: 24px !important;
	height: 24px !important ;
}

/* On mobile, hide arrows and show only pagination */
@media screen and (max-width: 768px) {
	.swiper-button-prev,
	.swiper-button-next {
		display: none !important;
	}
}

/*=============== FAQ ===============*/
.faq__container {
	max-width: 700px;
	display: grid;
	gap: 1.5rem;
}

.faq__item {
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1.5rem;
	transition: box-shadow 0.3s;
}

.faq__item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	cursor: pointer;
}

.faq__question {
	font-family: var(--title-font);
	font-size: 1.1rem;
	color: #fff;
	font-weight: var(--font-medium);
}

.faq__icon {
	color: var(--first-color);
	transition: transform 0.3s;
}

.faq__icon i {
	width: 24px;
	height: 24px;
}

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

.faq__answer {
	padding-top: 0;
	line-height: 1.7;
	font-size: var(--small-font-size);
}

/* Accordion open state */
.faq__item.open .faq__icon {
	transform: rotate(45deg);
}

.faq__item.open .faq__content {
	/* max-height will be set by JS */
	padding-top: 1.5rem;
}

/*=============== CONTACT ===============*/
.contact__container {
	display: grid;
	gap: 3rem;
	padding-top: 2rem; /* Add some space at the top */
}

.contact__description {
	line-height: 1.7;
}

.contact__form-wrapper {
	position: relative;
}

.contact__form-group {
	position: relative;
	margin-bottom: 2rem;
}

.contact__form-input {
	width: 100%;
	padding: 1rem;
	border: 2px solid var(--border-color);
	background-color: transparent;
	border-radius: 4px;
	color: var(--text-color);
	font-size: var(--normal-font-size);
	outline: none;
	transition: border-color 0.3s;
}

.contact__form-label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background-color: var(--body-color);
	padding: 0 0.25rem;
	color: var(--text-color);
	transition: top 0.3s, font-size 0.3s, color 0.3s;
	pointer-events: none;
}

/* Input focus styles */
.contact__form-input:focus {
	border-color: var(--first-color);
}

.contact__form-input:focus + .contact__form-label,
.contact__form-input:not(:placeholder-shown) + .contact__form-label {
	top: -0.75rem;
	font-size: var(--small-font-size);
	color: var(--first-color);
}

.contact__checkbox-group {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.contact__checkbox-input {
	width: 18px;
	height: 18px;
	accent-color: var(--first-color);
	margin-top: 0.2rem;
}

.contact__checkbox-label {
	font-size: var(--small-font-size);
	line-height: 1.5;
}

.contact__checkbox-label a {
	color: var(--first-color);
	text-decoration: underline;
}

.contact__button {
	width: 100%;
}

.contact__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
	background-color: var(--container-color);
	border: 2px solid var(--first-color);
	border-radius: 8px;
}

@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: 0.8fr 1.2fr;
		gap: 5rem;
		align-items: center;
	}
}

/*=============== COOKIE POPUP ===============*/
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--container-color);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	padding: 1.5rem 1rem;
	z-index: 110;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
	bottom: 0;
}

.cookie-popup__container {
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
}

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

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

.button--cookie {
	padding: 0.75rem 1.5rem;
	background-color: var(--first-color);
	color: var(--dark-color);
	border: none;
}

.button--cookie:hover {
	background-color: #fff;
}

@media screen and (max-width: 576px) {
	.cookie-popup__container {
		flex-direction: column;
		text-align: center;
	}
}

/*=============== STYLES FOR POLICY PAGES ===============*/
.pages {
	padding: 8rem 0 4rem;
}

.pages .container h1 {
	font-family: var(--title-font);
	font-size: 1.5rem;
	color: #fff;
	margin-bottom: var(--mb-2);
}

.pages .container h2 {
	font-family: var(--title-font);
	font-size: 1.5rem;
	color: #fff;
	margin-top: var(--mb-2-5);
	margin-bottom: var(--mb-1);
}

.pages .container p {
	line-height: 1.8;
	margin-bottom: var(--mb-1-5);
	color: var(--text-color);
}

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

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

.pages .container ul {
	list-style-type: disc;
	padding-left: 2rem;
	margin-bottom: var(--mb-1-5);
}

.pages .container ul li {
	line-height: 1.8;
	margin-bottom: var(--mb-1);
	color: var(--text-color);
}

.pages .container strong {
	color: #fff;
	font-weight: var(--font-medium);
}
