/* import fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100;300;400;500;600&display=swap');

/* define some CSS variables */

:root {
	--font-raleway: 'Raleway', sans-serif;
	--font-lato: 'Lato', sans-serif;
	--secondary-blue: #211ef9;
}

.text-my-blue {
	color: var(--secondary-blue);
}

/* styling starts */

html {
	font-size: 16px;
}

body {
	background-color: #e9f7ff;
	font-family: var(--font-lato);
	line-height: 1.6;
	color: #333;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-raleway);
	line-height: 1.3;
	margin-bottom: 1rem;
	letter-spacing: -0.02em;
}

h1 {
	font-size: 2.5rem;
	font-weight: 300;
}

h2 {
	font-size: 2rem;
	font-weight: 400;
}

h3 {
	font-size: 1.75rem;
	font-weight: 400;
}

h4 {
	font-size: 1.5rem;
	font-weight: 500;
	margin-top: 2rem;
	margin-bottom: 1rem;
}

h5 {
	font-size: 1.25rem;
	font-weight: 500;
}

h6 {
	font-size: 1.1rem;
	font-weight: 600;
}

p {
	font-family: var(--font-lato);
	line-height: 1.7;
	margin-bottom: 1.2rem;
	font-size: 1rem;
	color: #555;
	max-width: 75ch;
	text-align: left;
}

/* Override max-width for about-me section to ensure full width */
.about-me p {
	max-width: none;
}

a {
	text-decoration: none;
	color: #0c56c3;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--secondary-blue);
	text-decoration: underline;
}

hr {
	margin: 0.5em 0;
	background-color: #c7c7c7;
}

/* main styling begins */

header.my-header .welcome>h2 {
	font-family: var(--font-lato);
	font-weight: 300;
	font-size: 2.4rem;
	margin: 0;
}

header.my-header .welcome>h1 {
	font-family: var(--font-raleway);
	font-weight: 100;
	font-size: 3rem;
	margin: 0;
}

header.my-header .links {
	font-size: 1.6rem;
	margin-top: 0.8rem;
}

header.my-header .links a {
	color: #636363;
	transition: color 0.2s linear;
	text-decoration: none;
}

header.my-header .links a:hover {
	color: var(--secondary-blue);
	text-decoration: none;
}

header.my-header .links a>* {
	display: inline-block;
	position: relative;
	top: 0px;
	transition: top 0.1s linear;
}

header.my-header .links a:hover>* {
	top: -3px;
}

.my-photo {
	width: 80%;
}

#awards .list-group-item {
	background-color: transparent;
	font-size: 1rem;
}

.my-projects {
	margin: 0px auto;

	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: auto;
	grid-gap: 0.6rem 0.6rem;
}

.my-projects p {
	/* resets Bootstrap margins */
	margin: 0;
}

.my-projects article.project {
	box-sizing: border-box;
	border: 0.5px solid #e2e2e2;
	padding: 0rem;
	padding-bottom: 0.5rem;
	box-shadow: none;
	transition: box-shadow 0.2s linear;
	border-radius: 5px;
	overflow: hidden;
}

article.project h2.thumbnail {
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	height: 125px;
	box-sizing: border-box;
}

article.project h2.name {
	font-family: var(--font-raleway);
	font-size: 1rem;
	font-weight: 400;
	color: var(--secondary-blue);
	padding: 0.5rem 0.5rem 0 0.5rem;
}

article.project p.description {
	font-size: 0.8rem;
	margin-top: 0.4rem;
	font-weight: 300;
	padding: 0 0.5rem;
	text-align: justify;
}

article.project p.description.get-ellipsis {
	max-height: 1.1em;
	line-height: 1.1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: all 0.2s linear;
}

article.project p.stack {
	font-size: 0.8rem;
	margin-top: 0.4rem;
	font-weight: 400;
	color: #525252;
	padding: 0 0.5rem;
}

article.project a.link {
	font-size: 0.8rem;
	padding: 0 0.5rem;
	color: var(--secondary-blue);
}

article.project button.expand {
	background: none;
	border: none;
	font-size: 1rem;
	color: green;
	outline: none;
}

article.project button.expand i {
	cursor: pointer;
}

article.project button.expand.red {
	color: red;
}

/* About me section specific styling */
.about-me {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 1rem;
}

