:root {
	color-scheme: dark;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Montserrat', sans-serif;
	background: #000000;
	color: #f5f5f5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.text-soft {
	color: #b5b5b5;
}

.section-divider {
	background: linear-gradient(90deg, rgba(204, 0, 0, 0), rgba(204, 0, 0, 0.95), rgba(204, 0, 0, 0));
	height: 1px;
}

.hero-glow {
	background: radial-gradient(circle at top right, rgba(204, 0, 0, 0.14), transparent 42%);
}

.flag-glow {
	filter: drop-shadow(0 0 18px rgba(204, 0, 0, 0.12));
}

.flag-img {
	opacity: 0.9;
	width: 100%;
	max-width: 14rem;
	height: auto;
	border-radius: 0.5rem;
}

.nav-link {
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 9999px;
	padding: 0.5rem 0.75rem;
	font-size: 0.75rem;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.nav-link {
		padding: 0.55rem 1rem;
		font-size: 0.875rem;
	}
}

.nav-link:hover {
	border-color: #cc0000;
	color: #cc0000;
}

.nav-link-active {
	border-color: #cc0000;
	color: #cc0000;
	background: rgba(204, 0, 0, 0.08);
}

.page-shell {
	min-height: 100vh;
	background: #000000;
	color: #ffffff;
}

.page-section {
	width: min(100%, 80rem);
	margin-inline: auto;
	padding-inline: 1rem;
}

@media (min-width: 640px) {
	.page-section {
		padding-inline: 1.5rem;
	}
}

.page-card {
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.03);
	border-radius: 1.5rem;
}

.lang-switch {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.lang-link {
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 9999px;
	padding: 0.35rem 0.65rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
	color: #f5f5f5;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.lang-link:hover,
.lang-link-active {
	border-color: #cc0000;
	color: #cc0000;
	background: rgba(204, 0, 0, 0.08);
}

.cv-auto {
	content-visibility: auto;
	contain-intrinsic-size: 1px 700px;
}

/* Hamburger Menu */
.hamburger {
	display: none;
	flex-direction: column;
	cursor: pointer;
	gap: 0.4rem;
}

.hamburger span {
	width: 1.5rem;
	height: 2px;
	background: white;
	transition: all 0.3s ease;
	border-radius: 1px;
}

@media (max-width: 640px) {
	.hamburger {
		display: flex;
	}

	.hamburger.active span:nth-child(1) {
		transform: rotate(45deg) translate(0.5rem, 0.5rem);
	}

	.hamburger.active span:nth-child(2) {
		opacity: 0;
	}

	.hamburger.active span:nth-child(3) {
		transform: rotate(-45deg) translate(0.4rem, -0.4rem);
	}
}

.mobile-nav {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: rgba(0, 0, 0, 0.95);
	z-index: 999;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	backdrop-filter: blur(10px);
	animation: slideIn 0.3s ease;
}

.mobile-nav.active {
	display: flex;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mobile-nav a {
	font-size: 1.5rem;
	color: white;
	text-decoration: none;
	padding: 1rem 2rem;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 9999px;
	transition: all 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.mobile-nav a:hover,
.mobile-nav a.active {
	border-color: #cc0000;
	color: #cc0000;
	background: rgba(204, 0, 0, 0.08);
}

.mobile-nav .lang-switch {
	margin-top: 0.25rem;
}

.mobile-nav .lang-link {
	font-size: 0.95rem;
	padding: 0.55rem 1rem;
}

/* Page Transition */
.page-transition {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #cc0000 0%, #000000 100%);
	z-index: 9999;
	pointer-events: none;
	animation: transitionOut 0.5s ease-out forwards;
}

.page-transition.enter {
	animation: transitionIn 0.5s ease-out forwards;
}

@keyframes transitionOut {
	from {
		opacity: 0;
		transform: scaleX(0);
		transform-origin: left;
	}
	to {
		opacity: 1;
		transform: scaleX(1);
		transform-origin: left;
	}
}

@keyframes transitionIn {
	from {
		opacity: 1;
		transform: scaleX(1);
		transform-origin: right;
	}
	to {
		opacity: 0;
		transform: scaleX(0);
		transform-origin: right;
	}
}

/* Smooth Page Load */
body {
	animation: pageLoad 0.6s ease-out;
}

@keyframes pageLoad {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}