/* Project Cards Section */

.pj-head-container {
  display: flex;
  width: 100%;
  margin-bottom: 30px;
}

.pj-head-left,
.pj-head-right {
  width: 50%;
}

.pj-head-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.pj-head-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

#projects {
  padding-top: 140px;
  padding-bottom: 80px;
}

.projects h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0;
  font-weight: 400;
  font-family: "FK Display";
  color: #2d3748;
}

.projects p {
  font-family: "FK Display";
}

@media (min-width: 1200.02px) {
  .blank-placeholder-project-card {
    flex: 0 0 calc((100% - 1160px) / 2);
    scroll-snap-align: start;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s;
    background-repeat: no-repeat;
    position: relative;
    display: block;
    text-decoration: none;
  }

  .projects-wrapper {
    margin-left: calc((100% - 1120px) / 2);
    margin-right: 0;
  }
}

@media (max-width: 1200px) {
  .projects-wrapper {
    margin-left: 50px;
  }
}

.project-cards {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 20px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-left: 10px;
}

.project-cards::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 336px;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s;
  background-repeat: no-repeat;
  position: relative;
  display: block;
  text-decoration: none;
}

@media (min-width: 868.02px) {
  .project-card {
    max-width: 336px;
  }
}

@media (max-width: 868px) {
  .project-card-bg-1 {
    background: url("../img/product-bg-icon-mobile.png") right 25px top
        40px no-repeat,
      url("../img/project-1-bg-mobile.png") center/cover no-repeat;
  }

  .project-card-bg-2 {
    background: url("../img/product-bg-icon-mobile.png") right 25px top
        40px no-repeat,
      url("../img/project-2-bg-mobile.png") center/cover no-repeat;
  }

  .project-card-bg-3 {
    background: url("../img/product-bg-icon-mobile.png") right 25px top
        40px no-repeat,
      url("../img/project-3-bg-mobile.png") center/cover no-repeat;
  }
}

@media (min-width: 868.02px) {
  .project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.6s ease;
    z-index: 0;
  }

  .project-card:hover::before {
    opacity: 1;
  }

  .project-card > * {
    position: relative;
    z-index: 1;
  }

  .project-card:last-child {
    margin-right: 30px;
  }

  .project-card-bg-1 {
    background-image: url("../img/project-1-bg.jpg");
  }

  .project-card-bg-1::before {
    background: url("../img/product-bg-icon-desktop.png") right 25px bottom
        20px no-repeat,
      url("../img/project-1-bg-hover.jpg") center/auto auto no-repeat;
  }

  .project-card-bg-2 {
    background-image: url("../img/project-2-bg.jpg");
  }

  .project-card-bg-2::before {
    background: url("../img/product-bg-icon-desktop.png") right 25px bottom
        20px no-repeat,
      url("../img/project-2-bg-hover.jpg") center/auto auto no-repeat;
  }

  .project-card-bg-3 {
    background-image: url("../img/project-3-bg.jpg");
  }

  .project-card-bg-3::before {
    background: url("../img/product-bg-icon-desktop.png") right 25px bottom
        20px no-repeat,
      url("../img/project-3-bg-hover.jpg") center/auto auto no-repeat;
  }
}

.project-img {
  padding: 40px 20px 20px 20px;
  height: 200px;
  background-position: center;
  background-size: cover;
}

.project-content {
  padding: 20px 20px 60px 20px;
}

.project-content h3 {
  font-size: 1.75rem;
  margin-bottom: 30px;
  color: #f5f7fa;
  font-weight: 600;
}

.project-content p {
  color: #cbd5e0;
  font-size: 1.25rem;
}

.project-nav {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.project-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #2d3748;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  fill: #2D3748;
}

.project-nav-btn path {
  fill: #2D3748;
}

.project-nav-btn:hover {
  background: rgba(45, 55, 72, 0.20);
  transform: scale(1.05);
}

.project-nav-btn:active {
  transform: scale(0.95);
  background: #2D3748;
  border-color: #2D3748;
  fill: #F5F7FA;
}

.project-nav-btn:active path {
  fill: #F5F7FA;
}

.project-nav-btn.disabled {
  opacity: 0.0;
  cursor: not-allowed;
}

/* Media Queries */
@media (max-width: 992px) {
  .project-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 868px) {
  .pj-head-container {
    margin-bottom: 0px;
  }

  .pj-head-left {
    justify-content: space-around;
    width: 100%;
  }

  .pj-head-right {
    display: none;
  }

  .projects-wrapper {
    padding-left: 24px;
    padding-right: 24px;
    margin-left: 0px;
  }

  .project-cards {
    flex-direction: column;
    max-width: 365px;
    margin: 0 auto;
    gap: 22px;
    padding-top: 0px;
  }

  .project-cards a {
    margin-bottom: -10px;
  }

  .projects h2 {
    font-size: 1.5rem;
    width: 100%;
    max-width: 346px;
    margin-left: 0px;
    text-align: left;
    padding-left: 0px;
    margin-left: -12px;
    padding-bottom: 12px;
  }

  .projects p {
    font-family: "Inter";
  }

  .project-content {
    padding-bottom: 30px;
  }

  .project-content h3 {
    font-size: 1.25rem;
    font-weight: normal;
    margin-bottom: 10px;
  }

  .project-content p {
    font-size: 1rem;
  }

  .project-card {
    flex: 0 0 85%;
    min-height: 276px;
  }

  .project-img {
    padding-top: 40px;
    height: 140px;
  }

  .project-img img {
    width: 40px;
  }
}

@media (max-width: 393.02px) {
  .project-cards {
    max-width: 90%;
  }
}
