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

body {
	font-family: 'Roboto', sans-serif;
	background-color: #121212; /* Dark background */
	color: #e0e0e0; /* Light text */
	line-height: 1.6;
	font-size: 16px;
}

.container {
	width: 90%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Header & Navigation */
header {
	background-color: #1e1e1e; /* Slightly lighter dark for header */
	padding: 1rem 0;
	border-bottom: 1px solid #333;
	position: sticky;
	top: 0;
	z-index: 1000;
}

header nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header .logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 1.2rem;
	font-weight: 700;
	color: #bb86fc; /* Accent color */
	text-decoration: none;
}

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

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

header ul li {
	margin-left: 20px;
}

header ul li a {
	text-decoration: none;
	color: #e0e0e0;
	font-weight: 400;
	transition: color 0.3s ease;
}

header ul li a:hover,
header ul li a.active {
	color: #bb86fc;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
	display: none; /* Hidden by default on larger screens */
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 1001; /* Ensure it's above other header content if needed */
}

.mobile-menu-toggle span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: #e0e0e0;
	margin: 5px 0;
	transition: all 0.3s ease-in-out;
}

/* Main Content Sections */
main section {
	padding: 60px 0;
	border-bottom: 1px solid #2a2a2a;
}

main section:last-child {
	border-bottom: none;
}

h1,
h2,
h3 {
	margin-bottom: 20px;
	color: #ffffff; /* Brighter for headings */
}

h1 {
	font-size: 2.5rem;
	font-weight: 700;
}

h2 {
	font-size: 2rem;
	font-weight: 700;
}

h3 {
	font-size: 1.5rem;
	font-weight: 700;
}

p {
	margin-bottom: 15px;
	font-size: 1rem;
	font-weight: 300;
}

a {
	color: #bb86fc;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Content Formatter (for text/image sections) */
.content-formatter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}

.content-formatter .text-content,
.content-formatter .image-content {
	flex: 1;
	min-width: 300px; /* For wrapping */
}

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

/* Specific section styles */
#hero {
	background-color: #1a1a1a;
}

#hero h1 {
	color: #bb86fc;
}

.text-only-section .content-formatter {
	/* For text-only sections, allow text to take full width and center */
	display: block; /* Override flex for simple centering */
	text-align: left; /* Default text align */
}

.text-only-section .content-formatter h2,
.text-only-section .content-formatter p {
	text-align: left; /* Ensure text content is left aligned */
}

/* Cards Container for Tools section */
.cards-container {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	margin-top: 30px;
}

.card {
	background-color: #1e1e1e;
	border: 1px solid #333;
	border-radius: 8px;
	padding: 20px;
	width: calc(33.333% - 20px); /* Adjust for gap */
	min-width: 280px; /* Min width for smaller screens before stacking */
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(187, 134, 252, 0.2);
}

.card img {
	width: 100%;
	height: auto;
	margin-bottom: 15px;
	border-radius: 4px;
}

.card h3 {
	color: #bb86fc;
	font-size: 1.3rem;
}

/* Footer */
footer {
	background-color: #1e1e1e;
	color: #a0a0a0;
	padding: 40px 0;
	border-top: 1px solid #333;
	font-size: 0.9rem;
}

.footer-columns {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 30px;
}

.footer-column {
	flex: 1;
	min-width: 200px; /* Ensure columns wrap nicely */
}

.footer-column h4 {
	color: #e0e0e0;
	margin-bottom: 15px;
	font-size: 1.1rem;
}

.footer-column ul {
	list-style: none;
}

.footer-column ul li a {
	color: #a0a0a0;
	transition: color 0.3s ease;
}

.footer-column ul li a:hover {
	color: #bb86fc;
}

.footer-column p a {
	color: #a0a0a0;
}
.footer-column p a:hover {
	color: #bb86fc;
}

.copyright {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid #2a2a2a;
}

/* Scroll Animation */
.scroll-animate {
	opacity: 0;
	transform: scale(0.95);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
	opacity: 1;
	transform: scale(1);
}

/* Cookie Consent Modal */
.modal {
	display: none; /* Hidden by default */
	position: fixed;
	z-index: 1001;
	left: 0;
	bottom: 0; /* Default for cookie banner style */
	width: 100%;
	background-color: rgba(0, 0, 0, 0.8); /* Dark overlay */
	padding: 20px; /* Default padding */
}

