.projects {
  padding: 120px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 94, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(255, 94, 0, 0.4);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card[data-gallery='proj1'] img,
.project-card[data-gallery='proj4'] img,
.project-card[data-gallery='proj6'] img {
  object-fit: contain;
  padding: 10px;
  transform: scale(0.92);
  transform-origin: center;
}

.project-card h3 {
  font-family: 'Orbitron', monospace;
  color: #ff5e00;
  margin: 15px;
}

.project-card p {
  margin: 0 15px 20px;
  opacity: 0.7;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.hidden {
  display: none;
}

.lightbox-img {
  max-width: 80%;
  max-height: 80%;
  border: none;
  box-shadow: none;
  background: transparent;
  outline: none;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #ff5e00;
  cursor: pointer;
  padding: 20px;
  z-index: 10;
}

.nav-btn.prev {
  left: 20px;
}

.nav-btn.next {
  right: 20px;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

@media (max-width: 768px) {
  .lightbox {
    padding: 0 8px;
  }

  .nav-btn {
    font-size: 2.4rem;
    padding: 8px;
    opacity: 0.3;
  }

  .nav-btn:active {
    opacity: 0.65;
  }

  .nav-btn.prev {
    left: 8px;
  }

  .nav-btn.next {
    right: 8px;
  }
}
