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

:root {
	/* Dark Mode (default) */
	--bg: #0d0d0d;
	--surface: #181818;
	--surface2: #242424;
	--accent: #d8ff00;
	--accent-hover: #bde000;
	--secondary: #ff2a4a;
	--text: #ffffff;
	--muted: #a0a0a0;
	--border: #333333;
	--mono: "Share Tech Mono", monospace;
	--sans: "Inter", sans-serif;
}

html {
	scroll-behavior: smooth;
}

/* ─── PAGE LOAD ANIMATIONS ─── */
html::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	background: #111;
	animation: page-load-fade 0.8s ease-out forwards;
}

html::after {
	content: "";
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 0;
	height: 2px;
	background: #d8ff00;
	z-index: 10000;
	pointer-events: none;
	box-shadow: 0 0 20px 4px #d8ff00;
	animation: page-load-zap 0.8s ease-out forwards;
}

@keyframes page-load-fade {
	0%,
	50% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		visibility: hidden;
	}
}

@keyframes page-load-zap {
	0% {
		width: 0;
		height: 2px;
		opacity: 1;
	}
	25% {
		width: 100vw;
		height: 2px;
		opacity: 1;
	}
	50% {
		width: 100vw;
		height: 100vh;
		opacity: 1;
	}
	100% {
		width: 100vw;
		height: 100vh;
		opacity: 0;
		visibility: hidden;
	}
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.7;
	min-height: 100vh;
	overflow-x: hidden;
	transition:
		background 0.3s ease,
		color 0.3s ease;
}

/* ─── MODERN TECH BACKGROUND ─── */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background-image: radial-gradient(var(--border) 1px, transparent 1px);
	background-size: 24px 24px;
	opacity: 0.3;
	pointer-events: none;
	z-index: -1;
	transition: opacity 0.3s ease;
}

/* ─── TYPOGRAPHY OPTIONS ─── */
h1,
h2,
h3,
.project-name,
.stat-num,
.contact-heading {
	text-transform: uppercase;
	font-style: italic;
	font-weight: 800;
	letter-spacing: 0.02em;
}

/* ─── NAV ─── */
nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: rgba(13, 13, 13, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 2px solid var(--border);
	padding: 0 2rem;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--mono);
	font-size: 13px;
	text-transform: uppercase;
	transition:
		background 0.3s ease,
		border-color 0.3s ease;
}

.nav-id {
	color: var(--accent);
	font-weight: bold;
	letter-spacing: 0.1em;
	display: flex;
	align-items: center;
	gap: 10px;
}

.nav-id::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	background: var(--accent);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.nav-links {
	display: flex;
	gap: 2.5rem;
	list-style: none;
}

.nav-links a {
	color: var(--text);
	text-decoration: none;
	letter-spacing: 0.1em;
	transition: color 0.2s;
	font-weight: 600;
	position: relative;
}

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

.nav-links a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0%;
	height: 2px;
	background: var(--accent);
	transition: width 0.2s ease;
}

.nav-links a:hover::after {
	width: 100%;
}

.nav-status {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 11px;
	letter-spacing: 0.08em;
	padding: 6px 12px;
	background: var(--surface);
	border-left: 3px solid var(--secondary);
}

/* ─── HERO ─── */
.hero {
	padding: 160px 2rem 120px;
	max-width: 1000px;
	margin: 0 auto;
	position: relative;
}

.hero-tag {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--text);
	background: var(--secondary);
	padding: 4px 12px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: 0.15em;
	margin-bottom: 2rem;
	clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0% 100%);
}

h1 {
	font-size: clamp(3rem, 8vw, 6.5rem);
	line-height: 0.95;
	color: var(--text);
	margin-bottom: 1.5rem;
	position: relative;
	text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
	animation: slide-in-up 0.6s ease-out 0.5s both;
}

#typed-name {
	display: inline-block;
	min-width: 300px;
}

#typed-name::after {
	content: "_";
	color: var(--accent);
	animation: blink 0.9s step-end infinite;
	margin-left: 4px;
}

