:root {
	--primary-color: #2563eb;
	--primary-dark: #1d4ed8;
	--secondary-color: #64748b;
	--text-color: #1e293b;
	--text-light: #64748b;
	--surface: rgba(255, 255, 255, 0.82);
	--surface-strong: rgba(255, 255, 255, 0.96);
	--background: #fff;
	--background-alt: #f8fafc;
	--border-color: #e2e8f0;
	--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--max-width: 1100px;
	--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	--radius: 8px;
	--transition: all 0.2s ease;
}

body.home-page {
	--max-width: 1300px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family);
	font-size: 16px;
	line-height: 1.7;
	color: var(--text-color);
	background:
		radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
		radial-gradient(circle at right 15%, rgba(14, 165, 233, 0.08), transparent 24%),
		linear-gradient(180deg, #f8fbff 0%, #ffffff 40%, #f8fafc 100%);
	position: relative;
	overflow-x: hidden;
}

body::before,
body::after {
	content: '';
	position: fixed;
	width: 28rem;
	height: 28rem;
	border-radius: 50%;
	pointer-events: none;
	opacity: 0.55;
	filter: blur(36px);
	z-index: -1;
}

body::before {
	top: -8rem;
	right: -10rem;
	background: rgba(37, 99, 235, 0.10);
}

body::after {
	bottom: -10rem;
	left: -12rem;
	background: rgba(14, 165, 233, 0.10);
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--primary-dark);
}

img {
	max-width: 100%;
	height: auto;
}

.navbar {
	position: sticky;
	top: 0;
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-bottom: 1px solid rgba(226, 232, 240, 0.8);
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
	z-index: 1000;
}

.nav-container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-color);
}

.nav-logo:hover {
	color: var(--primary-color);
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--border-color);
	border-radius: 10px;
	background: #fff;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 0.28rem;
	cursor: pointer;
	padding: 0;
	transition: var(--transition);
	z-index: 1200;
}

.nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--text-color);
	border-radius: 2px;
	transition: var(--transition);
}

.nav-overlay {
	display: none;
}

.nav-link {
	color: var(--text-light);
	font-weight: 500;
	padding: 0.5rem 0;
	position: relative;
}

.nav-link:hover,
.nav-link.active {
	color: var(--primary-color);
}

.main-content {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 3rem 2rem;
	min-height: calc(100vh - 160px);
	position: relative;
}

.hero {
	padding: 2rem 0 2rem;
}

.hero-content {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 4rem;
	align-items: center;
}

.hero-text h1 {
	font-size: 3rem;
	line-height: 1.2;
	margin-bottom: 0.5rem;
}

.type-cursor {
	display: inline-block;
	margin-left: 0.08em;
	animation: cursor-blink 0.85s step-end infinite;
}

@keyframes cursor-blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.hero-text h2 {
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--text-light);
	margin-bottom: 1rem;
}

.hero-text h3 {
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--text-light);
	margin-bottom: 1rem;
}

.fellowship-title {
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--primary-dark);
	margin-bottom: 0.75rem;
}

.highlight {
	color: var(--primary-color);
}

.tagline {
	font-size: 1rem;
	color: var(--secondary-color);
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-wrap: wrap;
}

.tagline .divider {
	color: #94a3b8;
	font-weight: 600;
}

.profile-photo {
	border-radius: 50%;
	border: 4px solid var(--border-color);
	box-shadow: var(--shadow-lg);
}

.highlights {
	padding: 2rem 0;
	border-top: 1px solid var(--border-color);
	margin-top: 2rem;
}

.highlights h1 {
    display: inline-block;
	font-size: 2rem;
    margin-bottom: 1rem;
	border-bottom: 3px solid var(--primary-color);
}

.interest-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.tag {
	background: var(--background-alt);
	color: var(--text-color);
	padding: 0.5rem 1rem;
	border-radius: 50px;
	font-size: 0.9rem;
	font-weight: 500;
	border: 1px solid var(--border-color);
	transition: var(--transition);
}

.tag:hover {
	background: var(--primary-color);
	color: #fff;
	border-color: var(--primary-color);
}

.footer {
	text-align: center;
	padding: 2rem;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	border-top: 1px solid #334155;
	color: #cbd5e1;
	font-size: 0.9rem;
}

