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

/* ==================== VARIABLES ==================== */
:root {
	/* Colors */
	--background-color: #111827;
	--primary-color: #38bdf8;
	--text-color: #f9fafb;
	--text-color-muted: #9ca3af;
	--container-color: #1f2937;

	/* Typography */
	--body-font: 'Inter', sans-serif;
	--title-font: 'Space Grotesk', sans-serif;
	--h1-font-size: 2.5rem;
	--h2-font-size: 1.5rem;
	--normal-font-size: 1rem;

	/* Z-index */
	--z-header: 100;
	--z-menu: 1000;
}

/* ==================== 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);
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

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

.container {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1.5rem;
}

/* ==================== HEADER ==================== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: transparent;
	z-index: var(--z-header);
	transition: background-color 0.3s, box-shadow 0.3s;
	border-bottom: 1px solid transparent;
}

.header.scrolled {
	background-color: rgba(17, 24, 39, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--container-color);
}

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

.header__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-weight: 700;
	font-size: 1.25rem;
	transition: transform 0.3s;
}

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

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

/* ==================== NAVIGATION ==================== */
.nav__list {
	display: flex;
	align-items: center;
	gap: 2.5rem;
}

.nav__link {
	color: var(--text-color-muted);
	font-weight: 500;
	position: relative;
	transition: color 0.3s;
}

.nav__link::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-color);
	transition: width 0.3s;
}

.nav__link:hover,
.nav__link.active-link {
	color: var(--text-color);
}

.nav__link:hover::after {
	width: 100%;
}

.nav__link--button {
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	font-weight: 500;
	transition: background-color 0.3s, transform 0.3s;
}

.nav__link--button:hover {
	background-color: #67cffb;
	color: var(--background-color);
	transform: translateY(-2px);
}

.nav__link--button::after {
	display: none;
}

.nav__toggle,
.nav__close {
	display: none;
	cursor: pointer;
	background: none;
	border: none;
	color: var(--text-color);
}

/* ==================== FOOTER ==================== */
.footer {
	padding-top: 6rem;
	padding-bottom: 2rem;
	background-color: #0d111c; /* Slightly darker than background */
}

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

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-weight: 700;
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

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

.footer__description {
	color: var(--text-color-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

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

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

.footer__link {
	color: var(--text-color-muted);
	transition: color 0.3s, padding-left 0.3s;
	font-size: 0.9rem;
}

.footer__link:hover {
	color: var(--primary-color);
	padding-left: 5px;
}

.footer__address {
	font-style: normal;
	color: var(--text-color-muted);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	font-size: 0.9rem;
	line-height: 1.6;
}

.footer__copy {
	text-align: center;
	padding-top: 2rem;
	font-size: 0.85rem;
	color: var(--text-color-muted);
}

/* ==================== MEDIA QUERIES ==================== */
@media screen and (max-width: 768px) {
	.nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100vh;
		background-color: rgba(17, 24, 39, 0.9);
		backdrop-filter: blur(10px);
		transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
		z-index: var(--z-menu);
		padding-top: 6rem;
	}

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

	.nav__list {
		flex-direction: column;
		gap: 3rem;
		text-align: center;
	}

	.nav__link {
		font-size: 1.25rem;
	}

	.nav__toggle,
	.nav__close {
		display: block;
	}

	.nav__close {
		position: absolute;
		top: 2rem;
		right: 1.5rem;
	}
}

/* ==================== HERO ==================== */
.hero {
	padding: 10rem 0 6rem;
	overflow: hidden; /* To prevent image overflow issues */
}

.hero__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4rem;
}

.hero__content {
	max-width: 600px;
}

.hero__title {
	font-family: var(--title-font);
	font-size: var(--h1-font-size);
	line-height: 1.2;
	margin-bottom: 1.5rem;
	min-height: 120px; /* Reserve space for text */
}

.hero__title::after {
	content: '|';
	animation: blink 1s infinite;
	color: var(--primary-color);
}

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

.hero__button {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 1rem 2.5rem;
	border-radius: 999px;
	font-weight: 500;
	font-size: 1.1rem;
	transition: background-color 0.3s, transform 0.3s;
}

