/*
 * =============================================================================
 * PROJECTS LISTING PAGE - Student Works Gallery
 * Large card grid layout with hover reveals
 * Depends on design-tokens.css
 * =============================================================================
 */

/* Page Wrapper */
#mainContent {
  padding: 50px 0 90px;
}

/* ============================================================================
   GALLERY INTRO SECTION
============================================================================ */

.gallery-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.intro-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.intro-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.intro-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================================
   BIG IMAGE CARDS (2-COLUMN LARGE SHOWCASE)
============================================================================ */

.big-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

@media (max-width: 820px) {
  .big-gallery-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.large-work-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11; /* Large, immersive view */
  background-color: var(--primary-light);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(11, 32, 70, 0.06);
  border: 1px solid var(--border-color);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.large-work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(11, 32, 70, 0.16);
  border-color: #cbd5e1;
}

.large-work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.large-work-card:hover img {
  transform: scale(1.05);
}

/* ============================================================================
   CARD HOVER OVERLAY (Student Name Revealed on Hover)
============================================================================ */

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 32, 70, 0.05) 20%, rgba(11, 32, 70, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.large-work-card:hover .card-hover-overlay {
  opacity: 1;
  visibility: visible;
}

.overlay-category {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.overlay-student-name {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--text-inverse);
  line-height: 1.2;
  margin-bottom: 6px;
}

.overlay-project-title {
  font-size: 15px;
  color: #E0E0E0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
============================================================================ */

@media (max-width: 600px) {
  #mainContent {
    padding: 30px 0 60px;
  }

  .gallery-intro {
    margin-bottom: 32px;
  }

  .big-gallery-grid {
    gap: 20px;
  }

  .card-hover-overlay {
    padding: 24px;
  }

  .overlay-student-name {
    font-size: 20px;
  }
}
