/* =======================================
   PROJECTS PAGE STYLING
   (used in projects.html)
========================================== */

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg);
  transition: background 0.3s, color 0.3s;
}

/* Individual Project Card */
.project-card {
  background: var(--bg);
    border: 2px solid var(--accent);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.project-card:nth-child(odd) {
  animation-delay: 0.1s;
}
.project-card:nth-child(even) {
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Thumbnail Image */
.project-thumb {
  width: 100%;
  height: 150px;
    border-radius: 8px;
  object-fit: contain;
    background: var(--bg);
  border-bottom: 2px solid var(--accent);
}

/* Card Text Content */
.project-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 1rem 1rem 0.5rem;
  text-align: left;
}

.project-short {
  color: var(--secondary);
  font-size: 0.95rem;
  margin: 0 1rem 1rem;
  line-height: 1.5;
}

/* Tags styling */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 1rem 1.2rem;
}

.tag {
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  transition: background 0.2s ease;
}

.tag:hover {
  background: #005fcc;
}

/* Links */
.project-card a {
  text-decoration: none;
  color: inherit;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .projects-gallery {
    padding: 2rem 1rem;
  }

  .project-thumb {
    height: 180px;
  }
}

