* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	padding-top: 10vh;
	font-family: 'Poppins', sans-serif;
	margin: 0;
}
section {
	background-color: #f2ebe3;
	padding: 1rem;
}
h1 {
	font-size: 60px;
	margin: 0;
}
h2 {
	font-size: 50px;
}
p {
	font-size: 30px;
	font-weight: 300;
}

/*Navbar and logo */

nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	padding: 1em;
	background-color: #1f1f28;
	color: white;
	display: flex;
	justify-content: space-between;
	height: 12vh;
	background-color: #1f1f28;
}
.logo-area {
	display: flex;
	align-items: center;
	z-index: 10;
	height: 100%;
}
.logo-area-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 0.2rem;
	padding-bottom: 0.2rem;
	height: 90%;
}
.logo-area-text p {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.1;
	height: 100%;
}
.logo-link {
	text-decoration: none;
	display: flex;
	align-items: center;
}
.logo {
	height: 6rem;
	margin: 0px 10px 0px 0;
	max-height: 100%;
}
#nav-list {
	display: flex;
	list-style-type: none;
	justify-content: space-between;
	font-size: 2rem;
	margin: 0 1em 0 0;
}
#nav-list.show {
	display: flex;
	gap: 0;
}
#nav-list li {
	text-decoration: none;
	padding: 0.3em 1em 1em 1em;
}
#nav-list li a {
	position: relative;
	transition: color 0.3s ease;
}
#nav-list li a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -5px;
	left: 50%;
	background-color: #ef744b;
	transition: width 0.3s ease, left 0.3s ease;
}
#nav-list li a:hover::after {
	width: 100%;
	left: 0;
}
.hamburger {
	display: none;
	font-size: 2rem;
	z-index: 10;
	height: 90%;
	background-color: transparent;
	border: none;
	color: white;
}
.hamburger:focus {
	outline: 0;
}

/* Hero Area */

.main {
	background-color: #1f1f28;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #fffff1;
	min-height: 78.1vh;
}
.hero {
	background-color: #1f1f28;
	min-height: 100vh;
	padding-top: 12vh;
	padding-bottom: 1rem;
	color: white;
	font-size: 40px;
}
.hero-area {
	display: flex;
	min-height: 100%;
	justify-content: flex-start;
	align-items: center;
}
.hero-text {
	padding: 0 0 0 2rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3rem;
	flex-grow: 1;
}
.hero-text .cta-buttons {
	justify-content: flex-start;
}
.hero-image {
	display: block;
	position: relative;
	width: 40%;
	height: auto;
	top: -60px;
}
.cta-buttons {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	padding: 0;
	gap: 1rem 2rem;
	width: 100%;
	font-size: 40px;
}
.cta-buttons a {
	width: auto;
	border-radius: 50px;
	border: 5px solid #ef744b;
	text-align: center;
	font-size: 40px;
	font-weight: 300;
	color: #ef744b;
	background-color: white;
	padding: 0.5rem 1rem;
	align-self: flex-end;
}
.cta-buttons a,
.download-button {
	white-space: nowrap;
	width: 100%;
	box-sizing: border-box;
	font-size: 1.5rem;
}
.cta-buttons a:hover {
	background-color: #ef744b;
	color: white;
	transition: 0.2s ease-in-out;
}
.cta-buttons a:active {
	background-color: #a9a9a9;
	color: #808080;
}
.socials {
	padding-bottom: 200px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
	padding-bottom: 50px;
}
.social {
	margin: 20px;
	transition: transform 0.3s ease;
}
.social:hover {
	transform: scale(1.15);
}

/* About Me */

#about-me-frame {
	scroll-margin-top: 12vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}
#about-me {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4em;
	width: 100%;
}
.sub-section-alternative {
	display: flex;
	flex-direction: column;
	text-align: center;
	padding: 80px;
}
.headshot-container {
	display: flex;
	align-items: center;
}
.headshot {
	max-width: 38em;
	margin: 0 0 0 0;
}
.headshot-alternative {
	display: none;
}
.about-me-text {
	margin: 0 0 0 3em;
	padding: 0 3em 0 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.about-me-text h1 {
	text-align: center;
}
.about-me-text p {
	margin: 0 0 0 0;
	font-size: 1.5em;
	padding: 0 0 2em 0;
}
.span1 {
	background: linear-gradient(rgb(188, 12, 241), rgb(212, 4, 4));
	background-clip: text;
	color: transparent;
	font-weight: bolder;
}
.span2 {
	background: linear-gradient(rgb(188, 12, 241), rgb(212, 4, 4));
	background-clip: text;
	color: transparent;
	font-weight: bolder;
}

.about-me-text .cta-buttons {
	display: flex;
	justify-content: space-between;
	width: auto;
	font-size: 40px;
}

/* Work Ethic */

#work-ethic {
	background-color: #1f1f28;
	color: white;
	padding: 1rem;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#work-ethic h2 {
	text-align: center;
}

