/* style.css */
:root {
	--primary: #393e41; /* Dark gray for accents */
	--secondary: #1e2019; /* Very dark gray for subtitles */
	--bg-darkest: #d3d0cb; /* Light gray for main background */
	--bg-dark: #ffffff; /* White for container */
	--bg-mid: #cadadc; /* Light blue-gray for cards/code */
	--text: #121420; /* Very dark blue for body text */
	--accent: #b76d68; /* Muted red for accents */
	--accent-dark: #a35d58; /* Slightly darker muted red */
	--highlight: rgba(202, 218, 220, 0.75); /* Light translucent green-grey */
	--shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	color: var(--text);
	line-height: 1.6;
	padding: 0;
	margin: 0;
	background-color: var(--bg-darkest);
}

.container {
	max-width: 950px;
	margin: 20px auto;
	padding: 20px 30px;
	background: var(--bg-dark);
	box-shadow: var(--shadow);
	border-radius: 8px;
	position: relative;
	overflow: hidden;
	border-top: 4px solid var(--primary);
}

header {
	padding: 30px 0;
	border-bottom: 1px solid var(--bg-mid);
	margin-bottom: 30px;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
}

.header-text {
	flex-grow: 1;
}

.avatar-container {
	margin-left: 20px;
	flex-shrink: 0;
}

.avatar {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--bg-mid);
	box-shadow: var(--shadow);
	transition: transform 0.3s ease;
}

.avatar:hover {
	transform: scale(1.05);
}

.contact-info {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	width: 100%;
	margin-top: 25px;
}

.selection-box {
	position: absolute;
	top: 0;
	left: 0;
	background-color: var(--highlight);
	border-radius: 6px;
	/* This cubic-bezier function creates the "squishy" overshoot effect */
	transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
	z-index: 0;
	pointer-events: none;
	opacity: 0;
}

.contact-info a {
	color: var(--text);
	text-decoration: none;
	display: flex;
	align-items: center;
	font-size: 0.95rem;
	padding: 5px 10px;
	border-radius: 4px;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
}

.contact-info i {
	margin-right: 8px;
	font-size: 1rem;
	width: 16px;
	text-align: center;
}
/* END CONTACT SECTION - UNCHANGED */

h1 {
	color: var(--primary);
	font-size: 2.5rem;
	margin-bottom: 5px;
	font-weight: 700;
}

h2 {
	color: var(--primary);
	font-size: 1.6rem;
	margin: 25px 0 20px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--accent);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
}

h3 {
	color: var(--text);
	font-size: 1.2rem;
	margin: 0 0 10px;
	font-weight: 600;
}

.subtitle {
	font-size: 1.2rem;
	color: var(--secondary);
	font-weight: 500;
	margin-bottom: 10px;
	font-family: 'Fira Code', monospace;
	background: var(--bg-mid);
	padding: 5px 10px;
	border-radius: 4px;
	display: inline-block;
}

.section {
	margin-bottom: 30px;
}

.job,
.education {
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--bg-mid);
}

.job:last-child,
.education:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.job-header,
.education-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 5px;
	flex-wrap: wrap;
	gap: 10px;
}

.job-title,
.education-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--primary);
}

.job-company,
.education-institution {
	font-weight: 500;
	color: #5a6268;
	display: flex;
	align-items: center;
	gap: 8px;
}

.company-logo {
	width: 20px;
	height: 20px;
	border-radius: 3px;
	object-fit: contain;
}

.job-period,
.education-period {
	color: #5a6268;
	font-style: italic;
	white-space: nowrap;
	text-align: right;
	font-family: 'Fira Code', monospace;
}

.job-description p,
.education-description p {
	margin-bottom: 10px;
}

.technologies {
	font-style: italic;
	color: #5a6268;
	margin-top: 15px;
	font-family: 'Fira Code', monospace;
	font-size: 0.9em;
}

