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

/* ==================== VARIABLES ==================== */
:root {
	/* Colors */
	--primary-color: #4f46e5;
	--text-color: #111827;
	--text-color-light: #6b7280;
	--body-color: #ffffff;
	--container-color: #ffffff;
	--border-color: #e5e7eb;

	/* Fonts */
	--body-font: 'Manrope', sans-serif;
	--title-font: 'Space Grotesk', sans-serif;

	--h1-font-size: 2rem;
	--h2-font-size: 1.5rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

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

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--body-color);
	color: var(--text-color);
	transition: background-color 0.3s, color 0.3s;
}

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

ul {
	list-style: none;
}

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

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

/* ==================== HEADER ==================== */
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: var(--z-fixed);
	background-color: var(--body-color);
	border-bottom: 1px solid var(--border-color);
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
}

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

.header__toggle {
	position: relative;
	z-index: 100;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--text-color);
	display: block;
	background: none;
	border: none;
}

@media screen and (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		background-color: var(--body-color);
		width: 80%;
		height: 100vh;
		padding: 4rem 2rem;
		z-index: var(--z-fixed);
		transition: right 0.4s;
		border-left: 1px solid var(--border-color);
	}
}

.header__nav-list {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

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

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

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

.header__nav-link--button:hover {
	background-color: #4338ca;
	color: white;
}

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

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

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

.footer__title {
	font-size: var(--h2-font-size);
	margin-bottom: 1.5rem;
}

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

.footer__link {
	color: var(--text-color-light);
	transition: color 0.3s;
}

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

.footer__address {
	color: var(--text-color-light);
	line-height: 1.6;
}

.footer__bottom {
	padding-top: 2rem;
	padding-bottom: 2rem;
	border-top: 1px solid var(--border-color);
	text-align: center;
	color: var(--text-color-light);
	font-size: var(--small-font-size);
}

/* ==================== MEDIA QUERIES ==================== */
/* For medium devices */
@media screen and (min-width: 769px) {
	.header__toggle {
		display: none;
	}

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

	.header__nav {
		display: block;
	}
}

/* For large devices */
@media screen and (min-width: 1024px) {
	.container {
		padding-left: 0;
		padding-right: 0;
	}
}

/* ==================== BUTTONS ==================== */
.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: #fff;
	padding: 1rem 2rem;
	border-radius: 0.5rem;
	font-weight: 500;
	font-family: var(--title-font);
	transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
	background-color: #4338ca;
	transform: translateY(-2px);
}

/* ==================== HERO ==================== */
.hero {
	padding-top: 10rem; /* Header height + space */
	padding-bottom: 4rem;
}

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

.hero__data {
	opacity: 0;
	animation: fadeIn 1s ease-out forwards;
}

.hero__title {
	font-size: var(--h1-font-size);
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

.hero__title-animated {
	color: var(--primary-color);
	position: relative;
}

/* Typing animation cursor */
.hero__title-animated::after {
	content: '|';
	position: absolute;
	right: -10px;
	top: 0;
	color: var(--primary-color);
	animation: blink 1s infinite;
}

.hero__description {
	font-size: 1.125rem;
	color: var(--text-color-light);
	margin-bottom: 2.5rem;
	max-width: 500px;
}

.hero__image-wrapper {
	justify-self: center;
	opacity: 0;
	animation: fadeIn 1s 0.3s ease-out forwards;
}

.hero__image {
	width: 100%;
	height: auto;
	border-radius: 1rem;
}

/* Keyframes for animations */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

/* ==================== MEDIA QUERIES (add to existing blocks or create new) ==================== */
/* For medium devices */
@media screen and (min-width: 769px) {
	.hero__container {
		grid-template-columns: 1fr 0.8fr;
		gap: 4rem;
	}

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

/* For large devices */
@media screen and (min-width: 1024px) {
	:root {
		--h1-font-size: 3.5rem;
	}
	.hero {
		padding-top: 12rem;
		padding-bottom: 6rem;
	}
}

/* ==================== REUSABLE SECTION STYLES ==================== */
.section {
	padding-top: 5rem;
	padding-bottom: 5rem;
}

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

.section__title {
	font-size: var(--h1-font-size);
	margin-bottom: 1rem;
}

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

/* ==================== CREATIVITY SECTION ==================== */
.creativity__container {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.creativity__card {
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 1rem;
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
}

.creativity__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.creativity__card-img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.creativity__card-data {
	padding: 1.5rem;
}

.creativity__card-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #eef2ff;
	color: var(--primary-color);
	border-radius: 50%;
	margin-bottom: 1rem;
}

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

.creativity__card-title {
	font-size: var(--h2-font-size);
	margin-bottom: 0.5rem;
}

.creativity__card-description {
	color: var(--text-color-light);
	line-height: 1.6;
}

/* ==================== MEDIA QUERIES (add to existing blocks or create new) ==================== */
@media screen and (min-width: 1024px) {
	.section {
		padding-top: 7rem;
		padding-bottom: 7rem;
	}
}

/* ==================== WORK (ACCORDION) ==================== */
.work__container {
	max-width: 768px;
	margin-left: auto;
	margin-right: auto;
	display: grid;
	gap: 1rem;
}

.work__item {
	border: 1px solid var(--border-color);
	border-radius: 0.75rem;
	transition: box-shadow 0.3s;
}
.work__item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.work__header {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
	cursor: pointer;
}

.work__header-icon {
	color: var(--primary-color);
}

.work__header-title {
	font-size: 1.125rem;
	font-family: var(--body-font);
	font-weight: 500;
}

.work__header-toggle {
	margin-left: auto;
	transition: transform 0.3s;
}

.work__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out;
}

.work__content-inner {
	padding: 0 1.25rem 1.25rem 1.25rem;
	display: grid;
	gap: 1rem;
	align-items: flex-start;
}

.work__content-description {
	color: var(--text-color-light);
	line-height: 1.6;
}

.work__content-img {
	width: 100%;
	max-width: 200px;
	border-radius: 0.5rem;
	justify-self: center;
}

/* Accordion open state */
.work__item--open .work__header-toggle {
	/* transform: rotate(45deg); */
}

.work__item--open .work__header-toggle i[data-lucide='plus'] {
	display: none;
}
.work__item--open .work__header-toggle i[data-lucide='minus'] {
	display: inline-block;
}

.work__item:not(.work__item--open) .work__header-toggle i[data-lucide='minus'] {
	display: none;
}

/* ==================== MEDIA QUERIES ==================== */
@media screen and (min-width: 576px) {
	.work__content-inner {
		grid-template-columns: 1fr auto;
	}
	.work__content-description {
		padding-right: 1rem;
	}
}

/* ==================== STUDY ==================== */
.study__container {
	display: grid;
	gap: 3rem;
	align-items: center;
	margin-top: 4rem;
}

.study__image-wrapper {
	position: relative;
	justify-self: center;
}

.study__image {
	max-width: 100%;
	width: 450px;
	border-radius: 1rem;
}

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

.study__list-item {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
}

.study__item-icon {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #eef2ff;
	color: var(--primary-color);
	border-radius: 0.75rem;
}

.study__item-icon i {
	width: 28px;
	height: 28px;
}

.study__item-title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
	font-family: var(--body-font);
	font-weight: 700;
}