#work-ethic ul {
	padding: 1rem;
	font-size: 1.2rem;
	line-height: 1.6;
	margin-top: 1rem;
	margin-bottom: 1rem;
	max-width: 600px;
}

#work-ethic ul li {
	margin-bottom: 0.6rem;
}

/*Portfolio of Projects*/

#portfolio {
	padding: 1rem;
}

.project-type-title {
	text-align: left;
	padding-left: 1.5rem;
}

.project-type-title-flex {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
}

.project-container {
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
}

.project-card {
	flex: 1 1 300px;
	height: auto;
	box-shadow: 5px 5px 20px rgb(197, 195, 195);
	margin: 10px;
	max-width: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.project-image {
	margin: 10px;
	max-width: 90%;
	height: auto;
}

.project-text {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	flex-grow: 1;
}

hr {
	margin-left: 20px;
	margin-right: 20px;
}

.subtext {
	font-size: 15px;
	font-weight: 300;
	padding: 10px 20px 20px 10px;
	line-height: 1.6;
}

.project-card-links {
	display: flex;
	justify-content: center;
	gap: 1.5em;
	padding-bottom: 1em;
	margin-top: auto;
}

.project-link {
	text-decoration: none;
	color: #ef744b;
	border-bottom: 1px solid transparent;
	/* Transparent border for the underline */
	padding-bottom: 0px;
	/* Adjust this value to control distance from text */
	transition: border-color 0.3s ease;
	/* Smooth transition for the border color */
}

.view-all-container {
	text-align: right;
	padding: 1rem 1.5rem 0 0;
}

.project-type-title-flex .view-all-container {
	padding: 0 1.5rem 0 0;
}

.view-all-link {
	color: #ef744b;
	/* Keep color specific to this link */
	font-weight: 400;
	font-size: 1.1rem;
}

.view-all-link:hover {
	/* Inherits border-color from .hover-underline-link if applied, or can be set here */
}

.text-content-container {
	padding: 1rem 1.5rem;
	max-width: 100%;
	box-sizing: border-box;
	text-align: left;
	column-count: 2;
	column-gap: 1rem;
}

.portfolio-paragraph {
	font-size: 1.1rem;
	font-weight: 300;
	margin-bottom: 0.8rem;
	line-height: 1.5;
	color: #333;
	box-sizing: border-box;
	break-inside: avoid;
}

.challenge-github-link {
	color: #ef744b;
	font-weight: 400;
	margin-left: 0.5em;
	white-space: nowrap;
}

.challenge-github-link:hover {
	border-color: #ef744b;
}

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

/* Contact Form */

#contact {
	background-color: #1f1f28;
	color: white;
	text-align: center;
	padding: 1rem 2rem 0 2rem;
}
.contact-form-container {
	display: flex;
	width: 100%;
	flex-direction: row;
}
.contact-form {
	width: 100%;
	margin: 0 3rem 0 0;
}

form {
	background: #1f1f28;
	display: flex;
	flex-direction: column;
	padding: 20px 20px;
	width: 100%;
	max-width: 100%;
	margin: 2vh 0 2vh 0;
	border-radius: 10px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	position: relative;
	opacity: 1;
}
form h3 {
	color: #555;
	font-weight: 800;
	margin-bottom: 20px;
}
form input {
	height: 10px;
}
form input,
form textarea {
	border: 0;
	margin: 10px 0;
	padding: 20px;
	outline: none;
	background: #f5f5f5;
	font-size: 14px;
	opacity: 0.8;
}
form select {
	height: 40px;
	border: 0;
	margin: 10px 0;
	background: #f5f5f5;
	font-size: 16px;
	padding-left: 10px;
}
form button {
	width: 10rem;
	height: 3rem;
	display: block;
	margin: auto;
	border-radius: 50px;
	border: 5px solid #ef744b;
	font-size: 1.5rem;
	font-weight: 300;
	color: #ef744b;
	background-color: white;
	box-sizing: border-box;
	opacity: 1;
}
form button:hover {
	background-color: #ef744b;
	color: white;
	transition: 0.2s ease-in-out;
}

