@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Syne:wght@600;700;800&display=swap');

:root {
	--bg: #0f1115;
	--card: #171a21;
	--text: #e6e6e6;
	--muted: #9aa0a6;
	--accent: #4da3ff;
	--border: #262a33;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
		font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
}

.container {
	max-width: 900px;
	margin: 60px auto;
	padding: 20px;
}

.card {
	background: var(--card);
	border-radius: 16px;
	padding: 40px;
	border: 1px solid var(--border);
}

/* Header */
.header {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.avatar {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: #2a2f3a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: #777;
	overflow: hidden;
	flex-shrink: 0;
}

.avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.title-block {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

h1, h2 {
	font-family: 'Syne', sans-serif;
}

h1 {
	margin: 0;
	font-size: 28px;
}

.subtitle {
	color: var(--muted);
	margin-top: 6px;
	max-width: 500px;
}

h2 {
	margin-top: 30px;
	margin-bottom: 10px;
	font-size: 18px;
	color: #ffffff;
}

p {
	margin: 10px 0;
	color: #d0d0d0;
}

ul {
	padding-left: 18px;
	margin: 10px 0;
}

li {
	margin-bottom: 6px;
	color: #d0d0d0;
}

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

a:hover {
	text-decoration: underline;
}

.links a {
	display: block;
	margin-bottom: 6px;
}

.contact {
	margin-top: 20px;
	font-size: 14px;
	color: var(--muted);
}

.contact strong {
	color: var(--text);
}

/* Expertise + image row */
.expertise-row {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	margin-top: 30px;
}

.expertise-content {
	flex: 1;
}

.expertise-content h2 {
	margin-top: 0;
}

.large-image {
	width: 100%;
	max-width: 320px;
	border-radius: 12px;
	background: #2a2f3a;
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #777;
	font-size: 12px;
	overflow: hidden;
}

.large-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Contribution cards */
.contribution-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 14px;
}

.contrib-card {
	background: #1e2230;
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: border-color 0.2s, transform 0.2s;
	position: relative;
	cursor: pointer;
}

.contrib-card .card-link::after {
	content: '';
	position: absolute;
	inset: 0;
}

.contrib-card:hover {
	border-color: var(--accent);
	transform: translateY(-2px);
}

.contrib-card .card-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #252b3b;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.contrib-card .card-icon svg {
	width: 20px;
	height: 20px;
}

.contrib-card .card-title {
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	margin: 0;
}

.contrib-card .card-desc {
	font-size: 13px;
	color: var(--muted);
	margin: 0;
	line-height: 1.5;
}

.contrib-card .card-link {
	font-size: 13px;
	color: var(--accent);
	margin-top: auto;
}

@media (max-width: 600px) {
	.card {
		padding: 25px;
	}

	.header {
		flex-direction: column;
		align-items: flex-start;
	}

	.avatar {
		width: 90px;
		height: 90px;
	}

	.image-section {
		justify-content: center;
	}

	.expertise-row {
		flex-direction: column;
	}

	.large-image {
		max-width: 100%;
	}
}

