:root {
	--dark: #0f172a;
	--accent: #3b82f6;
	--surface: #ffffff;
	--surface-dim: #f8fafc;
	--text: #0f172a;
	--text-secondary: #64748b;
	--border: #e2e8f0;
	--sans: "Segoe UI", system-ui, -apple-system, sans-serif;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
	scroll-padding-top: 80px;
	scroll-behavior: smooth;
}

body {
	font-family: var(--sans);
	color: var(--text);
	background: var(--surface-dim);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ─────────────────────────────── */
.site-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(15, 23, 42, 0.92);
	backdrop-filter: blur(16px) saturate(1.8);
	-webkit-backdrop-filter: blur(16px) saturate(1.8);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
}

.nav-brand {
	font-weight: 700;
	font-size: 0.95rem;
	color: #fff;
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
}

.nav-links {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	display: block;
	padding: 6px 14px;
	font-size: 0.82rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	border-radius: 6px;
	transition: color 0.2s, background 0.2s;
	letter-spacing: 0.01em;
}

.nav-links a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	color: #fff;
	padding: 6px 10px;
	font-size: 1.1rem;
	cursor: pointer;
}

/* ── SCROLL PROGRESS ───────────────────── */
.scroll-bar {
	position: fixed;
	top: 0;
	left: 0;
	height: 2px;
	width: 0%;
	background: linear-gradient(90deg, var(--accent), #8b5cf6);
	z-index: 200;
}

/* ── HERO ──────────────────────────────── */
.hero {
	position: relative;
	overflow: hidden;
	padding: 5rem 0 4rem;
	background: var(--dark);
	color: #fff;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 600px 400px at 15% 50%, rgba(59, 130, 246, 0.15), transparent),
		radial-gradient(ellipse 500px 350px at 85% 30%, rgba(139, 92, 246, 0.1), transparent);
	pointer-events: none;
}

.hero-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3rem;
}

.hero-photo {
	flex-shrink: 0;
	width: 200px;
	height: 200px;
	border-radius: 20px;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.1);
	box-shadow:
		0 0 0 1px rgba(59, 130, 246, 0.2),
		0 20px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-text h1 {
	font-size: 2.4rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin-bottom: 0.4rem;
}

.hero-text h1 span {
	background: #fff;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-degrees {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.5);
	font-style: italic;
	margin-bottom: 1rem;
}

.hero-role {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.65;
}

.hero-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
	margin-top: 1.2rem;
	padding-top: 1.2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
}

.hero-contact a {
	color: var(--accent);
	text-decoration: none;
}

.hero-contact a:hover {
	text-decoration: underline;
}

.hero-contact-label {
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	margin-right: 4px;
}

/* ── SECTION LAYOUT ────────────────────── */
.main-content {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.section {
	padding: 1.5rem 0 1.5rem;
}

body.js .section {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

body.js .section.visible {
	opacity: 1;
	transform: none;
}

.section-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 1.5rem;
}

.section-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--accent), #6366f1);
	color: #fff;
	font-size: 0.9rem;
	flex-shrink: 0;
}

.section-header h2 {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text);
	margin: 0;
}

/* ── CARD ──────────────────────────────── */
.card-panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 2rem;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.04),
		0 4px 12px rgba(0, 0, 0, 0.03);
	transition: box-shadow 0.3s, transform 0.3s;
}

.card-panel:hover {
	box-shadow:
		0 2px 4px rgba(0, 0, 0, 0.04),
		0 8px 24px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

/* ── BIO TEXT ──────────────────────────── */
.bio-text {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--text);
}

.bio-text p {
	margin-bottom: 1rem;
}

.bio-text p:last-child {
	margin-bottom: 0;
}

/* When a card only contains a list, reduce top/bottom padding */
.card-panel:has(.item-list) {
	padding-top: 1rem;
	padding-bottom: 1rem;
}

/* ── ITEM LIST ─────────────────────────── */
.item-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.item-list li {
	position: relative;
	padding: 0.8rem 0 0.8rem 1.4rem;
	font-size: 0.93rem;
	line-height: 1.55;
	border-bottom: 1px solid var(--border);
	color: #334155;
}

.item-list li:last-child {
	border-bottom: none;
}

.item-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.1rem;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

/* ── AWARD PHOTOS ─────────────────────── */
.award-photos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}

.award-photo {
	margin: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.04),
		0 4px 12px rgba(0, 0, 0, 0.03);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.award-photo:hover {
	transform: translateY(-4px);
	box-shadow:
		0 2px 4px rgba(0, 0, 0, 0.04),
		0 14px 32px -8px rgba(0, 0, 0, 0.12);
}

.award-photo img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	object-position: center 15%;
	background: var(--surface-dim);
	display: block;
}

.award-photo img[src*="president_awards_2015"] {
	object-position: 80% 15%;
}

.award-photo figcaption {
	padding: 0.85rem 1rem 1rem;
	border-top: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.award-photo-title {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text);
	line-height: 1.4;
	letter-spacing: -0.005em;
}

.award-photo-wide {
	grid-column: 1 / -1;
}

.award-photo-wide img {
	height: auto;
	max-height: 220px;
	object-fit: cover;
}

@media (max-width: 900px) {
	.award-photos {
		grid-template-columns: repeat(2, 1fr);
	}

	.award-photo img {
		height: 260px;
	}
}

/* ── LIGHTBOX ──────────────────────────── */
.lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 500;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(8px);
	justify-content: center;
	align-items: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.3s;
}

.lightbox.active {
	display: flex;
	opacity: 1;
}

.lightbox img {
	max-width: 90vw;
	max-height: 90vh;
	border-radius: 8px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* ── BACK TO TOP ───────────────────────── */
#btn-top {
	position: fixed;
	bottom: 28px;
	right: 28px;
	display: none;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font-size: 1rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	z-index: 80;
}

#btn-top:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* ── FOOTER ────────────────────────────── */
.site-footer {
	margin-top: 3rem;
	padding: 2rem 0;
	text-align: center;
	border-top: 1px solid var(--border);
}

.site-footer a {
	font-size: 0.8rem;
	color: var(--text-secondary);
	text-decoration: none;
	transition: color 0.2s;
}

.site-footer a:hover {
	color: var(--accent);
}

/* ── RESPONSIVE ────────────────────────── */
@media (max-width: 767.98px) {
	.nav-links {
		display: none;
		position: absolute;
		top: 56px;
		left: 0;
		right: 0;
		flex-direction: column;
		background: rgba(15, 23, 42, 0.97);
		padding: 12px 16px;
		gap: 2px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.nav-links.open {
		display: flex;
	}

	.nav-toggle {
		display: block;
	}

	.hero {
		padding: 3rem 0 2.5rem;
	}

	.hero-inner {
		flex-direction: column;
		text-align: center;
		gap: 1.5rem;
	}

	.hero-photo {
		width: 140px;
		height: 140px;
		border-radius: 16px;
	}

	.hero-text h1 {
		font-size: 1.7rem;
	}

	.hero-contact {
		justify-content: center;
	}

	.award-photos {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.award-photo img {
		height: 280px;
	}

	.card-panel {
		padding: 1.2rem;
		border-radius: 10px;
	}

	.section-header h2 {
		font-size: 1.15rem;
	}

	.item-list li {
		font-size: 0.88rem;
	}
}
