/* ===========================
   Base & Reset
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f4f2;
  --card-bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --accent: #3b3b3b;
  --border: #e5e7eb;
  --tag-bg: #f0ede8;
  --tag-text: #4b5563;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  --radius: 1rem;
  --radius-sm: 0.5rem;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* style classes */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 600px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.avatar {
  width: 200px;
  flex-shrink: 0;
  object-fit: contain;
  margin-left: -0.75rem;
}

.profile-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 2rem;
}

.name {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.university {
  font-weight: 500;
  color: var(--text-primary);
}

.links {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.link-bubble {
  flex: 1;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 0;
  border-radius: 6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.link-bubble:hover {
  background: #ffffff;
  color: #1a1a1a;
  outline: 1.5px solid #1a1a1a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--border);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

.category-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.tech-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-item {
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.tech-item:hover {
  background: #d1cec9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.footer {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ===========================
   Responsive for mobile view
   =========================== */
@media (max-width: 500px) {
  .card {
    padding: 2rem 1rem;
  }

  .avatar {
    width: 120px;
  }

  .profile-text {
    padding-top: 1rem;
  }

  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }

  .name {
    font-size: 1.2rem;
  }
}

@media (max-width: 360px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}
