/* ===== Projects Page ===== */
.projects {
  padding: 120px 10% 60px; /* padding top enough for fixed navbar */
  background: #0d0d0d;
  color: #fff;
  text-align: center;
}

.projects-heading {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #a64ac9;
}

.projects-intro {
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #ccc;
}

/* Project Card */
.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #101010; /* black box */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
  transition: transform .25s ease, box-shadow .25s ease;
  padding: 20px;
  margin-bottom: 50px;

  max-width: 800px; /* center box width */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ff4b5c;
}

.project-description {
  color: #d3d3d3;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.project-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}

.project-links a {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 8px;
  background: #a64ac9;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.project-links a:hover {
  background: #ff4b5c;
}

/* Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.gallery img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

.gallery img:hover {
  transform: rotate(-3deg) scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px; right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* ===== Scroll reveal ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
