html {
    scroll-behavior: smooth;
}

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

/* Define the core palette and typography scales */
:root {
	--page-bg: #040100;
	--page-bg-alt: #1b0800;
	--card-bg: #120600;
	--text-main: #f7f2ea;
	--text-muted: #a6a29c;
	--accent: #ff7a18;
	--accent-soft: #ffb347;
	--accent-deep: rgba(161, 68, 0, 0.35);
	--max-width: 960px;
}

/* Set up the overall page look and feel */
body {
	font-family: "Space Grotesk", sans-serif;
	background-color: var(--page-bg);
	background-image:
		radial-gradient(circle at 12% 12%, rgba(255, 122, 24, 0.35), transparent 50%),
		radial-gradient(circle at 85% 5%, rgba(255, 179, 71, 0.28), transparent 60%),
		radial-gradient(circle at 12% 55%, rgba(255, 122, 24, 0.02), transparent 95%),
		radial-gradient(circle at 50% 118%, rgba(255, 122, 24, 0.32), transparent 70%),
		linear-gradient(180deg,
			#2a0b00 0%,
			#160500 18%,
			#070200 38%,
			#050100 55%,
			#0b0300 72%,
			#1f0700 100%);
	background-attachment: fixed;
	color: var(--text-main);
	line-height: 1.6;
}

/* Keep lists clean for the nav */
ul {
	list-style: none;
}

/* Make links minimalistic */
a {
	color: inherit;
	text-decoration: none;
	position: relative;
}

/* Add a subtle underline hover cue */
nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.2rem;
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, var(--accent), var(--accent-soft));
	opacity: 0;
	transform: scaleX(0);
	transform-origin: left;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

nav a:hover::after {
	opacity: 1;
	transform: scaleX(1);
}


header {
	overflow: hidden;
	background:
		radial-gradient(circle at 30% 30%, rgba(255, 122, 24, 0.38), transparent 60%),
		radial-gradient(circle at 80% -10%, rgba(255, 179, 71, 0.18), transparent 65%),
		linear-gradient(145deg, var(--page-bg-alt), #030101 70%, #000000);
	width: 100%;
	height: 100vh;
	min-height: 20%;
	position: fixed;
	top: 0;
	left: 0;
	padding: 4.5rem 6vw 3rem;
	gap: 0.85rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	will-change: height;
	z-index: 10;
	border-bottom: 1px solid rgba(255, 122, 24, 0.2);
	box-shadow: 0 35px 60px rgba(0, 0, 0, 0.65);
}


/* Position the navigation in the upper-right corner */
header nav {
	position: absolute;
	top: 2rem;
	right: 6vw;
}

/* Style the navigation list horizontally */
header nav ul {
	display: flex;
	gap: 1.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 1rem;
	color: var(--text-muted);
}

/* Ensure "Video Editor" sits under the name despite DOM order */
header > p:first-of-type {
	order: 2;
	font-size: clamp(2rem, 3vw, 4rem);
	color: var(--accent);
	margin-top: 0;
}

/* Social icon strip stays aligned under the hero copy */
.social-links {
	order: 3;
	display: flex;
	justify-content: flex-start;
	gap: 1.5rem;
	font-size: clamp(1.2rem, 2vw, 2rem);
	color: var(--text-muted);
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
}

.social-links a::before {
	display: inline-block;
	transition: transform 0.25s ease;
	transform-origin: center;
}

.social-links a:hover::before {
	transform: rotate(45deg);
}


/* Commanding name heading */
header h1 {
	order: 1;
	font-size: clamp(3rem, 12vw, 7rem);
	text-transform: uppercase;
	line-height: 1;
}

/* Make sure the nav renders before the copy for screen readers */
header nav {
	order: 0;
	top: 1rem;
}

#profil,
#portfolio,
#kontakt {
	scroll-margin-top: 160px;
}

/* Offset the main content so it starts under the hero */
main {
	margin-top: 85vh;
	padding: 6vh 6vw 10vh;
	background:
		radial-gradient(circle at 15% 5%, rgba(255, 122, 24, 0.18), transparent 55%),
		linear-gradient(180deg, rgba(10, 2, 0, 0.85), rgba(3, 0, 0, 0.92));
}

#profil {
	margin-bottom: 8vh;
}

.profile-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(300px, 460px) minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 4rem);
	align-items: start;
}


.profile-copy {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 1.75rem 2rem;
	border-radius: 1.5rem;
	background: linear-gradient(140deg, rgba(38, 9, 0, 0.92), rgba(12, 2, 0, 0.95));
	border: 1px solid rgba(255, 122, 24, 0.22);
	box-shadow: 0 35px 60px rgba(0, 0, 0, 0.45);
}

.profile-copy::after {
	content: "";
	position: absolute;
	left: -20px;
	top: 20%;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, rgba(255, 153, 75, 0.35), transparent 70%);
	filter: blur(30px);
	opacity: 0.6;
	z-index: -1;
}

