
/* --- GENERAL --- */
body {
	font-family: 'Inter', sans-serif;
	background: linear-gradient(135deg, #ebe4da 0%, #ffffff 100%);
	color: #d4430f;
	max-width: 1280px;
	margin: auto;
	padding: 0 40px;
}

/* --- HEADER --- */
header {
	padding: 40px 0 20px;
}

header nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

header .name {
	font-family: 'Inter', sans-serif;
	font-size: 1em;
	letter-spacing: 0.5px;
}

header .links a {
	text-decoration: none;
	color: #d4430f;
	font-family: 'Inter', sans-serif;
	font-size: 0.9em;
	margin-left: 30px;
	transition: opacity 0.3s ease;
}

header .links a:hover {
	opacity: 0.7;
}

/* --- INTRO --- */
h1 {
	text-align: center;
	font-family: 'Playfair Display', serif;
	font-size: 130px;
	line-height: 0.9em;
	margin: 100px 0 20px;
	font-weight: 400;
}

.subtitle {
	text-align: right;
	font-style: italic;
	font-size: 1.2em;
	line-height: 1.1em;
	margin-right: 50px;
	text-transform: uppercase;
}

.intro img {
	display: block;
	margin: 80px auto 0;
	width: 60%;
	max-width: 600px;
	transition: transform 0.3s ease, opacity 0.3s ease;
	cursor: pointer;
}

.intro img:hover {
	transform: scale(1.03) translateY(-5px);
	opacity: 0.9;
}

/* --- ABOUT --- */
.about {
	text-align: center;
	margin: 80px 0 120px;
}

.about h2 {
	font-family: 'Playfair Display', serif;
	font-size: 2.5em;
	margin-bottom: 30px;
	transition: all 0.3s ease;
	cursor: pointer;
}

.about h2:hover {
	color: #ff6b33;
	transform: translateY(-3px);
}

.about p {
	font-family: 'Inter', sans-serif;
	font-size: 1.1em;
	line-height: 1.6em;
	max-width: 900px;
	margin: 0 auto;
}

/* --- INFO --- */
.info {
	display: flex;
	justify-content: center;
	gap: 80px;
	margin-bottom: 120px;
	flex-wrap: wrap;
}

.column {
	flex: 1 1 400px;
	max-width: 500px;
}

.item {
	margin-bottom: 60px;
}

.column h3 {
	font-family: 'Playfair Display', serif;
	font-size: 1.4em;
	margin-bottom: 10px;
	position: relative;
	cursor: pointer;
	transition: all 0.3s ease;
}

.column h3:hover {
	color: #ff6b33;
	transform: translateY(-3px);
}

.column p {
	font-family: 'Inter', sans-serif;
	text-align: left;
	font-size: 1em;
	line-height: 1.6em;
	margin: 0;
}

/* --- FOOTER --- */
footer {
	text-align: center;
	padding: 40px 0;
	font-size: 0.8em;
	font-family: 'Inter', sans-serif;
	color: #d4430f;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 768px) {
	h1 {
		font-size: 60px;
		line-height: 1.1em;
	}

	.subtitle {
		text-align: center;
		margin-right: 0;
	}

	.intro img {
		width: 80%;
	}

	.about h2 {
		font-size: 2em;
	}

	.about p {
		font-size: 1em;
	}

	.info {
		flex-direction: column;
		align-items: center;
		gap: 20px; 
	}

	.item {
		margin-bottom: 40px;
	}

	header nav {
		gap: 6px;
		flex-direction: column;
		align-items: center;
	}
}

/* ---FONDO GENERAL --- */
body {
	background: linear-gradient(135deg, #ebe4da 0%, #ffffff 100%);
	max-width: 1280px;
	margin: auto;
	font-family: 'Work Sans', sans-serif;
	color: #d4430f;
}

/* --- HEADER --- */
header nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 40px;
	flex-wrap: wrap;
}

header nav a,
header nav .logo {
	color: #d4430f;
	text-decoration: none;
	font-size: 0.9rem;
	margin: 5px 10px;
	font-family: 'Work Sans', sans-serif;
}

header nav .logo {
	font-weight: 600;
}

header nav a:hover,
header nav a.active {
	text-decoration: underline;
}

/* --- TÍTOL PRINCIPAL --- */
h1 {
	text-align: center;
	font-family: 'Playfair Display', serif;
	font-size: 130px;
	margin-top: 80px;
	margin-bottom: 20px;
	line-height: 1;
	color: #d4430f;
}

.intro-text {
	text-align: center;
	font-style: italic;
	margin-bottom: 80px;
}

/* --- PORTFOLIO GRID --- */
.portfolio {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 60px;
	padding: 0 80px 120px 80px;
}

.project {
	text-align: left;
}

.project h2 {
	font-family: 'Playfair Display', serif;
	text-transform: uppercase;
	font-size: 1.1rem;
	margin-top: 15px;
	margin-bottom: 5px;
	transition: all 0.3s ease;
}

.project h2:hover {
	letter-spacing: 1px;
}

.project p {
	font-size: 0.9rem;
	color: #d4430f;
	font-style: italic;
}

.img-placeholder {
	width: 100%;
	height: 300px;
	background-color: #fff;
	border: 1px solid #d4430f30;
}

/* --- FOOTER --- */
footer {
	text-align: center;
	padding: 40px 20px;
	font-size: 0.8rem;
	color: #d4430f;
	border-top: 1px solid #d4430f20;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
	.portfolio {
		grid-template-columns: 1fr 1fr;
		padding: 0 40px 80px 40px;
		gap: 40px;
	}
	h1 {
		font-size: 60px;
	}
}

@media (max-width: 600px) {
	.portfolio {
		grid-template-columns: 1fr;
		padding: 0 20px 60px 20px;
		gap: 30px;
	}
	h1 {
		font-size: 50px;
		line-height: 1.1;
		margin-top: 60px;
	}
}

/* --- PORTFOLI GRID I PROJECTES --- */
.portfolio {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 80px; 
	padding: 0 80px 120px 80px;
}

.project {
	text-align: left;
	overflow: hidden;
}

.project img {
	width: 100%;
	height: 450px; 
	object-fit: cover;
	border-radius: 4px;
	transition: transform 0.4s ease, filter 0.4s ease;
	cursor: pointer;
}

.project img:hover {
	transform: scale(1.07); 
	filter: brightness(1.07);
}

.project h2 {
	font-family: 'Playfair Display', serif;
	text-transform: uppercase;
	font-size: 1.2rem;
	margin-top: 20px;
	margin-bottom: 8px;
	transition: all 0.3s ease;
	cursor: pointer;
}

.project h2:hover {
	letter-spacing: 1.2px;
}

.project p {
	font-size: 0.95rem;
	color: #d4430f;
	font-style: italic;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
	.portfolio {
		grid-template-columns: 1fr 1fr;
		padding: 0 40px 80px 40px;
		gap: 50px;
	}
	.project img {
		height: 400px; 
	}
}

@media (max-width: 600px) {
	.portfolio {
		grid-template-columns: 1fr;
		padding: 0 20px 60px 20px;
		gap: 40px;
	}
	.project img {
		height: 350px; 
	}
	h1 {
		font-size: 50px;
		line-height: 1.1;
		margin-top: 60px;
	}
}
