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

/*=============== CSS VARIABLES ===============*/
:root {
	/* Colors */
	--background-color: #0a0e1a;
	--container-color: #121727;
	--primary-color: #30a5fc;
	--primary-color-hover: #57b8fd;
	--text-color: #c3cad9;
	--title-color: #ffffff;

	/* Fonts */
	--body-font: 'Inter', sans-serif;
	--title-font: 'Onest', sans-serif;

	--h1-font-size: 2.5rem;
	--h2-font-size: 1.5rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* z-index */
	--z-header: 100;
	--z-menu: 101;
}

/*=============== 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(--background-color);
	color: var(--text-color);
}

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

ul {
	list-style: none;
}

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

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

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

/*=============== HEADER ===============*/
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: rgba(10, 14, 26, 0.5);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: var(--z-header);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

.header__toggle,
.header__close {
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--title-color);
	transition: color 0.3s;
	background: none;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

@media screen and (max-width: 767px) {
	.header__toggle {
		display: block;
		padding: 0.5rem;
		border-radius: 0.25rem;
		transition: background-color 0.3s, color 0.3s;
	}

	.header__toggle:hover {
		background-color: rgba(255, 255, 255, 0.1);
	}
}

/* Mobile Menu */
@media screen and (max-width: 767px) {
	.header__menu {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		height: 100vh;
		background-color: var(--container-color);
		padding: 6rem 2rem 0;
		transition: right 0.4s ease;
		z-index: var(--z-menu);
		box-shadow: -4px 0 16px rgba(0, 0, 0, 0.3);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
	}
}

.header__list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

@media screen and (max-width: 767px) {
	.header__list {
		gap: 2.5rem;
		margin-top: 1rem;
	}
}

.header__link {
	color: var(--title-color);
	font-family: var(--title-font);
	font-weight: 500;
	transition: color 0.3s;
}

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

@media screen and (max-width: 767px) {
	.header__link {
		display: block;
		padding: 0.75rem 0;
		font-size: 1.125rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.header__item:last-child .header__link {
		border-bottom: none;
	}
}

.header__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	padding: 0.5rem;
	border-radius: 0.25rem;
	transition: background-color 0.3s;
}

.header__close:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

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

/* Mobile menu overlay */
@media screen and (max-width: 767px) {
	.header__menu::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.5);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.4s ease, visibility 0.4s ease;
		z-index: -1;
	}

	.header__menu.show-menu::before {
		opacity: 1;
		visibility: visible;
	}
}

