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

/* Projects section container */
.projects {
  padding: 12rem 9% 5rem; /* Leave space for fixed header */
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Section heading */
.projects h2 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--primary-color);
}

/* List of projects */
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

/* Individual project item */
.project-item {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(255, 77, 77, 0.15);
  transition: var(--transition);
}

.project-item:hover {
  transform: translateY(-0.5rem) scale(1.02);
  box-shadow: 0 1rem 2rem rgba(255, 77, 77, 0.3);
}

/* Project title */
.project-item h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Project description */
.project-item p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: rgba(245, 245, 245, 0.8);
}

.project-item a {
  font-size: 1.2rem;
  display: inline-block;
  margin-top: 1rem;
  color: #1E90FF;
  text-decoration: none;
  font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
  .projects {
    padding: 12rem 5% 5rem;
  }
}

@media (max-width: 768px) {
  .project-list {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .projects h2 {
    font-size: 3.5rem;
  }

  .project-item h3 {
    font-size: 1.8rem;
  }

  .project-item p {
    font-size: 1.5rem;
  }
}
