:root {
  --size: 24rem;
  --lb: rgba(0, 0, 0, 0.5);
}

.project-container {
  width: var(--size);
  height: var(--size);
  display: grid;
  grid-template-columns: repeat(2, 50%);
  grid-template-rows: repeat(2, 50%);
  justify-items: center;
  align-items: center;
  align-self: center;
  filter: drop-shadow(0px 0px 7px rgba(1, 1, 1, .7));
  /* background-color: rgba(210, 210, 210, 0.7); */

}
.project-image {
  grid-column: 1/span 2;
  grid-row: 1 /span 2;
  width: var(--size);
  height: var(--size);
  background-size: cover;
  clip-path: polygon(
    20% 20%,
    50% 20%,
    50% 20%,
    80% 20%,
    80% 50%,
    80% 50%,
    80% 80%,
    50% 80%,
    50% 80%,
    20% 80%,
    20% 50%,
    20% 50%
  );
  transition: all 0.7s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}


h4,
ul,
span {
  padding: 0;
  margin: 0;
}
.lang,
.tech {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  z-index: 1;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}
.lang ul li,
.tech ul li {
  list-style: none;
  max-width: 5.5rem;

}
.tech {
  grid-column: 2;
  grid-row: 2;
}
.tech ul li span {
  width: 10px;
  height: 10px;
  border-radius: 50px;
  display: inline-block;
}
.year {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  z-index: 1;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}
.year h4 {
  margin-bottom: 8px;
}
.year span {
  width: 20px;
  height: 20px;
  padding: 5px;
}
.project-name {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  justify-self: center;
  font-weight: 600;
  z-index: 1;
  transition: all 0.7s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}
.project-image {
  display: flex;
  justify-content: center;  
  align-items: center;      
  background-color: rgba(230, 230, 230, 0.8);
  z-index: 1;
}
.project-image img {
  transform: scale(0.5); 
  max-width: 100%;
  height: auto;


}
.project-image:hover {
  clip-path: polygon(
    20% 0%,
    50% 0%,
    50% 20%,
    100% 20%,
    100% 50%,
    80% 50%,
    80% 100%,
    50% 100%,
    50% 80%,
    0% 80%,
    0% 50%,
    20% 50%
  );
  transform: rotate(-15deg);
  transition: all 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}
.project-image:hover ~ *:not(.project-links){
  opacity: 1;
  transform: rotate(-15deg);
  transition: all 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}
