
/* General */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Josefin Sans', Arial, sans-serif;
  font-weight: 300;
  background: #ffffff;
  color: #333333;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  box-shadow: 0px 1px 0px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.5em;
  font-weight: 700;
}

.logo-main {
  color: #000000;
  font-weight: 700;
}

.logo-sub {
  color: #777777;
  font-weight: 300;
}

/* Menu */
.menu-toggle {
  display: none;
  font-size: 2em;
  cursor: pointer;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 400;
  font-size: 1em;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #888;
}

nav ul li a .first-letter {
  font-size: 1.2em;
  font-weight: 400;
}

/* Separator */
hr {
  margin: 0;
  border: 0;
  border-top: 1px solid #ddd;
}

/* Main */
main {
  padding-top: 45px;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  background: url('images/hero.jpg') center center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  opacity: 0;
}

.hero img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  position: absolute;
  z-index: -1;
}

.hero.active {
  animation: fadeInHero 1.5s ease-out forwards;
}

@keyframes fadeInHero {
  0% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* Sections */
.section {
  padding: 20px 50px;
  margin: 0 auto;
}

.section-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
}

.left-column h2 {
  font-size: 1.5em;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  margin: 0;
}

.title-main {
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-description {
  font-size: 1.1em;
  font-weight: 300;
  color: #777;
  line-height: 1.6em;
}

/* Projects (Home) */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.project-row {
  display: flex;
  gap: 40px;
}

.project-name {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: right;
  padding: 10px;
}

.project-title {
  font-size: 1.3em;
  font-weight: 300;
  color: #777;
}

.project-row .project-description {
  font-size: 0.95em;
  font-weight: 300;
  color: #aaa;
  margin-top: 8px;
}

.project-image {
  flex: 1;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0px;
}

.project-inline-image {
  margin-top: 30px;
  width: 75%;
  max-width: 600px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto; /* centers the SKETCH */
  opacity: 0.50; /* controls transparency, 1 = fully visible, 0 = invisible */
}


/* Prevent underline on hover for project links */
.project-row-link:hover {
  text-decoration: none;
}
.project-row-link:hover .project-title,
.project-row-link:hover .project-description {
  text-decoration: none;
}

/* Smooth image zoom on hover */
.project-row-link .project-image img {
  transition: transform 0.4s ease;
}

.project-row-link:hover .project-image img {
  transform: scale(1.01);
}




/* Footer */
footer {
  background: #FFD900; /* FOOTER BG COLOR */
  color: #fff;
  padding: 40px 50px;
  margin-top: 80px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-left .logo {
  font-size: 1em;
}

.footer-logo-white {
  color: #fff;
}

.footer-right {
  text-align: right;
  font-size: 0.9em;
}

.footer-right a {
  color: #fff;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  margin-left: 15px;
  display: inline-block;
}

.social-icons img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* Make SVG or PNG white if black */
}

footer a,
footer a:link,
footer a:visited {
  color: #fff;
}


footer a:hover {
  color: #fff;
  font-weight: 300;
  text-decoration: none; /* optional: keep it clean */
}


/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Project Page */
.project-page {
  padding: 0;
}

.project-hero img {
  width: 100%;
  height: 65vh;
  object-fit: cover;
  display: block;
  margin-top: 110px;
}

.project-content.two-columns {
  display: flex;
  gap: 50px;
  padding: 35px 50px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.project-text {
  flex: 1;
}

.project-text h1 {
  font-size: 1.4em;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 10px;
}

.project-location {
  font-size: 1em;
  color: #999;
  margin-bottom: 30px;
  line-height: 1.5em;
}

.project-text .project-description {
  font-size: 1.1em;
  font-weight: 300;
  color: #444;
  line-height: 1.8em;
}

.project-gallery {
  flex: 1;
  display: grid;
  gap: 50px;
  margin-top: 145px;
}

.project-gallery img {
  width: 100%;
  border-radius: 0px;
  transition: transform 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.02);
}

/* Responsive CSS PARA MOVILES */

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
    color: #333;
  }
  
    .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-right {
    text-align: center;
  }

  .social-icons a {
    margin-left: 10px;
    margin-right: 10px;
  }
  
    .back-link {
    text-align: center;
    display: block;
    margin: 40px auto 0;
  }
  
    .project-image img {
    width: 90%;
    margin: 0 auto;
    display: block;
  }

  header {
    flex-direction: column;
    text-align: center;
  }

  nav {
    display: none;
    background: #FFD900; /* dark semi-transparent background */
    padding: 20px 0;
    position: absolute;
    top: 120px; /* push below fixed header */
    width: 40%;
    z-index: 999;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    margin: 0;
    padding: 0;
    align-items: center;
  }

  nav ul li {
    margin: 12px 0;
  }

  nav ul li a {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.1em;
  }

  nav ul li a:hover {
    color: #ddd;
  }
  
  
  main {
  padding-top: 50px;
}

  .hero {
  position: relative;
  width: 100%;
  height: 90vh;
  background: url('images/hero.jpg') center center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  opacity: 0;
}

.section {
  padding: 20px 5px;
  margin: 0 auto;
}

  .section-content,
  .project-row,
  .project-content.two-columns {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 20px 20px;
  }

  .project-name {
    font-size: 1em;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .project-gallery {
    margin-top: 0; /* remove top margin on mobile */
        width: 90%;
  }
}


/* Global link styles */
a,
a:link,
a:visited {
  color: #333;  /* or your preferred color */
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #888;
  text-decoration: underline;
}

/* VOLVER link styles */

.back-link-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 50px;
  text-align: right;
}

.back-link {
  color: #333;
  font-size: .9em;
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s;
}

.back-link:hover {
  color: #888;
}

.back-link .first-letter {
  font-size: 1.1em;
  font-weight: 400;
}


/* Carrusel de fotos */

.carousel-container {
  position: relative;
  background-color: #f5f5f5;
  padding: 30px 0;
  margin-top: 40px;
}

.carousel-title {
  text-align: center;
  margin-bottom: 15px;
}

.carousel-title h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.carousel-wrapper {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 10px;
  padding: 10px 40px;
  scroll-behavior: smooth;
}

.carousel-wrapper::-webkit-scrollbar {
  height: 6px;
}
.carousel-wrapper::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.carousel-wrapper a {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.carousel-wrapper a img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.carousel-wrapper a img:hover {
  transform: scale(1.05);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  z-index: 10;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.carousel-nav:hover {
  background-color: #e0e0e0;
}

.carousel-nav.left {
  left: 10px;
}

.carousel-nav.right {
  right: 10px;
}

@media (max-width: 768px) {
  .carousel-wrapper {
    padding: 10px 20px;
    gap: 8px;
  }

  .carousel-wrapper a img {
    width: 90px;
    height: 90px;
  }

  .carousel-nav {
    display: none; /* Oculta las flechas en móviles */
  }

  .carousel-title h2 {
    font-size: 1.3rem;
  }

  .carousel-container {
    padding: 20px 0;
  }
}