/* Centered modal style for form submission */
.modal.centered-modal {
	top: 0;
	bottom: 0; /* Override to allow vertical centering */
	display: flex; /* Enable flex for centering */
	align-items: center; /* Vertical center */
	justify-content: center; /* Horizontal center */
	padding: 20px; /* Keep some padding for smaller screens */
}

.modal-content {
	background-color: #2c2c2c; /* Darker modal background */
	margin: auto; /* Default margin, will be overridden by flex for centered */
	padding: 25px;
	border: 1px solid #444;
	border-radius: 8px;
	max-width: 600px; /* Default max width */
	text-align: center;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
	animation: slideUp 0.5s ease-out; /* Default animation for cookie banner */
}

/* Specific style for form submission modal content if needed */
.form-submission-modal-content {
	max-width: 400px; /* Smaller width for submission status */
	animation: fadeInScaleUp 0.4s ease-out; /* Different animation for centered modal */
}

.modal-content h2 {
	color: #bb86fc;
	margin-top: 0;
	margin-bottom: 15px;
}

.modal-content p {
	margin-bottom: 20px;
	color: #e0e0e0;
}

.modal-content a {
	color: #bb86fc;
	font-weight: bold;
}

.modal-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.modal-buttons button {
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1rem;
	transition: background-color 0.3s ease;
}

#acceptCookies {
	background-color: #bb86fc;
	color: #121212;
}

#acceptCookies:hover {
	background-color: #a06cd5;
}

#rejectCookies {
	background-color: #444;
	color: #e0e0e0;
}

#rejectCookies:hover {
	background-color: #555;
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes fadeInScaleUp {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* CSS Spinner for Form Submission Modal */
.spinner {
	border: 4px solid rgba(224, 224, 224, 0.3); /* Light grey border */
	border-left-color: #bb86fc; /* Accent color for spinning part */
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px auto; /* Center spinner */
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Page Specific Styles */
.page-padding {
	padding-top: 40px;
	padding-bottom: 40px;
}

.legal-page h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
	color: #bb86fc;
}
.legal-page h2 {
	font-size: 1.5rem;
	margin-top: 30px;
	margin-bottom: 15px;
	border-bottom: 1px solid #333;
	padding-bottom: 5px;
}
.legal-page p,
.legal-page ul li {
	margin-bottom: 10px;
	line-height: 1.7;
}
.legal-page ul {
	list-style-position: inside;
	padding-left: 20px;
}

/* FAQ Page */
.faq-container {
	max-width: 800px;
	margin: 20px auto;
}

.faq-item {
	background-color: #1e1e1e;
	margin-bottom: 10px;
	border-radius: 5px;
	border: 1px solid #333;
}

.faq-question {
	background-color: transparent;
	color: #e0e0e0;
	border: none;
	width: 100%;
	text-align: left;
	padding: 15px 20px;
	font-size: 1.1rem;
	font-weight: 700;
	cursor: pointer;
	position: relative;
	outline: none;
}

.faq-question::after {
	content: '+';
	font-size: 1.5rem;
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.3s ease;
	color: #bb86fc;
}

.faq-question.active::after {
	transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
	box-sizing: content-box;
	padding: 0 20px 15px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
	background-color: #1e1e1e;
	border-top: 1px solid #2a2a2a;
}
.faq-answer.active {
	/* max-height will be set by JS, padding applied when active */
}
.faq-answer p {
	margin: 0;
	padding-top: 15px;
}

/* Contact Form */
.contact-form-container {
	max-width: 600px;
	margin: 30px auto;
	padding: 25px;
	background-color: #1e1e1e;
	border-radius: 8px;
	border: 1px solid #333;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 700;
	color: #c0c0c0;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 12px;
	border-radius: 5px;
	border: 1px solid #444;
	background-color: #2c2c2c;
	color: #e0e0e0;
	font-size: 1rem;
}

.form-group input[type='text']:focus,
.form-group input[type='email']:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #bb86fc;
	box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.3);
}

.form-group-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
}

.form-group-checkbox input[type='checkbox'] {
	width: auto; /* Override default width for text inputs */
	margin-top: 2px; /* Align checkbox better with label */
	accent-color: #bb86fc; /* Style checkbox color */
}

.form-group-checkbox label {
	margin-bottom: 0; /* Remove default label margin */
	font-weight: normal; /* Make consent label less prominent than field labels */
	color: #e0e0e0;
	font-size: 0.9rem;
}

.form-group textarea {
	resize: vertical;
	min-height: 100px;
}

