#projects-section {
  padding-top: 50px;
}
#projects-section .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.project {
  position: relative;
  max-width: 430px;
  text-align: center;
  padding: 20px;
  border-radius: 30px 0 30px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  background-color: rgba(201, 201, 201, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.overlay {
  background: linear-gradient(to top, rgba(83, 30, 114,0.6), rgba(0,0,0,0));
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 20px;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
.overlay p {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}
.project:hover .overlay {
  opacity: 1;
}
.project-text {
  max-width: 350px;
}

.project img {
  width: 100%;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.project:hover img {
  transform: scale(1.05);
}

.project-text {
  margin-top: 15px;
  transition: color 0.3s ease;
}

.project h3 {
  color: var(--color-purple);
  font-size: 1.4rem;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.projects-container {
  display: flex;
  flex-direction: column;
}
.row-project {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  gap: 50px;
  margin-bottom: 0;
  padding-bottom: 10px;
}
.row-project.show {
  opacity: 1;
  margin-top: 50px;
}
.row-project:first-child {
  max-height: none;
  opacity: 1;
}
#down-project {
  display: flex;
  align-self: center;
  width: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}
#down-project i {
  font-size: 40px;
  color: var(--color-purple);
  transition: 0.3s;
}
#down-project:hover {
  transform: translateY(5px);
}
#down-project:hover i {
  color: var(--color-purple-darker-darker);
}
#down-project.all-shown i {
  transform: rotateX(180deg);
}



/* 
.carousel{
  margin: 100px auto;
  width: 90%;
  border: 5px solid red;
  display: flex;
  overflow-x: auto;
}
.carousel::-webkit-scrollbar{
  display: none;
}
.group{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  animation: spin 5s infinite linear;
  padding-right: 1em;
}

.card{
  flex: 0 0 5em;
  height: 5em;
  padding: 1em;
  background-color: cornflowerblue;
  font-size: 3rem;
  border-radius: .2em;
  text-align: center;
  align-content: center;
}
@keyframes spin{
  from{translate: 0;}
  to {translate: -100%;}
} */