   body {
    font-family: Helvetica, sans-serif;
    background-color: #fdfcf7;
    font-weight: lighter;
    letter-spacing: -0.5px;
    margin: 0;
    padding: 0;
  }
  
  /* Barra de navegación */
  .navbar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    height: 60px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    gap: 20px;
  }
  
  .navbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .navbar-left img {
    height: 40px;
  }
  
  /* Título */
  .navbar-title {
    flex-grow: 1;
    text-align: left;
    font-weight: lighter;
    letter-spacing: -0.5px;
  }
  
  /* Menú en desktop (fila) */
  .dropdown {
    display: flex;
    flex: 1;
    justify-content: flex-end; 
    align-items: center;
    padding-right: 10px;
    min-width: 0;
  }
  
  .dropdown a {
    text-decoration: none;
    color: black;
    font-weight: lighter;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0 6px;
    transition: color 0.15s ease;
    letter-spacing: -0.5;
}
  
  /* Hover en desktop y móvil */
  .dropdown a:hover {
    color: #555;
    transform: translateY(0px);
  }
  
  /* Icono hamburguesa oculto en desktop */
  .navbar-right img {
    height: 22px;
    cursor: pointer;
    display: none;
  }
  
  /* Responsive */
  
  /* DESKTOP >768px */
  @media (max-width: 1100px) and (min-width: 769px) {
    .dropdown {
      gap: 10px;
    }
    .dropdown a {
      font-size: 15px;
      padding: 0 5px;
    }
  }
  
  @media (max-width: 900px) and (min-width: 769px) {
    .dropdown {
      gap: 10px;
    }
    .dropdown a {
      font-size: 14px;
      padding: 0 6px;
    }
  }
  
  /* MÓVIL <768px */
@media (max-width: 768px) {
    .navbar {
      justify-content: space-between;
    }
  
    .navbar-title {
      flex-grow: 1;
      text-align: left;
    }
  
    /* Hamburguesa */
    .dropdown {
        display: none;
        position: absolute;
        top: 70px;
        right: 20px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        flex-direction: column;
        min-width: 180px;
        overflow: hidden;
      }
  
    /* Apartados */
    .dropdown > a {
        display: block;
        padding: 8px 8px;
        margin: 0;
        border-bottom: 1px solid #000000;
        text-decoration: none;
        color: black;
      }
  
    .dropdown > a:last-child {
      border-bottom: none;
    }
  
    /* Hover para móvil */
    .dropdown a:hover {
      color: #555;
    }
  
    .dropdown.active {
      display: flex;
    }
  
    /* Icono hamburguesa */
    .navbar-right img {
      display: block;
    }
  }

/* FOOTER */
.footer {
  background-color: #faf9f7;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 30px 20px;
  font-family: Helvetica, sans-serif;
  color: #000;
  letter-spacing: -0.3px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

/* Columna esquerra */
.footer-left {
  flex: 1 1 250px;
}

.footer-name {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.4px;
}

.footer-subtitle {
  font-size: 13px;
  color: #666;
  margin: 0;
}

/* Columna dreta */
.footer-right {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: lighter;
  transition: color 0.25s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: #555;
  transform: translateX(3px);
}

.footer-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.footer-link:hover .footer-icon {
  opacity: 1;
}

/* Part inferior */
.footer-bottom {
  text-align: center;
  margin-top: 25px;
  font-size: 12px;
  color: #888;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 20px 10px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

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

  .footer-link {
    justify-content: center;
  }

  .footer-bottom {
    margin-top: 15px;
    font-size: 11px;
  }
}

/* QUI SOC */
.qui-soc-section {
  max-width: 1200px;
  margin: 140px auto 80px;
  padding: 0 20px;
}

.qui-soc-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.qui-soc-img img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qui-soc-text {
  flex: 1 1 500px;
  color: #222;
}

.qui-soc-text h1 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -1.7px;
}

.qui-soc-text h1 img {
  height: 28px;              
  width: auto;               
  vertical-align: middle;    
  margin-left: 8px;          
  transform: translateY(-2px); 
}

.qui-soc-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
  letter-spacing: -0.2px;
  color: #444;
}

.qui-soc-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 24px;
  background-color: #49341d;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.qui-soc-btn:hover {
  background-color: #49341d;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .qui-soc-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .qui-soc-text h1 {
    font-size: 24px;
  }

  .qui-soc-text p {
    font-size: 15px;
  }
}




/* PROJECTES */
.projectes-section {
  max-width: 1100px;
  margin: 140px auto 80px;
  padding: 0 20px;
  text-align: center;
}
.projectes-minilogos img{
  width: 70px;
}
.projectes-title {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -2px;
}

.projectes-subtitle {
  color: #555;
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.projectes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  justify-items: center;
}