.hero__button:hover {
	background-color: #67cffb;
	transform: translateY(-3px);
}

.hero__image-wrapper {
	flex-shrink: 0;
	animation: float 6s ease-in-out infinite;
}

.hero__image {
	width: 380px;
	height: 380px;
	border-radius: 50%;
	object-fit: cover;
	border: 5px solid var(--container-color);
}

/* Typing cursor animation */
@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

/* Floating image animation */
@keyframes float {
	0% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-20px);
	}
	100% {
		transform: translateY(0px);
	}
}

/* ==================== HERO MEDIA QUERIES ==================== */
@media screen and (max-width: 992px) {
	.hero__container {
		flex-direction: column;
		text-align: center;
	}

	.hero__content {
		order: 2;
	}

	.hero__image-wrapper {
		order: 1;
		margin-bottom: 3rem;
	}

	.hero__image {
		width: 300px;
		height: 300px;
	}

	.hero__description {
		margin-left: auto;
		margin-right: auto;
	}
}

@media screen and (max-width: 576px) {
	:root {
		--h1-font-size: 2rem;
	}

	.hero {
		padding: 8rem 0 4rem;
	}

	.hero__title {
		min-height: 100px; /* Adjust space for smaller font */
	}

	.hero__image {
		width: 240px;
		height: 240px;
	}
}

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

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

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

.section__subtitle {
	font-size: 1.1rem;
	color: var(--text-color-muted);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

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

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

.creativity__card:hover {
	transform: translateY(-8px);
	border-color: var(--primary-color);
	box-shadow: 0 10px 30px -15px hsla(206, 95%, 60%, 0.2);
}

.creativity__card-icon {
	width: 50px;
	height: 50px;
	display: grid;
	place-items: center;
	background-color: var(--background-color);
	border-radius: 8px;
	margin-bottom: 1.5rem;
}

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

.creativity__card-title {
	font-family: var(--title-font);
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

.creativity__card-description {
	color: var(--text-color-muted);
	line-height: 1.7;
}

/* ==================== SECTION MEDIA QUERIES ==================== */
@media screen and (max-width: 576px) {
	.section {
		padding: 4rem 0 2rem;
	}

	:root {
		--h2-font-size: 1.25rem;
	}

	.section__header {
		margin-bottom: 3rem;
	}
}

/* ==================== WORK SECTION ==================== */
.work__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 4rem;
}

.work__image-wrapper {
	position: relative;
}

.work__image {
	width: 100%;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
}

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

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

.work__item-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	color: var(--primary-color);
	margin-top: 2px;
}

.work__item-title {
	font-family: var(--title-font);
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}

.work__item-description {
	color: var(--text-color-muted);
	line-height: 1.6;
}

