.projects {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  padding: 24px;
  gap: 24px;
}

.projects-header {
  width: 100%;
  background-color: var(--dark-gray-color);
  border-radius: 12px;
  padding: 48px 192px 48px 40px;
  gap: 16px;
  font-family: var(--roboto-flex-font);
  font-weight: 600;
  font-size: var(--title-size);
  text-transform: uppercase;
  color: var(--light-color);

  span{
    color: var(--logo-color);
  }
}

.projects-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.projects-item{
  width: 100%;
  border-radius: 24px;
  border: 2px solid var(--border-gray-color);
  padding: 24px;
  gap: 24px;
  height: 480px;
  display: flex;
}

.projects-right{
  height: 432px;
  width: 544px;
  border-radius: 12px;
  padding: 32px;
  gap: 24px;
  background-color: var(--dark-gray-color);
  display: flex;
  flex-direction: column;
}

.projects-name {
  gap: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  color: var(--light-color);
  font-family: var(--roboto-flex-font);
  font-weight: 500;
  font-size: 24px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  padding-left: 72px;
}

.projects-name img {
  width: 56px;
  height: 56px;
  position: absolute;
  left: 0;
}

.arrow-default {
  opacity: 1;
}

.arrow-hover {
  opacity: 0;
}

.projects-name:hover .arrow-default {
  animation: smoothFadeOut 0.25s ease forwards;
}

.projects-name:hover .arrow-hover {
  animation: smoothFadeIn 0.25s ease forwards;
}

@keyframes smoothFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}

@keyframes smoothFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.projects-flags{
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;

  div{
    width: fit-content;
    padding: 10px 16px;
    gap: 8px;
    border-radius: 100px;
    background-color: var(--border-gray-color);
    display: flex;
    align-items: center;

    a{
      font-family: var(--roboto-flex-font);
      font-weight: 400;
      font-size: 18px;
      color: var(--light-gray-color);
    }

    span{
      font-family: var(--roboto-flex-font);
      font-weight: 500;
      font-size: 18px;
      color: var(--light-color);
    }

    img{
      width: 4px;
      height: 4px;
    }
  }
}

.projects-description{
  font-family: var(--roboto-flex-font);
  font-weight: 400;
  font-size: 18px;
  color: var(--light-gray-color);
}

.projects-mockup{
  width: 544px;
  height: 432px;
  max-width: 672px;
  min-height: 225.83px;
  opacity: 1;

  img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
}

.projects-left{
  width: 544px;
  height: 432px;
  gap: 24px;
  display: flex;
  flex-direction: column;
}

.projects-info{
  background-color: var(--dark-gray-color);
  height: 344px;
  gap: 24px;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.projects-tags{
  width: 400px;
  height: 156px;
  gap: 12px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;

  a{
    width: fit-content;
    height: 44px;
    padding: 10px 16px;
    gap: 8px;
    border-radius: 100px;
    background-color: var(--border-gray-color);
    color: var(--light-color);
    display: flex;
    align-items: center;
    font-family: var(--roboto-mono-font);
    font-weight: 400;
    font-size: 16px;
  }

  span{
    color: var(--violet-color);
  }
}

.projects-team{
  gap: 12px;
  display: flex;
  flex-direction: column;
  color: var(--light-color);
  font-family: var(--roboto-flex-font);
  font-weight: 500;
  font-size: 18px;

  a{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    align-content: flex-start;

    span{
      background-color: var(--violet-color);
      border-radius: 50%;
      width: 44px;
      height: 44px;

      img{
        width: 44px;
        height: 44px;
        border-radius: 50%;
        object-fit: cover;
        filter: saturate(0%);
      }
    }
  }
}

.projects-btn{
  width: 100%;
  height: 64px;
  padding: 18px 24px;
  border-radius: 12px;
  border-bottom-width: 1px;
  background-color: var(--dark-violet-color);
  color: var(--dark-color);
  font-family: var(--roboto-mono-font);
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-demo{
  display: none;
}

.projects-btn:hover, .projects-demo:hover{
  background-color: var(--pp-btn-bgc-hover);
  color: var(--pp-btn-txt-hover);
}

@media screen and (max-width: 786px) {
  .projects{
    gap: 12px;
    padding: 0;
  }

  .projects-header{
    border-radius: 12px;
    padding: 24px 16px;
    gap: 24px;
    font-size: 28px;
    font-weight: 600;
  }

  .projects-content{
    gap: 12px;
    display: flex;
    flex-direction: column;
  }

  .projects-item{
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    padding: 8px;
    gap: 8px;
    height: auto;
  }

  .projects-flags{
    gap: 8px;

    div{
      border-radius: 100px;
      padding: 6px 12px;
      gap: 6px;

      a, span{
        font-size: 12px;
      }
    }
  }

  .projects-description{
    font-size: 14px;
  }

  .projects-mockup{
    order: 1;
    width: 100%;
    height: auto;

    img{
      width: 100%;
      height: 272px;
      border-radius: 12px;
    }
  }

  .projects-right{
    order: 2;
    width: 100%;
    height: auto;
    padding: 16px;
    border-radius: 12px;
    gap: 12px;
  }

  .projects-name{
    font-size: 20px;

    img{
      width: 52px;
      height: 52px;
    }
  }

  .projects-left{
    display: none;
  }

  .projects-demo{
    width: 100%;
    height: 52px;
    display: flex;
    border-radius: 12px;
    padding: 16px 24px;
    background-color: var(--dark-violet-color);
    color: var(--dark-color);
    align-items: center;
    justify-content: center;
    font-family: var(--roboto-mono-font);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    order: 3;
  }

  .projects-name {
    font-size: 20px;
    padding-left: 68px;
  }

  .projects-name img {
    width: 52px;
    height: 52px;
  }
}