/* Add dark overlay to Unsplash images in project cards */
.project-card {
  position: relative;
}

.project-image-container {
  position: relative;
  display: block;
}

.project-image-container img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.project-image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.28);
  border-radius: 8px;
  transition: background 0.3s ease;
  pointer-events: none;
}

.project-card:hover .project-image-container::before {
  background: rgba(0,0,0,0);
}
  overflow: hidden;
}

.project-card img {
  display: block;
  width: 100%;
  height: auto;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.28);
  transition: background 0.3s ease;
  .project-card:hover::before {
    background: rgba(0,0,0,0);
  }
  pointer-events: none;
  z-index: 1;
}

.project-card:first-child::before {
  background: rgba(0,0,0,0.38);
}

.project-card > *:not(img) {
  position: relative;
  z-index: 2;
}
/* Use a CSS variable for the blue used in the Projects title and project summaries */

/* Extract exact colors from header and projects title for consistency */
:root {
  --vs-blue: #2e7dff; /* Projects title blue, matches .projects-title */
  --vs-teal: #1de9b6; /* Header teal, matches .header or .btn if used */
}

.projects-title {
  color: transparent;
  background: linear-gradient(90deg, rgb(61, 132, 255) 60%, #00ffff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

/* Default project summary color matches Projects title */
.project-card p {
  color: var(--vs-blue) !important;
  transition: color 0.3s;
}

/* On hover, project summary color matches header teal */
.project-card:hover p {
  color: var(--vs-teal) !important;
}
/* ---------- Projects Page Styles ---------- */

.projects {
  min-height: 100vh;
  padding: 80px 5%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.projects-title {
    font-size: 2.5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.single-card-grid {
  grid-template-columns: minmax(280px, 360px);
  justify-content: center;
}

.project-card {
  background: #141414;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h2 {
  margin: 16px 0 8px;
  font-size: 1.4rem;
}

.project-card p {
  font-size: 0.95rem;
    font-size: 1.05rem;
  color: #ccc;
  padding: 0 1rem 1.5rem;
}

/* Filter Bar */
.filter-bar {
  background: #0a0a0a;
  padding: 2rem 5%;
  text-align: center;
}

.filter-btn {
  background: none;
  border: 1px solid #444;
  color: #ccc;
  padding: 0.6rem 1.4rem;
  margin: 0.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn:hover {
  border-color: #00ffff;
  color: #00ffff;
}

.filter-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* Simple fade-in animation */
.fade-in {
  animation: fade 0.4s ease-in;
}

@keyframes fade {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
