/* Classic CV — an elegant, print-minded résumé theme: a white ground, a navy
   accent, Playfair Display for headings over Inter for text. Components echo
   a formal curriculum vitae — a centered header with a contact bar, section
   titles in letter-spaced caps with a rule, and content cards marked by a
   navy left border. Retune the tokens at the top; every component below
   reads from them. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
	/* Roles */
	--bg: #ffffff;
	--ink: #1a1a1a; /* primary text */
	--ink-2: #4a4a4a; /* secondary text */
	--muted: #8a8a8a; /* muted text */
	--accent: #1a3a5c; /* navy */
	--accent-light: #2c5f8a;
	--border: #e5e5e5;
	--light-bg: #f8f9fa;
	--shadow: rgba(0, 0, 0, 0.08);

	/* Compatibility aliases (pages binding the previous dark system's vars) */
	--color-bg: var(--bg);
	--color-surface: var(--light-bg);
	--color-text: var(--ink);
	--color-accent: var(--accent);
	--color-accent-300: var(--accent-light);
	--color-divider: var(--border);
	--font-heading: "Playfair Display", Georgia, serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	--space-2: 6px;
	--space-3: 10px;
	--space-4: 14px;
	--radius-md: 4px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* A whisper of a grid behind the page — paper, not pixels. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background-image:
		linear-gradient(rgba(0, 0, 0, 0.022) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 0, 0, 0.022) 1px, transparent 1px);
	background-size: 40px 40px;
	pointer-events: none;
	z-index: 0;
}

::selection {
	background: color-mix(in srgb, var(--accent) 16%, transparent);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

h1,
h2,
h3 {
	font-family: var(--font-heading);
	margin: 0;
}

p {
	margin: 0 0 0.75rem;
}

a {
	color: var(--accent);
	text-decoration: none;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--accent-light);
	text-decoration: underline;
}

/* — Top bar — */
.topbar {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 14px clamp(20px, 5vw, 48px);
	background: var(--bg);
	border-bottom: 1px solid var(--border);
}

.topbar-brand {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 18px;
	color: var(--ink);
	margin-right: auto;
	white-space: nowrap;
}

.topbar-links {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 13px;
}

.topbar-links a {
	color: var(--ink-2);
}

.topbar-links a:hover {
	color: var(--accent);
	text-decoration: none;
}

.topbar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: 18px;
}

.lang-btn {
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--muted);
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	padding: 4px 8px;
	cursor: pointer;
	transition:
		color 0.15s ease,
		border-color 0.15s ease;
}

.lang-btn:hover {
	color: var(--accent);
}

.lang-btn--active {
	color: var(--accent);
	border-color: var(--accent);
}

/* — Buttons — */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.2;
	padding: 9px 18px;
	border-radius: var(--radius-md);
	cursor: pointer;
	text-decoration: none;
	border: 1px solid transparent;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease;
}

.btn-primary {
	background: var(--accent);
	border-color: var(--accent);
	color: #ffffff;
}

.btn-primary:hover {
	background: var(--accent-light);
	border-color: var(--accent-light);
	color: #ffffff;
	text-decoration: none;
}

.btn-outline {
	background: transparent;
	border-color: var(--accent);
	color: var(--accent);
}

.btn-outline:hover {
	background: color-mix(in srgb, var(--accent) 8%, transparent);
	color: var(--accent);
	text-decoration: none;
}

.btn-ghost {
	background: transparent;
	color: var(--accent);
	padding: 6px 8px;
}

.btn-ghost:hover {
	background: color-mix(in srgb, var(--accent) 8%, transparent);
	text-decoration: none;
}

.btn svg {
	display: block;
}

/* — Page container — */
.cv-page {
	position: relative;
	z-index: 1;
	max-width: 860px;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 40px) 40px;
}

/* — Header — */
.cv-header {
	text-align: center;
	margin-bottom: 1.75rem;
}

