*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #f9fafb;
  display: flex;
  padding: 16px;
  direction: rtl;
  min-height: 100vh;
  user-select: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #101827, #020617);
}

a {
  text-decoration: none;
}

.email-link {
  color: #0ea5e9;
  width: 100%;
  display: flex;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 10px;
  text-align: center;
  align-items: center;
  border-radius: 999px;
  text-decoration: none;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease,
    border-color 0.1s ease;
}

.card {
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  padding: 20px 18px 18px;
  backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.top-row {
  gap: 12px;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.avatar {
  width: 56px;
  height: 56px;
  padding: 2px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  border-radius: 999px;
  justify-content: center;
  background: conic-gradient(
    from 180deg,
    #22c55e,
    #0ea5e9,
    #a855f7,
    #f97316,
    #22c55e
  );
}

.avatar-inner {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  font-weight: 700;
  color: #e5e7eb;
  font-size: 1.4rem;
  align-items: center;
  background: #020617;
  border-radius: inherit;
  justify-content: center;
}

.avatar-inner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.title-block {
  gap: 2px;
  display: flex;
  flex-direction: column;
}

.name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.role {
  color: #9ca3af;
  font-size: 0.85rem;
}

.section-label {
  color: #9ca3af;
  margin-top: 10px;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.about {
  line-height: 2;
  color: #e5e7eb;
  font-size: 0.9rem;
  padding: 10px 12px;
  text-align: justify;
  background: rgba(15, 23, 42, 0.95);
}

.links {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.link-btn {
  width: 100%;
  display: flex;
  color: #f9fafb;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 11px 12px;
  align-items: center;
  border-radius: 999px;
  text-decoration: none;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease,
    border-color 0.1s ease;
}

.link-left {
  gap: 8px;
  display: flex;
  align-items: center;
  padding-right: 16px;
}

.link-btn span.label {
  letter-spacing: 0.01em;
}

.link-arrow {
  font-size: 1rem;
  opacity: 0.75;
}

.link-btn:active {
  transform: scale(0.98);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.link-btn:hover {
  background: rgba(30, 64, 175, 0.95);
  border-color: rgba(129, 140, 248, 0.95);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.8);
}

.youtube-color {
  border: unset;
  color: white;
  transition-duration: 300ms;
  background-color: #cc0000;
}

.youtube-color:hover {
  border: unset;
  background-color: #690000;
}

@media (max-width: 360px) {
  .card {
    padding: 16px 14px 14px;
  }

  .name {
    font-size: 1.1rem;
  }

  .about {
    font-size: 0.85rem;
  }

  .link-btn {
    font-size: 0.85rem;
  }
}
