:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --background-color: #0f172a;
  --card-background: rgba(30, 41, 59, 0.7);
  --text-color: #e2e8f0;
  --muted-text: #94a3b8;
}

body {
  background: radial-gradient(circle at top left, #064e3b, transparent 40%),
    radial-gradient(circle at bottom right, #065f46, transparent 40%),
    #0f172a;
  background-attachment: fixed;
  color: var(--text-color);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

.container {
  max-width: 650px;
  padding-top: 1.5rem;
  padding-bottom: 0px;
}

header {
  margin-bottom: 0.5rem;
}

main.container {
  padding-top: 0;
}

main.container .section:first-child {
  margin-top: 0;
}

.avatar {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
  transition: transform 0.3s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.avatar:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}

header h1 {
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: 2rem;
  background: linear-gradient(to right, #34d399, #10b981);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

header p {
  color: var(--muted-text);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.section {
  margin-bottom: 1.5rem;
}

.section h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding-bottom: 0.25rem;
  display: inline-block;
}

.items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.item {
  width: 100%;
}

/* Base card style for items */
.item>a,
.item>div {
  /* Handling both links and divs if no url */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  text-align: center;
  min-height: 60px;
  /* Ensures vertical centering is visible even on single-line items */
}

.item a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.item h4 {
  color: var(--text-color);
  margin-bottom: 0.15rem;
  font-weight: 600;
  font-size: 1rem;
}

.item h5 {
  /* Description */
  color: var(--muted-text);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0;
}

.icon {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

/* Horizontal Layout for Links Section */
.items[style*="row"] {
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.items[style*="row"] .item {
  width: auto;
}

.items[style*="row"] .item a {
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  /* Pill shape */
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.items[style*="row"] .item a:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

.items[style*="row"] .item h4 {
  margin: 0;
  font-size: 0.95rem;
}

.items[style*="row"] .item h5 {
  display: none;
  /* Hide descriptions in button row if they exist */
}

@media (max-width: 600px) {
  .items[style*="row"] {
    flex-direction: column !important;
  }

  .items[style*="row"] .item {
    width: 100%;
  }
}