/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: center; /* pushes GitHub icon to right */
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.navbar h1 {
  color: #ff7a00;
  font-weight: bold;
}

/* Container */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

/* Card */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Header */
.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-right: 1rem;
  border: 3px solid #ff7a00;
}

.name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #222;
}

.role {
  font-size: 0.9rem;
  color: #666;
}

/* Description */
.description {
  margin: 0.8rem 0;
  font-size: 0.95rem;
  color: #444;
}

/* Tags */
.tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #fff8f0;
  border: 1px solid #ff7a00;
  color: #ff7a00;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag:hover {
  background: #ff7a00;
  color: white;
}

.card-selected {
  border: 2px solid #ff7a00;
}

#btn-container {
  display: none;
  margin-top: 2rem;
}

#btn-container.active-btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

#chat-btn {
  background: #ff7a00;
  color: white;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#chat-btn:hover {
  background: #e96b00;
  transform: scale(1.05);
}

.github-link {
  color: #000;
  transition: color 0.2s ease-in-out;
  position: absolute;
  right: 16px;
}

.github-link:hover {
  color: #555;
}

.github-icon {
  width: 24px;
  height: 24px;
}