.social-block {
	display: flex;
	gap: 1.25rem;
}

.social-block a {
	color: var(--primary-color);
	font-size: 1.5rem;
	transition: var(--transition);
}

.social-block a:hover {
	color: var(--primary-dark);
	transform: scale(1.15);
}

.bio {
	padding: 2.5rem 0 3rem;
	border-top: 1px solid var(--border-color);
	margin-top: 1rem;
	text-align: center;
}

.bio h1 {
	display: inline-block;
	font-size: 2rem;
	padding-bottom: 0.4rem;
	border-bottom: 3px solid var(--primary-color);
}

.bio-content {
	max-width: 1300px;
	margin: 1.75rem auto 0;
	text-align: center;
	font-size: 1.05rem;
	color: var(--text-color);
	line-height: 1.85;
	background: var(--background-alt);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 1.75rem 2rem;
	box-shadow: var(--shadow);
}

.bio-content p + p {
	margin-top: 1.1rem;
}

.research-interests-box {
	margin-top: 1.5rem;
	padding: 1.15rem 1.2rem 1.25rem;
	border: 1px solid #bfdbfe;
	border-radius: 12px;
	background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.research-interests-intro {
	margin-top: 0;
	font-weight: 600;
    font-size: 1.3rem;
	color: var(--primary-dark);
}

.bio-interest-tags {
	margin-top: 0.9rem;
	justify-content: center;
}

.bio-content strong {
	color: var(--primary-color);
	font-weight: 700;
}

.hero-block {
	background: linear-gradient(130deg, #020617 0%, #0f172a 45%, #334155 100%);
	border: 1px solid #334155;
	border-radius: 16px;
	padding: 2.5rem;
	box-shadow: var(--shadow-lg);
}

.hero-block .hero-text h1,
.hero-block .hero-text h2,
.hero-block .hero-text h3,
.hero-block .tagline {
	color: #e2e8f0;
}

.hero-block .highlight {
	color: #60a5fa;
}

.hero-block .tagline .divider {
	color: #94a3b8;
}

.hero-block .social-block a {
	color: #93c5fd;
}

.hero-block .social-block a:hover {
	color: #dbeafe;
}

.hero-block .profile-photo {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid #fff;
	box-shadow: var(--shadow-lg);
	background: #e2e8f0;
}

.hero-block .profile-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.page-header {
	text-align: center;
	margin-bottom: 2.25rem;
	padding: 2.2rem 2rem 2.45rem;
	border: 1px solid rgba(148, 163, 184, 0.28);
	border-radius: 24px;
	background:
		radial-gradient(circle at 8% 12%, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0) 28%),
		radial-gradient(circle at 88% 20%, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0) 32%),
		linear-gradient(140deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.96) 100%);
	box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.about-header {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
	gap: 1.5rem;
	text-align: left;
	align-items: center;
}

.about-header .page-subtitle {
	max-width: 38rem;
	margin-top: 0.9rem;
}

.section-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.08);
	border: 1px solid rgba(37, 99, 235, 0.14);
	color: var(--primary-dark);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 0.85rem;
}

