html {
	background-color: #fdfdfd;
}

body {
	color: #2c3e50;
	width: 90%;
	max-width: 70em;
	font-family: 'Inter', Lato, -apple-system, BlinkMacSystemFont, sans-serif;
	margin: 0 auto;
	padding: 2em 1em;
	line-height: 1.6;
	background-color: #fafafa;
}

#rotate img {
    width: 20em;
}

#rotate {
    position: absolute;
    width: 40em;
    left: 50%;
    margin-left: -20em;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    overflow: hidden;
/* 
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 50%;
 */
    text-align: center;
    display: none;
}

#rotate p {
    font-size: 2em;
    text-align: center;
}

#head {
	font-family: 'Quicksand', sans-serif;
	width: 100%;
	max-width: 15em;
	position: sticky;
	top: 2em;
	float: left;
	margin-right: 2em;
	height: fit-content;
	background: white;
	padding: 2em;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

a, .highlighted {
	color: #2b6cb0;
	text-decoration: none;
	font-weight: 400;
	transition: color 0.2s ease;
}

a:hover {
	color: #4299e1;
}

#head h1 {
	font-size: 2.5em;
	font-weight: 400;
	text-align: right;
	float: right;
	margin: 0;
}

#head h2 {
	font-size: 1.3em;
	font-weight: 400;
	text-align: right;
	float: right;
}

svg.defs-only {
	position: absolute;
	height: 0;
	width: 0;
	overflow: none;
	left: -100vw;
}

#aboutImg {
	width: 15em;
	filter: url(#aboutColor);
	-webkit-filter: url(#aboutColor);
	margin-top: 1.3em;
	border-radius: 8px;
	transition: transform 0.2s ease;
}

#aboutImg:hover {
	transform: scale(1.02);
}

#icons {
	font-size: 3em;
	text-align: center;
	margin-top: 1.5em;
}

#icons a {
	margin: 0 0.5em;
	font-size: 1.2em;
	color: #4a5568;
	transition: color 0.2s ease;
}

#icons a:hover {
	color: #2b6cb0;
}

#links {
	font-size: 1.5em;
	text-align: center;
	margin-top: 1em;
	font-weight: 300;
}

#email h2 {
    float: none;
    text-align: center;
}

#email h2.mobile {
    float: none;
    text-align: center;
    display: none;
}

#content {
	float: right;
	width: calc(100% - 19em);
	margin-left: auto;
	line-height: 1.8em;
}

#content .line {
	border: 0;
/* 	background: #aaa; */
/* 	height: 1px; */
	margin: 0 0 1em;
}

#content h2 {
	font-family: 'Quicksand', sans-serif;
	margin-top: 0.5em;
	font-size: 1.5em;
	font-weight: 600;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 0.5em;
}

#content p, li {
	font-weight: 300;
	font-size: 1.2em;
	line-height: 2em;
}

#content ul {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

#content ul li {
    transition: box-shadow 0.25s;
    margin-left: -1em;
    margin-top: 1.5em;
    padding-left: 1em;
/* 
    padding-left: 2em;
    margin-left: -2.5em;
    text-indent: -1.5em;
 */
}

#content ul ul {
	margin-left: 2em;
}

#content ul ul li {
	font-size: 1em;
}

#content ul.tight-list li {
    margin-top: 0;
    margin-left: 0;
    padding-left: 0;
}

#content ul.tight-list {
    list-style: none;
    padding-left: 0;
}

#content ul.tight-list li {
  padding: 0.5em 0;
  border-bottom: 1px solid #edf2f7;
}

#content ul.tight-list li:last-child {
  border-bottom: none;
}

#content ul li b {
  color: #2d3748;
  display: block;
  margin-bottom: 0.2em;
}

.section {
	margin-bottom: 3em;
	background: white;
	padding: 2em;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	margin-bottom: 2em;
}

#labGrid {
	margin: 3em auto;
	text-align: center;
	width: 90%;
}

#labGrid img {
	height: 8em;
	margin: 0.5em 1em;
	transition: box-shadow 0.25s, opacity 0.25s;
}

#labDescriptions li {
	margin-bottom: 1em;
	transition: opacity 0.25s;
}

#portfolioGrid {
	display: grid;
	grid-template-columns: auto auto auto;
	width: 42em;
	text-align: center;
	margin: 0 auto;
}

#portfolioDescription {
	font-weight: 300;
	font-size: 1.2em;
	width: 12em;
	padding: 2em 0;
	height: 6em;
	display: grid;
	align-items: center;
	justify-items: center;
}

#portfolioGrid img {
	height: 8em;
	margin: 2em 3em;
	display: grid;
	align-items: center;
	justify-items: center;
	transition: box-shadow 0.25s, opacity 0.25s;
}

li.selected {
	opacity: 1;
	box-shadow: -1px 0px 0px 0px black;
}

li.deselected {
	opacity: 0.5;
}

img.selected {
/* 	border-bottom: 3px #323232; */
	box-shadow: 0 0 1.5em 0.2em #aaa;
}

img.deselected {
	opacity: 0.8;
}

