/* === Projects Section === */
#projects {
  padding: 5rem 1.5rem;
  background: linear-gradient(to bottom, #f4f6f9, #ffffff);
  text-align: center;
}

#projects h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 3rem;
  line-height: 1.2;
}

/* Projects Grid */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Project Card */
.project-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

/* Project Title */
.project-card h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.8rem;
}

/* Project Description */
.project-card p {
  flex-grow: 1;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 1.2rem;
}

/* Action Button */
.project-card a {
  align-self: flex-start;
  background-color: #2563eb;
  color: #ffffff;
  padding: 0.65rem 1.3rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-card a:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

/* Responsive Fixes */
@media (max-width: 768px) {
  #projects h2 {
    font-size: 2.2rem;
  }

  .project-card h3 {
    font-size: 1.4rem;
  }

  .project-card p {
    font-size: 1rem;
  }

  .project-card a {
    font-size: 0.9rem;
    padding: 0.55rem 1.1rem;
  }
}
