@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Datatype:wght@100..900&display=swap');

*,
*::before,
*::after {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Datatype', monospace;
	font-size: 1.3rem;
	font-weight: 400;

	/* Foto de background de Ivana Cajina na Unsplash */
	background: url("img/bg.webp") no-repeat center center;
	background-size: cover;
	backdrop-filter: blur(5px);
}

a {
	color: #fff;
	text-decoration: none;
	transition: 0.3s;
	text-align: center;
}

a:hover {
	cursor: pointer;
	opacity: 0.7;
}

h1, h3, p {
	color: #fff;
}

img {
	height: 100%;
	width: 100%;
	border-radius: 16px;
}

span {
	/* Globally defines the color of the span tag. */
	color: crimson;
}

/* Liquid Glass Effect */

.liquid-glass {
	/* From https://css.glass */
	background: rgba(0, 0, 0, 0.2);
	border-radius: 16px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(0, 0, 0, 0.3);
}

/* Header Styles */
.header {
	display: flex;
	justify-content: space-around;
	align-items: center;
	
	/* Liquid glass border adjustment */
	border-radius: 0 0 16px 16px;
	
	height: 8vh;
	font-size: 1.2rem;
}

.logo {
	font-size: 2.5rem;
	text-transform: uppercase;
	letter-spacing: .25rem;
}

.logo a {
	color: green;
}

.nav-list {
	list-style: none;
	display: flex;
}

.nav-list li {
	letter-spacing: 3px;
	margin-left: 32px;
}

.mobile-menu {
	display: none;
	cursor: pointer;
}

.mobile-menu div {
	width: 32px;
	height: 2px;
	background: #fff;
	margin: 8px;
}

.active {
	color: green;
}

/* Container Styles */
.container {
	max-width: 90%;
	margin: 0 auto;
}

.hero {
	height: 55vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.hero h1 {
	font-size: 3rem;
	margin-bottom: 2rem;
}

/* Card Styles */
.card {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	margin-bottom: 3.2vh;

	/* Liquid glass background adjustment */
	background: rgba(232, 97, 0, 0.2);
}

.card > div {
	padding: 2rem;
}

.card:nth-child(even) img {
	order: 2;
}

.card h3 {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.card div span {
	color: #0cdffa;
}

.publish-date {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.btn {
	display: inline-block;
	background: green;
	margin-top: 2rem;
	padding: .8rem 1.5rem;
	text-transform: capitalize;
}

.btn:hover {
	opacity: .8;
}

/* Person Styles */
.container-person {
	max-width: 50%;
	margin: 0 auto;
}

.person {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 2rem;
	margin-bottom: 3.2vh;
}

.person > div {
	padding: 2rem;
}

.person h3 {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.person p {
	margin-bottom: 2rem;
}

/* Footer Styles */
.footer {
	display: flex;
	justify-content: space-around;
	align-items: center;
	
	/* Liquid glass border adjustment */
	border-radius: 16px 16px 0 0;
	
	height: 8vh;
	color: #fff;
	text-transform: capitalize;
	font-size: 1rem;
}

.social-network {
	list-style: none;
	display: flex;
}

.social-network li {
	letter-spacing: 3px;
	margin-left: 32px;
}

.footer img {
	height: 3.2vh;
	width: 1.25vw;
	filter: brightness(0) invert(1);
}

/* Media Queries */
@media(max-width: 1080px) {
	.container {
		padding: 0 5%;
	}
}

@media (max-width: 999px) {
	body {
		overflow-x: hidden;
	}

	.container {
		position: relative;
		z-index: -1;
	}

	.nav-list {
		position: absolute;
		top: 8vh;
		right: 0;
		width: 50vw;
		height: 92vh;
		/* background: #23232e; */

		/* From https://css.glass */
		background: rgba(35, 35, 46, 0.8);
		border-radius: 16px;
		box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
		backdrop-filter: blur(5px);
		-webkit-backdrop-filter: blur(5px);
		border: 1px solid rgba(0, 0, 0, 0.3);

		flex-direction: column;
		align-items: center;
		justify-content: space-around;
		transform: translateX(100%);
		transition: transform 0.3s ease-in;
	}

	.nav-list li {
		margin-left: 0;
		opacity: 0;
	}

	.mobile-menu {
		display: block;
		z-index: 10;
	}
}

@media(max-width: 700px) {
	body {
		font-size: 1.2rem;
	}

	.hero h1,
	.logo {
		font-size: 2rem;
	}

	.card {
		display: block;
	}
}

.nav-list.active {
	transform: translateX(0);
}

@keyframes navLinkFade {
	from {
		opacity: 0;
		transform: translateX(50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.mobile-menu.active .line1 {
	transform: rotate(-45deg) translate(-8px, 8px);
}

.mobile-menu.active .line2 {
	opacity: 0;
}

.mobile-menu.active .line3 {
	transform: rotate(45deg) translate(-5px, -7px);
}