/* Page-specific presentation rules extracted for the projects page. */

#projects {
  background-color: var(--bg-dark);
}

#projects .section-header {
  text-align: center;
  margin-bottom: 20px;
  /* Reduced for tighter spacing */
  margin-top: 30px;
  /* Tighter spacing for the top of the page */
}

#projects .section-header p {
  margin-top: 15px;
  /* Reduced */
  font-size: 1.1rem;
  /* Reduced */
  color: var(--text-light);
  max-width: 800px;
}

#projects .filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  /* Reduced gap */
  margin-bottom: 30px;
  /* Reduced */
}

#projects .filters button {
  background: var(--bg-accent);
  color: var(--text-light);
  border: none;
  padding: 8px 16px;
  /* Reduced */
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  /* Reduced */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
}

#projects .filters button:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#projects .filters button.active {
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.project-title-bar {
  min-height: 65px !important;
  margin-bottom: 10px !important;
}

#projects .projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  /* Reduced gap for projects */
  margin-top: 20px;
  /* Reduced top margin */
  margin-bottom: 40px;
  /* Reduced bottom margin */
}

#projects .project-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  /* Reduced padding */
  border-radius: 16px;
  /* Slightly smaller border-radius */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

#projects .project-card .project-image-section {
  margin-bottom: 15px;
  /* Reduced */
  border-radius: 12px;
  /* Slightly smaller */
  overflow: hidden;
  position: relative;
  height: 180px;
  /* Tighter image height */
}

#projects .project-card .project-details-section {
  flex-grow: 1;
}

#projects .project-card .project-title {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.3rem;
  /* Reduced font size */
  font-weight: 600;
  letter-spacing: 0.02em;
}

#projects .project-card .project-description {
  font-size: 0.95rem;
  /* Reduced */
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
}

#projects .project-card .project-tech-stack {
  margin-top: auto;
  /* Moves stack to bottom */
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  /* Reduced gap for tech items */
  margin-bottom: 15px;
}

#projects .project-card .project-tech-stack li {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
}

#projects .project-card .project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

#projects .project-card .project-card-footer .view-project-btn {
  font-size: 0.95rem;
  /* Reduced */
  padding: 10px 20px;
}

#projects .project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

#projects .project-card.card-loading .loading-skeleton {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 15px;
}
