/* CV + PORTFOLIO) */

body {
  background: linear-gradient(180deg, #fffcf2 100%, #fff9f0 0%);
  max-width: 1280px;
  margin: auto;
}

/* HEADER */

.header a {
  color: #f00505;
  text-decoration: none;
  font-family: neue-haas-grotesk-display, sans-serif;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fffcf2; 
  font-size: 13px;
  font-family: neue-haas-grotesk-display, sans-serif;
  color: #f00505;
  z-index: 9999; 
}

/* NOM */
h1 {
  font-size: 120px;
  font-family: Nanum Myeongjo, serif;
  font-weight: 80;
  color: #f00505;
  margin-top: 140px;
  margin-bottom: 40px; 
  text-align: center;
  line-height: 1;
  animation: titleZoomIn 1.3s ease both;
}

/* KEYFRAMES */
@keyframes titleZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  40% {
    opacity: 0.6;
    transform: scale(1.05);
  }
  70% {
    opacity: 0.9;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* INTRO */
.intro {
  font-size: 16px;
  color: #f00505;
  font-family: neue-haas-grotesk-display, sans-serif;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 60px auto;
  padding-left: 50px;
  padding-right: 50px;
}

/* FOTO */
.foto-contenedor {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.foto {
  width: 600px;
  transition: 0.6s;
}

.foto:hover {
  filter: grayscale(100%);
}

/* CV Section - FLEXBOX  */
.cv-section {
  display: flex;
  gap: 70px;
  padding: 20px 80px 100px 80px;
  max-width: 1000px;
  margin: 0 auto 140px auto;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.column {
  flex: 1;
  min-width: 300px;
  text-align: left;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 400;
  color: #f00505;
}

.cv-section h2 {
  font-family: "Nanum Myeongjo", serif;
  font-weight: 80;
  color: #f00505;
  margin-top: 40px;
  margin-bottom: 5px;
  font-size: 28px;
}

.cv-section h2 + h2 {
  margin-top: 25px;
}

.cv-section p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
  text-align: left;
}

/* CONTACT / FOOTER */
.contact-footer {
  position: fixed;
  left: 20px;
  bottom: 10px;
  font-size: 13px;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 400;
  color: #f00505;
  line-height: 1.1;
  text-align: left;
  background-color: #fffcf2;
  padding: 4px 8px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  h1 {
    font-size: 70px;
    line-height: 1.1;
    margin-top: 120px;
    margin-bottom: 35px; 
  }

  .intro {
    padding: 0 30px;
    margin-bottom: 45px;
    text-align: left;
  }

  .cv-section {
    flex-direction: column;
    padding: 0 30px 100px 30px;
    gap: 20px;
    margin-bottom: 80px;
  }

  .cv-section h2 {
    margin-top: 25px;
    margin-bottom: 2px;
  }

  .cv-section p {
    margin-bottom: 4px;
  }

  .column {
    margin-bottom: 10px;
  }

  .contact-footer {
    position: fixed;
    bottom: 0;
    left: 10px;
    right: 0;
    padding: 10px 15px;
    background-color: #fffcf2;
    line-height: 1.1;
    z-index: 999;
  }
}

/* ---------- PORTFOLIO ---------- */


.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  max-width: 1150px;
  margin: 0 auto 120px auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.project {
  text-align: center;
  color: #f00505;
}

.project img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.project img:hover {
  transform: scale(1.02);
  filter: grayscale(100%);
}

/* Títol de projecte */
.project h2 {
  font-family: "Nanum Myeongjo", serif;
  font-weight: 700;
  font-size: 22px;
  margin-top: 14px;
  margin-bottom: 4px;
  color: #f00505;
}

/* Subtítol */
.project p {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: #f00505;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .portfolio {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 70px;
    margin-top: 120px;
    margin-bottom: 40px;
    line-height: 1;
  }

  .portfolio {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 0 30px;
  }

  .project h2 {
    font-size: 20px;
    margin-top: 10px;
  }

  .project p {
    font-size: 14px;
  }

}
@media (min-width: 1280px) {
  .portfolio { grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 0 60px; }
  .cv-section { max-width: 1200px; padding: 30px 100px 120px 100px; }
  h1 { font-size: 120px; margin-bottom: 50px; }
}

@media (max-width: 475px) {
  .portfolio { grid-template-columns: 1fr; gap: 26px; padding: 0 18px; }
  .cv-section { flex-direction: column; padding: 0 18px 120px 18px; gap: 18px; }
  h1 { font-size: 44px; margin-top: 100px; margin-bottom: 25px; line-height: 1.1; }
  .intro { padding: 0 12px; font-size: 15px; }
  .project h2 { font-size: 16px; }
  .project p { font-size: 13px; }
  .contact-footer { left: 8px; bottom: 6px; padding: 8px 10px; }
  .foto { max-width: 100%; }
}