:root {
	--primary-color: #0a0f2c; /* Dark blue */
	--secondary-color: #1a237e; /* Indigo */
	--accent-color: #30cfd0; /* Light teal/cyan */
	--text-color: #e0e0e0; /* Light grey */
	--text-muted-color: #9e9e9e; /* Medium grey */
	--card-bg-color: #1c1f3a; /* Slightly lighter dark blue */
	--font-family: 'Arial', sans-serif;
	--section-padding: 4rem 2rem;
	--border-radius: 8px;
}

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

body {
	font-family: var(--font-family);
	background-color: var(--primary-color);
	color: var(--text-color);
	line-height: 1.6;
	overflow-x: hidden; /* Prevent horizontal scroll */
}

header {
	background-color: var(--secondary-color);
	padding: 1rem 2rem;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

nav .logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--accent-color);
	text-decoration: none;
}

.logo img {
	height: 40px;
	width: auto;
}

nav ul {
	list-style: none;
	display: flex;
}

nav ul li {
	margin-left: 2rem;
}

nav ul li a {
	text-decoration: none;
	color: var(--text-color);
	font-size: 1rem;
	transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
	color: var(--accent-color);
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--text-color);
	font-size: 2rem;
	cursor: pointer;
}

main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem; /* Add some padding to prevent content touching edges on small screens */
}

section {
	padding: var(--section-padding);
	margin-bottom: 2rem;
	opacity: 0;
	transform: scale(0.95);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
	border-radius: var(--border-radius);
	background-color: rgba(255, 255, 255, 0.03); /* Subtle section background */
}

section.is-visible {
	opacity: 1;
	transform: scale(1);
}

.content-wrapper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 768px) {
	.content-wrapper {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	}
	section#hero .content-wrapper,
	section#learning-ai .content-wrapper,
	section#smart-home .content-wrapper,
	section#future-ai .content-wrapper {
		grid-template-columns: 1fr 1fr; /* Specific for sections with one large image */
	}
	section#hero .text-content {
		order: 1;
	}
	section#hero .image-content {
		order: 2;
	}
	section#learning-ai .text-content {
		order: 1;
	}
	section#learning-ai .image-content {
		order: 2;
	}

	/* Alternate image/text for variety */
	section#productivity .text-content {
		order: 2;
	}
	section#productivity .image-content {
		order: 1;
	}
	section#smart-home .text-content {
		order: 2;
	}
	section#smart-home .image-content {
		order: 1;
	}
}

.text-content h1,
.text-content h2,
.content-wrapper h1,
.content-wrapper h2 {
	color: var(--accent-color);
	margin-bottom: 1rem;
	font-size: 2.5rem;
}
.text-content h2,
.content-wrapper h2 {
	font-size: 2rem;
}

.text-content p,
.content-wrapper p {
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

.image-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--border-radius);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button {
	display: inline-block;
	background-color: var(--accent-color);
	color: var(--primary-color);
	padding: 0.8rem 1.5rem;
	text-decoration: none;
	font-weight: bold;
	border-radius: var(--border-radius);
	transition: background-color 0.3s ease, transform 0.2s ease;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}

.cta-button:hover {
	background-color: #25a5a7; /* Darker accent */
	transform: translateY(-2px);
}

/* Text-only section */
.text-only-section .content-wrapper {
	grid-template-columns: 1fr; /* Single column layout */
	max-width: 800px; /* Limit width for readability */
	margin: 0 auto;
}
.text-only-section h2 {
	text-align: center;
	font-size: 1.8rem;
	color: var(--accent-color);
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
}

/* Legal Pages Specific Styles */
.legal-page-content section {
	opacity: 1;
	transform: scale(1);
	background-color: transparent; /* Remove section background for cleaner legal pages */
	box-shadow: none; /* Remove shadow if any */
	padding-top: 2rem; /* Adjust padding if needed */
	padding-bottom: 2rem;
}

