@use "../base/mixin" as *;

.project {
  background: #0d0d0d;
  padding: 100px 48px;
}

.project__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.project__heading {
  margin-bottom: 60px;
}

.project__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 40px;
}

.project__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.project__card:hover .project__thumbImg {
  transform: scale(1.04);
}

.project__thumb {
  width: 100%;
  overflow: hidden;
  background: #1a1a1a;
}

.project__thumbImg {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.project__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project__name {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.4;
}

.project__company {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
}

.project__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.project__tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
}

.project__more {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

.btnMore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #ffffff;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s;

  &:hover {
    background: #ffffff;
    color: #0d0d0d;
    border-color: #ffffff;
  }
}

@include mo {
  .project {
    padding: 60px 20px;
  }

  .project__heading {
    margin-bottom: 36px;
  }

  .project__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project__more {
    margin-top: 48px;
  }
}
