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

/*=============== CSS VARIABLES ===============*/
:root {
	/* Colors */
	--background-color: #0a0a1a;
	--primary-color: #4d5bce;
	--secondary-color: #2c2c54;
	--text-color: #e0e0e0;
	--heading-color: #ffffff;

	/* Typography */
	--font-family-body: 'Roboto', sans-serif;
	--font-family-heading: 'Exo 2', sans-serif;

	/* Spacing */
	--header-height: 4.5rem;
}

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

html {
	scroll-behavior: smooth;
}

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

ul {
	list-style: none;
}

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

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

h1,
h2,
h3 {
	font-family: var(--font-family-heading);
	color: var(--heading-color);
}

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

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

.header__container {
	height: var(--header-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-family-heading);
	font-size: 1.25rem;
	color: var(--heading-color);
	font-weight: 700;
}

.header__logo-icon {
	width: 32px;
	height: 32px;
}

.header__toggle {
	display: none;
	cursor: pointer;
	background: none;
	border: none;
	color: var(--heading-color);
}

.header__nav-list {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.header__nav-link {
	color: var(--text-color);
	font-weight: 500;
	transition: color 0.3s ease;
}

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

.header__nav-link--button {
	background-color: var(--primary-color);
	color: var(--heading-color);
	padding: 0.5rem 1.5rem;
	border-radius: 2rem;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.header__nav-link--button:hover {
	background-color: #3a47a8;
	transform: translateY(-2px);
	color: var(--heading-color);
}

/*=============== FOOTER ===============*/
.footer {
	background-color: #080815;
	padding: 4rem 0 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer__logo-icon {
	width: 32px;
	height: 32px;
}

.footer__description {
	font-size: 0.9rem;
	max-width: 250px;
}

.footer__title {
	font-size: 1.1rem;
	margin-bottom: 1rem;
}

.footer__link {
	display: inline-block;
	margin-bottom: 0.5rem;
	transition: color 0.3s ease, transform 0.3s ease;
	font-size: 0.9rem;
}

.footer__link:hover {
	color: var(--primary-color);
	transform: translateX(5px);
}

.footer__list--contact .footer__link {
	display: block;
}

.footer__address {
	font-size: 0.9rem;
	line-height: 1.5;
	margin-top: 0.5rem;
}

.footer__bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copy {
	font-size: 0.85rem;
	color: #888;
}

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

	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100vh;
		background-color: var(--background-color);
		transition: right 0.4s ease;
	}

	.header__nav-list {
		flex-direction: column;
		padding-top: 3rem;
		gap: 2.5rem;
	}

	.header__nav-link {
		font-size: 1.2rem;
	}

	/* Show menu */
	.show-menu {
		right: 0;
	}
}

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

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

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

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

.hero__subtitle {
	font-size: 1.1rem;
	margin-bottom: 2.5rem;
	color: var(--text-color);
	opacity: 0.9;
}

.hero__button {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--heading-color);
	padding: 1rem 2.5rem;
	border-radius: 2rem;
	font-weight: 500;
	font-size: 1rem;
	transition: background-color 0.3s ease, transform 0.3s ease;
	box-shadow: 0 4px 15px rgba(77, 91, 206, 0.4);
}

