:root {
	--text-green: #006400;
	--white: #fff;
}

body {
	font-family: sans-serif;
	margin: 0;
	padding: 0;
}

.nav {
	background: #000;
	display: flex;
	align-items: center;
	justify-content: end;
	min-height: 60px;
	position: relative;
}

/* Hide the actual checkbox */
.nav__toggle {
	display: none;
}

/* Hamburger icon wrapper */
.nav__toggle-label {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 30px;
	height: 21px;
	margin-right: 1.5rem;
	cursor: pointer;
	z-index: 10;
}

/* Hamburger lines */
.nav__toggle-label span {
	display: block;
	height: 3px;
	width: 100%;
	background-color: var(--white);
	border-radius: 3px;
	transition: all 0.3s ease-in-out;
}

.nav__list {
	display: none; 
	flex-direction: column;
	gap: 2rem;
	position: absolute;
	top: 60px;
	left: 0;
	width: 100%;
	background: #000;
	padding: 2rem 0;
	text-align: center;
	list-style: none;
	margin: 0;

	z-index: 1;
	height: 100dvh;
}

.nav-list__link {
	color: var(--white);
	font-family: "Mulish", sans-serif;
	text-decoration: none;
	display: block;
	font-size: 1.25rem;

	&:hover,
	&.active {
		text-decoration: underline;
	}
}

/* Toggled state - show menu when checkbox is checked */
.nav__toggle:checked ~ .nav__list {
	display: flex;
}

/* Hamburger menu animations */
.nav__toggle:checked ~ .nav__toggle-label span:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}
.nav__toggle:checked ~ .nav__toggle-label span:nth-child(2) {
	opacity: 0;
}
.nav__toggle:checked ~ .nav__toggle-label span:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

.field {
	min-height: calc(100vh - 4px);
    /* Start checkered background option */
    background-color: #1B4001;
	background-image: linear-gradient(90deg, rgba(46, 89, 2, 0.5) 50%, transparent 50%),
	linear-gradient(rgba(46, 89, 2, 0.5) 50%, transparent 50%);
	background-size:90px 90px;
	/* End checkered background option */

    border-color: var(--white);
    border-width: 4px;
    border-top-style: solid;
    border-left-style: solid;
    padding-bottom: 6rem;
}

/* NOTE: Adapted from https://singhak.in/draw-half-and-quarter-circle-with-css/ */
.corner-quadrant {
	width: 45px;
	height: 45px;
	border-radius: 0 0 45px 0;
	background-color: transparent;
	border: 4px solid var(--white);
	border-left-style: none;
	border-top-style: none;
}

.card {
	background: var(--white);
	border-radius: 12px;
	font-family: "Mulish", sans-serif;
	max-width: calc(90% - 4rem);
	margin: 0 auto;
	padding: 2rem;
	position: relative;
	top: 1rem;
}

.text-center {
	text-align: center;
}

.main-heading {
	font-weight: 400;
	margin: 0;
}

.title {
	color: var(--text-green);
	padding-top: 0.5rem;
}

.bio-photo {
	background-image: url(../images/bio-updated-2026.jpg);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	height: 140px;
	width: 140px;
	border-radius: 50%;
	margin: 0 auto;
	margin-top: 1rem;
}

.profile-heading {
	margin: 1.5rem 0 0 0;
	padding: 0 0 0.5rem 0;
    border-bottom: 1px solid;

    &:nth-of-type(2) {
    	margin-top: 2rem;
    }
}

.profile-details {
	margin: 0;
	padding-top: 1rem;
}

.skills-list {
	display: grid;
	padding: 0;
}

.skills-list li {
	list-style: none;
	background-image: url("../images/soccer-ball.png");
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 1.5rem;
	padding: 1rem 2rem 1rem 2rem;
}

.signature {
	margin: 0;
	padding-top: 2rem;
	text-align: center;
}

/* Start portfolio styles */
.work-heading {
	font-family: "Mulish", sans-serif;
	font-size: 2rem;
	color: var(--white);
	max-width: calc(90% - 1.5rem);
    margin: auto;
    margin-bottom: 1rem;

    &:nth-child(n+2 of .work-heading) {
    	margin-top: 2rem;
    }
}

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

.portfolio__project {
	background: var(--white);
	color: #000;
	border-radius: 12px;
	padding: 1.5rem;
	max-width: calc(90% - 4rem);
	margin: 0 auto;
	text-decoration: none;
}

.portfolio__project--title,
.portfolio__project--desc {
	font-family: "Mulish", sans-serif;
	margin-bottom: 0;
}

.portfolio__project--title {
	border-bottom: 1px solid;
	padding-bottom: 0.5rem;
}

.portfolio__project--image {
	max-width: 100%;
	height: auto;

	&.portfolio__project--image--personal {
		display: block;
		margin-left: auto;
		margin-right: auto;
		width: 80px;
	}
}

.content-link {
	color: #000;
}
/* End portfolio styles */

/* Start media queries */
/* 480px */
@media screen and (min-width: 30rem) {
	.card {
		max-width: 80%;
	}
}

/* 640px */
@media screen and (min-width: 40rem) {
	.card {
		max-width: 60%;
	}
}

/* 768px */
@media screen and (min-width: 48rem) {
	/* Hide the hamburger icon entirely */
	.nav__toggle-label {
		display: none;
	}

	/* Adjust nav list to horizontal desktop layout */
	.nav__list {
		display: flex;
		flex-direction: row;
		position: static;
		width: auto;
		padding: 0 3rem 0 0;
		gap: 1.5rem;
		box-shadow: none;

		height: auto;
	}

	/* Reset link font size for desktop */
	.nav-list__link {
		display: inline;
		font-size: 1rem;
	}

	.skills-list {
		grid-template-columns: repeat(2, 1fr);
	}

	.work-heading {
		max-width: 50%;
	}

	.portfolio {
		flex-direction: row;
		justify-content: center;
		flex-wrap: wrap;
	}

	.portfolio__project {
		margin: 0;
		max-width: 360px;
	}
}

/* 1024px */
@media screen and (min-width: 64rem) {
	.card {
		max-width: 40%;
	}

	.work-heading {
		max-width: calc(90% - 4.5rem);
	}
}

/* 1280px */
@media screen and (min-width: 80rem) {
	.work-heading {
		max-width: calc(90% - 0.25rem);
	}
}