.profile-copy h2 {
	margin-top: 0;
}

.profile-copy p {
	color: #f4eee5;
	font-size: 1.2rem;
	line-height: 1.7;
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
	text-align: left;
}

.profile-gallery.simple-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.gallery-cell {
	position: relative;
	border-radius: 1.1rem;
	overflow: hidden;
	background: var(--card-bg);
	box-shadow: 0 18px 30px rgba(0, 0, 0, 0.55);
	aspect-ratio: 1 / 1;
}

.gallery-cell img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.gallery-cell:hover img {
	transform: scale(1.08);
}

/* Section heading shared style */
h2 {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
    margin-top: 2rem;
	margin-bottom: 2rem;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent-soft);
}

h2::after {
	content: "";
	width: 60px;
	height: 2px;
	margin-top: 0.3rem;
	background: linear-gradient(90deg, var(--accent), transparent);
}

/* Portfolio grid layout with two columns */
.portfolio-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
}

.portfolio-card {
	flex: 1 1 calc(50% - 1rem);
	position: relative;
	overflow: hidden;
	border-radius: 1.2rem;
	background-color: var(--card-bg);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
}

.portfolio-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	aspect-ratio: 16 / 9;
	transition: 0.6s;
}

.portfolio-card img.frame-top {
	object-position: center 1%;
}

.portfolio-card img.frame-bottom {
	object-position: center 80%;
}

.portfolio-card img.frame-left {
	object-position: 20% center;
}

.portfolio-card img.frame-right {
	object-position: 80% center;
}

.portfolio-card a {
	display: block;
	width: 100%;
	height: 100%;
}

.portfolio-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1rem;
	opacity: 0;
	transition: 0.3s;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
}

.portfolio-overlay p {
	text-transform: uppercase;
	font-size: 1.5rem;
}

.portfolio-card:hover .portfolio-overlay {
	opacity: 1;
	transform: translateY(0);
    background-image: linear-gradient(0deg, rgba(10, 4, 0, 0.95), rgba(255, 122, 24, 0.2));
}

.contact-footer {
	padding: 8vh 6vw 10vh;
	padding-top: 0;
	background:
		radial-gradient(circle at 25% -15%, rgba(255, 122, 24, 0.4), transparent 55%),
		linear-gradient(180deg, #120600 0%, #050100 60%, #010101 100%);
	border-top: 1px solid rgba(255, 122, 24, 0.25);
}

.contact-wrapper {
	width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.contact-grid {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.contact-row {
	padding: 2rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: grid;
	grid-template-columns: minmax(160px, 1fr) minmax(0, 1fr);
	gap: clamp(0.5rem, 2vw, 2.5rem);
	align-items: center;
}

.contact-row:first-of-type {
	border-top: none;
}

.contact-label {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: clamp(0.8rem, 2vw, 1.5rem);
	color: var(--text-muted);
	justify-self: start;
}

.contact-link {
	font-size: clamp(0.8rem, 2vw, 1.5rem);
	font-weight: 600;
	color: var(--text-main);
	justify-self: start;
}

.contact-link::after {
	content: "";
	display: inline-block;
	margin-left: 0.65rem;
	width: 1.3rem;
	height: 1.3rem;
	background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff7a18" stroke-width="1.5"%3E%3Cpath d="M5 12h14M13 5l7 7-7 7"/%3E%3C/svg%3E') center/contain no-repeat;
	opacity: 0;
	transform: translateX(-6px);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.contact-link:hover::after{
	opacity: 1;
	transform: translateX(0);
}

.contact-socials {
	display: flex;
	gap: 1.2rem;
	font-size: 1.4rem;
	justify-self: start;
}

.contact-socials a {
	color: var(--text-main);
	padding: 0.45rem;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.05);
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.contact-socials a:hover {
	background-color: rgba(255, 122, 24, 0.25);
	transform: translateY(-2px);
}


/* Responsive tweaks so the nav stacks gracefully on small screens */
@media (max-width: 640px) {
	header nav ul {
		flex-direction: column;
		gap: 0.6rem;
		text-align: right;
	}

	header nav {
		top: 1.2rem;
		font-size: clamp(0.8rem, 2vw, 1.5rem);
	}

    .portfolio-card {
		flex: 1 1 100%;
	}

	.contact-link {
		font-size: clamp(0.8rem, 2vw, 1.5rem);
	}

	.contact-socials {
		flex-wrap: wrap;
	}

	.contact-row {
		grid-template-columns: 1fr;
		gap: 0.8rem;
	}
}

@media (max-width: 1024px) {
	.profile-grid {
		grid-template-columns: 1fr;
	}

	.profile-gallery.simple-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.profile-gallery.simple-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.profile-gallery.simple-grid {
		grid-template-columns: 1fr;
	}
}