.portrait #head {
    float: left;
    width: 100%;
    position: relative;
    padding-bottom: 2em;
    font-size: 1.6em;
}

.portrait #aboutImg, .portrait #icons, .portrait #tagline {
    display: none;
}

.portrait #email h2 {
    text-align: left;
    float: left;
    margin-top: 1em;
    font-size: 1.7em;
}

.portrait #email h2.mobile {
    display: block;
}

.portrait #email h2.desktop {
    display: none;
}

.portrait #links {
    margin-top: 1em;
    float: right;
    font-size: 1.7em;
    margin-right: 1em;
}

/* 
.portrait #links {
    margin: 0;
    float: right;
    padding-top: 0.4em;
}
 */

.portrait #name {
    float: left;
    text-align: left;
    width: 100%;
}

.portrait #content {
    float: none;
    width: 100%;
    font-size: 1.7em;
}

.portrait #portfolioGrid {
    display: none;
}

body.portrait {
    width: 95%;
}

#questions a {
    font-weight: 300;
}
#questions a:not(:first-child)::before {
    content: "â€¢ ";
}

/* 
#questions a:nth-child(even) {
	color: #659ABD;
	text-decoration: none;
	font-weight: 300;
}

#questions a:nth-child(even):hover {
	color: #92BEDA;
}

#questions a:nth-child(odd) {
	color: #256996;
	text-decoration: none;
	font-weight: 300;
}

#questions a:nth-child(odd):hover {
	color: #92BEDA;
}
 */

/* Add these styles for project cards */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
  margin-top: 2em;
}

.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card-content {
  padding: 1.5em;
}

.project-card h3 {
  margin: 0 0 0.5em;
  font-family: 'Quicksand', sans-serif;
  color: #1a365d;
}

.project-card .preview {
  color: #4a5568;
  font-size: 0.9em;
  line-height: 1.6;
  margin-bottom: 1em;
  display: none;
}

.project-card.expanded .preview {
  display: block;
}

.project-card .read-more {
  display: inline-block;
  padding: 0.5em 1em;
  background: #2b6cb0;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background 0.2s ease;
  margin-top: 1em;
}

.project-card .read-more:hover {
  background: #4299e1;
}

@media (max-width: 1200px) {
  #head {
    position: relative;
    float: none;
    top: 0;
    max-width: 100%;
    margin: 0 auto 2em auto;
    text-align: center;
  }

  #head h1, #head h2 {
    float: none;
    text-align: center;
  }

  #aboutImg {
    margin: 1.3em auto;
    display: block;
  }

  #content {
    float: none;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .project-cards {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: 180px;
  }

  .section {
    padding: 1.5em;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 1.2em;
    margin-bottom: 1.5em;
  }

  #content ul.tight-list li {
    padding: 0.8em 0;
  }

  .project-card-content {
    padding: 1.2em;
  }
}

/* Ensure proper spacing in main container */
#main {
    display: flex;
    flex-direction: row;
    gap: 2em;
    max-width: 70em;
    margin: 0 auto;
    padding: 2em 1em;
}

@media (max-width: 1200px) {
    #main {
        flex-direction: column;
    }
}

/* Update publication styling */
#content ul li b {
  color: #2d3748;
  display: block;
  margin-bottom: 0.2em;
}

/* Add specific styling for publication items */
#content ul li.publication {
  margin-top: 1.2em;
  line-height: 1.6;
}

#content ul li.publication:first-child {
  margin-top: 0;
}

/* Award item styling */
.award-item {
    background: white;
    border-radius: 8px;
    padding: 1.2em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    margin-bottom: 1em;
}

.award-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.award-item:last-child {
    margin-bottom: 0;
}

.award-title {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    color: #1a365d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.award-description {
    color: #4a5568;
    font-size: 0.9em;
    line-height: 1.6;
    margin-top: 0.8em;
    display: none;
}

.award-item.expanded {
    background: white;
}

.award-item.expanded .award-description {
    display: block;
    opacity: 1;
    max-height: none;
    background: none;
    padding: 0;
}

.award-item .expand-icon {
    color: #718096;
    transition: transform 0.2s ease;
    font-size: 0.7em;
    margin-left: 0.5em;
}

.award-item.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Update the awards section styling */
.awards-section {
    padding: 2em !important;
}

.awards-section .tight-list {
    margin: 0;
    padding: 0;
}

.awards-section .tight-list li {
    padding: 0;
    margin: 0;
    border: none;
}

/* Add after the existing project-card styles */

.project-card-text {
    background: white;
    border-radius: 8px;
    padding: 1.2em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    margin-bottom: 1em;
}

.project-card-text:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.project-card-text h3 {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    color: #1a365d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-card-text .preview {
    color: #4a5568;
    font-size: 0.9em;
    line-height: 1.6;
    margin-top: 0.8em;
    display: none;
}

.project-card-text.expanded .preview {
    display: block;
}

.project-card-text .expand-icon {
    color: #718096;
    transition: transform 0.2s ease;
    font-size: 0.7em;
    margin-left: 0.5em;
}

.project-card-text.expanded .expand-icon {
    transform: rotate(180deg);
}