.cv-header h1 {
	font-size: clamp(30px, 5vw, 40px);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.15;
	color: var(--ink);
	margin-bottom: 0.5rem;
}

.cv-header .subtitle {
	font-size: 0.9375rem;
	color: var(--muted);
	letter-spacing: 0.03em;
	margin-bottom: 1.25rem;
}

.cv-header .subtitle span {
	display: inline-block;
}

.cv-header .subtitle .sep {
	margin: 0 0.45em;
	color: var(--border);
}

/* — Contact bar — */
.contact-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 1.4rem;
	font-size: 0.8125rem;
	color: var(--ink-2);
}

.contact-bar a,
.contact-bar .contact-item {
	color: var(--ink-2);
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.contact-bar a:hover {
	color: var(--accent);
}

.contact-bar svg {
	width: 14px;
	height: 14px;
	color: var(--accent);
	flex-shrink: 0;
}

/* — Navy divider — */
.navy-line {
	border: none;
	border-top: 1.5px solid var(--accent);
	margin: 0;
}

/* — Sections — */
.cv-section {
	margin-top: 2.25rem;
}

.section-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.section-header h2 {
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--accent);
	white-space: nowrap;
}

.section-header .line {
	flex: 1;
	height: 1px;
	background-color: var(--accent);
	opacity: 0.25;
}

/* — Profile — */
.profile-grid {
	display: grid;
	grid-template-columns: 176px 1fr;
	gap: 28px;
	align-items: start;
}

.profile-photo {
	position: relative;
	width: 168px;
	height: 168px;
	border-radius: 50%;
	padding: 4px;
	border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.profile-photo::after {
	content: "";
	position: absolute;
	inset: -7px;
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
	pointer-events: none;
}

.profile-photo image-slot {
	width: 100%;
	height: 100%;
	display: block;
}

.profile-text {
	font-size: 0.9375rem;
	color: var(--ink-2);
	line-height: 1.75;
}

.profile-text p {
	max-width: 62ch;
}

.profile-text p:last-of-type {
	margin-bottom: 0;
}

.profile-text strong {
	font-weight: 600;
	color: var(--ink);
}

.facts-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(150px, 1fr));
	gap: 10px 28px;
	margin-top: 1.1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
}

.fact-label {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 2px;
}

.fact-value {
	font-size: 0.875rem;
	color: var(--ink);
	margin: 0;
}

/* — Highlights band (stats) — */
.stats-band {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: 2rem;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.stat-item {
	text-align: center;
	padding: 16px 8px;
}

.stat-item + .stat-item {
	border-left: 1px solid var(--border);
}

.stat-num {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 26px;
	line-height: 1.15;
	color: var(--accent);
	margin: 0;
}

.stat-label {
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 4px 0 0;
}

/* — CV card (experience) — */
.cv-card {
	background: var(--bg);
	border-left: 3px solid var(--accent);
	box-shadow: 0 1px 3px var(--shadow);
	padding: 1.15rem 1.4rem;
	margin-bottom: 0.9rem;
}

.cv-card:last-child {
	margin-bottom: 0;
}

.cv-card .card-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin-bottom: 0.3rem;
}

.cv-card .card-title {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.0625rem;
	color: var(--ink);
	line-height: 1.3;
}

.cv-card .card-company {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--accent);
	margin: 2px 0 0;
}

.cv-card .card-period {
	font-size: 0.8125rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.cv-card .card-body {
	font-size: 0.875rem;
	color: var(--ink-2);
	line-height: 1.65;
	max-width: 64ch;
	margin: 0.3rem 0 0;
}

/* — Services grid — */
.services-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.9rem;
}

.service-card {
	background: var(--light-bg);
	border: 1px solid var(--border);
	padding: 1.1rem 1.3rem;
}

.service-card .card-kicker {
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--accent);
	opacity: 0.55;
	margin-bottom: 0.35rem;
}

.service-card h3 {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1.35;
	margin-bottom: 0.35rem;
}

.service-card p {
	font-size: 0.875rem;
	color: var(--ink-2);
	margin: 0;
}

