/* Projects Section */
.projects-section {
  padding: 40px;
  background-color: var(--color-black);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto 50px auto;
  padding: 0;
  box-sizing: border-box;
}

.projects-title {
  font-size: var(--font-size-h2);
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.projects-title .text-primary {
  color: #54b248;
}

.desktop-only-btn {
  display: flex !important;
}

.mobile-only-btn-wrapper {
  display: none !important;
}

.projects-view-all {
  background-color: var(--color-primary);
  color: #fff;
  border: 1.5px solid var(--color-primary);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(84, 178, 72, 0.2);
}

.projects-view-all:hover {
  background-color: transparent;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(84, 178, 72, 0.3);
}

.projects-grid {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 20px;
}

.projects-grid::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 340px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  margin-bottom: 40px;
  transition: all 0.4s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(84, 178, 72, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-card-img {
  height: 340px;
  width: 100%;
  background-size: 110%;
  background-position: center;
  border-radius: 12px;
  transition: all 0.4s ease;
  position: relative;
}

.project-card-footer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  background-color: rgba(234, 246, 229, 0.95);
  backdrop-filter: blur(8px);
  color: #54b248;
  border: 2px solid #54b248;
  padding: 12px 24px;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  border-radius: 10px;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(84, 178, 72, 0.25);
  transition: all 0.3s ease;
  min-width: 260px;
  max-width: 90%;
  line-height: 1.2;
}

.project-card:hover .project-card-footer {
  background-color: #54b248;
  color: #fff;
  transform: translate(-50%, 40%) scale(1.05);
  box-shadow: 0 15px 35px rgba(84, 178, 72, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .projects-section {
    padding: 60px 20px;
  }

  .projects-header {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    padding: 0;
  }

  .projects-title {
    font-size: 32px;
  }

  .projects-grid {
    flex-direction: column;
    align-items: center;
    overflow-x: visible;
  }

  .project-card {
    min-width: 100%;
    width: 100%;
    max-width: 400px;
    margin-bottom: 80px;
  }

  .project-card-img {
    height: 300px;
  }

  .desktop-only-btn {
    display: none !important;
  }

  .mobile-only-btn-wrapper {
    display: flex !important;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }
}

