/* ===== Profile Section Styling ===== */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.profile-card:hover {
  transform: translateY(-2px);
}

.profile-card img {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}
.profile-card img:hover {
  transform: scale(1.04);
}

/* Stats & Meta Info */
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.profile-meta .btn {
  font-size: 0.95rem;
  font-weight: 500;
  background: color-mix(in oklab, var(--surface) 85%, transparent);
}

/* Inventory Tiles (Projects, Certs, Skills) */
.inventory-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.inventory-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Typography Overrides */
.section__title + .tile p {
  color: var(--text);
}

/* Responsive Enhancements */
@media (max-width: 640px) {
  .profile-card {
    align-items: center;
    text-align: center;
  }

  .profile-meta {
    justify-content: center;
  }

  .profile-card img {
    margin-bottom: 1rem;
  }
}

/* Badge Row & Tooltips */
.badge-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.badge {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.badge img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  box-shadow: none;
}

.badge::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.badge:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Certifications styling */
.verification-code {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.25rem 0 0.5rem;
}

.tile .btn.primary {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.verification-code.empty {
  visibility: hidden; /* Keeps the space but hides the text */
}