/* Custom Project Card Styles for projects.html */

/* Filter Buttons */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(99,102,241,0.1);
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.filter-btn:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
  color: var(--primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.2);
}

.custom-projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  margin-top: 2rem;
}

.custom-project-card {
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(99,102,241,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 240px;
  min-width: 180px;
  max-width: 260px;
  min-height: 200px;
  padding: 1.2rem 1rem 1.2rem 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.custom-project-card:hover {
  box-shadow: 0 8px 32px rgba(99,102,241,0.18);
  transform: translateY(-6px) scale(1.03);
}

/* Regular Image for Web Projects */
.custom-project-image {
  width: 110%;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #e0e7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.custom-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* Image Slider for Flutter Projects */
.custom-project-image-slider {
  width: 110%;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #e0e7ff;
  position: relative;
  flex-shrink: 0;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slider-image.active {
  opacity: 1;
}

.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.slider-dot:hover {
  background: rgba(255,255,255,0.8);
}

.custom-project-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  flex: 1;
  min-height: 0;
}

.custom-project-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #232946;
  margin-bottom: 0.2rem;
  text-align: center;
  width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  line-height: 1.3;
  min-height: 2.2rem;
}

.custom-project-desc {
  font-size: 0.93rem;
  color: #6b7280;
  margin-bottom: 0.2rem;
  line-height: 1.4;
  width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  flex: 1;
  min-height: 0;
}

.custom-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  width: 100%;
  flex-shrink: 0;
}

.custom-project-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.18rem 0.8rem;
  box-shadow: 0 2px 8px rgba(99,102,241,0.06);
}

/* Project Links - Only for Web Projects */
.custom-project-links {
  display: flex;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}

.custom-project-link {
  width: 100%;
  text-align: center;
  background: linear-gradient(90deg, rgba(99,102,241,0.1), rgba(99,102,241,0.05));
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(99,102,241,0.1);
}

.custom-project-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,0.2);
}

.custom-project-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.38rem 1.3rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(99,102,241,0.18);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  z-index: 2;
  display: inline-block;
  border: none;
  outline: none;
}

.custom-project-btn:hover {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.22);
}

/* Hide cards that don't match filter */
.custom-project-card.hidden {
  display: none;
}

@media (max-width: 600px) {
  .projects-filter {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
  
  .filter-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  
  .custom-project-card {
    width: 98vw;
    min-width: 0;
    max-width: 100vw;
    min-height: 160px;
    padding: 0.8rem 0.5rem 0.8rem 0.5rem;
    border-radius: 12px;
  }
  .custom-project-image, .custom-project-image img,
  .custom-project-image-slider {
    height: 70px;
    border-radius: 8px;
  }
  .slider-dots {
    bottom: 4px;
    gap: 4px;
  }
  .slider-dot {
    width: 6px;
    height: 6px;
  }
  .custom-project-title {
    font-size: 0.98rem;
    -webkit-line-clamp: 2;
    min-height: 2.4rem;
  }
  .custom-project-desc {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }
  .custom-project-tag {
    font-size: 0.75rem;
    padding: 0.12rem 0.5rem;
  }
  .custom-project-link {
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
  }
  .custom-project-btn {
    font-size: 0.85rem;
    padding: 0.22rem 0.8rem;
    top: 6px;
    right: 6px;
  }
}

