/* ============================================================
   projects-showcase.css — Enhanced Original Projects Showcase
   Preserves original structure, enhances light colors & animations
   ============================================================ */

/* Page background */
.main {
  background: #fbfdfc;
}

.section.library {
  position: relative;
  padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
}

/* Subtle glowing background aura */
.section.library::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 214, 164, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.section.library::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 125, 91, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Section head */
.section-head {
  margin-bottom: 22px;
}
.section-head .eyebrow {
  color: #2e7d5b;
}
.section-head .eyebrow::before {
  background: #10b981;
}
.section-head h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #102219;
  letter-spacing: -0.025em;
  margin: 10px 0 12px;
}
.section-head p {
  color: #556b60;
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 58ch;
}

/* Menu badge */
.menu-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(46, 125, 91, 0.18);
  color: #2e7d5b;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(46, 125, 91, 0.06);
  margin-bottom: 28px;
}

/* Cards grid */
.lib-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Enhanced original lib-card */
.lib-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 24px 26px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(46, 125, 91, 0.12);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.28s ease;
  cursor: pointer;
  overflow: hidden;
  outline: none;
}

/* Top accent gradient line on hover */
.lib-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2e7d5b, #6fd6a4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lib-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(46, 125, 91, 0.16), 0 4px 12px rgba(0, 0, 0, 0.02);
  border-color: rgba(46, 125, 91, 0.28);
}
.lib-card:hover::before {
  transform: scaleX(1);
}

/* Number badge */
.lib-num {
  font-family: 'Manrope', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  color: #2e7d5b;
  background: #eaf5ee;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  display: inline-block;
  margin-bottom: 8px;
}

/* Title */
.lib-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.48;
  color: #122218;
  display: block;
  transition: color 0.2s ease;
}
.lib-card:hover .lib-title {
  color: #1e6b48;
}
.lib-title i {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  color: #276749;
}

/* Arrow circle */
.lib-arrow {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f7f3;
  border: 1px solid rgba(46, 125, 91, 0.14);
  color: #2e7d5b;
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}
.lib-arrow svg {
  width: 18px;
  height: 18px;
}
.lib-card:hover .lib-arrow {
  background: #2e7d5b;
  color: #ffffff;
  border-color: #2e7d5b;
  transform: translate(3px, -3px) rotate(-45deg);
}

@media (max-width: 900px) {
  .lib-grid {
    grid-template-columns: 1fr;
  }
}
