@font-face {
	font-family: 'Title';
	src: url("photos/Title.ttf");
}

@font-face {
	font-family: 'BodyText';
	src: url("photos/BodyText.ttf");
}

:root {
	--bg-color: #FAFAFA;
	--text-color: #111111;
	--accent-color: #555555;
}

* {
	box-sizing: border-box;
}

body {
	font-family: 'BodyText', sans-serif;
	margin: 0;
	padding: 0;
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.6;
}

/* --- NAWIGACJA --- */
.modern-nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 2em 4em;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 100;
	color: #FAFAFA; /* Biały tekst na tle zdjęcia powitalnego */
	background-color: transparent;
	transition: background-color 0.4s ease, color 0.4s ease, padding 0.4s ease;
}

.nav-scrolled {
	background-color: rgba(250, 250, 250, 0.96);
	color: #111111;
	padding: 1em 4em;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-brand {
	font-family: 'Title', serif;
	font-size: 1.5em;
	text-decoration: none;
	color: inherit;
	font-weight: bold;
}

/* --- HAMBURGER MENU --- */
.menu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	/* Zwiększamy niewidzialny kontener, dając "ikonie X" miejsce na obrót */
	width: 44px;
	height: 44px;
	padding: 0;
	z-index: 101;
	color: inherit;
	/* Gwarantuje, że krawędzie przycisku nie utną rotujących elementów */
	overflow: visible;
}

/* Wygląd pojedynczej kreski pozostaje bez zmian (małe, zaokrąglone) */
.menu-toggle .bar {
	width: 24px;
	height: 2px;
	background-color: currentColor;
	border-radius: 3px;
	margin: 0;
	transition: all 0.4s ease;
}

/* --- ANIMACJA W KRZYŻYK "X" --- */
.menu-toggle.open .bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
	opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* --- PEŁNOEKRANOWE MENU --- */
.fullscreen-menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: var(--text-color);
	color: var(--bg-color);
	z-index: 90;
	justify-content: center;
	align-items: flex-start;
	padding-top: 10vh;
	padding-bottom: 5vh;
	overflow-y: auto;
}

.menu-content ul {
	list-style: none;
	padding: 0;
	margin: 0;
	text-align: center;
}

.menu-content li {
	margin: 1.5vh 0;
}

.menu-content a {
	font-family: 'Title', serif;
	font-size: clamp(1.5em, 4vh, 2.5em);
	color: var(--bg-color);
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.menu-separator {
	height: 1px;
	background-color: #333;
	margin: 2vh auto;
	width: 50%;
}

.menu-content a:hover {
	opacity: 0.5;
}


/* --- HERO SECTION Z TŁEM ZDJĘCIOWYM --- */
.hero-section {
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 0 4em;
	position: relative;

	background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('photos/3D/Kitchen.png');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;

	color: #FAFAFA;
}

.hero-content {
	text-align: center;
	z-index: 2;
}

.hero-title {
	font-family: 'Title', serif;
	font-size: clamp(4em, 10vw, 8em);
	margin: 0;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	color: #FAFAFA;
}

.hero-subtitle {
	font-size: 1.2em;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: #CCCCCC;
	margin-top: 1em;
}

.scroll-indicator {
	position: absolute;
	bottom: 3em;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1em;
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #FAFAFA;
}

.scroll-indicator .line {
	width: 1px;
	height: 50px;
	background-color: #FAFAFA;
}

/* --- SEKCJE OGÓLNE --- */
.about-section, .work-section {
	padding: 8em 4em;
}

.section-title {
	font-family: 'Title', serif;
	font-size: 3em;
	margin-top: 0;
	margin-bottom: 1em;
	border-bottom: 2px solid var(--text-color);
	padding-bottom: 0.2em;
}

/* --- ABOUT --- */
.about-grid {
	max-width: 1200px;
	margin: 0 auto;
}

.about-text {
	column-count: 2;
	column-gap: 4em;
	font-size: 1.1em;
	text-align: justify;
}

.about-text p {
	margin-top: 0;
	margin-bottom: 1.5em;
}

/* --- CV BUTTON --- */
.about-cv-link {
	margin-top: 2.5em; /* Odstęp pod tekstem "About" */
	display: flex;
	justify-content: flex-start; /* Przycisk trzyma się lewej strony */
}

.cv-button {
	display: inline-block;
	padding: 0.8em 2.5em;
	border: 1px solid var(--text-color); /* Cienka ramka w kolorze tekstu */
	color: var(--text-color);
	text-decoration: none;
	font-family: 'Title', serif;
	font-size: 1.1em;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	transition: background-color 0.4s ease, color 0.4s ease;
}

/* Efekt najechania: odwrócenie kolorów */
.cv-button:hover {
	background-color: var(--text-color);
	color: var(--bg-color);
}

/* --- WORK SECTION --- */
.work-container {
	max-width: 1200px;
	margin: 0 auto;
}

.work-links {
	display: flex;
	flex-direction: column;
}

.work-item {
	display: flex;
	align-items: baseline;
	padding: 2em 0;
	border-bottom: 1px solid #ddd;
	text-decoration: none;
	color: var(--text-color);
	transition: padding-left 0.4s ease, background-color 0.4s ease;
}

.work-number {
	font-size: 1.5em;
	margin-right: 2em;
	color: var(--accent-color);
}

.work-name {
	font-family: 'Title', serif;
	font-size: 3em;
	text-transform: uppercase;
}

.work-item:hover {
	padding-left: 2em;
}

/* --- FOOTER --- */
.minimal-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2em 4em;
	background-color: #FAFAFA;
	color: #111111;
	border-top: 1px solid #EEEEEE;
	box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
	z-index: 10;
}

.footer-label {
	font-family: 'Title', serif;
	font-size: 1.2em;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 1em 0;
	color: #111111;
	padding-bottom: 0.5em;
	border-bottom: 1px solid #DDDDDD;
	display: inline-block;
}

.contact-details {
	margin-top: 0.5em;
}

.contact-details p {
	margin: 0.5em 0;
	font-size: 1.1em;
}

.contact-details span {
	color: #111111;
	margin-right: 0.5em;
}

.contact-details a {
	color: #111111;
	text-decoration: none;
}

.footer-right {
	font-size: 0.8em;
	color: #999999;
}

@media (max-width: 900px) {
	.about-text {
		column-count: 1;
	}

	.work-name {
		font-size: 2.5em;
	}

	.hero-title {
		font-size: 3.5em;
	}

	.minimal-footer-dark {
		flex-direction: column;
		align-items: center;
		gap: 3em;
		padding: 3em 2em;
		text-align: center;
	}

	.footer-label {
		border-bottom: none; /* Na telefonie możemy zrezygnować z linii dla czystości */
	}

	.work-item {
		padding: 1.5em 0; /* Zmniejszamy pionowy padding */
	}

	.work-name {
		font-size: 1.8em; /* Zmniejszamy font na bardzo małe ekrany */
		word-break: break-word; /* Pozwala na zawinięcie długich nazw wierszy */
	}

	.work-number {
		font-size: 1em;
		margin-right: 1em; /* Zmniejszamy odstęp między numerem a nazwą */
	}

	.work-item:hover {
		padding-left: 0.5em; /* Zmniejszamy "wjazd" tekstu przy hoverze, by nie powodował scrolla */
	}
}