*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--cream: #f7f5f0;
	--sand: #ede9e0;
	--border: #d9d4c9;
	--ink: #1a1916;
	--ink-mid: #4a4740;
	--ink-light: #8a877f;
	--accent: #2c5f4a;
	--accent-lt: #eaf0ec;
	--white: #ffffff;
	--radius: 4px;
	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "DM Sans", system-ui, sans-serif;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--sans);
	background: var(--cream);
	color: var(--ink);
	font-size: 15px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
header {
	position: relative;
	background: var(--ink);
	color: var(--cream);
	overflow: hidden;
	min-height: 420px;
	display: flex;
	align-items: flex-end;
	min-height: 420px;
}

.header-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 90%;
	opacity: 0.28;
}

.header-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	padding: 3.5rem 2rem 3rem;
	display: flex;
	align-items: flex-end;
	gap: 2rem;
}

.profile-photo {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.25);
	object-fit: cover;
	flex-shrink: 0;
}

.header-text h1 {
	font-family: var(--serif);
	font-size: clamp(2.2rem, 5vw, 3.2rem);
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.1;
	color: #fff;
}

.header-text .tagline {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	font-weight: 300;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.header-text .badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.badge {
	display: inline-block;
	padding: 0.22rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 2rem;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.7);
}

/* ── NAV ── */
nav {
	background: var(--white);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 100;
}

nav ul {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	list-style: none;
	gap: 0;
}

nav ul li a {
	display: block;
	padding: 1rem 1.1rem;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink-mid);
	border-bottom: 2px solid transparent;
	transition:
		color 0.2s,
		border-color 0.2s;
}

nav ul li a:hover {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

/* ── MAIN LAYOUT ── */
main {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 2rem 5rem;
}

/* ── SECTION ── */
section {
	padding-top: 4rem;
}

.section-label {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 0.6rem;
}

.section-title {
	font-family: var(--serif);
	font-size: 2rem;
	font-weight: 500;
	color: var(--ink);
	line-height: 1.2;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border);
}

/* ── ABOUT ── */
#about .body-text {
	color: var(--ink-mid);
	font-size: 1rem;
	line-height: 1.8;
	text-align: justify;
}

#about .body-text p + p {
	margin-top: 1.1rem;
}

/* ── SKILLS ── */
.skills-domains {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.25rem;
}

.skill-domain {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem;
}

.skill-domain-label {
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 0.9rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--border);
}

.skill-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.skill-tag {
	padding: 0.3rem 0.8rem;
	background: var(--cream);
	border: 1px solid var(--border);
	border-radius: 2rem;
	font-size: 0.78rem;
	color: var(--ink-mid);
	font-weight: 400;
	transition:
		background 0.2s,
		color 0.2s,
		border-color 0.2s;
}

.skill-tag:hover {
	background: var(--accent-lt);
	border-color: var(--accent);
	color: var(--accent);
}

/* ── EXPERIENCE ── */
.experience-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.exp-item {
	display: grid;
	grid-template-columns: 1fr 2.2fr;
	gap: 2rem;
	padding: 2rem 0;
	border-bottom: 1px solid var(--border);
}

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

.exp-meta {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.exp-period {
	font-size: 0.78rem;
	color: var(--ink-light);
	letter-spacing: 0.04em;
}

.exp-company {
	font-weight: 500;
	font-size: 0.9rem;
	color: var(--ink);
}

.exp-location {
	font-size: 0.78rem;
	color: var(--ink-light);
}

.exp-role {
	font-family: var(--serif);
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--ink);
	margin-bottom: 0.6rem;
}

.exp-desc {
	color: var(--ink-mid);
	font-size: 0.9rem;
	line-height: 1.75;
	text-align: justify;
}

.exp-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.9rem;
}

.exp-tag {
	padding: 0.2rem 0.65rem;
	background: var(--accent-lt);
	color: var(--accent);
	border-radius: 2rem;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.04em;
}

/* ── PROJECTS ── */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.25rem;
}

.project-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
	transition:
		border-color 0.2s,
		box-shadow 0.2s;
}

.project-card:hover {
	border-color: var(--accent);
	box-shadow: 0 4px 20px rgba(44, 95, 74, 0.08);
}

.project-icon {
	width: 36px;
	height: 36px;
	background: var(--accent-lt);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

.project-icon svg {
	width: 18px;
	height: 18px;
	stroke: var(--accent);
}

.project-card h3 {
	font-family: var(--serif);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 0.4rem;
}

.project-card p {
	font-size: 0.85rem;
	color: var(--ink-mid);
	line-height: 1.7;
	text-align: justify;
}

/* ── CONTACT ── */
#contact .contact-wrapper {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.contact-card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--ink);
	font-size: 0.88rem;
	font-weight: 500;
	transition:
		border-color 0.2s,
		background 0.2s;
}

.contact-card:hover {
	border-color: var(--accent);
	background: var(--accent-lt);
	color: var(--accent);
}

.contact-card svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	flex-shrink: 0;
}

/* ── FOOTER ── */
footer {
	border-top: 1px solid var(--border);
	text-align: center;
	padding: 2rem;
	font-size: 0.78rem;
	color: var(--ink-light);
	letter-spacing: 0.04em;
}

/* ── ANIMATIONS ── */
.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition:
		opacity 0.65s ease,
		transform 0.65s ease;
}

.reveal.visible {
	opacity: 1;
	transform: none;
}

.reveal-delay-1 {
	transition-delay: 0.1s;
}
.reveal-delay-2 {
	transition-delay: 0.2s;
}
.reveal-delay-3 {
	transition-delay: 0.3s;
}
.reveal-delay-4 {
	transition-delay: 0.4s;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
	.header-content {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
		padding: 2.5rem 1.25rem 2rem;
	}

	nav ul {
		padding: 0 0.5rem;
		overflow-x: auto;
		scrollbar-width: none;
	}
	nav ul::-webkit-scrollbar {
		display: none;
	}

	nav ul li a {
		padding: 0.9rem 0.75rem;
		font-size: 0.72rem;
		white-space: nowrap;
	}

	main {
		padding: 0 1.25rem 4rem;
	}

	.exp-item {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.exp-meta {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.25rem 1rem;
	}

	.section-title {
		font-size: 1.6rem;
	}

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