.projects-page {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 2rem;
}

.hero-section {
  text-align: center;
  margin-bottom: 4rem;
}

.hero-section h1 {
  font-size: 3rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  color: var(--dark-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Project Filters */
.project-filters {
  margin-bottom: 3rem;
  display: grid;
  gap: 1.5rem;
}

.search-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--medium-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--medium-gray);
}

.filter-tags {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 20px;
  background: var(--light-gray);
  color: var(--dark-gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tag:hover {
  background: var(--medium-gray);
}

.filter-tag.active {
  background: var(--primary-color);
  color: var(--white);
}

.sort-options {
  text-align: right;
}

.sort-options select {
  padding: 0.5rem 1rem;
  border: 2px solid var(--medium-gray);
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  background: var(--white);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.project-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.project-preview {
  position: relative;
  padding-top: 60%;
  background: var(--light-gray);
  overflow: hidden;
}

.project-preview svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.4rem;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--dark-gray);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.project-tag {
  padding: 0.25rem 0.75rem;
  background: var(--accent-color);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.8rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.project-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--light-gray);
}

.project-stats {
  display: flex;
  gap: 1rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Load More */
.load-more {
  text-align: center;
  margin-bottom: 4rem;
}

/* Create Project Section */
.create-project {
  background: linear-gradient(135deg, rgba(41, 171, 226, 0.1), rgba(103, 58, 183, 0.1));
  padding: 4rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 4rem;
}

.create-content h2 {
  font-size: 2rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.create-content p {
  color: var(--dark-gray);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.create-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-page {
    padding: 1rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .project-filters {
    gap: 1rem;
  }

  .filter-tags {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
  }

  .sort-options {
    text-align: left;
  }

  .create-buttons {
    flex-direction: column;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card {
  animation: fadeIn 0.6s ease forwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .project-card {
    animation: none;
  }

  .project-card:hover {
    transform: none;
  }
}

/* High Contrast Mode */
@media (forced-colors: active) {
  .project-card {
    border: 2px solid CanvasText;
  }

  .filter-tag {
    border: 1px solid CanvasText;
  }
}