.btn {
	display: inline-block;
	background-color: #bb86fc;
	color: #121212;
	padding: 12px 25px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
	transition: background-color 0.3s ease;
	text-decoration: none; /* Ensure no underline from default 'a' styles */
}

.btn:hover {
	background-color: #a06cd5;
	text-decoration: none; /* Ensure no underline on hover */
}

.form-status {
	margin-top: 15px;
	font-weight: bold;
}
.form-status.success {
	color: #4caf50; /* Green for success */
}
.form-status.error {
	color: #f44336; /* Red for error */
}

.contact-details {
	margin-top: 40px;
	text-align: center;
	background-color: #1e1e1e;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #333;
}
.contact-details h2 {
	color: #bb86fc;
}

/* Responsive Design */
@media (max-width: 768px) {
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.75rem;
	}
	h3 {
		font-size: 1.3rem;
	}

	header nav {
		flex-direction: row; /* Keep logo and toggle on same line */
		justify-content: space-between; /* Space between logo and toggle */
		align-items: center;
	}
	header .logo {
		margin-bottom: 0; /* Reset margin from previous style */
	}

	.mobile-menu-toggle {
		display: block; /* Show toggle on small screens */
	}

	header ul#main-navigation {
		display: none; /* Hide nav list by default on mobile */
		flex-direction: column;
		position: absolute;
		top: 60px; /* Adjust based on header height */
		left: 0;
		width: 100%;
		background-color: #222222; /* Slightly different dark for dropdown */
		padding: 10px 0;
		border-top: 1px solid #333;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	}

	header ul#main-navigation.nav-open {
		display: flex; /* Show when active */
	}

	header ul#main-navigation li {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}
	header ul#main-navigation li a {
		padding: 12px 20px;
		display: block; /* Make links take full width */
		border-bottom: 1px solid #303030;
	}
	header ul#main-navigation li:last-child a {
		border-bottom: none;
	}

	/* Hamburger to X animation */
	.mobile-menu-toggle.active span:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}
	.mobile-menu-toggle.active span:nth-child(2) {
		opacity: 0;
	}
	.mobile-menu-toggle.active span:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	.content-formatter {
		flex-direction: column;
	}
	.content-formatter .text-content {
		/* On mobile, center text if it's stacked */
		text-align: center;
	}
	.content-formatter .text-content h1,
	.content-formatter .text-content h2,
	.content-formatter .text-content p {
		text-align: center; /* Center headers and paragraphs within text-content */
	}
	.content-formatter .text-content .btn {
		margin-left: auto;
		margin-right: auto; /* Center the button if it's a block or inline-block */
	}

	.content-formatter .text-content,
	.content-formatter .image-content {
		min-width: 100%; /* Full width when stacked */
	}
	.content-formatter .image-content {
		order: -1; /* Image on top on mobile */
	}
	#productivity .content-formatter .image-content {
		order: -1; /* Default for productivity, image on top */
	}
	.text-only-section .content-formatter h2,
	.text-only-section .content-formatter p {
		text-align: center; /* Center text in text-only section on mobile */
	}

	.card {
		width: calc(50% - 10px); /* Two cards per row on medium screens */
	}
	.footer-columns {
		flex-direction: column;
		align-items: center; /* Center footer columns on mobile */
		text-align: center;
	}
	.footer-column {
		min-width: 100%;
		margin-bottom: 20px;
	}
}

@media (max-width: 576px) {
	.container {
		width: 95%;
	}
	.card {
		width: 100%; /* Full width cards on small screens */
	}
	.modal-content {
		width: 90%;
		padding: 20px;
	}
	.modal-buttons button {
		padding: 8px 15px;
		font-size: 0.9rem;
	}
	#hero .content-formatter .image-content {
		/* For Hero ensure image is on top on small screens */
		order: -1;
	}
	#hero .content-formatter .text-content h1,
	#hero .content-formatter .text-content p {
		text-align: center;
	}
	#learning .content-formatter .image-content {
		/* For Learning ensure image is on top on small screens */
		order: -1;
	}
	#learning .content-formatter .text-content h2,
	#learning .content-formatter .text-content p {
		text-align: center;
	}
	#fun .content-formatter .image-content {
		/* For Fun ensure image is on top on small screens */
		order: -1;
	}
	#fun .content-formatter .text-content h2,
	#fun .content-formatter .text-content p {
		text-align: center;
	}
	#productivity .content-formatter .text-content h2,
	#productivity .content-formatter .text-content p {
		text-align: center;
	}
}
