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

/* CSS VARIABLES */
:root {
	--background-color: #0d1b2a;
	--primary-color: #1b263b;
	--secondary-color: #415a77;
	--text-color: #e0e1dd;
	--accent-color: #38b6ff;

	--font-family-headings: 'Poppins', sans-serif;
	--font-family-body: 'Inter', sans-serif;
	--header-height: 4.5rem;
}

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

html {
	scroll-behavior: smooth;
}

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

ul {
	list-style: none;
}

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

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

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* LOGO */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-family-headings);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--accent-color);
	transition: transform 0.3s ease;
}

.logo:hover {
	transform: scale(1.05);
}

.logo img {
	width: 42px;
	height: 42px;
}

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

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

.header__nav {
	display: none; /* Hidden on mobile */
}

.header__burger {
	display: block; /* Shown on mobile */
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
	padding: 0.5rem;
}

.header__burger i {
	width: 28px;
	height: 28px;
}

/* MOBILE NAVIGATION */
@media (max-width: 768px) {
	.header__nav {
		display: block;
		position: fixed;
		top: var(--header-height);
		right: -100%;
		width: 70%;
		height: calc(100vh - var(--header-height));
		background-color: var(--primary-color);
		padding: 2rem;
		transition: right 0.4s ease-in-out;
		border-left: 1px solid var(--secondary-color);
	}

	.header__nav.show-menu {
		right: 0;
	}

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

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

.header__nav-link {
	transition: color 0.3s;
	position: relative;
	padding-bottom: 0.25rem;
}

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

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

.header__nav-link:hover::after {
	width: 100%;
}

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

.footer__container {
	display: grid;
	gap: 2.5rem;
}

.footer__description {
	margin-top: 1rem;
	color: var(--secondary-color);
	max-width: 300px;
}

.footer__title {
	font-family: var(--font-family-headings);
	font-size: 1.2rem;
	margin-bottom: 1rem;
}

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

.footer__list--contacts li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.footer__list--contacts i {
	color: var(--accent-color);
	width: 20px;
	height: 20px;
}

.footer__link {
	color: var(--secondary-color);
	transition: color 0.3s, padding-left 0.3s;
}

.footer__link:hover {
	color: var(--accent-color);
	padding-left: 0.25rem;
}

.footer__bottom {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid var(--secondary-color);
	text-align: center;
	color: var(--secondary-color);
	font-size: 0.9rem;
}

/* MEDIA QUERIES (TABLET & DESKTOP) */
@media (min-width: 769px) {
	.header__burger {
		display: none;
	}

	.header__nav {
		display: block;
	}

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

	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.footer__container {
		grid-template-columns: 2fr 1fr 1fr 2fr;
		gap: 3rem;
	}
}

/* BUTTON STYLES */
.button {
	display: inline-block;
	background-color: var(--accent-color);
	color: var(--background-color);
	padding: 0.9rem 2.2rem;
	border-radius: 8px;
	font-family: var(--font-family-body);
	font-weight: 500;
	font-size: 1rem;
	border: 2px solid var(--accent-color);
	transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.button:hover {
	background-color: transparent;
	color: var(--accent-color);
	transform: translateY(-3px);
}

/* HERO SECTION */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: calc(var(--header-height) + 2rem); /* Offset for fixed header */
}

.hero__container {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.hero__title {
	font-family: var(--font-family-headings);
	font-size: 1.5rem;
	line-height: 1.2;
	margin-bottom: 1rem;
	min-height: 58px;
}

/* Typing cursor effect */
.hero__title .cursor {
	display: inline-block;
	background-color: var(--accent-color);
	width: 3px;
	animation: blink 1s infinite;
	margin-left: 2px;
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.hero__description {
	font-size: 1.1rem;
	margin-bottom: 2.5rem;
	max-width: 600px;
	color: var(--secondary-color);
}

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

.hero__image {
	width: 100%;
	border-radius: 12px;
	opacity: 0.7;
}

/* MEDIA QUERIES FOR HERO */
@media (min-width: 769px) {
	.hero__container {
		grid-template-columns: 1.2fr 1fr;
		gap: 4rem;
	}

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

@media (min-width: 1024px) {
	.hero__title {
		font-size: 2.5rem;
		min-height: 96px;
	}
}

/* REUSABLE SECTION STYLES */
.section {
	padding: 6rem 0 4rem;
	overflow: hidden; /* Prevents AOS animations from showing scrollbars */
}

.section__title,
.section__subtitle {
	text-align: center;
}

.section__title {
	font-family: var(--font-family-headings);
	font-size: 2.25rem;
	margin-bottom: 0.5rem;
}

.section__subtitle {
	font-size: 1.1rem;
	color: var(--secondary-color);
	margin-bottom: 4rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* BASICS SECTION */
.basics__grid {
	display: grid;
	gap: 1.5rem;
}

.basics__card {
	background-color: var(--primary-color);
	padding: 2rem 1.5rem;
	border-radius: 12px;
	border: 1px solid var(--secondary-color);
	transition: transform 0.3s, box-shadow 0.3s;
}

.basics__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.basics__card-icon {
	width: 50px;
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: var(--background-color);
	border-radius: 8px;
	margin-bottom: 1.5rem;
}

.basics__card-icon i {
	color: var(--accent-color);
	width: 28px;
	height: 28px;
}

.basics__card-title {
	font-family: var(--font-family-headings);
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.basics__card-description {
	color: var(--secondary-color);
	font-size: 0.95rem;
}

/* MEDIA QUERIES FOR BASICS */
@media (min-width: 576px) {
	.basics__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.basics__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* TOOLS SECTION (ALTERNATIVE) */
.tools-alt {
	padding-bottom: 6rem; /* Add more padding at the bottom */
}

.tools-alt__slider-container {
	max-width: 100%;
	padding-left: 1rem; /* Start cards from the edge */
}

/* On larger screens, center the container */
@media (min-width: 1200px) {
	.tools-alt__slider-container {
		max-width: 1200px;
		margin: 0 auto;
		padding-left: 0;
	}
}

.tools-alt__slider {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	padding: 1rem 0 2rem 0; /* Space for scrollbar and shadow */
	scroll-snap-type: x mandatory;
}

/* Custom Scrollbar */
.tools-alt__slider::-webkit-scrollbar {
	height: 8px;
}
.tools-alt__slider::-webkit-scrollbar-track {
	background: var(--primary-color);
	border-radius: 10px;
}
.tools-alt__slider::-webkit-scrollbar-thumb {
	background: var(--secondary-color);
	border-radius: 10px;
}
.tools-alt__slider::-webkit-scrollbar-thumb:hover {
	background: var(--accent-color);
}

.tools-alt__card {
	flex: 0 0 280px; /* Don't grow, don't shrink, base width 280px */
	scroll-snap-align: start;
	background-color: var(--primary-color);
	border: 1px solid var(--secondary-color);
	border-radius: 12px;
	padding: 1.5rem;
	transition: transform 0.3s, box-shadow 0.3s;
}

.tools-alt__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tools-alt__card-img {
	max-height: 50px;
	margin-bottom: 1.5rem;
	border-radius: 8px; /* For placeholder */
}

.tools-alt__card-title {
	font-family: var(--font-family-headings);
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
}

.tools-alt__card-description {
	color: var(--secondary-color);
	font-size: 0.9rem;
}

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

.cases__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 3rem;
}

.cases__tab-button {
	background-color: transparent;
	border: 1px solid var(--secondary-color);
	color: var(--text-color);
	padding: 0.7rem 1.5rem;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 500;
	transition: background-color 0.3s, color 0.3s;
}

.cases__tab-button:hover {
	background-color: var(--secondary-color);
}

.cases__tab-button.active {
	background-color: var(--accent-color);
	border-color: var(--accent-color);
	color: var(--background-color);
}

.cases__content-wrapper {
	position: relative;
	min-height: 400px; /* Adjust as needed */
}

.cases__content {
	display: none; /* Hidden by default */
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
}

.cases__content.active {
	display: grid;
	gap: 2rem;
	align-items: center;
	opacity: 1;
}

.cases__content-image img {
	border-radius: 12px;
	max-width: 100%;
}

.cases__content-text h3 {
	font-family: var(--font-family-headings);
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

.cases__content-text p {
	color: var(--secondary-color);
	margin-bottom: 2rem;
}

.cases__feature-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.cases__feature-list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.cases__feature-list i {
	color: var(--accent-color);
	width: 20px;
	height: 20px;
	flex-shrink: 0; /* Prevents icon from shrinking */
}

/* MEDIA QUERIES FOR CASES */
@media (min-width: 769px) {
	.cases__content.active {
		grid-template-columns: 1fr 1.2fr;
		gap: 4rem;
	}
}

/* AI ASSISTANTS SECTION */
.ai {
	padding: 6rem 0;
}

.ai__container {
	display: grid;
	gap: 3rem;
	align-items: center;
}

/* Re-align section titles for this block */
.ai .section__title,
.ai .section__subtitle {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.ai__description {
	margin-bottom: 2rem;
	color: var(--secondary-color);
}

.ai__feature-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	list-style: none; /* Ensure no default list style */
	padding: 0; /* Ensure no default padding */
}

.ai__feature-list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 500;
}

.ai__feature-list i {
	color: var(--accent-color);
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

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

.ai__image {
	border-radius: 12px;
	width: 100%;
}

/* MEDIA QUERIES FOR AI SECTION */
@media (min-width: 992px) {
	.ai__container {
		grid-template-columns: 1fr 1fr;
		gap: 5rem;
	}

	/* Change order on large screens, image first */
	.ai__image-wrapper {
		order: 2;
	}
	.ai__content {
		order: 1;
	}
}

/* CONTACT SECTION */
.contact {
	padding: 6rem 0;
}

.contact__container {
	display: grid;
	gap: 4rem;
}

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

.contact__details li {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 1.1rem;
}

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

.contact__details a {
	transition: color 0.3s;
}

.contact__details a:hover {
	color: var(--accent-color);
}

.contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact__form-group {
	display: flex;
	flex-direction: column;
}

.contact__form-label {
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: var(--secondary-color);
	font-size: 0.9rem;
}

.contact__form-input {
	width: 100%;
	padding: 0.9rem 1rem;
	border-radius: 8px;
	border: 1px solid var(--secondary-color);
	background-color: var(--primary-color);
	color: var(--text-color);
	font-size: 1rem;
	font-family: var(--font-family-body);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form-input:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.2);
}

.contact__form-group--checkbox {
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.9rem;
	color: var(--secondary-color);
}

.contact__form-group--checkbox input[type='checkbox'] {
	width: 18px;
	height: 18px;
}

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

.contact__form-button {
	width: 100%;
}

.contact__form-message {
	text-align: center;
	font-size: 1rem;
	opacity: 0; /* Hidden by default */
	transition: opacity 0.4s;
	height: 0; /* Collapsed by default */
}

.contact__form-message.success {
	color: #4caf50; /* Green for success */
	opacity: 1;
	height: auto;
}

.contact__form-message.error {
	color: #f44336; /* Red for error */
	opacity: 1;
	height: auto;
}

/* MEDIA QUERIES FOR CONTACT */
@media (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1fr;
	}
}

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

.cookie-popup.show {
	bottom: 0; /* Show the pop-up */
}

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

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

.cookie-popup__button {
	background-color: var(--accent-color);
	color: var(--background-color);
	border: none;
	padding: 0.6rem 1.8rem;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 500;
	transition: background-color 0.3s;
}

.cookie-popup__button:hover {
	background-color: #62caff;
}

@media (min-width: 769px) {
	.cookie-popup {
		flex-direction: row;
		justify-content: space-between;
		padding: 1.5rem 2rem;
		text-align: left;
	}
}

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

.pages .container {
	max-width: 800px; /* Optimal width for reading */
}

.pages h1 {
	font-family: var(--font-family-headings);
	font-size: 1.5rem;
	margin-bottom: 2rem;
}

.pages h2 {
	font-family: var(--font-family-headings);
	font-size: 1.5rem;
	margin-top: 3rem;
	margin-bottom: 1.5rem;
}

.pages p {
	margin-bottom: 1.5rem;
	line-height: 1.7;
	color: var(--secondary-color);
}

.pages ul {
	list-style: disc;
	padding-left: 25px;
	margin-bottom: 1.5rem;
	color: var(--secondary-color);
}

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

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

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

.pages a:hover {
	color: #62caff;
}
