/* ============================================
   PROJECTS SECTION
   Portfolio projects showcase
   ============================================ */

.projects {
  /* Layout */
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-bottom: 0;
  
  /* Visual */
  background: var(--card-project-bg);
}


/* ============================================
   SECTION HEADING
   ============================================ */

.projects h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--heading-secondary-gradient);
  margin-bottom: 2rem;
}


/* ============================================
   PROJECTS GRID
   Card grid layout
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.875rem;
  justify-items: center;
  margin-top: 3.125rem;
  padding: 0 1rem;
}


/* ============================================
   PROJECT CARD
   Individual project card
   ============================================ */

.project-card {
  /* Layout */
  width: 100%;
  max-width: 21.875rem;
  padding: 2.5rem;
  
  /* Typography */
  text-align: center;
  
  /* Visual */
  border-radius: 0.9375rem;
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(0.625rem);
  
  /* Animation */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-0.625rem);
  box-shadow: 0 0.9375rem 2.5rem rgba(0, 0, 0, 0.4);
}


/* ============================================
   CARD CONTENT
   Heading, text, and links
   ============================================ */

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--color-primary);
}

.project-card p {
  font-size: 1rem;
  color: #d0d0d0;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-card a {
  position: relative;
  display: inline-block;
  margin-bottom: 0;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.project-card a:hover {
  transform: scale(1.05);
}


/* ============================================
   RESPONSIVE DESIGN
   Mobile projects adjustments
   ============================================ */

@media (max-width: 64rem) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.5rem;
  }

  .project-card {
    padding: 2rem;
  }
}

@media (max-width: 48rem) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .project-card {
    max-width: 100%;
    padding: 1.875rem;
  }

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

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