.legal-page-content .text-only-section {
	/* Target the div directly */
	padding: 1.5rem;
	border-radius: var(--border-radius);
	background-color: var(
		--card-bg-color
	); /* Give a subtle background to the content block */
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.legal-page-content h1 {
	color: var(--accent-color);
	margin-bottom: 1.5rem; /* Increased margin */
	font-size: 1.5rem;
	text-align: center;
}

.legal-page-content .text-only-section p,
.legal-page-content .text-only-section ul,
.legal-page-content .text-only-section ol {
	margin-bottom: 1rem;
	font-size: 1rem;
	text-align: left;
	line-height: 1.7; /* Improve readability for long texts */
}

.legal-page-content .text-only-section ul,
.legal-page-content .text-only-section ol {
	padding-left: 2rem;
}

.legal-page-content .text-only-section h2 {
	text-align: left; /* Sub-headings usually left-aligned in legal docs */
	font-size: 1.5rem; /* Slightly smaller for sub-headings */
}
.legal-page-content .text-only-section h3 {
	color: var(--accent-color);
	margin-top: 1.2rem;
	margin-bottom: 0.6rem;
	font-size: 1.3rem;
	text-align: left;
}

.legal-page-content .text-only-section strong {
	font-weight: bold;
	color: var(--text-color);
}

.legal-page-content .text-only-section em {
	font-style: italic;
	color: var(--text-muted-color);
}

.legal-page-content .text-only-section a {
	color: var(--accent-color);
	text-decoration: underline;
}
.legal-page-content .text-only-section a:hover {
	text-decoration: none;
}

/* Cards section */
.cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
}

.card {
	background-color: var(--card-bg-color);
	padding: 1.5rem;
	border-radius: var(--border-radius);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease;
}

.card:hover {
	transform: translateY(-5px);
}

.card img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: var(--border-radius) var(--border-radius) 0 0;
	margin-bottom: 1rem;
}

.card h3 {
	color: var(--accent-color);
	margin-bottom: 0.5rem;
}

.card p {
	font-size: 0.95rem;
	color: var(--text-muted-color);
}

/* Footer */
footer {
	background-color: var(--secondary-color);
	padding: 3rem 2rem 1rem;
	margin-top: 3rem;
	text-align: center;
}

.footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	gap: 2rem;
	margin-bottom: 2rem;
	text-align: left;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

.footer-contact,
.footer-links,
.footer-navigation {
	flex: 1;
	min-width: 250px;
}

.footer-contact h4,
.footer-links h4,
.footer-navigation h4 {
	color: var(--accent-color);
	margin-bottom: 1rem;
	font-size: 1.2rem;
}

.footer-contact p,
.footer-links ul,
.footer-navigation ul {
	list-style: none;
	padding: 0;
}

.footer-contact p a,
.footer-links ul li a,
.footer-navigation ul li a {
	color: var(--text-muted-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-contact p a:hover,
.footer-links ul li a:hover,
.footer-navigation ul li a:hover {
	color: var(--accent-color);
}

.footer-links ul li,
.footer-navigation ul li {
	margin-bottom: 0.5rem;
}

.footer-bottom {
	border-top: 1px solid var(--primary-color);
	padding-top: 1rem;
	font-size: 0.9rem;
	color: var(--text-muted-color);
}

/* Cookie Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(
		10,
		15,
		44,
		0.95
	); /* Dark blue, slightly transparent */
	backdrop-filter: blur(5px);
	color: var(--text-color);
	padding: 1.5rem;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
	z-index: 2000;
	display: none; /* Hidden by default */
	text-align: center;
}

.cookie-modal.show {
	display: block;
}

.cookie-modal .modal-content {
	max-width: 800px;
	margin: 0 auto;
}

.cookie-modal h3 {
	color: var(--accent-color);
	margin-bottom: 0.5rem;
}

.cookie-modal p {
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

.modal-buttons button {
	background-color: var(--accent-color);
	color: var(--primary-color);
	border: none;
	padding: 0.6rem 1.2rem;
	margin: 0 0.5rem;
	border-radius: var(--border-radius);
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s ease;
}

.modal-buttons button#declineCookies {
	background-color: var(--text-muted-color);
	color: var(--primary-color);
}

.modal-buttons button:hover {
	opacity: 0.9;
}

/* Form Submission Modal */
.form-submission-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
	backdrop-filter: blur(5px);
	display: none; /* Hidden by default */
	align-items: center;
	justify-content: center;
	z-index: 3000; /* Higher than cookie modal */
}

.form-submission-modal .modal-content {
	background-color: var(--card-bg-color);
	padding: 2rem;
	border-radius: var(--border-radius);
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	min-width: 300px;
	max-width: 500px;
}

.form-submission-modal #formSubmissionStatusText {
	color: var(--text-color);
	font-size: 1.1rem;
	margin-top: 0.5rem;
}