.projecte {
  text-decoration: none;
  color: #000;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.projecte img {
  width: 100%;
  max-width: 320px;
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projecte:hover img {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.projecte h3 {
  margin-top: 12px;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.3px;
  transition: color 0.25s ease;
}

.projecte:hover h3 {
  color: #555;
}

@media (max-width: 600px) {
  .projectes-section {
    margin-top: 110px;
  }
  .projecte img {
    max-width: 90%;
  }
}

/* SUBMENU PORTFOLI */
.submenu_enlaces {
  display: none;
}
.submenu_enlaces :hover {
  display: flex;
}



/* CONTACTE */
html {
  scroll-behavior: smooth;
}



/* HOME SECTION */
.home-section {
  max-width: 1200px;
  margin: 100px auto 100px; /* deixa espai pel navbar */
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px;
  flex-direction: row-reverse;
}

/* Contingut esquerra */
.home-content {
  flex: 1 1 500px;
  text-align: left;
}

.home-content img:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* Nom principal */
.home-content h1 {
  font-size: 80px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -6px;
}

/* Descripció */
.home-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
  max-width: 500px;
}

/* Botó */
.home-button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 25px;
  background-color: #49341d;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.home-button:hover {
  background-color: #49341d;
  transform: translateY(-3px);
}

/* Imatge esquerra */
.home-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

.home-image img {
  width: 630px;
  height: 600px;
  object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .home-section {
    flex-direction: column-reverse;
    text-align: center;
    margin-top: 100px;
    gap: 30px; /* menys espai entre elements */
    padding: 20px;
  }

  .home-content {
    text-align: center;
  }

  .home-content h1 {
    font-size: 30px;
    margin-bottom: 10px;
    letter-spacing: -2px;
  }

  .home-content p {
    font-size: 16px;
    margin: 0 auto 20px;
    max-width: 90%;
  }

  .home-button {
    font-size: 14px;
    padding: 10px 22px;
  }

  .home-image img {
    width: 410px;  /* més gran en mòbil */
    height: 400px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: auto;
  }
}



/* APLICANT ELS TEUS ESTILS */
body {
  font-family: Helvetica, sans-serif;
  background-color: #fdfcf7;
  font-weight: lighter;
  letter-spacing: -0.5px;
  margin: 0;
  padding: 0;
}

/* Barra de navegación */
.navbar {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1200px;
  height: 60px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  gap: 20px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-left img {
  height: 40px;
}

/* Título */
.navbar-title {
  flex-grow: 1;
  text-align: left;
  font-weight: lighter;
  letter-spacing: -0.5px;
}

/* Menú en desktop (fila) */
.dropdown {
  display: flex;
  flex: 1;
  justify-content: flex-end; 
  align-items: center;
  padding-right: 10px;
  min-width: 0;
}

.dropdown a {
  text-decoration: none;
  color: black;
  font-weight: lighter;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0 6px;
  transition: color 0.15s ease;
  letter-spacing: -0.5;
}

.dropdown a:hover {
  color: #555;
}

/* Icono hamburguesa oculto en desktop */
.navbar-right img {
  height: 22px;
  cursor: pointer;
  display: none;
}

/* SECCIÓ PROJECTES */
.projectes-section {
  max-width: 1100px;
  margin: 140px auto 80px;
  padding: 0 20px;
  text-align: center;
}
.projectes-minilogos img {
  width: 70px;
  margin-bottom: 10px;
}
.projectes-title {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -2px;
}
.projectes-subtitle {
  color: #555;
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.6;
}
.projectes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  justify-items: center;
}

/* Targeta de Projecte */
.projecte {
  position: relative;
  text-decoration: none;
  color: #000;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
}

.projecte img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #eee;
  display: block;
}

.projecte:hover img {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.projecte h3 {
  margin-top: 12px;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.3px;
  transition: color 0.25s ease;
}

/* Submenú desplegable per al Porfolio */
.submenu-projecte {
  display: none;
  flex-direction: column;
  background: white;
  margin-top: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: left;
  animation: fadeIn 0.3s ease;
}

.submenu-projecte.active {
  display: flex;
}

.submenu-projecte a {
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.submenu-projecte a:last-child {
  border-bottom: none;
}

.submenu-projecte a:hover {
  background: #f9f9f9;
  color: #555;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FOOTER */
.footer {
  background-color: #faf9f7;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 30px 20px;
  color: #000;
  letter-spacing: -0.3px;
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-left { flex: 1 1 250px; }
.footer-name { font-size: 18px; font-weight: 500; margin: 0 0 4px; letter-spacing: -0.4px; }
.footer-subtitle { font-size: 13px; color: #666; margin: 0; }
.footer-right { flex: 1 1 250px; display: flex; flex-direction: column; gap: 6px; }
.footer-link {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: #000; font-size: 14px;
  font-weight: lighter; transition: color 0.25s ease, transform 0.2s ease;
}
.footer-link:hover { color: #555; transform: translateX(3px); }
.footer-icon { width: 18px; height: 18px; object-fit: contain; opacity: 0.85; }
.footer-bottom {
  text-align: center; margin-top: 25px; font-size: 12px; color: #888;
  border-top: 1px solid rgba(0,0,0,0.05); padding-top: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar { justify-content: space-between; }
  .navbar-title { flex-grow: 1; text-align: left; }
  .dropdown {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    flex-direction: column;
    min-width: 180px;
    z-index: 2000;
  }
  .dropdown.active { display: flex; }
  .dropdown > a {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
  }
  .navbar-right img { display: block; }
  .projectes-section { margin-top: 110px; }
  .footer-container { flex-direction: column; align-items: center; text-align: center; }
  .footer-right { align-items: center; }
}

html { scroll-behavior: smooth; }