:root {
  /* Default: Light Mode */
  --primary-color: #6366f1;
  --secondary-color: #f1f5f9;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --card-bg: #ffffff;
  --bg-color: #f8fafc;
  --border-color: #f1f5f9;
}

body.dark-mode {
  --primary-color: #818cf8;
  --secondary-color: #334155;
  --text-dark: #f1f5f9;
  --text-light: #94a3b8;
  --card-bg: #1e293b;
  --bg-color: #0f172a;
  --border-color: #334155;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

body {
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Theme Toggle Button */
.theme-toggle {
  position: absolute;
  top: 2rem;
  right: 2rem;
}

#theme-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

#theme-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-container {
  padding: 2rem;
}

.card {
  background: var(--card-bg);
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  width: 320px;
  overflow: hidden;
  transition: transform 0.3s ease, background-color 0.3s;
}

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

.card-header {
  height: 100px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  position: relative;
}

.profile-image {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 4px solid var(--card-bg);
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  background-image: url('https://api.dicebear.com/7.x/avataaars/svg?seed=John');
  background-size: cover;
  transition: border-color 0.3s;
}

.card-body {
  padding-top: 60px;
  text-align: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.name {
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.title {
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.description {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

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

.count {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-footer {
  padding: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

button {
  flex: 1;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #4f46e5;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}