.spinner {
	border: 4px solid rgba(255, 255, 255, 0.2); /* Lighter border for contrast on dark bg */
	border-radius: 50%;
	border-top: 4px solid var(--accent-color);
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 1rem; /* Center spinner and add space below */
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Contact Form */
#contact-form-section .content-wrapper {
	max-width: 700px;
	margin: 0 auto;
	grid-template-columns: 1fr;
}
#contact-form-section h1 {
	text-align: center;
}

#contactForm {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

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

.form-group label {
	margin-bottom: 0.5rem;
	color: var(--text-muted-color);
}

.form-group input,
.form-group textarea {
	padding: 0.8rem;
	border-radius: var(--border-radius);
	border: 1px solid var(--secondary-color);
	background-color: var(--primary-color);
	color: var(--text-color);
	font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 2px rgba(48, 207, 208, 0.3);
}

.form-group-checkbox {
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
}

.form-group-checkbox input[type='checkbox'] {
	width: auto;
	margin-right: 0.5rem;
	accent-color: var(--accent-color);
}

.form-group-checkbox label {
	margin-bottom: 0;
	color: var(--text-muted-color);
	font-size: 0.9rem;
}

.form-status-message {
	margin-top: 1rem;
	padding: 0.8rem;
	border-radius: var(--border-radius);
	display: none;
}

.form-status-message.success {
	background-color: #2e7d32;
	color: white;
	display: block;
}

.form-status-message.error {
	background-color: #c62828;
	color: white;
	display: block;
}

/* FAQ Section */
#faq-section .content-wrapper {
	max-width: 800px;
	margin: 0 auto;
	grid-template-columns: 1fr;
}
#faq-section h2 {
	text-align: center;
}

.faq-item {
	margin-bottom: 1rem;
	border: 1px solid var(--secondary-color);
	border-radius: var(--border-radius);
	background-color: var(--card-bg-color);
}

.faq-question {
	background: none;
	border: none;
	color: var(--text-color);
	width: 100%;
	text-align: left;
	padding: 1rem 1.5rem;
	font-size: 1.1rem;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.faq-question:hover {
	color: var(--accent-color);
}

.faq-icon {
	font-size: 1.5rem;
	transition: transform 0.3s ease;
}

.faq-question[aria-expanded='true'] .faq-icon {
	transform: rotate(45deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
	padding: 0 1.5rem;
}

.faq-answer p {
	color: var(--text-muted-color);
	font-size: 1rem;
	margin-bottom: 0;
}

.faq-question[aria-expanded='true'] + .faq-answer {
	padding: 1rem 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
	nav ul {
		display: none;
		flex-direction: column;
		width: 100%;
		position: absolute;
		top: 60px;
		left: 0;
		background-color: var(--secondary-color);
		padding: 1rem 0;
	}

	nav ul.active {
		display: flex;
	}

	nav ul li {
		margin: 0;
		text-align: center;
	}

	nav ul li a {
		display: block;
		padding: 0.8rem 0;
	}

	.menu-toggle {
		display: block;
	}

	.content-wrapper,
	section#hero .content-wrapper,
	section#learning-ai .content-wrapper,
	section#productivity .content-wrapper,
	section#smart-home .content-wrapper,
	section#future-ai .content-wrapper {
		grid-template-columns: 1fr;
	}

	section#hero .text-content,
	section#hero .image-content,
	section#learning-ai .text-content,
	section#learning-ai .image-content,
	section#productivity .text-content,
	section#productivity .image-content,
	section#smart-home .text-content,
	section#smart-home .image-content,
	section#future-ai .text-content,
	section#future-ai .image-content {
		order: initial !important;
	}

	.text-content h1,
	.text-content h2,
	.content-wrapper h1,
	.content-wrapper h2 {
		font-size: 2rem;
	}
	.text-content h2,
	.content-wrapper h2 {
		font-size: 1.8rem;
	}

	.image-content {
		margin-top: 1rem;
	}

	.footer-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.footer-contact,
	.footer-links,
	.footer-navigation {
		text-align: center;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15px;
	}
	section {
		padding: 2rem 1rem;
	}
	.text-content h1,
	.text-content h2,
	.content-wrapper h1,
	.content-wrapper h2 {
		font-size: 1.8rem;
	}
	.text-content h2,
	.content-wrapper h2 {
		font-size: 1.6rem;
	}
	.cta-button {
		padding: 0.7rem 1.2rem;
		font-size: 0.9rem;
	}
	nav .logo {
		font-size: 1.5rem;
	}
}