.about-me p {
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.about-me h4 {
	color: var(--secondary-blue);
	border-bottom: 2px solid #e9f7ff;
	padding-bottom: 0.3rem;
	margin-top: 2.5rem;
	margin-left: 0;
	margin-right: 0;
}

.about-me h4:first-of-type {
	margin-top: 1.5rem;
}

.about-me h5 {
	margin-left: 0;
	margin-right: 0;
	color: #333;
	margin-top: 1.5rem;
	margin-bottom: 1rem;
}

/* Research highlights formatting */
.about-me p strong,
.about-me p b {
	font-weight: 600;
	color: #333;
}

/* Improve spacing for research project entries */
.about-me p {
	margin-bottom: 1.5rem;
}

/* Better formatting for dates and project titles */
.about-me p:contains("Present") {
	font-weight: 500;
}

/* Research Spotlights Interactive Cards */
.research-spotlights {
	margin: 1.5rem 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.research-card {
	background: #ffffff;
	border: 1px solid #e0e6ed;
	border-radius: 8px;
	padding: 1.2rem;
	transition: all 0.3s ease;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	position: relative;
	overflow: hidden;
}

.research-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(33, 30, 249, 0.15);
	border-color: var(--secondary-blue);
}

.research-header {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 0.8rem;
}

.research-header h6 {
	color: var(--secondary-blue);
	font-weight: 600;
	font-size: 1.1rem;
	margin: 0;
	line-height: 1.3;
}

.research-date {
	font-size: 0.9rem;
	color: #666;
	font-style: italic;
	font-family: var(--font-lato);
}

.research-content {
	max-height: 3em;
	overflow: hidden;
	transition: max-height 0.4s ease;
	position: relative;
}

.research-content::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1em;
	background: linear-gradient(transparent, #ffffff);
	transition: opacity 0.3s ease;
}

.research-card:hover .research-content {
	max-height: 200px;
}

.research-card:hover .research-content::after {
	opacity: 0;
}

.research-content p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #555;
	text-align: left;
}

/* Add a subtle indicator that cards are interactive */
.research-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: var(--secondary-blue);
	transform: scaleY(0);
	transition: transform 0.3s ease;
}

.research-card:hover::before {
	transform: scaleY(1);
}

/* Section-based layout styling */
.about-me section {
	margin-bottom: 3rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e9f7ff;
}

.about-me section:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.about-me section h3 {
	color: var(--secondary-blue);
	font-size: 1.8rem;
	font-weight: 500;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid var(--secondary-blue);
	display: inline-block;
}

/* Intro section styling */
.intro-section h4 {
	font-size: 1.2rem;
	color: #333;
	margin-top: 2rem;
	margin-bottom: 0.8rem;
	border-bottom: 1px solid #e0e6ed;
	padding-bottom: 0.2rem;
}

.intro-section h4:first-of-type {
	margin-top: 1rem;
}

/* Updates section styling */
.updates-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.update-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1rem;
	background: #f8fbff;
	border-left: 4px solid var(--secondary-blue);
	border-radius: 0 6px 6px 0;
	transition: all 0.2s ease;
}

.update-item:hover {
	background: #f0f7ff;
	transform: translateX(5px);
}

.update-date {
	font-weight: 600;
	color: var(--secondary-blue);
	font-size: 0.9rem;
	min-width: 80px;
	font-family: var(--font-raleway);
}

.update-content {
	font-size: 0.95rem;
	color: #555;
	line-height: 1.5;
}

/* Publications section styling */
.publications-list {
	margin-top: 1rem;
}

.publication-item {
	padding: 1.5rem;
	background: #ffffff;
	border: 1px solid #e0e6ed;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.publication-placeholder {
	color: #888;
	font-style: italic;
	text-align: center;
	margin: 0;
}

/* Responsive adjustments for sections */
@media screen and (max-width: 767px) {
	.about-me section {
		margin-bottom: 2rem;
		padding-bottom: 1.5rem;
	}
	
	.about-me section h3 {
		font-size: 1.5rem;
	}
	
	.update-item {
		flex-direction: column;
		gap: 0.5rem;
	}
	
	.update-date {
		min-width: auto;
		font-size: 0.85rem;
	}
}

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

	html {
		font-size: 15px;
	}

	h1 {
		font-size: 2.2rem;
	}

	h2 {
		font-size: 1.8rem;
	}

	h4 {
		font-size: 1.3rem;
		margin-top: 1.5rem;
	}

	p {
		font-size: 0.95rem;
		line-height: 1.65;
	}

	article.project h2.thumbnail {
		height: 100px;
	}
}