@keyframes slide-in-up {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

h1 .accent {
	color: var(--accent);
}

.hero-sub {
	font-size: 17px;
	color: var(--muted);
	max-width: 560px;
	line-height: 1.6;
	margin-bottom: 3rem;
	border-left: 2px solid var(--border);
	padding-left: 1rem;
	animation: fade-in 0.6s ease-out 0.8s both;
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.hero-ctas {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
	align-items: center;
	animation: fade-in 0.6s ease-out 1s both;
}

/* ─── BUTTONS ─── */
.btn-primary {
	font-family: var(--sans);
	font-weight: 800;
	font-style: italic;
	font-size: 16px;
	letter-spacing: 0.05em;
	background: var(--accent);
	color: #000;
	border: none;
	padding: 16px 36px;
	cursor: pointer;
	text-decoration: none;
	text-transform: uppercase;
	display: inline-block;
	clip-path: polygon(
		12px 0,
		100% 0,
		100% calc(100% - 12px),
		calc(100% - 12px) 100%,
		0 100%,
		0 12px
	);
	transition:
		background 0.2s,
		transform 0.1s;
	position: relative;
}

.btn-primary:hover {
	background: var(--text);
	transform: scale(1.02);
}

.btn-ghost {
	font-family: var(--sans);
	font-weight: 800;
	font-style: italic;
	font-size: 16px;
	letter-spacing: 0.05em;
	background: transparent;
	color: var(--text);
	border: 2px solid var(--text);
	padding: 14px 34px;
	cursor: pointer;
	text-decoration: none;
	text-transform: uppercase;
	display: inline-block;
	clip-path: polygon(
		12px 0,
		100% 0,
		100% calc(100% - 12px),
		calc(100% - 12px) 100%,
		0 100%,
		0 12px
	);
	transition: all 0.2s;
}

.btn-ghost:hover {
	background: var(--surface2);
	border-color: var(--accent);
	color: var(--accent);
}

/* Hazard tape accent */
.hero-decor {
	position: absolute;
	right: 5%;
	top: 20%;
	width: 250px;
	height: 250px;
	background: repeating-linear-gradient(
		45deg,
		var(--surface),
		var(--surface) 10px,
		var(--bg) 10px,
		var(--bg) 20px
	);
	opacity: 0.5;
	clip-path: polygon(20% 0%, 100% 0, 100% 20%, 0 100%, 0 80%);
	z-index: -1;
}

/* ─── SECTION WRAP ─── */
.section {
	padding: 100px 2rem;
	max-width: 1000px;
	margin: 0 auto;
	position: relative;
}

.section-label {
	font-family: var(--mono);
	font-size: 14px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text);
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 3rem;
	position: relative;
	z-index: 2;
}

.section-label::before {
	content: "";
	width: 24px;
	height: 4px;
	background: var(--accent);
}

/* ─── GERMANY MAP ─── */
.germany-map {
	position: absolute;
	right: -200px;
	top: 50%;
	transform: translateY(-40%);
	width: 800px;
	height: 750px;
	opacity: 0.4;
	pointer-events: none;
	z-index: 0;
	background-image: url("germany-map.svg");
	background-size: contain;
	background-repeat: no-repeat;
}

/* ─── ABOUT ─── */
.about-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 60px;
	align-items: center;
}

.about-text {
	font-size: 16px;
	color: var(--muted);
	line-height: 1.8;
}

.about-text strong {
	color: var(--accent);
	font-weight: 600;
}

.about-text p + p {
	margin-top: 1.5rem;
}

.about-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.stat-cell {
	background: #18181818;
	backdrop-filter: blur(4px);
	padding: 24px;
	border-bottom: 3px solid var(--border);
	transition:
		border-color 0.2s,
		transform 0.2s;
}

.stat-cell:hover {
	border-color: var(--accent);
	transform: translateY(-4px);
}

.stat-num {
	font-size: 2.5rem;
	color: var(--text);
	display: block;
	line-height: 1;
	margin-bottom: 8px;
}

.stat-label {
	font-size: 11px;
	color: var(--muted);
	letter-spacing: 0.1em;
	font-family: var(--mono);
	text-transform: uppercase;
}

/* ─── SKILLS ─── */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.skill-block {
	background: var(--surface);
	padding: 30px;
	position: relative;
	border: 1px solid var(--border);
	transition: all 0.2s;
	clip-path: polygon(
		0 0,
		100% 0,
		100% calc(100% - 16px),
		calc(100% - 16px) 100%,
		0 100%
	);
}

.skill-block:hover {
	background: var(--surface2);
	border-color: var(--accent);
}

