/* Redesigned modern project card style */
.modern-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 6px 32px rgba(30,41,59,0.10), 0 1.5px 6px rgba(30,41,59,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  min-height: 420px;
  position: relative;
}
.modern-card:hover {
  box-shadow: 0 12px 36px rgba(30,41,59,0.16), 0 2px 8px rgba(30,41,59,0.10);
  transform: translateY(-4px) scale(1.01);
}
.project-image {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  background: #f3f4f6;
}
.project-image img {
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
  display: block;
}
.status-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 0.45rem 1rem;
  border-radius: 0.7rem;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: capitalize;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.status-badge.need-help {
  background: linear-gradient(90deg, #ef4444 60%, #f87171 100%);
}
.status-badge.in-progress {
  background: linear-gradient(90deg, #22c55e 60%, #4ade80 100%);
}
.status-badge.completed {
  background: linear-gradient(90deg, #6366f1 60%, #818cf8 100%);
}
.bookmark-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(0,0,0,0.18);
  border: none;
  cursor: pointer;
  font-size: 1.35rem;
  color: #fff;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.bookmark-btn:hover {
  background: rgba(99,102,241,0.25);
}
.project-info {
  padding: 1.5rem 1.3rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  background: #fff;
}
.project-header {
  margin-bottom: 0.5rem;
}
.project-header h3 {
  font-size: 1.22rem;
  font-weight: 800;
  margin: 0;
  color: #18181b;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.project-description {
  color: #475569;
  font-size: 1.01rem;
  margin-bottom: 0.7rem;
  margin-top: 0.2rem;
  line-height: 1.5;
  min-height: 48px;
}
.project-meta {
  color: #64748b;
  font-size: 0.99rem;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.project-meta .author {
  font-weight: 700;
  color: #334155;
}
.project-tags-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
}
.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tag {
  background: #f1f5f9;
  color: #334155;
  padding: 0.22rem 0.8rem;
  border-radius: 0.7rem;
  font-size: 0.93rem;
  font-weight: 600;
  transition: background 0.2s;
}
.tag:hover {
  background: #e0e7ef;
}
.project-stats {
  display: flex;
  gap: 1.1rem;
  color: #64748b;
  font-size: 1.01rem;
  align-items: center;
}
.project-stats i {
  margin-right: 0.35rem;
}
.project-info .btn.primary {
  width: 100%;
  font-size: 1.08rem;
  padding: 0.7rem 0;
  border-radius: 0.8rem;
  background: linear-gradient(90deg, #6366f1 60%, #06b6d4 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  margin-top: 0.7rem;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(99,102,241,0.08);
  cursor: pointer;
}
.project-info .btn.primary:hover {
  background: linear-gradient(90deg, #4f46e5 60%, #0891b2 100%);
}
.modern-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
  padding: 2.2rem 1rem;
}
@media (max-width: 600px) {
  .modern-card {
    min-height: 340px;
  }
  .project-image {
    height: 140px;
  }
  .project-info {
    padding: 1.1rem 0.7rem 1rem 0.7rem;
  }
  .modern-projects-grid {
    gap: 1.2rem;
    padding: 1.2rem 0.2rem;
  }
}



.projects {
    padding: 2rem 1rem;
    background: #f9fafb;
}

.projects-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.projects-header h2 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.projects-header p {
    color: #64748b;
    font-size: 1.15rem;
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: #64748b;
}

.tab-btn.active {
    color: #1e293b;
    border-bottom: 2px solid #1e293b;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-dropdown, .search-input {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    font-size: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.5rem;
    background: #ef4444;
    color: #fff;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.status-badge.in-progress {
    background: #f59e0b;
}

.status-badge.need-help {
    background: #3b82f6;
}

.bookmark-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.2rem;
    cursor: pointer;
}

.project-content {
    padding: 1rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.project-content p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.project-metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.author-info {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.author-info .author {
    font-weight: 600;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tech-badge {
    padding: 0.25rem 0.5rem;
    background: #e0e7ff;
    color: #1e40af;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.view-btn {
    display: block;
    width: 100%;
    padding: 0.5rem;
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

.view-btn:hover {
    background: #2d3748;
}


@media (max-width: 993px) {
  .main {
    display: block;
  }
}