.hero__button:hover {
	background-color: #3a47a8;
	transform: translateY(-3px);
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (max-width: 768px) {
	.hero__title {
		font-size: 2.5rem;
	}

	.hero__subtitle {
		font-size: 1rem;
	}
}

/* For small devices */
@media screen and (max-width: 480px) {
	.hero {
		min-height: 500px;
	}
	.hero__title {
		font-size: 2rem;
	}

	.hero__button {
		padding: 0.8rem 2rem;
		font-size: 0.9rem;
	}
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
	padding: 6rem 0 2rem;
	overflow: hidden; /* For animations */
}

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

.section__title {
	font-size: 2.25rem;
	margin-bottom: 0.75rem;
}

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

/*=============== TECHNOLOGIES ===============*/
.tech {
	background-color: #080815;
}

.tech__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.tech__card {
	background-color: var(--background-color);
	padding: 2.5rem 2rem;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;

	/* Animation preparation */
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.tech__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 30px rgba(77, 91, 206, 0.2);
}

.tech__card-icon {
	margin-bottom: 1.5rem;
	color: var(--primary-color);
}

.tech__card-icon i {
	width: 48px;
	height: 48px;
}

.tech__card-title {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.tech__card-description {
	font-size: 0.95rem;
	line-height: 1.7;
}

/* Staggered animation delay */
.tech__card:nth-child(2).is-visible {
	transition-delay: 0.2s;
}
.tech__card:nth-child(3).is-visible {
	transition-delay: 0.4s;
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (max-width: 768px) {
	.section {
		padding: 4rem 0 1rem;
	}
	.section__title {
		font-size: 2rem;
	}
}

/* For small devices */
@media screen and (max-width: 480px) {
	.section__title {
		font-size: 1.75rem;
	}
}

/*=============== FEATURES ===============*/
.features__grid {
	display: grid;
	gap: 5rem;
}

.features__item {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 3rem;

	/* Animation preparation */
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.features__item--reversed {
	grid-template-columns: 1fr 1fr;
}

.features__item--reversed .features__image-wrapper {
	order: 2;
}

.features__image-wrapper {
	background-color: var(--secondary-color);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.features__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.5;
}

.features__title {
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

.features__description {
	margin-bottom: 2rem;
	line-height: 1.7;
}

.features__link {
	color: var(--primary-color);
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: transform 0.3s ease;
}

.features__link:hover {
	transform: translateX(5px);
}

.features__link-icon {
	width: 20px;
	height: 20px;
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (max-width: 768px) {
	.features__item,
	.features__item--reversed {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.features__item--reversed .features__image-wrapper {
		order: 0;
	}

	.features__content {
		text-align: center;
	}

	.features__link {
		justify-content: center;
	}
}

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

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

.case__card {
	position: relative;
	height: 380px;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.1);

	/* Animation preparation */
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Staggered animation for cases */
.case__card:nth-child(2).is-visible {
	transition-delay: 0.1s;
}
.case__card:nth-child(3).is-visible {
	transition-delay: 0.2s;
}
.case__card:nth-child(4).is-visible {
	transition-delay: 0.3s;
}

.case__card-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.case__card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to top,
		rgba(10, 10, 26, 0.9) 20%,
		rgba(10, 10, 26, 0.2) 100%
	);
}

.case__card-content {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 1.5rem;
	z-index: 2;
	color: var(--heading-color);
}

.case__card-category {
	display: inline-block;
	background-color: var(--primary-color);
	padding: 0.25rem 0.75rem;
	border-radius: 1rem;
	font-size: 0.8rem;
	font-weight: 500;
	margin-bottom: 0.75rem;
}

.case__card-title {
	font-size: 1.35rem;
	margin-bottom: 0.5rem;
}

.case__card-description {
	font-size: 0.9rem;
	color: var(--text-color);
	opacity: 0.8;
}

.case__card:hover .case__card-bg {
	transform: scale(1.05);
}

.case__card:hover {
	box-shadow: 0 8px 30px rgba(77, 91, 206, 0.2);
}

/*=============== BLOG ===============*/
.blog__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.blog__card {
	background-color: var(--secondary-color);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;

	/* Animation preparation */
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Staggered animation for blog cards */
.blog__card:nth-child(2).is-visible {
	transition-delay: 0.2s;
}
.blog__card:nth-child(3).is-visible {
	transition-delay: 0.4s;
}

.blog__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 30px rgba(77, 91, 206, 0.15);
}

.blog__card-image-link {
	display: block;
	height: 200px;
	overflow: hidden;
}

.blog__card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.blog__card:hover .blog__card-img {
	transform: scale(1.05);
}

.blog__card-content {
	padding: 1.5rem;
}

.blog__card-category {
	display: inline-block;
	color: var(--primary-color);
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 0.75rem;
}

.blog__card-title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

.blog__card-title a {
	transition: color 0.3s ease;
}

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

.blog__card-excerpt {
	font-size: 0.95rem;
	margin-bottom: 1.5rem;
	opacity: 0.8;
}

.blog__card-readmore {
	font-weight: 500;
	color: var(--heading-color);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: color 0.3s ease;
}

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

.blog__card-readmore i {
	width: 18px;
	height: 18px;
}

/*=============== CONTACT ===============*/
.contact {
	background-color: #080815;
}

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

.contact__info {
	margin-top: 2rem;
	display: grid;
	gap: 1rem;
}

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

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

.contact__form-wrapper {
	background-color: var(--background-color);
	padding: 2.5rem;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact__form {
	display: grid;
	gap: 1.5rem;
}

.contact__form-group {
	position: relative;
}

.contact__form-input {
	width: 100%;
	padding: 1rem;
	background-color: var(--secondary-color);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: var(--text-color);
	font-size: 1rem;
	outline: none;
	transition: border-color 0.3s ease;
}

.contact__form-input:focus {
	border-color: var(--primary-color);
}

.contact__form-label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	color: #aaa;
	pointer-events: none;
	transition: top 0.3s ease, font-size 0.3s ease, color 0.3s ease;
}

.contact__form-input:focus + .contact__form-label,
.contact__form-input:not(:placeholder-shown) + .contact__form-label {
	top: -0.75rem;
	left: 0.75rem;
	font-size: 0.8rem;
	color: var(--primary-color);
	background-color: var(--background-color);
	padding: 0 0.25rem;
}

.contact__form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.contact__form-checkbox {
	margin-top: 0.25rem;
}

.contact__form-checkbox-label {
	font-size: 0.85rem;
	opacity: 0.8;
}

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

.contact__form-button {
	background-color: var(--primary-color);
	color: var(--heading-color);
	padding: 1rem;
	border: none;
	border-radius: 8px;
	font-weight: 500;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.contact__form-button:hover {
	background-color: #3a47a8;
}

.contact__form-message {
	font-size: 0.9rem;
	margin-top: 1rem;
	text-align: center;
	display: none; /* Initially hidden */
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
	}
}

/*=============== COOKIE POPUP ===============*/
.cookie {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--secondary-color);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
	padding: 1.5rem 0;
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie.is-visible {
	bottom: 0;
}

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

.cookie__text {
	font-size: 0.9rem;
	opacity: 0.9;
}

.cookie__link {
	color: var(--primary-color);
	text-decoration: underline;
}

.cookie__button {
	background-color: var(--primary-color);
	color: var(--heading-color);
	padding: 0.6rem 1.5rem;
	border: none;
	border-radius: 2rem;
	cursor: pointer;
	font-size: 0.9rem;
	white-space: nowrap;
	transition: background-color 0.3s ease;
}

.cookie__button:hover {
	background-color: #3a47a8;
}

/*=============== STYLES FOR POLICY PAGES ===============*/
.pages .container {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
	max-width: 800px;
}

.pages h1,
.pages h2 {
	font-family: var(--font-family-heading);
	color: var(--heading-color);
	margin-bottom: 1.5rem;
}

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

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

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

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

.pages li {
	margin-bottom: 0.75rem;
	line-height: 1.8;
}

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

.pages a:hover {
	color: #fff;
}

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

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 576px) {
	.cookie__container {
		flex-direction: column;
		text-align: center;
	}
}
