@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {

	--white: #dce6de;

	--primary: #344e41;
	--secondary: rgb(96, 133, 104);
	--pad: 4rem;

	--shadow: 0 20px 24px 0px rgba(66, 80, 66, 0.199);
}

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	font-family: "Cal sans";
}

img {
	max-width:100%;
	max-height:100%;
	line-height: 0;
}

body {
	overflow-x: hidden;
}

a {
	text-decoration: underline 2px #41644600;
	color: var(--primary);
	font-size: 1.25rem;
	line-height: 1;
	transition: .1s all ease;
}

a:hover {
	text-decoration: underline 2px var(--primary);
}

h1 {
	font-size: 5rem;
	line-height: 1;
}

h2 {
	font-size: 3rem;
	line-height: 1;
	margin-bottom: var(--pad);
}

h3 {
	font-weight: normal;
	font-size: 1.5rem;
	font-family: "Inter";
}

h4 {
	font-weight: normal;
	font-size: 1.5rem;
}

p {
	font-family: "Inter";
	font-size: 1.5rem;
}

span {
	line-height: 1;
	vertical-align: middle;
}

.sub {
	font-size: 1.5rem;
}

.quote {
	font-size: 2rem;
}

.logo, .logo img {
	width: 3rem;
}

.left, .right {
	width: 50%;
	height: 100%;
}

#title {
	margin-bottom: var(--pad);
}

header {
	position: sticky;
	top: 0;
	display: flex;
	justify-content: space-between;
	height: calc(3rem + 2 * var(--pad));
	padding: var(--pad);
	align-items: center;
	background-color: white;
	z-index: 1000;
	color: var(--primary);
}

nav {
	display: flex;
	gap: 2rem;
}

.menu {
	font-size: 3rem;
	display: none;
	user-select: none;
}

#nav-menu {
	background-color: var(--primary);
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: fixed;
	z-index: 10;
	gap: 2rem;

} #nav-menu a {
	font-size: 2rem;
	color: white;
}

main {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.anchor {
	display: block;
	visibility: hidden;
	height: calc(3rem + 2 * var(--pad));
	margin-top: calc(-3rem - 2 * var(--pad));
}

section, footer {
	width: 100vw;
	padding: var(--pad) 10% var(--pad) 10%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	color: var(--primary);
}

#intro {
	flex-direction: row;
	padding-top: 0;
	height: calc(100vh - 14rem);
	display: flex;
	gap: var(--pad);
}

#intro .right {
	display: flex;
	justify-content: center;
	padding: 0 0 var(--pad);
	flex: 1 1;
}

#intro .left {
	flex: 1 1;
}

#me {
	border-radius: 1rem;
	transform: scaleX(-1);
	box-shadow: var(--shadow);
	object-fit: cover;
	object-position: top; 
}

#edu, #services {
	background-color: var(--primary);
	color: white;
	height: auto;
}

.table {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	gap: 2rem;
	align-items: center;
	text-align: center;
}

#services {
	background-color: var(--white);
	color: var(--primary);
}

.cards {
	width: 100%;
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
}

.card {
	background-color: white;
	border-radius: 1rem;
	min-width: 300px;
	width: 33%;
	flex: 1 1;

	display: flex;
	padding: 2rem;
	gap: 2rem;
	flex-direction: column;
	align-items: center;
	box-shadow: var(--shadow);
	transition: all .1s ease;
}

.card p {
	text-align: center;
}

.price {
	margin-top: auto;
}

.business-card {
	background-color: var(--white);
	border-radius: 1rem;
	width: 100%;
	flex: 1 1 auto;
}

#about {
	height: auto;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

#about p {
	text-align: center;
}

#contact .container {
	display: flex;
	width: 100%;
	background-color: var(--white);
	padding: calc(var(--pad) / 2);
	border-radius: 1rem;
	box-shadow: var(--shadow);
} 

#contact .left {
	display: flex;
}

#contact .left, #contact .right {
	padding: 1rem;
	width: auto;
}

#contact .container .right {
	display: flex;
	flex-direction: column;
}

#contact-img {
	object-fit: cover;
	max-height: 300px;
	aspect-ratio: 1;
	border-radius: .5rem;
}

.linkedin {
	font-size: 1.5rem;
}

footer {
	background-color: var(--primary);
	color: var(--white);
	flex-direction: row;
	padding: var(--pad);
} footer p {
	font-size: 1rem;
} footer a {
	color: var(--white);
}

footer .left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

footer .logo {
	width: auto;
	height: 3rem;
}

hr {
	display: block;
	height: 1px;
	width: 100%;
	border: 0;
	border-top: 1px solid var(--white);
	margin: 1em 0;
	padding: 0;
}

::-webkit-scrollbar {
	background-color: var(--white);
	width: 5px;
}

::-webkit-scrollbar-thumb {
	background-color: var(--primary);
	border-radius: 10rem;
}

@media (hover: hover) {
	
	.card:hover {
		transform: scale(1.05);
	}
}

@media only screen and (max-width: 1260px) {

	h1 {
		font-size: 3rem;
	} h2 {
		font-size: 2rem;
	} h3 {
		font-size: 1.5rem;
	} p {
		font-size: 1.25rem;
	} .linkedin {
		font-size: 1.25rem;
	}

	.sub {
		font-size: 1.5rem;
	}

	.quote {
		font-size: 1.5rem;
	}

	section {
		padding: var(--pad) 10% var(--pad) 10%;
	}

	#intro {
		padding-top: 0;
		height: auto;
		flex-direction: column;
		gap: 0;
	}

	#intro .left {
		height: auto;
		padding-bottom: var(--pad);
		text-align: center;
	} #intro .right {
		height: 500px;
		padding: 0 10%;
	}

	#intro .left, #intro .right {
		width: 100%;
		background-size: 60%;
		background-position: 100% 20%;
	}
}

@media only screen and (max-width: 1000px) {

	#contact .container {
		flex-direction: column;
		align-items: center;
		width: auto;
		max-width: 100%;
	}

}

@media only screen and (max-width: 590px) {

	:root {
		--pad: 2rem;
	}

	h1 {
		font-size: 2rem;
	} h2 {
		font-size: 1.5rem;
	} h3 {
		font-size: 1.5rem;
	}

	.sub {
		font-size: 1rem;
	}

	.quote {
		font-size: 1.25rem;
	}

	section {
		padding: var(--pad) 10% var(--pad) 10%;
	}

	nav {
		display: none;
	}

	.menu {
		display: block;
		cursor: pointer;
	}

	#intro .left, #intro .right {
		height: 50%;
		width: 100%;
		padding: 0;
	}

	#intro .left {
		padding-bottom: var(--pad);
	}

	#me {
		width: 100%;
	}
}