.study__item-description {
	color: var(--text-color-light);
	line-height: 1.6;
}

/* ==================== MEDIA QUERIES ==================== */
@media screen and (min-width: 769px) {
	.study__container {
		grid-template-columns: 1fr 1fr;
	}
}
/* ==================== TOOLS ==================== */
.tools__container {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	margin-top: 4rem;
}

.tools__card {
	display: flex;
	flex-direction: column;
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 1rem;
	padding: 1.5rem;
	transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.tools__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
	border-color: var(--primary-color);
}

.tools__card-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #eef2ff;
	color: var(--primary-color);
	border-radius: 0.75rem;
	margin-bottom: 1.5rem;
}

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

.tools__card-title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.tools__card-description {
	color: var(--text-color-light);
	line-height: 1.6;
	margin-bottom: 1.5rem;
	flex-grow: 1; /* Pushes the link to the bottom */
}

.tools__card-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--primary-color);
	font-weight: 500;
	font-family: var(--title-font);
}

.tools__card-link i {
	width: 16px;
	height: 16px;
	transition: transform 0.3s;
}

.tools__card:hover .tools__card-link i {
	transform: translateX(4px);
}

/* ==================== MEDIA QUERIES ==================== */
@media screen and (min-width: 992px) {
	.tools__container {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ==================== CONTACT ==================== */
.contact__container {
	display: grid;
	gap: 3rem;
	margin-top: 4rem;
}

.contact__data-title {
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.contact__data-description {
	color: var(--text-color-light);
	line-height: 1.6;
}

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

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

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

.contact__form-input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px #e0e7ff;
}

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

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

.contact__form-checkbox-label {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
}

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

.contact__form-button {
	width: 100%;
	justify-content: center;
}

.contact__form-message {
	font-size: var(--small-font-size);
	text-align: center;
	margin-top: 1rem;
}

/* ==================== MEDIA QUERIES ==================== */
@media screen and (min-width: 769px) {
	.contact__container {
		grid-template-columns: 0.8fr 1fr;
		align-items: start;
	}
	.contact__form-button {
		width: max-content;
	}
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--text-color);
	color: #fff;
	padding: 1.5rem 2rem;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
	z-index: calc(var(--z-fixed) + 10);

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;

	transform: translateY(120%);
	transition: transform 0.5s ease-in-out;
}

.cookie-popup--visible {
	transform: translateY(0);
}

.cookie-popup__text {
	font-size: var(--small-font-size);
	text-align: center;
}

.cookie-popup__link {
	color: #fff;
	text-decoration: underline;
}

.cookie-popup__button {
	background-color: var(--primary-color);
	padding: 0.5rem 1.5rem;
	flex-shrink: 0;
}

/* ==================== MEDIA QUERIES ==================== */
@media screen and (min-width: 769px) {
	.cookie-popup {
		justify-content: space-between;
	}
	.cookie-popup__text {
		text-align: left;
	}
}

/* ==================== GENERIC PAGES (Privacy, Terms, etc.) ==================== */
.pages {
	padding-top: 10rem; /* Header height + space */
	padding-bottom: 5rem;
}

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

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

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

.pages p,
.pages li {
	line-height: 1.8;
	color: var(--text-color-light);
	margin-bottom: 1rem;
}

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

.pages a {
	color: var(--primary-color);
	text-decoration: underline;
	font-weight: 500;
}

.pages a:hover {
	text-decoration: none;
}

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