.about-quick-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.about-profile-card {
	display: grid;
	justify-items: center;
	gap: 1rem;
	padding: 1.25rem;
	border-radius: 22px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.about-profile-image {
	width: min(100%, 220px);
	aspect-ratio: 1;
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid rgba(226, 232, 240, 0.9);
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.about-profile-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.about-profile-meta {
	text-align: center;
}

.about-profile-meta h2 {
	font-size: 1.15rem;
	margin-bottom: 0.25rem;
}

.about-profile-meta p {
	color: var(--text-light);
	font-size: 0.95rem;
}

.page-header h1 {
	font-size: clamp(2.3rem, 4vw, 3.2rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin-bottom: 0;
	color: var(--text-color);
}

.page-subtitle {
	color: var(--text-light);
	font-size: 1.1rem;
}

.about-section {
	margin-bottom: 3rem;
}

.about-content {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 3rem;
	align-items: start;
}

.profile-photo-large,
.photo-placeholder {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.photo-placeholder {
	height: 300px;
	background: #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
}

.about-text h2 {
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.about-text p {
	margin-bottom: 1rem;
}

.education-section,
.experience-section,
.skills-section {
	margin-bottom: 2rem;
	padding: 1.85rem 1.75rem 2rem;
	background: var(--surface);
	border: 1px solid rgba(148, 163, 184, 0.26);
	border-radius: 24px;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.education-section h2,
.experience-section h2,
.skills-section h2 {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 1.15rem;
	margin-bottom: 1.35rem;
	padding: 0.55rem 0.9rem;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08));
	border: 1px solid rgba(37, 99, 235, 0.14);
	color: var(--primary-dark);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.timeline {
	position: relative;
	padding-left: 2.25rem;
	display: grid;
	gap: 1rem;
}

.timeline-tiles {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	padding-left: 0;
	margin-top: 0.25rem;
	align-items: start;
}

.timeline-tiles::before {
	display: none;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.35rem;
	bottom: 0.35rem;
	width: 2px;
	background: linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.6), rgba(14, 165, 233, 0.18));
}

.timeline-item {
	position: relative;
	padding: 1.25rem 1.35rem 1.25rem 1.5rem;
	display: grid;
	grid-template-columns: minmax(175px, max-content) 1fr;
	align-items: start;
	gap: 1.35rem;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.92) 100%);
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 18px;
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.timeline-tiles .timeline-item {
	grid-template-columns: 1fr;
	height: 100%;
	padding: 1.35rem;
	gap: 1rem;
	align-content: start;
}

.timeline-item::before {
	content: '';
	position: absolute;
	left: -2.45rem;
	top: 1.5rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #93c5fd 0%, var(--primary-color) 55%, var(--primary-dark) 100%);
	box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
	z-index: 1;
}

.timeline-tiles .timeline-item::before {
	display: none;
}

.timeline-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
	border-color: rgba(37, 99, 235, 0.18);
}

.timeline-date {
	align-self: start;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	width: fit-content;
	white-space: nowrap;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.14));
	border: 1px solid rgba(37, 99, 235, 0.2);
	font-weight: 600;
	color: var(--primary-color);
	font-size: 0.88rem;
	letter-spacing: 0.01em;
}

.timeline-date::before {
	content: '📅';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
	font-size: 0.78rem;
	line-height: 1;
	margin-right: 0.45rem;
	flex: 0 0 auto;
}

.timeline-tiles .timeline-date {
	width: fit-content;
	margin-bottom: 0.2rem;
}

.timeline-content h3 {
	font-size: 1.08rem;
	line-height: 1.35;
	margin-bottom: 0.35rem;
	color: var(--text-color);
}

.timeline-content .institution {
	color: var(--text-light);
	font-weight: 500;
	margin-bottom: 0.55rem;
}

.timeline-content .institution-divider {
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(148, 163, 184, 0.48), rgba(148, 163, 184, 0.14));
	margin: 0.25rem 0 0.75rem;
}

.timeline-content p {
	font-size: 0.95rem;
	color: var(--text-color);
	margin-bottom: 0.35rem;
}

.experience-section .timeline-content p {
	font-size: 0.96rem;
	line-height: 1.7;
}


.experience-section .timeline-content .experience-points {
	margin-top: 0.75rem;
	margin-bottom: 0;
	padding: 0.8rem 1rem 0.8rem 1.6rem;
	border-left: 3px solid rgba(37, 99, 235, 0.45);
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(247, 250, 252, 0.92));
	list-style: disc;
}

.experience-section .timeline-content .experience-points li {
	font-size: 0.96rem;
	line-height: 1.65;
	color: var(--text-color);
	padding-left: 0.15rem;
	margin-bottom: 0.45rem;
}

.experience-section .timeline-content .experience-points li:last-child {
	margin-bottom: 0;
}

.experience-section .timeline-content p:last-of-type {
	margin-top: 0.75rem;
	display: inline-flex;
	align-items: center;
	margin-bottom: 0;
	padding: 0.18rem 0.6rem;
	border-radius: 999px;
	font-size: 0.84rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #0f4ea8;
	background: rgba(37, 99, 235, 0.1);
	border: 1px solid rgba(37, 99, 235, 0.18);
}

.skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.25rem;
}