.skill-block::before {
	content: "";
	position: absolute;
	bottom: 0;
	right: 0;
	width: 16px;
	height: 16px;
	background: var(--border);
	transition: background 0.2s;
}

.skill-block:hover::before {
	background: var(--accent);
}

.skill-icon {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--secondary);
	letter-spacing: 0.1em;
	margin-bottom: 16px;
	display: inline-block;
	background: rgba(255, 42, 74, 0.1);
	padding: 4px 8px;
}

.skill-title {
	font-size: 18px;
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	color: var(--text);
	margin-bottom: 12px;
}

.skill-desc {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.6;
}

/* ─── PROJECTS ─── */
.projects-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.project-card {
	background: var(--surface);
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 32px;
	align-items: center;
	padding: 32px;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--border);
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.project-card::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--border);
	transition: background 0.2s;
}

.project-card:hover {
	background: var(--surface2);
	border-color: #555;
	transform: translateX(8px);
}

.project-card:hover::after {
	background: var(--accent);
}

.project-index {
	font-family: var(--mono);
	font-size: 14px;
	font-weight: bold;
	color: var(--muted);
	transform: rotate(-90deg);
	margin-left: -10px;
}

.project-card:hover .project-index {
	color: var(--accent);
}

.project-name {
	font-size: 24px;
	color: var(--text);
	margin-bottom: 8px;
}

.project-desc {
	font-size: 15px;
	color: var(--muted);
	line-height: 1.6;
	max-width: 600px;
}

.project-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.tag {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 0.05em;
	color: var(--text);
	background: #333;
	padding: 4px 10px;
	text-transform: uppercase;
}

.project-arrow {
	font-size: 24px;
	color: var(--border);
	transition:
		color 0.2s,
		transform 0.2s;
	font-weight: bold;
}

.project-card:hover .project-arrow {
	color: var(--accent);
	transform: translateX(4px);
}

/* ─── CONTACT ─── */
.contact-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	background: var(--surface);
	padding: 60px;
	border: 1px solid var(--border);
	position: relative;
}

.contact-row::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 20%;
	width: 30%;
	height: 3px;
	background: var(--accent);
}

.contact-heading {
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--text);
	line-height: 1.1;
	margin-bottom: 1.5rem;
}

.contact-note {
	font-size: 15px;
	color: var(--muted);
	line-height: 1.6;
}

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

.contact-link {
	background: var(--bg);
	padding: 20px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-decoration: none;
	color: var(--text);
	font-family: var(--mono);
	font-size: 14px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	border: 1px solid var(--border);
	transition: all 0.2s;
}

.contact-link:hover {
	background: var(--accent);
	color: #000;
	border-color: var(--accent);
	transform: scale(1.02);
}

/* ─── MARQUEE ─── */
.marquee-container {
	width: 100vw;
	overflow: hidden;
	background: var(--accent);
	color: #000;
	padding: 12px 0;
	font-family: var(--mono);
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	display: flex;
	transform: rotate(-1deg) scale(1.02);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	z-index: 10;
	margin-top: 40px;
	margin-bottom: 40px;
	transition:
		background 0.3s ease,
		box-shadow 0.3s ease;
}

.marquee-content {
	display: flex;
	white-space: nowrap;
	animation: marquee 20s linear infinite;
}

.marquee-content span {
	padding: 0 2rem;
	display: inline-flex;
	align-items: center;
}

.marquee-content span::after {
	content: "///";
	margin-left: 2rem;
	opacity: 0.5;
}

@keyframes marquee {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* ─── FOOTER ─── */
footer {
	border-top: 2px solid var(--border);
	padding: 40px 2rem;
	max-width: 1000px;
	margin: 60px auto 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	transition:
		border-color 0.3s ease,
		color 0.3s ease;
}

footer .accent-text {
	color: var(--accent);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
	.about-grid,
	.contact-row {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.skills-grid {
		grid-template-columns: 1fr 1fr;
	}
	.project-card {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 24px;
	}
	.project-index {
		transform: none;
		margin: 0 0 10px 0;
	}
	.project-arrow {
		display: none;
	}
	nav .nav-status {
		display: none;
	}
	.contact-row {
		padding: 30px;
	}
}

@media (max-width: 480px) {
	.skills-grid {
		grid-template-columns: 1fr;
	}
	.nav-links {
		display: none;
	}
}
