/* Projects */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  }

  .card-gal {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  }

  .card-gal:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .card-gal a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  }

  .card-gal img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
  }

  .card-gal:hover img {
  transform: scale(1.05);
  }

  .card-gal-content {
  padding: 15px;
  text-align: center;
  transition: color 0.3s;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  }

  .image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
  }

  .project-year {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #00a0de;
  color: #fff;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 160, 222, 0.3);
  }

  .card-gal h3 {
  font-weight: bold;
  margin: 10px 0;
  font-size: 1.2em;
  transition: color 0.3s;
  flex-shrink: 0;
  }

  .card-gal p {
  font-size: 0.9em;
  color: #64748B;
  transition: color 0.3s;
  margin: 0;
  line-height: 1.5;
  }

  .card-gal:hover .card-gal-content {
  background: #00A0DF;
  color: #fff;
  }

  .card-gal:hover .card-gal-content h3,
  .card-gal:hover .card-gal-content p {
  color: #fff;
  }

  .card-gal:hover .project-year {
  background: rgba(255, 255, 255, 0.95);
  color: #00A0DF;
  transform: scale(1.05);
  }

/* Future Project Placeholders */
.future-project {
  border: 2px dashed #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 320px;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.future-project:hover {
  border-color: #00A0DF;
  background: #f0f9ff;
  transform: none;
  box-shadow: 0 4px 8px rgba(0, 160, 223, 0.1);
}

.future-project-content {
  text-align: center;
  padding: 20px;
}

.future-project-content i {
  opacity: 0.6;
}

.future-project-content h4 {
  margin: 10px 0 5px 0;
  font-weight: 500;
}

.future-project-content p {
  margin: 0;
  font-size: 0.85em;
} 

/* Pagination */
.project-page-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 75px;
}

.project-page-nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
}

.project-page-nav li {
  display: inline-block;
}

.project-page-nav a {
  text-decoration: none;
  color: #333;
  padding: 8px 12px;
  border-radius: 5px;
  transition: 0.3s ease-in-out;
}

.project-page-nav a:hover {
  color: var(--accent-color);
}

.project-page-nav .active a {
  color: var(--accent-color);
  font-weight: bold;
}

/* Responsive adjustments for equal heights */
@media (max-width: 768px) {
  .card-gal img {
    height: 180px;
  }
  
  .future-project {
    min-height: 280px;
  }
}

@media (max-width: 576px) {
  .card-gal img {
    height: 160px;
  }
  
  .future-project {
    min-height: 240px;
  }
}