/* — Apps — */
.apps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.9rem;
}

.app-card {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	background: var(--bg);
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	padding: 1.05rem 1.2rem;
}

.app-card h3 {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.0625rem;
}

.app-card p {
	font-size: 0.8125rem;
	color: var(--ink-2);
	margin: 0;
	flex: 1;
}

.app-card .app-link {
	font-size: 0.8125rem;
	font-weight: 500;
}

.tag {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: var(--radius-md);
}

.tag-accent {
	background: color-mix(in srgb, var(--accent) 9%, transparent);
	color: var(--accent);
}

/* — Placeholder app slots — dashed, quiet, clearly reserved — */
.app-card--empty {
	background: transparent;
	border: 1px dashed var(--border);
	border-left: 3px solid var(--accent);
}

.app-card--empty h3,
.app-card--empty p,
.app-card--empty .tag {
	opacity: 0.65;
}

/* — Skill tags (Odoo modules) — */
.modules-intro {
	font-size: 0.9375rem;
	color: var(--ink-2);
	max-width: 60ch;
	margin-bottom: 1rem;
}

.skills-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.skill-tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--accent);
	background-color: var(--light-bg);
	border: 1px solid var(--border);
	padding: 0.28rem 0.75rem;
	border-radius: var(--radius-md);
	letter-spacing: 0.01em;
}

/* — Certifications — */
.certs-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
}

.cert-item {
	background: var(--light-bg);
	border: 1px solid var(--border);
	padding: 0.75rem 1rem;
}

.cert-item h3 {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 2px;
}

.cert-item p {
	font-size: 0.8125rem;
	color: var(--muted);
	margin: 0;
}

/* — Contact — */
.contact-section {
	text-align: center;
	padding: 0.5rem 0 0;
}

.contact-section .contact-statement {
	font-family: var(--font-heading);
	font-style: italic;
	font-size: 1.25rem;
	color: var(--ink);
	margin-bottom: 0.75rem;
}

.contact-section h2 {
	font-family: var(--font-heading);
	font-size: 1.75rem;
	font-weight: 600;
	margin-bottom: 0.6rem;
}

.contact-section .contact-body {
	font-size: 0.9375rem;
	color: var(--ink-2);
	max-width: 52ch;
	margin: 0 auto 1.4rem;
}

.contact-actions {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 1.1rem;
}

.contact-links {
	display: flex;
	justify-content: center;
	gap: 1.4rem;
	flex-wrap: wrap;
	font-size: 0.8125rem;
}

/* — Footer — */
.cv-footer {
	margin-top: 2.5rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--border);
	text-align: center;
	font-size: 0.75rem;
	color: var(--muted);
}

/* — Rules — */
.hr {
	height: 1px;
	border: 0;
	margin: 2.25rem 0 0;
	background: linear-gradient(
		to right,
		transparent,
		var(--border) 40px,
		var(--border) calc(100% - 40px),
		transparent
	);
}

/* — Print — */
@media print {
	body {
		font-size: 9.5pt;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	body::before,
	.topbar {
		display: none;
	}

	.cv-page {
		padding: 0;
		max-width: 100%;
	}

	.cv-card,
	.app-card {
		box-shadow: none;
		break-inside: avoid;
	}

	.cv-section {
		break-inside: avoid;
	}

	a {
		text-decoration: none !important;
	}
}

/* — Responsive — */
@media (max-width: 760px) {
	.topbar-links {
		display: none;
	}

	.profile-grid {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: left;
	}

	.profile-text {
		width: 100%;
	}

	.profile-photo {
		margin: 0 auto;
	}

	.stats-band {
		grid-template-columns: repeat(2, 1fr);
	}

	.stat-item:nth-child(3) {
		border-left: none;
	}

	.stat-item:nth-child(n + 3) {
		border-top: 1px solid var(--border);
	}

	.apps-grid,
	.services-grid,
	.certs-grid {
		grid-template-columns: 1fr;
	}

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