#skills {
  align-items: center;
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
  padding: 24px 0 48px 0;
  width: 100%;
}

#skills div {
  display: grid;
  grid-template-columns: repeat( 2, 1fr );
  grid-template-rows: repeat( 3, 1fr );
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  max-width: 900px;
  width: 80%;
}

#skills h2 {
  color: #1a1a1a;
  cursor: default;
  font-family: Roboto, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 32px;
  margin: 16px 0 32px 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;  
  -webkit-font-smoothing: antialiased;          
}

#skills article {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.04 );
  transition: box-shadow 0.2s ease, transform 0.2s ease;  
}

#skills article:hover {
  transform: translateY( -2px );
  box-shadow: 0 6px 16px rgba( 0, 0, 0, 0.08 );
}

#skills article h3 {
  align-items: center;  
  color: #1a1a1a; 
  cursor: default;
  display: flex;   
  font-family: Roboto, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  margin: 0 0 8px 0;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;  
  -webkit-font-smoothing: antialiased;         
}

#skills article h3 span {
  box-sizing: border-box;
  font-size: 20px;
  line-height: 24px;
  margin: 0 8px 0 0;
}

#skills article p {
  color: #1a1a1a; 
  cursor: default;  
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 24px;
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;  
  -webkit-font-smoothing: antialiased;          
}

@media only screen and ( max-width: 768px ) {    
  #skills div {
    width: 90%;
  }
}

@media only screen and ( max-width: 640px ) {    
  #skills div {
    grid-template-columns: repeat( 1, 1fr );
    grid-template-rows: repeat( 6, 1fr );    
  }

  #skills h2 {
    font-size: 28px;
  }
}
