.project {
  background: var(--project-background) ;
  border-radius: 0;
  box-shadow: 9px 9px 0px var(--border-primary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: 'Space Grotesk', sans-serif;
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  max-height: none;
  min-height: 50vh;
  margin-bottom: 50px;
  border: 2px solid var(--border-primary);
  padding: 3rem;
}

.project h2 {
  color:var(--text-primary);
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem;
}

.project .box-container .box {
  flex: 1 1 30rem;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  height: 30rem;
  width: 30rem;
  border: 4px solid var(--border-primary);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.project .box-container .box:hover {
  transform: translate(-2px, -2px);
}

.project .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.project .box-container .box:hover img {
  transform: scale(1.05);
}
.project .box-container .box .content {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 85%;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  backdrop-filter: blur(6.2px);
  -webkit-backdrop-filter: blur(6.2px);
  display: flex;
  flex-direction: column;
  color: white;
}
.project .box-container .box .content .tag {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
  width: 100%;
  padding-left: 1rem;
  background: rgba(0, 0, 0, 0.832);
  color: white;
}
.project .box-container .box .content .tag h3 {
  font-size: 2rem;
}
.project .box-container .box:hover .content {
  top: 25%;
}
.project .desc {
  margin: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project .desc p {
  font-size: 1.7rem;
}
.project .desc .btns {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 2rem;
}
.project .desc .btns .btn {
  line-height: 0;
  display: inline;
  padding: 1.5rem 2.5rem;
  border-radius: 0.5rem;
  font-size: 2rem;
  color: #000000;
  background: rgb(253, 253, 253);
  margin-right: 2rem;
}
.project .desc .btns .btn:hover {
  background: #000000;
  color: rgb(255, 255, 255);
  border: 3px solid white;
}
.project .viewall {
  display: flex;
  justify-content: center;
}
.project .viewall .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 0.5em;
  color: var(--text-primary);
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0px 5px 10px rgba(65, 84, 241, 0.4);
  text-align: center;
  transition: background-color 0.2s ease, 
              color 0.2s ease,
              box-shadow 0.2s ease;
}

.project .viewall .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: 'Abel', sans-serif;
}

.project .viewall .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.project .viewall .btn:hover {
  background: #fff;
  color: var(--text-primary);
}

.project .viewall .btn:hover i {
  transform: translateX(5px);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .project {
    width: 95%;
    padding: 2rem;
  }
  
  .project .box-container {
    margin: 1rem 0;
    gap: 1rem;
  }
  
  .project .box-container .box {
    height: 35rem;
  }
  
  .project .box-container .box .content .tag {
    height: 5rem;
    padding-left: 1.5rem;
  }
  
  .project .box-container .box .content .tag h3 {
    font-size: 2.5rem;
  }
  
  .project .desc p {
    font-size: 2rem;
  }
  
  .project .desc .btns .btn {
    padding: 1.2rem 2rem;
    font-size: 1.6rem;
    margin-right: 1rem;
  }
  
  .project .viewall .btn {
    padding: 1.4rem 2.5rem;
  }
  
  .project .viewall .btn span {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .project {
    width: 95%;
    padding: 1.5rem;
  }
  
  .project .box-container {
    margin: 0.5rem 0;
  }
  
  .project .box-container .box {
    height: 32rem;
  }
  
  .project .box-container .box .content .tag {
    height: 4.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .project .box-container .box .content .tag h3 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .project .desc {
    margin: 1rem;
  }
  
  .project .desc p {
    font-size: 2rem;
    line-height: 1.4;
  }
  
  .project .desc .btns {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .project .desc .btns .btn {
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    margin-right: 0;
    width: 100%;
    max-width: 200px;
    text-align: center;
  }
  
  .project .viewall .btn {
    padding: 1.2rem 2rem;
  }
  
  .project .viewall .btn span {
    font-size: 1.3rem;
  }
  
  .project .viewall .btn i {
    font-size: 1.3rem;
  }
}
