/* Google Fonts - Roboto (all weights) */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100..900&display=swap");

/* ==================== CSS VARIABLES ==================== */
:root {
	--header-height: 3.5rem;

	/* Colors */
	--black-color: hsl(0, 0%, 71%);
	--white-color: hsl(255, 50%, 100%);
	--white-color-dark: hsl(0, 0%, 90%);
	--body-color: hsl(225, 100%, 100%);
	--active-color: hsl(0, 81%, 65%);

	/* Font */
	--body-font: "Roboto", sans-serif;
	--normal-font-size: 1rem;

	/* Font weight */
	--font-regular: 200;
	--font-semibold: 200;

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

/* ==================== RESPONSIVE TYPOGRAPHY ==================== */
@media screen and (min-width: 1024px) {
	:root {
		--normal-font-size: 1rem;
	}
}

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

body {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--body-color);
	letter-spacing: 1.1px;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
}

/* ==================== REUSABLE CSS CLASSES ==================== */
.container {
	margin-inline: 1.5rem;
}

.content {
	position: absolute;
	width: 100%;
	top: calc(var(--header-height) + 2rem);
}

/* ==================== HEADER ==================== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: var(--white-color);
	z-index: var(--z-fixed);
}

/* ==================== NAV ==================== */
.nav {
	height: var(--header-height);
}

.nav__logo,
.nav__burger,
.nav__close {
	color: var(--black-color);
}
.nav__data {
	height: 100%;
	width: 100%;
	display: flex;
	/* justify-content: space-between; */
	align-items: center;
}

.nav__logo {
	display: inline;
	align-items: center;
	column-gap: 0.25rem;
	position: absolute;
	left: 20px;
}

.nav__logo img {
	width: 250px;
}

.nav__instagram {
	position: fixed;
	right: 15px;
	font-size: 1.5rem;
	color: var(--black-color);
}

.nav__toggle {
	/* position: relative; */
	position: absolute;
	right: 10px;
	width: 32px;
	height: 32px;
}

.nav__burger,
.nav__close {
	position: absolute;
	width: max-content;
	height: max-content;
	inset: 0;
	margin: auto;
	font-size: 1.25rem;
	cursor: pointer;
	transition: opacity 0.1s, transform 0.4s;
}

.nav__close {
	opacity: 0;
}

/* For mobile devices */
@media screen and (max-width: 1320px) {
	.nav__menu {
		position: absolute;
		left: 0;
		top: 2.5rem;
		width: 100%;
		height: calc(100vh - 3.5rem);
		overflow: auto;
		pointer-events: none;
		opacity: 0;
		transition: top 0.4s, opacity 0.3s;
	}

	.nav__menu::-webkit-scrollbar {
		width: 0px;
	}

	.nav__list {
		background-color: var(--white-color);
		padding-top: 1rem;
	}

	.nav__instagram {
		right: 50px;
	}
}

.nav__link {
	color: var(--black-color);
	background-color: var(--white-color);
	font-weight: var(--font-semibold);
	padding: 1.5rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background-color 0.3s;
}

.nav__link:hover {
	background-color: var(--white-color-dark);
}

.nav__link.active,
.dropdown__link.active {
	color: var(--active-color);
}

/* Show Menu */
.show-menu {
	opacity: 1;
	top: 3.5rem;
	pointer-events: initial;
}

/* Show Icon */
.show-icon .nav__burger {
	opacity: 0;
	transform: rotate(90deg);
}

.show-icon .nav__close {
	opacity: 1;
	transform: rotate(90deg);
}

/* ==================== DROPDOWN ==================== */
.dropdown__item {
	cursor: pointer;
}

.dropdown__arrow {
	font-size: 1.25rem;
	font-weight: initial;
	transition: transform 0.4s;
}

.dropdown__link {
	padding: 1.25rem 1.25rem 1.25rem 2.5rem;
	color: var(--black-color);
	background-color: var(--white-color);
	display: flex;
	align-items: center;
	column-gap: 0.5rem;
	font-weight: var(--font-semibold);
	transition: background-color 0.3s;
}

.dropdown__link:hover {
	background-color: var(--white-color-dark);
}

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

/* Show dropdown menu */
.dropdown__item.show .dropdown__menu {
	max-height: 1000px;
	transition: max-height 0.4s ease-in;
}

/* Rotate dropdown icon */
.dropdown__item.show .dropdown__arrow {
	transform: rotate(180deg);
}

/* ==================== BREAKPOINTS ==================== */
/* For small devices */
@media screen and (max-width: 340px) {
	.container {
		margin-inline: 1rem;
	}

	.nav__link {
		padding-inline: 1rem;
	}
}

/* For large devices */
@media screen and (min-width: 1320px) {
	/* Show dropdown menu */
	.dropdown__item:hover .dropdown__menu {
		max-height: 1000px;
		transition: max-height 0.4s ease-in;
	}

	/* Rotate dropdown icon */
	.dropdown__item:hover .dropdown__arrow {
		transform: rotate(180deg);
	}

	.container {
		margin-inline: auto;
	}

	.nav {
		height: calc(var(--header-height) + 2rem);
		display: flex;
		justify-content: space-between;
	}

	.nav__toggle {
		display: none;
	}

	.nav__list {
		height: 100%;
		display: flex;
		column-gap: 2rem;
		position: absolute;
		left: 50%;
		top: 0;
		transform: translate(-50%, 0);
		max-width: calc(100% - 650px);
	}

	.nav__link {
		height: 100%;
		padding: 0;
		justify-content: initial;
		column-gap: 0.25rem;
		white-space: nowrap;
	}

	.nav__link:hover {
		background-color: transparent;
	}

	.dropdown__item {
		position: relative;
	}

	.dropdown__menu {
		max-height: initial;
		overflow: initial;
		position: absolute;
		left: 0;
		top: 6rem;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s, top 0.3s;
	}

	.dropdown__link {
		padding-inline: 1rem 3.5rem;
	}

	/* Show dropdown menu */
	.dropdown__item:hover .dropdown__menu {
		opacity: 1;
		top: 5.5rem;
		pointer-events: initial;
		transition: top 0.3s;
	}
}