.contact-form-text {
	width: 90%;
	margin: 1rem auto;
	order: 1;
	padding-right: 1rem;
}
.contact-form-text .cta-buttons {
	margin: 3rem auto;
	display: flex;
	justify-content: center;
}

.download-button {
	width: auto;
	height: 3rem;
	border-radius: 50px;
	border: 5px solid #ef744b;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 300;
	color: #ef744b;
	background-color: white;
	padding: 0rem 2rem;
	box-sizing: border-box;
	align-self: flex-end;
}
.download-button:hover,
form button:hover {
	background-color: #ef744b;
	color: white;
	transition: 0.2s ease-in-out;
}
form button:active {
	background-color: #a9a9a9;
	color: #808080;
}
#about-me,
#portfolio,
#contact-me {
	scroll-margin-top: 10vh;
}

/*Footer*/

footer {
	background-color: black;
	color: white;
	text-align: center;
	padding: 2em;
}

/*Responsiveness and Media Queries*/

@media only screen and (max-width: 1700px) {
	#about-me .cta-buttons {
		flex-wrap: wrap;
		justify-content: center;
		gap: 1.5rem 2rem;
	}

	#about-me .cta-buttons .cta1,
	#about-me .cta-buttons .cta2 {
		flex: 1 1 200px;
		max-width: 250px;
		text-align: center;
	}

	#about-me .cta-buttons a {
		width: 100%;
		font-size: 1.5rem;
	}
}

@media only screen and (max-width: 1300px) {
	.hero {
		min-height: 75vh;
	}
	.hero-area {
		justify-content: space-between;
		align-items: center;
	}
	.hero-text {
		width: 50%;
		padding-left: 1rem;
	}
	#nav-list {
		font-size: 1.5rem;
		margin: 0 1em 0 0;
	}
	.project-container {
		gap: 2em;
	}
	#about-me {
		padding: 2em;
	}
	.socials {
		margin: 0;
		align-items: center;
	}
	.sub-section-alternative {
		padding: 40px;
	}
	#contact {
		padding: 1rem;
	}
}

@media only screen and (max-width: 1200px) {
	.hero {
		min-height: 70vh;
	}

	.cta-buttons a {
		width: 100%;
		font-size: 1.5rem;
	}

	.headshot-container {
		justify-content: center;
	}

	.headshot {
		display: none;
	}

	.headshot-alternative {
		display: block;
		width: 100%;
		justify-content: center;
	}
}

@media only screen and (max-width: 1000px) {
	.project-container {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		gap: 20px;
		justify-items: center;
	}

	.project-card {
		max-width: 100%;
		padding: 0.2rem;
	}

	nav {
		background-color: #2b2c38;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 10px 20px;
	}

	.hamburger {
		display: block;
		align-self: flex-end;
		margin-bottom: 5px;
		font-size: 4rem;
	}

	#nav-list {
		display: none;
		flex-direction: column;
		align-items: center;
		background-color: #2b2c38;
		position: absolute;
		top: 10vh;
		width: 100%;
		left: 0;
	}

	.hero-area {
		flex-direction: row;
	}
}

@media only screen and (max-width: 900px) {
	h1 {
		font-size: 35px;
	}
	h2 {
		font-size: 40px;
	}
	p {
		font-size: 1.2rem;
	}
	.main {
		min-height: 79.9vh;
	}
	.hero {
		background-color: #1f1f28;
		color: white;
		font-size: 40px;
		padding-top: 12vh;
		min-height: auto;
		position: relative;
	}

	.hero-area {
		display: flex;
		flex-direction: column;
		text-align: center;
		align-items: center;
		gap: 1rem;
	}

	.hero-text {
		padding: 0;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		order: 1;
	}

	.hero-text h1 {
		font-size: 35px;
	}

	.hero-text p {
		font-size: 1.2rem;
		max-width: 80%;
		margin: 0 auto 1rem auto;
	}

	.hero-text .cta-buttons {
		justify-content: center;
	}

	.hero-image-container {
		display: flex;
		justify-content: center;
		order: 2;
	}

	.hero-image-container img {
		display: block;
		max-width: 70%;
		height: auto;
		margin-top: 1.5rem;
	}

	.cta-buttons a {
		font-size: 1.5rem;
		padding: 0.4rem 0.8rem;
	}

	.cta-buttons {
		flex-direction: row;
		justify-content: center;
		gap: 1rem;
		margin-top: 0.5rem;
		order: 3;
	}

	.socials {
		display: flex;
		flex-direction: row;
		justify-content: center;
		gap: 1rem;
		margin-top: 0.5rem;
		order: 4;
	}

	.work-ethic .hero-text {
		margin: 0 0 2em 0;
		width: 100%;
	}

	#about-me {
		flex-direction: column;
		text-align: center;
		padding: 0 0 2em 0;
		gap: 1em;
	}

	#about-me .cta-buttons {
		font-size: 2rem;
		gap: 2rem;
	}

	.headshot-alternative {
		width: 70%;
	}

	.about-me-text {
		margin: 0;
		padding: 0;
		gap: 1em;
		justify-content: center;
		align-items: center;
		text-align: left;
	}

	.about-me-text p {
		font-size: 1rem;
		line-height: 1.6;
		padding: 0 1rem;
	}

	.headshot-container {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	#work-ethic {
		padding: 2em;
	}

	#work-ethic ul {
		font-size: 1rem;
		line-height: 1.6;
		padding: 1rem;
		margin-top: 1rem;
		margin-bottom: 1rem;
	}

	.portfolio-paragraph {
		font-size: 1rem;
	}

	.text-content-container {
		column-count: 1;
	}

	form {
		margin: 0;
	}

	.contact-form-text p {
		font-size: 1.2rem;
	}

	footer p {
		font-size: 1.2rem;
	}
}

