/* -------------------- Reset -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -------------------- Body -------------------- */
body {
  font-family: 'Cairo', system-ui, sans-serif;
  color: #e0e0e0;
  background: radial-gradient(1200px 600px at 80% -10%, #1a1a1a 0%, transparent 60%),
              radial-gradient(1000px 500px at -10% 110%, #0d0d0d 0%, transparent 60%),
              #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* -------------------- Layout -------------------- */
.wrap {
  width: 100%;
  max-width: 520px;
}

.card {
  background: linear-gradient(180deg, #111, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .7);
}

/* -------------------- Header -------------------- */
header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  overflow: hidden;
}

h1 {
  font-size: 28px;
  margin: 0;
}

.bio {
  margin: 0;
  color: #bdbdbd;
}

/* -------------------- Tags -------------------- */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  color: #9e9e9e;
}

/* -------------------- Links -------------------- */
.links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #f5f5f5;
  background: linear-gradient(180deg, #1c1c1c, #141414);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .15s ease, box-shadow .15s ease;
}

.link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .6);
}

.icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #0d0d0d;
}

.title {
  font-size: 16px;
  font-weight: 600;
}

.meta {
  font-size: 14px;
  color: #9e9e9e;
}

/* -------------------- Footer -------------------- */
.footer {
  margin-top: 14px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9e9e9e;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, #333, #555);
  color: #f5f5f5;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* -------------------- Modal -------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .8);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #777;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 600px) {
  .card {
    padding: 16px;
  }

  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
  .row {
    justify-content: center;
  }

  .avatar {
    width: 80px;
    height: 80px;
  }

  h1 {
    font-size: 24px;
  }

  .links {
    gap: 8px;
  }

  .link {
    padding: 8px 10px;
  }

  .icon {
    width: 40px;
    height: 40px;
  }

  .title {
    font-size: 14px;
  }

  .meta,  .footer {
    font-size: 12px;
  }
}
