:root {
	--bg: #f3f0ea;
	--surface: #fffaf3;
	--text: #1f2833;
	--subtle: #5e6b78;
	--line: #d7d2c8;
	--accent: #c64d2f;
	--accent-2: #0f766e;
	--shadow: 0 12px 35px rgba(31, 40, 51, 0.12);
	--radius: 16px;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	font-family: "Space Grotesk", sans-serif;
	background: radial-gradient(circle at 15% 15%, #f7dcc8 0%, transparent 38%),
				radial-gradient(circle at 85% 80%, #cdebe7 0%, transparent 35%),
				var(--bg);
	color: var(--text);
	min-height: 100vh;
	line-height: 1.6;
	overflow-x: hidden;
	position: relative;
}

.background-glow {
	position: fixed;
	width: 300px;
	height: 300px;
	filter: blur(70px);
	opacity: 0.22;
	z-index: -1;
}

.glow-left {
	background: #ff8f66;
	left: -120px;
	top: 40px;
}

.glow-right {
	background: #4cc4b6;
	right: -100px;
	bottom: 60px;
}

.topbar {
	max-width: 1100px;
	margin: 0 auto;
	padding: 22px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	position: relative;
}

.brand {
	margin: 0;
	font-weight: 700;
	letter-spacing: 0.04em;
}

nav {
	display: flex;
	gap: 16px;
}

.menu-toggle {
	display: none;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--text);
	font: inherit;
	font-weight: 600;
	padding: 8px 12px;
	border-radius: 10px;
	cursor: pointer;
}

nav a {
	text-decoration: none;
	color: var(--text);
	font-weight: 500;
	transition: color 0.25s ease;
}

nav a:hover {
	color: var(--accent);
}

main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 10px 20px 40px;
	display: grid;
	gap: 24px;
}

section {
	background: color-mix(in srgb, var(--surface) 86%, white 14%);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
}

h1,
h2,
h3 {
	font-family: "Source Serif 4", serif;
	margin-top: 0;
}

h1 {
	font-size: clamp(2rem, 5vw, 3.3rem);
	line-height: 1.1;
	margin-bottom: 12px;
}

h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 10px;
}

.hero {
	text-align: left;
	padding: 36px 24px;
}

.hero-layout {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 20px;
}

.hero-content {
	min-width: 0;
}

.profile {
	width: clamp(88px, 18vw, 130px);
	height: clamp(88px, 18vw, 130px);
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid color-mix(in srgb, var(--accent) 28%, #fff 72%);
	box-shadow: 0 8px 20px rgba(31, 40, 51, 0.18);
	margin-bottom: 10px;
}

.hero-kicker {
	margin: 0 0 8px;
	color: var(--accent-2);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.84rem;
	font-weight: 700;
}

.cta {
	display: inline-block;
	margin-top: 14px;
	text-decoration: none;
	color: #fff;
	background: linear-gradient(120deg, var(--accent), #e07a5f);
	padding: 10px 16px;
	border-radius: 999px;
	font-weight: 700;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 18px rgba(198, 77, 47, 0.28);
}

.projects-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.project-grid {
	margin-top: 16px;
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px;
	background: #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(20, 30, 40, 0.1);
}

.project-card h3 {
	margin-bottom: 6px;
}

.project-card p {
	margin-top: 0;
	margin-bottom: 10px;
	color: var(--subtle);
}

.tag {
	display: inline-block;
	font-size: 0.8rem;
	padding: 3px 8px;
	border-radius: 999px;
	border: 1px solid var(--line);
	color: var(--accent-2);
	background: #e8f7f4;
}

.contact-links {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.contact-layout {
	display: grid;
	grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
	align-items: center;
	gap: 20px;
}

.contact-content h2 {
	margin-bottom: 12px;
}

.contact-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 8px 12px;
	color: var(--text);
	background: #fff;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-image {
	width: 100%;
	max-width: 260px;
	height: 170px;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid var(--line);
	display: block;
}

.contact-link-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex-shrink: 0;
}

.contact-links a:hover {
	border-color: var(--accent-2);
	color: var(--accent-2);
}

footer {
	max-width: 1100px;
	margin: 6px auto 24px;
	padding: 0 20px;
	color: var(--subtle);
	font-size: 0.95rem;
}

.reveal {
	opacity: 0;
	transform: translateY(14px);
	animation: riseIn 0.7s ease forwards;
}

.reveal:nth-of-type(2) {
	animation-delay: 0.1s;
}

.reveal:nth-of-type(3) {
	animation-delay: 0.2s;
}

.reveal:nth-of-type(4) {
	animation-delay: 0.3s;
}

@keyframes riseIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 760px) {
	body {
		line-height: 1.5;
	}

	.topbar {
		padding-top: 16px;
		padding-bottom: 12px;
	}

	.menu-toggle {
		display: inline-block;
	}

	nav {
		display: none;
		position: absolute;
		top: calc(100% + 8px);
		right: 20px;
		left: 20px;
		padding: 12px;
		border: 1px solid var(--line);
		border-radius: 12px;
		background: #fff;
		box-shadow: 0 8px 20px rgba(20, 30, 40, 0.12);
		flex-direction: column;
		gap: 10px;
	}

	nav.open {
		display: flex;
	}

	nav a {
		padding: 4px 0;
	}

	.project-grid {
		grid-template-columns: 1fr;
	}

	.projects-header {
		align-items: flex-start;
	}

	section {
		padding: 20px;
	}

	.hero {
		padding: 24px 20px;
	}

	.hero-layout,
	.contact-layout {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.contact-image {
		height: 150px;
	}

	.profile {
		width: 84px;
		height: 84px;
	}

	h1 {
		font-size: clamp(1.85rem, 9vw, 2.6rem);
	}

	.cta {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 500px) {
	main {
		padding-left: 14px;
		padding-right: 14px;
		gap: 16px;
	}

	section {
		padding: 16px;
		border-radius: 14px;
	}

	.contact-links a {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	footer {
		padding: 0 14px;
		font-size: 0.88rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}