@media only screen and (max-width: 738px) {
	#about-me .cta-buttons {
		flex-direction: column;
		align-items: center;
		gap: 0.5rem;
		margin-top: 1rem;
	}
	#about-me .cta-buttons .cta1,
	#about-me .cta-buttons .cta2 {
		width: 100%;
		max-width: 300px;
		text-align: center;
		margin-bottom: 0;
		flex: 1 1 80px;
	}

	.cta1,
	.cta2 {
		width: 90%;
		max-width: 300px;
	}

	#about-me .cta-buttons a {
		width: 100%;
		font-size: 1.5rem;
		padding: 0.4rem 1rem;
	}
}

@media only screen and (max-width: 710px) {
	.contact-form-container {
		display: flex;
		flex-direction: column;
	}
	.contact-form {
		width: 100%;
	}
	.contact-form-text {
		text-align: left;
		width: 90%;
	}
	.cta1 {
		text-align: center;
	}
}

@media only screen and (max-width: 685px) {
	.cta-buttons a {
		font-size: 1.5rem;
		padding: 0.4rem 0.8rem;
	}
}



@media only screen and (max-width: 565px) {
	h1 {
		font-size: 35px;
		padding-bottom: 20px;
	}
	h2 {
		font-size: 30px;
	}
	.logo-link {
		height: 60px;
	}
	.hero {
		height: auto;
		min-height: auto;
	}
	.hero-area img {
		display: none;
	}
	.hero-text {
		gap: 0;
	}
	.hero-text p {
		font-size: 1.2rem;
		padding-bottom: 30px;
	}
	.hero-text .cta-buttons {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		margin-top: 1rem;
	}
	.hero-text .cta1,
	.hero-text .cta2 {
		width: 90%;
		max-width: 300px;
		text-align: center;
	}
	.hero-text .cta-buttons a {
		width: 100%;
		font-size: 1.5rem;
		padding: 0.5rem 1rem;
	}
	.cta-buttons {
		flex-direction: column;
		margin-top: 0;
		padding-bottom: 10px;
	}
	.cta-buttons a {
		font-size: 1rem;
	}
	.cta1,
	.cta2 {
		margin: 0 auto;
	}
	.project-card {
		max-width: 90%;
	}
	.contact-form-container {
		flex-direction: column;
	}
	.socials {
		margin-top: 0.5rem;
		padding-top: 1rem;
		padding-bottom: 1rem;
	}
}

@media only screen and (max-width: 470px) {
	.main {
		padding: 0 1rem;
	}

	.logo-area-text p {
		font-size: 1.5rem;
		font-weight: 200;
	}

	.hamburger {
		font-size: 2.5rem;
	}
}

@media only screen and (max-width: 390px) {
	.main {
		min-height: 80.8vh;
	}

	#contact-me p {
		font-size: 0.9em;
	}

	#contact-me {
		padding: 32px 0;
	}
}

@media only screen and (max-width: 360px) {
	#about-me .cta-buttons {
		gap: 0rem;
	}

	.download-button {
		font-size: 0.7em;
	}
}

@media only screen and (max-width: 290px) {
	.cta-buttons a {
		font-size: 0.6em;
	}
}

@media only screen and (max-width: 275px) {
	.cta-buttons a {
		font-size: 0.5em;
	}
}

@media only screen and (max-width: 255px) {
	.cta-buttons a {
		font-size: 0.4em;
	}
}
