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

/* ============== CSS VARIABLES ============== */
:root {
	--header-height: 5rem;

	/* Colors */
	--primary-color: #007bff;
	--primary-color-alt: #0056b3;
	--secondary-color: #33d17a;
	--title-color: #eaeaea;
	--text-color: #b8b8b8;
	--background-color: #0d1117;
	--surface-color: #161b22;
	--border-color: #30363d;

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

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

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

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

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

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

html {
	scroll-behavior: smooth;
}

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

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

ul {
	list-style: none;
}

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

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

/* ============== REUSABLE CSS CLASSES ============== */
.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: var(--z-fixed);
	background-color: rgba(13, 17, 23, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
}

.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;
	color: var(--title-color);
	font-family: var(--title-font);
	font-weight: var(--font-bold);
	font-size: 1.25rem;
	transition: color 0.3s ease;
}

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

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

.header__menu-toggle {
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--title-color);
	display: none; /* Hidden on desktop */
	background: none;
	border: none;
}

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

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

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

.header__nav-link--button {
	background-color: var(--primary-color);
	color: var(--title-color);
	padding: 0.5rem 1.5rem;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

.header__nav-link--button:hover {
	background-color: var(--primary-color-alt);
	color: var(--title-color);
}

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

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

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

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

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

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

.footer__link-list li {
	margin-bottom: var(--mb-0-5);
}

.footer__link {
	transition: color 0.3s ease;
}

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

.footer__contact-list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: var(--mb-0-5);
}

.footer__contact-list i {
	color: var(--primary-color);
	width: 20px;
}

.footer__bottom {
	text-align: center;
	margin-top: 3rem;
	font-size: var(--small-font-size);
}

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

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

	.header__nav.active {
		right: 0;
	}

	.header__nav-list {
		flex-direction: column;
		gap: 2.5rem;
		text-align: center;
	}

	.header__nav-link {
		font-size: var(--h3-font-size);
	}
}

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

/* ============== HERO SECTION ============== */
.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: 3.5rem;
	font-family: var(--title-font);
	color: var(--title-color);
	line-height: 1.2;
	margin-bottom: var(--mb-1-5);
	text-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.hero__description {
	font-size: 1.125rem;
	color: var(--text-color);
	max-width: 600px;
	margin: 0 auto var(--mb-2);
	line-height: 1.7;
}

.hero__cta-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: var(--primary-color);
	color: #fff;
	padding: 1rem 2.5rem;
	border-radius: 5px;
	font-size: var(--normal-font-size);
	font-weight: var(--font-medium);
	transition: all 0.3s ease;
	box-shadow: 0 4px 20px rgba(0, 123, 255, 0.25);
}

.hero__cta-button:hover {
	background-color: var(--primary-color-alt);
	transform: translateY(-3px);
	box-shadow: 0 7px 25px rgba(0, 123, 255, 0.3);
}

.hero__cta-button i {
	transition: transform 0.3s ease;
}

.hero__cta-button:hover i {
	transform: translateX(5px);
}

/* ============== MEDIA QUERIES (for Hero) ============== */
@media screen and (max-width: 768px) {
	.hero__title {
		font-size: 2.5rem;
	}
	.hero__description {
		font-size: 1rem;
	}
}

@media screen and (max-width: 480px) {
	.hero {
		min-height: 500px;
		text-align: left;
	}
	.hero__content {
		text-align: left;
	}
	.hero__title {
		font-size: 2rem;
	}
	.hero__cta-button {
		width: 100%;
		justify-content: center;
	}
}

/* ============== REUSABLE SECTION STYLES ============== */
.section {
	padding: 6rem 0 2rem;
}

.section__header {
	text-align: center;
	margin-bottom: 3rem;
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
}

.section__subtitle {
	display: inline-block;
	color: var(--primary-color);
	font-weight: var(--font-bold);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: var(--mb-0-5);
	font-size: var(--small-font-size);
}

.section__title {
	font-size: var(--h2-font-size);
	margin-bottom: var(--mb-1);
	font-family: var(--title-font);
}

/* ============== SOLUTIONS SECTION ============== */
.solutions {
	background-color: var(--surface-color);
}

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

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

.solution-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	border-color: var(--primary-color);
}

.solution-card__icon {
	width: 60px;
	height: 60px;
	margin: 0 auto var(--mb-1-5);
	background: linear-gradient(
		145deg,
		var(--primary-color),
		var(--secondary-color)
	);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.solution-card__icon i {
	width: 32px;
	height: 32px;
}

.solution-card__title {
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-0-5);
	color: var(--title-color);
	font-family: var(--body-font); /* Using body font for better readability */
	font-weight: var(--font-bold);
}

.solution-card__description {
	font-size: var(--normal-font-size);
	line-height: 1.6;
}

/* ============== MEDIA QUERIES (for Sections) ============== */
@media screen and (max-width: 768px) {
	.section {
		padding: 4rem 0 1rem;
	}
	.section__title {
		font-size: 1.5rem;
	}
}

/* ============== TECHNOLOGIES SECTION ============== */
.tech {
	background-color: var(--background-color);
}

.tech__tabs-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	max-width: 900px;
	margin: 0 auto;
	min-height: 268px;
}

.tech__tabs-nav {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.tech__tab-button {
	background-color: var(--surface-color);
	color: var(--text-color);
	border: 1px solid var(--border-color);
	padding: 0.75rem 1.5rem;
	border-radius: 5px;
	cursor: pointer;
	font-size: var(--normal-font-size);
	font-weight: var(--font-medium);
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1 1 auto;
	justify-content: center;
}

.tech__tab-button:hover {
	background-color: var(--border-color);
	color: var(--title-color);
}

.tech__tab-button--active {
	background-color: var(--primary-color);
	color: #fff;
	border-color: var(--primary-color);
}

.tech__tab-button--active:hover {
	background-color: var(--primary-color-alt);
	color: #fff;
}

.tech__tabs-content {
	position: relative;
	background-color: var(--surface-color);
	padding: 2rem;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	min-height: 200px;
}

.tech__content {
	display: none;
	animation: fadeIn 0.5s;
}

.tech__content--active {
	display: block;
}

.tech__content-title {
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-1);
	color: var(--title-color);
}

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

