/* ============================================================
   EXACT CLONE OF REFERENCE IMAGE 1 (PIXEL PERFECT)
   ============================================================ */

:root {
  --card-bg: #131313;
  --text-main: #fdfdfd;
  --text-sub: #8E8E8E;
  --text-label: #A1A1A1;
  --border-light: #EBEBEB;
  --pill-bg: #F4F4F4;
  --radius-card: 45px;
}

body {
  background-color: #000000;
  color: var(--text-main);
  font-family: 'Poppins', 'Inter', sans-serif;
}

/* --- GRID --- */
.container-projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin: 0 auto;
  padding: 140px 5%;
}

/* --- CLONE CARD --- */
.project-card {
  width: 580px;
  /* Estimated width from reference */
  background: var(--card-bg);
  border-radius: var(--radius-card);
  box-shadow: 0 40px 100px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

/* Top Part (Image) */
.card-hero {
  height: 165px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.bookmark-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

/* Avatar - Fixed overlap */
.card-avatar {
  position: absolute;
  top: 95px;
  left: 35px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  border: 8px solid var(--card-bg);
  /* Bridges the gap */
  background: #000000;
  z-index: 5;
  overflow: hidden;
}

.card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(0.9);
}

/* Main Content Area */
.card-body {
  padding: 38px 20px 20px;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.card-header-row h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.card-header-row p {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-top: 5px;
  font-weight: 500;
}

.tools-pill {
  background: var(--pill-bg);
  padding: 8px 18px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.tools-pill i {
  color: #555;
}

/* Stats Row */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1.5px solid #F0F0F0;
  padding-top: 25px;
}

.stats-group {
  display: flex;
  gap: 30px;
  align-items: center;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-box .val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-box .val i {
  font-size: 0.9rem;
  margin-right: 5px;
}

.stat-box .label {
  font-size: 0.75rem;
  color: var(--text-label);
  margin-top: 2px;
  width: 10px;
  border: none;
}

.stat-divider {
  width: 1.5px;
  height: 35px;
  background: #EAEAEA;
}

/* Black Button CTA */
.btn-cta {
  background: #000000;
  border: 1px solid white;
  color: #FFFFFF;
  padding: 18px 40px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-cta:hover {
  opacity: 0.85;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .project-card {
    width: 95%;
    border-radius: 30px;
  }

  .card-avatar {
    width: 85px;
    height: 85px;
    top: 165px;
    left: 20px;
  }

  .card-body {
    padding: 50px 20px 25px;
  }

  .card-footer {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
  }

  .btn-cta {
    width: 100%;
    text-align: center;
  }
}