/*=============== FOOTER ===============*/
.footer {
	padding-top: 5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__container {
	display: grid;
	gap: 3rem;
	padding-bottom: 3rem;
}

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

.footer__logo-img {
	width: 32px;
}

.footer__description {
	font-size: var(--small-font-size);
	line-height: 1.5;
}

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

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

.footer__link {
	font-size: var(--normal-font-size);
	transition: color 0.3s;
}

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

.footer__list--contacts {
	gap: 1.5rem;
}

.footer__contact-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.footer__contact-icon {
	width: 20px;
	height: 20px;
	color: var(--primary-color);
}

.footer__bottom {
	padding: 1.5rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
}

.footer__copy {
	font-size: var(--small-font-size);
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

	.header__toggle,
	.header__close {
		display: none;
	}

	.header__list {
		flex-direction: row;
		gap: 2.5rem;
	}

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

/*=============== BUTTON ===============*/
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background-color: var(--primary-color);
	color: #fff;
	padding: 1rem 2rem;
	border-radius: 0.5rem;
	font-family: var(--title-font);
	font-weight: 500;
	transition: background-color 0.3s, transform 0.3s;
	border: none;
	cursor: pointer;
}

.button:hover {
	background-color: var(--primary-color-hover);
	transform: translateY(-2px);
}

.button__icon {
	width: 20px;
	height: 20px;
}

/*=============== HERO SECTION ===============*/
.hero {
	padding-top: 8rem; /* Space for fixed header */
	padding-bottom: 4rem;
}

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

.hero__data {
	text-align: center;
}

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

.hero__description {
	font-size: 1.125rem;
	line-height: 1.6;
	margin-bottom: 2.5rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

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

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

/*=============== BREAKPOINTS (Updated) ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.hero__container {
		grid-template-columns: 1fr 1fr;
		text-align: left;
	}
	.hero__data {
		text-align: left;
	}
	.hero__description {
		margin-left: 0;
		margin-right: 0;
	}
}

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

/*=============== FEATURES (NEURO) SECTION ===============*/
.features {
	padding-top: 4rem;
	padding-bottom: 4rem;
	background-color: var(--container-color);
}

.features__header {
	text-align: center;
	margin-bottom: 3rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

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

.features__subtitle {
	font-size: var(--normal-font-size);
	line-height: 1.6;
}

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

.features__card {
	background-color: var(--background-color);
	padding: 2rem 1.5rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	transition: transform 0.3s, box-shadow 0.3s;
}

.features__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.features__card-icon {
	display: inline-flex;
	padding: 0.75rem;
	border-radius: 50%;
	background-color: var(--container-color);
	margin-bottom: 1.5rem;
	transition: color 0.3s;
}

.features__card-icon i {
	width: 32px;
	height: 32px;
	color: var(--title-color);
}

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

.features__card-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.75rem;
}

.features__card-description {
	font-size: var(--small-font-size);
	line-height: 1.5;
}

/*=============== BREAKPOINTS (Updated) ===============*/
/* For medium devices */
@media screen and (min-width: 576px) {
	.features__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* For large devices */
@media screen and (min-width: 992px) {
	.features {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}
	.features__header {
		margin-bottom: 4rem;
	}
	.features__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
	.features__title {
		font-size: 2.25rem;
	}
}

/*=============== BIOHACKING SECTION ===============*/
.bio {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.bio__header {
	text-align: center;
	margin-bottom: 4rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

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

.bio__subtitle {
	font-size: var(--normal-font-size);
	line-height: 1.6;
}

.bio__item {
	display: grid;
	gap: 2rem;
	align-items: center;
	margin-bottom: 4rem;
}

.bio__item:last-child {
	margin-bottom: 0;
}

.bio__item-image img {
	border-radius: 0.75rem;
}

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

.bio__item-description {
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.bio__item-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--primary-color);
	font-weight: 500;
	font-family: var(--title-font);
	transition: all 0.3s;
}

.bio__item-link:hover {
	color: var(--primary-color-hover);
	gap: 0.75rem;
}

/*=============== BREAKPOINTS (Updated) ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.bio__item {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
		margin-bottom: 5rem;
	}

	.bio__item--reversed .bio__item-image {
		order: 2;
	}
}

/* For large devices */
@media screen and (min-width: 992px) {
	.bio {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}
	.bio__title {
		font-size: 2.25rem;
	}
}

/*=============== VR/AR SECTION ===============*/
.reality {
	padding-top: 4rem;
	padding-bottom: 4rem;
	background-color: var(--container-color);
}

.reality__header {
	text-align: center;
	margin-bottom: 4rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

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

.reality__subtitle {
	font-size: var(--normal-font-size);
	line-height: 1.6;
}

.reality__interactive-area {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	border-radius: 1rem;
	overflow: hidden;
}

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

.reality__hotspot {
	position: absolute;
	z-index: 10;
}

.reality__hotspot-point {
	width: 20px;
	height: 20px;
	background-color: var(--primary-color);
	border-radius: 50%;
	cursor: pointer;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.reality__hotspot-point::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: var(--primary-color);
	border-radius: 50%;
	animation: pulse 2s infinite;
	opacity: 0.75;
}

@keyframes pulse {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(48, 165, 252, 0.7);
	}
	70% {
		transform: scale(1.5);
		box-shadow: 0 0 0 10px rgba(48, 165, 252, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(48, 165, 252, 0);
	}
}

.reality__tooltip {
	position: absolute;
	bottom: 150%;
	left: 50%;
	transform: translateX(-50%);
	width: 250px;
	background-color: var(--background-color);
	color: var(--text-color);
	padding: 1rem;
	border-radius: 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	font-size: var(--small-font-size);
	line-height: 1.5;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
	pointer-events: none;
}

/* Tooltip positioning adjustments */
.reality__hotspot[style*='left: 80%'] .reality__tooltip {
	left: auto;
	right: 50%;
	transform: translateX(50%);
}

/* Show tooltip logic */
.reality__hotspot:hover .reality__tooltip,
.reality__hotspot.active .reality__tooltip {
	opacity: 1;
	visibility: visible;
	bottom: 160%;
}

/*=============== BREAKPOINTS (Updated) ===============*/
/* For large devices */
@media screen and (min-width: 992px) {
	.reality {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}
	.reality__title {
		font-size: 2.25rem;
	}
	.reality__hotspot-point {
		width: 24px;
		height: 24px;
	}
}
/*=============== SKILLS (CODE) SECTION ===============*/
.skills {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.skills__header {
	text-align: center;
	margin-bottom: 4rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

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

.skills__subtitle {
	font-size: var(--normal-font-size);
	line-height: 1.6;
}

.skills__accordion {
	max-width: 750px;
	margin: 0 auto;
}

.skills__accordion-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.skills__accordion-item:first-child {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skills__accordion-header {
	width: 100%;
	background: none;
	border: none;
	padding: 1.5rem 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	text-align: left;

	font-family: var(--title-font);
	font-size: var(--h3-font-size);
	color: var(--title-color);
	font-weight: 500;
}

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

.skills__accordion-icon {
	width: 24px;
	height: 24px;
	transition: transform 0.4s;
}

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

.skills__accordion-description {
	padding: 0 1rem 1.5rem;
	line-height: 1.7;
}

/* Accordion active state */
.skills__accordion-item.is-open .skills__accordion-icon {
	transform: rotate(180deg);
}

.skills__accordion-item.is-open .skills__accordion-header {
	color: var(--primary-color);
}

/*=============== CONTACT SECTION ===============*/
.contact {
	padding-top: 4rem;
	padding-bottom: 4rem;
	background-color: var(--container-color);
}

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

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

.contact__description {
	line-height: 1.6;
	margin-bottom: 2rem;
}

.contact__image {
	display: none; /* Hidden on mobile, shown on desktop */
}

/* Form Styles */
.contact__form-group {
	margin-bottom: 1.5rem;
}

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

.contact__form-input {
	width: 100%;
	padding: 1rem;
	background-color: var(--background-color);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.5rem;
	color: var(--text-color);
	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 rgba(48, 165, 252, 0.2);
}

.contact__form-check {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.contact__form-checkbox {
	margin-top: 0.2rem;
	accent-color: var(--primary-color);
	width: 16px;
	height: 16px;
}

.contact__form-check-label {
	font-size: var(--small-font-size);
	line-height: 1.5;
}

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

.contact__form-check-label a:hover {
	color: var(--primary-color-hover);
}

.contact__form-button {
	width: 100%;
}

/* Success Message */
.contact__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
	border: 1px solid rgba(48, 165, 252, 0.3);
	border-radius: 0.75rem;
	background-color: var(--background-color);
}

.contact__success-icon {
	width: 48px;
	height: 48px;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

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

.contact__success-text {
	line-height: 1.6;
}

/*=============== BREAKPOINTS (Updated) ===============*/
@media screen and (min-width: 992px) {
	.contact {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}
	.contact__container {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}
	.contact__image {
		display: block;
		width: 100%;
		border-radius: 0.75rem;
	}
	.contact__title {
		font-size: 2.25rem;
	}
}

/*=============== COOKIE POP-UP ===============*/
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--container-color);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	z-index: var(--z-menu);
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.is-visible {
	bottom: 0;
}

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

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

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

.cookie-popup__button {
	padding: 0.75rem 1.5rem;
}

@media screen and (min-width: 768px) {
	.cookie-popup {
		flex-direction: row;
		justify-content: center;
		gap: 2rem;
	}
	.cookie-popup__text {
		font-size: var(--normal-font-size);
	}
}

/*=============== STYLES FOR POLICY PAGES ===============*/
.pages {
	padding-top: 8rem; /* Space for fixed header */
	padding-bottom: 4rem;
}

.pages h1,
.pages h2,
.pages p,
.pages ul {
	max-width: 800px; /* Limit width for readability */
	margin-left: auto;
	margin-right: auto;
}

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

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

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

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

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

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

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

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