.skills {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.skill {
	background: var(--bg-mid);
	padding: 20px;
	border-radius: 8px;
	border-left: 4px solid var(--accent);
	transition: all 0.3s ease;
	display: flex;
	gap: 15px;
	align-items: flex-start;
}

.skill:hover {
	transform: translateY(-5px);
	background: #a8c0c4;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.skill i {
	font-size: 1.5rem;
	color: var(--accent);
	margin-top: 3px;
	width: 24px;
	text-align: center;
}

.skill-content h3 {
	margin: 0 0 8px 0;
	color: var(--secondary);
	font-size: 1.1rem;
}

.skill-content p {
	margin: 0;
	color: var(--text);
	font-size: 0.95rem;
	line-height: 1.5;
}

.toggle-content {
	display: none;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: all 0.3s ease-out;
	padding: 0;
	margin: 0;
}

.print-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: var(--accent);
	color: white;
	border: none;
	padding: 15px 25px;
	font-size: 1.1rem;
	border-radius: 5px;
	cursor: pointer;
	box-shadow: var(--shadow);
	transition: all 0.3s;
	font-weight: 500;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 8px;
}

.print-btn:hover {
	background: var(--accent-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

mark {
	background-color: var(--highlight);
	padding: 2px 4px;
	border-radius: 3px;
	font-family: 'Fira Code', monospace;
	color: var(--secondary);
}

.toggle-btn {
	background: none;
	border: none;
	color: var(--accent);
	cursor: pointer;
	font-size: 0.9em;
	display: flex;
	align-items: center;
	margin-top: 10px;
	transition: all 0.3s ease;
	border-radius: 4px;
	padding: 5px 10px;
}

.toggle-btn:hover {
	background: var(--highlight);
}

.toggle-btn i {
	margin-right: 5px;
	transition: transform 0.3s;
}

.toggle-btn.active i {
	transform: rotate(90deg);
}

@media print {
	/* Print styles remain largely unchanged, forces a light theme for printing */
	:root {
		--primary: #005A9C;
		--secondary: #333333;
		--text: #2d3748;
		--bg-darkest: white;
	}
	.print-btn, .toggle-btn, .selection-box { display: none !important; }
	body { background: white; font-size: 10pt; color: var(--text); }
	.container { color: var(--text); background: white; box-shadow: none; padding: 0; margin: 0; max-width: 100%; border-top: none; }
	.toggle-content { display: block !important; max-height: none !important; opacity: 1 !important; padding-top: 5px !important; }
	.avatar { display: none; }
	h1, h2, h3, .job-title, .education-title { color: var(--secondary); }
	.subtitle { color: var(--primary); background: #f0f4f8; }
	.skill { background: #f8f9fa; }
}

@media (max-width: 768px) {
	.container { padding: 15px; margin: 10px; }
	.header-content { flex-direction: column-reverse; align-items: center; }
	.header-text { width: 100%; text-align: center; }
	.contact-info { justify-content: center; }
	.avatar-container { margin: 0 0 20px 0; }
	.job-period, .education-period { text-align: left; white-space: normal; }
	.job-header, .education-header { flex-direction: column; gap: 2px; }
	.language-switcher {
		bottom: 80px;
		left: 20px;
		font-size: 0.9rem;
	}
	h1::after { display: none; }
}

@media (max-width: 480px) {
	h1 { font-size: 2rem; }
	h2 { font-size: 1.5rem; }
	.subtitle { font-size: 1.1rem; }
	.contact-info a { font-size: 0.9rem; }
}

.language-switcher {
	position: fixed;
	bottom: 20px;
	left: 160px;
	background: var(--primary);
	color: white;
	border: none;
	padding: 15px 20px;
	font-size: 1rem;
	border-radius: 5px;
	cursor: pointer;
	box-shadow: var(--shadow);
	transition: all 0.3s;
	font-weight: 500;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 8px;
}

.language-switcher:hover {
	background: #2c3033;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