/* Media Query for larger screens */
@media screen and (min-width: 768px) {
	.tech__tabs-container {
		grid-template-columns: 30% 1fr;
		gap: 3rem;
	}

	.tech__tabs-nav {
		flex-direction: column;
		justify-content: flex-start;
	}

	.tech__tab-button {
		justify-content: flex-start;
	}
}

/* ============== BENEFITS SECTION ============== */
.benefits {
	background-color: var(--surface-color);
}

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

.benefits__image-content {
	text-align: center;
}

.benefits__image {
	border-radius: 8px;
	max-width: 450px;
	width: 100%;
	border: 1px solid var(--border-color);
}

.benefits__list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 2rem;
}

.benefits__item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.benefits__item-icon {
	flex-shrink: 0;
	color: var(--primary-color);
	background-color: rgba(0, 123, 255, 0.1);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.benefits__item-icon i {
	width: 24px;
	height: 24px;
}

.benefits__item-title {
	font-size: 1.125rem;
	color: var(--title-color);
	margin-bottom: 0.25rem;
	font-weight: var(--font-bold);
}

.benefits__item-description {
	font-size: var(--normal-font-size);
	line-height: 1.6;
}

/* Media Query for larger screens */
@media screen and (min-width: 992px) {
	.benefits__container {
		grid-template-columns: 1fr 1.1fr;
	}
}

/* ============== CASES SECTION (SLIDER) ============== */
.cases {
	background-color: var(--background-color);
}

.cases__container {
	padding-left: 0;
	padding-right: 0;
}

.cases__slider {
	padding: 1rem; /* Padding to make nav buttons more visible */
}

.case-card {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	height: 400px;
	display: flex;
	align-items: flex-end;
	color: #fff;
	transition: transform 0.4s ease;
}

.case-card:hover {
	transform: scale(1.03);
}

.case-card__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

.case-card__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.85) 0%,
		rgba(0, 0, 0, 0) 60%
	);
	z-index: 2;
}

.case-card__content {
	position: relative;
	z-index: 3;
	padding: 1.5rem;
}

.case-card__category {
	display: inline-block;
	background-color: var(--primary-color);
	color: #fff;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: var(--font-bold);
	text-transform: uppercase;
	margin-bottom: var(--mb-1);
}

.case-card__title {
	font-size: 1.25rem;
	color: #fff;
	font-family: var(--body-font);
	font-weight: var(--font-bold);
	margin-bottom: var(--mb-1);
}

.case-card__link {
	color: #fff;
	font-weight: var(--font-bold);
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	transition: all 0.3s ease;
}

.case-card__link:hover {
	color: var(--secondary-color);
	gap: 0.5rem;
}

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

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

.swiper-button-next,
.swiper-button-prev {
	color: #fff;
	background-color: rgba(13, 17, 23, 0.5);
	width: 50px !important;
	height: 50px !important;
	border-radius: 50%;
	transition: background-color 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
	background-color: rgba(0, 123, 255, 0.5);
}

.swiper-button-next::after,
.swiper-button-prev::after {
	font-size: 1.5rem !important;
}

@media screen and (max-width: 768px) {
	.swiper-button-next,
	.swiper-button-prev {
		display: none !important;
	}
}

/* ============== CONTACT SECTION ============== */
.contact {
    background-color: var(--surface-color);
    padding-bottom: 6rem;
}

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

.contact__details {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--normal-font-size);
}

.contact__details i {
    color: var(--primary-color);
}

.contact__form {
    background-color: var(--background-color);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact__form-title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: var(--title-color);
    text-align: center;
    margin-bottom: var(--mb-2);
}

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

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

.contact__form-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-color);
    pointer-events: none;
    transition: all 0.3s ease;
}

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

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

.contact__form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: var(--small-font-size);
}
.contact__form-group--checkbox label a {
    color: var(--primary-color);
    text-decoration: underline;
}

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


.contact__form-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: var(--normal-font-size);
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.contact__form-message {
    text-align: center;
    font-size: var(--small-font-size);
    margin-top: var(--mb-1);
    height: 1.5rem; /* Reserve space to prevent layout shift */
}

/* Media Query for larger screens */
@media screen and (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* ============== COOKIE POP-UP ============== */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    transition: bottom 0.5s ease-in-out;
}

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

.cookie-popup__text {
    font-size: var(--small-font-size);
    margin: 0;
}

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

.cookie-popup__button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
    background-color: var(--primary-color-alt);
}

@media screen and (min-width: 768px) {
    .cookie-popup {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 2rem;
    }
}


/* ============== STYLES FOR POLICY PAGES ============== */
.pages {
    padding: calc(var(--header-height) + 4rem) 0 4rem;
}

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

.pages h1,
.pages h2 {
    font-family: var(--title-font);
    color: var(--title-color);
    margin-bottom: var(--mb-1-5);
}

.pages h1 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--mb-1);
}

.pages h2 {
    font-size: 1.5rem;
    margin-top: var(--mb-2);
}

.pages p {
    font-size: var(--normal-font-size);
    line-height: 1.7;
    margin-bottom: var(--mb-1-5);
    color: var(--text-color);
}

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

.pages li {
    margin-bottom: var(--mb-1);
}

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

.pages a:hover {
    color: var(--primary-color-alt);
}

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