/* ==================== WORK MEDIA QUERIES ==================== */
@media screen and (max-width: 992px) {
	.work__container {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.work__image-wrapper {
		max-width: 500px;
		margin: 0 auto;
	}
}

/* ==================== LEARNING SECTION ==================== */
.learning__container {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.learning__item {
	background-color: var(--container-color);
	border-radius: 8px;
	border: 1px solid transparent;
	transition: border-color 0.3s;
}

.learning__item.active {
	border-color: var(--primary-color);
}

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

.learning__icon {
	width: 24px;
	height: 24px;
	color: var(--primary-color);
	flex-shrink: 0;
}

.learning__title {
	font-family: var(--title-font);
	font-size: 1.1rem;
	flex-grow: 1;
}

.learning__arrow {
	width: 24px;
	height: 24px;
	transition: transform 0.4s;
}

.learning__item.active .learning__arrow {
	transform: rotate(-180deg);
}

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

.learning__description {
	padding: 0 1.5rem 1.5rem 4rem; /* 1.5 + 1 + 1.5 from header */
	color: var(--text-color-muted);
	line-height: 1.7;
}

.learning__item.active .learning__content {
	/* Set max-height to a value larger than content will ever be */
	max-height: 200px;
}

/* ==================== DAILY LIFE SECTION ==================== */
/* NOTE: Styles are very similar to the Creativity section to maintain consistency.
   Using specific classes for BEM methodology.
*/
.daily__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.daily__card {
	background-color: var(--container-color);
	padding: 2.5rem;
	border-radius: 12px;
	border: 1px solid transparent;
	transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.daily__card:hover {
	transform: translateY(-8px);
	border-color: var(--primary-color);
	box-shadow: 0 10px 30px -15px hsla(206, 95%, 60%, 0.2);
}

.daily__card-icon {
	width: 50px;
	height: 50px;
	display: grid;
	place-items: center;
	background-color: var(--background-color);
	border-radius: 8px;
	margin-bottom: 1.5rem;
}

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

.daily__card-title {
	font-family: var(--title-font);
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

.daily__card-description {
	color: var(--text-color-muted);
	line-height: 1.7;
}
/* ==================== CONTACT SECTION ==================== */
.contact__container {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 5rem;
	align-items: flex-start;
}

.contact__info-title {
	font-family: var(--title-font);
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.contact__info-description {
	color: var(--text-color-muted);
	line-height: 1.7;
	margin-bottom: 2rem;
}

.contact__info-highlight {
	display: flex;
	align-items: center;
	gap: 1rem;
	background-color: var(--container-color);
	padding: 1rem;
	border-radius: 8px;
}

.contact__info-icon {
	width: 24px;
	height: 24px;
	color: var(--primary-color);
	flex-shrink: 0;
}

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

.contact__form-group {
	position: relative;
}

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

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

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

.contact__form-input:focus + .contact__form-label,
.contact__form-input:valid + .contact__form-label {
	top: 0.5rem;
	font-size: 0.8rem;
	color: var(--primary-color);
}

.contact__form-group-checkbox {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.contact__form-checkbox-input {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid var(--container-color);
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	transition: background-color 0.3s, border-color 0.3s;
	flex-shrink: 0;
}

.contact__form-checkbox-input:checked {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.contact__form-checkbox-input:checked::before {
	content: '✔';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--background-color);
	font-size: 12px;
}

.contact__form-checkbox-label {
	font-size: 0.9rem;
	color: var(--text-color-muted);
}

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

.contact__form-button {
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 1rem 2.5rem;
	border-radius: 999px;
	font-weight: 500;
	font-size: 1.1rem;
	border: none;
	cursor: pointer;
	transition: background-color 0.3s, transform 0.3s;
}

.contact__form-button:hover {
	background-color: #67cffb;
	transform: translateY(-3px);
}

.contact__form-message {
	font-size: 0.9rem;
	color: var(--primary-color);
	text-align: center;
	display: none; /* Initially hidden */
}

/* ==================== CONTACT MEDIA QUERIES ==================== */
@media screen and (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}

/* ==================== COOKIE POPUP ==================== */
.cookie {
	position: fixed;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%) translateY(200%); /* Initially hidden */
	max-width: 500px;
	width: calc(100% - 3rem);
	background-color: var(--container-color);
	padding: 1.5rem;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	z-index: 500;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie.show {
	transform: translateX(-50%) translateY(0);
}

.cookie__text {
	font-size: 0.9rem;
	color: var(--text-color-muted);
	line-height: 1.6;
}

.cookie__link {
	color: var(--primary-color);
	text-decoration: underline;
}

.cookie__button {
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 0.6rem 1.2rem;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	font-weight: 500;
	flex-shrink: 0;
	transition: background-color 0.3s;
}

.cookie__button:hover {
	background-color: #67cffb;
}

@media screen and (max-width: 576px) {
	.cookie {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}
}

/* ==================== POLICY PAGES STYLES ==================== */
.pages {
	padding: 10rem 0 6rem; /* Top padding to offset fixed header */
}

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

.pages h1,
.pages h2 {
	font-family: var(--title-font);
	margin-bottom: 1.5rem;
	line-height: 1.3;
}

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

.pages h2 {
	font-size: 1.5rem;
	margin-top: 3rem;
}

.pages p,
.pages li {
	color: var(--text-color-muted);
	line-height: 1.8;
	font-size: 1.1rem;
}

.pages p {
	margin-bottom: 1.5rem;
}

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

.pages a:hover {
	color: #67cffb;
}

.pages ul {
	list-style: disc;
	padding-left: 2rem;
	margin-bottom: 1.5rem;
}

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

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