.skill-category h3 {
	font-size: 0.95rem;
	margin-bottom: 0.9rem;
	color: var(--primary-dark);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.skill-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.skill-category {
	padding: 1.25rem 1.15rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96));
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 18px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.skill-category:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 30px rgba(15, 23, 42, 0.07);
	border-color: rgba(37, 99, 235, 0.16);
}

.skill-category .tag {
	background: rgba(37, 99, 235, 0.06);
	border-color: rgba(37, 99, 235, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.pub-category {
	margin-bottom: 3rem;
}

.pub-category h2 {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--primary-color);
	display: inline-block;
}

.publication-item {
	display: grid;
	grid-template-columns: 60px 1fr;
	gap: 1.5rem;
	padding: 1.5rem;
	margin-bottom: 1rem;
	background: var(--background-alt);
	border-radius: var(--radius);
	border: 1px solid var(--border-color);
	transition: var(--transition);
}

.publication-item:hover {
	box-shadow: var(--shadow);
	border-color: var(--primary-color);
}

.pub-year {
	font-weight: 700;
	color: var(--primary-color);
	font-size: 0.9rem;
}

.pub-title {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

.pub-authors {
	font-size: 0.95rem;
	margin-bottom: 0.25rem;
}

.pub-venue {
	font-size: 0.9rem;
	color: var(--text-light);
	margin-bottom: 0.75rem;
}

.pub-links {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.pub-link {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	font-size: 0.85rem;
	font-weight: 500;
	background: #fff;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-color);
}

.pub-link:hover {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: #fff;
}

@media (max-width: 768px) {
	.nav-container {
		padding: 1rem;
		position: relative;
	}

	body.menu-open {
		overflow: hidden;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.nav-toggle.open span:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}

	.nav-toggle.open span:nth-child(2) {
		opacity: 0;
	}

	.nav-toggle.open span:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}

	.nav-menu {
		position: fixed;
		top: 0;
		right: 0;
		height: 100vh;
		width: min(280px, 80vw);
		padding: 6rem 1.4rem 1.6rem;
		background: #ffffff;
		border-left: 1px solid var(--border-color);
		box-shadow: -8px 0 24px rgba(15, 23, 42, 0.16);
		display: flex;
		flex-direction: column;
		gap: 0.25rem;
		z-index: 1150;
		transform: translateX(100%);
		transition: transform 0.28s ease;
	}

	.nav-menu.open {
		transform: translateX(0);
	}

	.nav-menu li {
		width: 100%;
	}

	.nav-link {
		display: block;
		padding: 0.75rem 0.25rem;
	}

	.nav-link::after {
		bottom: 0.35rem;
	}

	.nav-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(15, 23, 42, 0.35);
		opacity: 0;
		pointer-events: none;
		border: 0;
		padding: 0;
		z-index: 1100;
		transition: opacity 0.25s ease;
	}

	.nav-overlay.open {
		opacity: 1;
		pointer-events: auto;
	}

	.main-content {
		padding: 2rem 1rem;
	}

	.page-header,
	.education-section,
	.experience-section,
	.skills-section {
		padding: 1.25rem;
		border-radius: 20px;
	}

	.about-header {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.about-header .page-subtitle {
		margin-left: auto;
		margin-right: auto;
	}

	.about-quick-tags {
		justify-content: center;
	}

	.about-profile-card {
		max-width: 320px;
		margin: 0 auto;
	}

	.hero-content {
		grid-template-columns: 1fr;
		gap: 2rem;
		text-align: center;
		justify-items: center;
	}

	.hero-image {
		order: -1;
		display: flex;
		justify-content: center;
	}

	.tagline {
		justify-content: center;
	}

	.tagline .divider {
		display: none;
	}

	.social-block {
		justify-content: center;
	}

	.about-content {
		grid-template-columns: 1fr;
	}

	.about-image {
		text-align: center;
	}

	.profile-photo-large,
	.photo-placeholder {
		width: 200px;
	}

	.timeline-item {
		grid-template-columns: 1fr;
		gap: 0.7rem;
		padding: 1.1rem 1rem 1.15rem 1.1rem;
	}

	.timeline-tiles {
		padding-left: 0;
	}

	.timeline-date {
		white-space: nowrap;
	}

	.timeline::before,
	.timeline-item::before {
		display: none;
	}

	.publication-item {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.pub-year {
		font-size: 0.85rem;
	}
}