/* =====================================================
   PROJECTS PAGE STYLES
===================================================== */

.projects-page {
  max-width: 1300px;
  width: 92%;
  margin: auto;
  padding-top: 150px;
  padding-bottom: 100px;
}

.page-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  letter-spacing: -1px;
}

.page-title span {
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
  font-size: 16px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   CATEGORY FILTERS
===================================================== */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.proj-filter-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
}

.proj-filter-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary-cyan);
  border-color: rgba(56, 189, 248, 0.3);
}

.proj-filter-btn.active {
  background: var(--primary-cyan);
  color: #000;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* =====================================================
   PROJECT GRID
===================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   PROJECT CARD
===================================================== */
.project-card {
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--bg-dark);
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .card-img-wrapper img {
  transform: scale(1.08);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 10px;
}

.card-body p {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* TAGS */
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tags span {
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary-cyan);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Fira Code', monospace;
}

/* BUTTONS */
.actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary-cyan);
  color: #000;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
}

.btn:hover {
  background: #0284c7;
  color: #fff;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.btn.outline {
  background: transparent;
  color: var(--primary-cyan);
  border: 1px solid var(--primary-cyan);
}

.btn.outline:hover {
  background: var(--primary-cyan);
  color: #000;
}

@keyframes projFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}